How to Unregister an Application for a Specific Region and Domain?

I’m looking for a way to remove the registration of an application tied to a specific domain and region.
Example URL:
curl -H "Authorization: Bearer $TESLA_AUTH_TOKEN"
-i https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/partner_accounts/public_key?domain=MY_DOMAIN_URL
The goal is to re-register MY_DOMAIN_URL for a new application. Despite reaching out to<EMAIL_ADDRESS>multiple times over the past few months, I have not received a response.
Has anyone managed to remove an application or un-register it from a domain?

Ive done this before by changing the partner domain of the old application to something else, which make my actual domain avaliable to register by the new application.

Ive done this before by changing the partner domain of the old application to something else, which made my actual domain avaliable to register by the new application.
But this was back in Feburary, so hopefully it still works.

I tried this and I managed to register my new application on region https://fleet-api.prd.na.vn.cloud.tesla.com/.
I generated a new EC Private key and hosted the public key at my domain. The problem now is that my I can't register my domain on region https://fleet-api.prd.eu.vn.cloud.tesla.com/ with my new public key.
{"response":null,"error":"Validation failed: Csr public key does not match the com.tesla.3p.public-key.pem","error_description":"","txid":"xxxxx"}
Any ideas how to fix this?

Did you change the old applicaiton registration on both NA and EU? Rememeber you have to do everything twice, once on each region.

Did you change the old applicaiton registration on both NA and EU? Rememeber you have to do everything twice, once on each region.

These are the steps I have done so far.

Application 1 - Registered to EU. I Want to register it to both EU & NA.
Application 2 - Registered to NA. I want to remove this application or un-register this.

What I have done.

Application 2 - Registered to a new domain in NA.
Application 1 - Tried to register to NA. Result: {"response":null,"error":"Validation failed: Public key hash has already been taken","error_description":"","txid":"607ac89a9416885d99e8ee8269845001"}
Generated a new EC public key.
Application 1 - Registered to NA. Success!
Application 1 - Register to EU. Error! {"response":null,"error":"Validation failed: Csr public key does not match the com.tesla.3p.public-key.pem","error_description":"","txid":"20c40ff04bb6c3fa6776590c0dca991f"}

Hopefully this clarifies the steps I have taken and what issues I'm encountering.

It does, you haven't changed app 2 domain in the EU.

It does, you haven't changed app 2 domain in the EU.

I registered Application 2 to EU too and then tried to register Application 1 to NA (succcess) & EU (failure).
{"response":null,"error":"Validation failed: Csr public key does not match the com.tesla.3p.public-key.pem","error_description":"","txid":"fb376e1e6b8b78bd20b8e65626dc0fb7"}

@caglarsu No, I haven't solved the problem yet. Let me know if you find a way.


Bulk paper wallet page break

This issue I am having is when printing bulk wallets the function generateWallets() does not recognize page breaks.
adding something like:
if (i-1) % 3 == 0{

}
in the globalFuncs.js might fix it, but i haven't had time to test it yet.

kvhnuke just added some bottom padding so that 3 fit per page. the page-break thing seemed to not be consistent. Apparently, this is a new thing that I screwed up when I switched the placement of the notes with the rightmost QR code. Whoops.


loading local assets

Hi
can you please show a simple example on how to load a local si/svg file?
Thank you

Good point!  A standalone example of that makes sense.  See the new example/asset.dart, https://github.com/zathras/jovial_svg/commit/a4b6730b731f25616866ca6643c25c86c2a144eb


Status, hardware, tags (multiple) filters for the job list

angular ui select is used

This works very nicely. I have two suggestions for improvement.

when you filter by "BrainScaleS", you also get "BrainScaleS-ESS" jobs. I guess it should be straightforward to require an exact match?
the drop-down list of tags seems to include all tags in the database. I think it would be better to include only those tags which are attached to jobs in the current collab. If there are no tags in the collab, the selector should be hidden. This point is not urgent, so could you create a new issue for this, and we'll handle it later.


Fixes duplicated threads in thread list

Summary
Upon leaving a channel we collect all threads that belong to that channel and then we remove them from the threadsInTeam lists. BUT if a thread is in threads, but not in threadsInTeam then it will duplicate the list.
This is happening because we didn't check thread's index against -1. So the slice would be
// list1 == [1,2,3,4]
list2 = [...list.slice(0, -1), ...list.slice(1 - 1)]
// list2 == [1,2,3,1,2,3,4]
// after sorting [1,1,2,2,3,3,4]

This commit fixes that issue by checking each thread's index in threadsInTeam list, and if it doesn't exist it does nothing.
Ticket Link
Release Note
Fixed a bug where threads would appear duplicated in the threads list after leaving channels.

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/260736

Thanks @koox00
Tested, looks good to merge.
Verified threads no longer duplicating when leaving a channel.
E2E report - no PR related failures.


Adding a catch for unhandled auth failures

Summary
Fixing an issue where the errors triggered by auth.test were not caught
Requirements (place an x in each [ ])

[x] I've read and understood the Contributing Guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.

Fixes #248

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@shaydewael @aoberoi I took a stab at fixing #248 but I have a few questions in the code that I need help on. Would you mind taking a look?

Thanks for taking the time to make this PR and I'm sorry for slow response here. I think this is a good starting point to discuss possible ways to address the issue that still remains in v2.
We may want to add a new option to enable developers to customize singleTeamAuthorization (this is a bit similar to the approach in this PR) or mention custom authorize examples in documents. Thoughts? @aoberoi @stevengill

@aoberoi was incredibly nice and spent like an hour walking me through the alternative, which was setting up my own authorize method. Within that method, we had a check for process.ENV.NODE_ENV to see if it was test, in which case re just responded with junk values.
I’d be more than happy to add that solution to the docs if y’all just point me in the right direction for where that should live.

@SpencerKaiser I'm glad to hear that Ankur already helped you out! Also, thanks for your interest in contributing to the document. Honestly, I'm not an active document maintainer (except Japanese translation) in this project but the right place to add more information should be:

https://slack.dev/bolt-js/concepts#authorization
https://github.com/slackapi/bolt-js/blob/master/docs/_advanced/authorization.md

You can use <details> tag to add a further topic part that is normally closed when visiting the website. Checking other pages such as https://github.com/slackapi/bolt-js/blame/%40slack/bolt%402.1.1/docs/_advanced/logging.md#L24 would be helpful to know how to implement it.
As it seems all clear about this PR now, please allow me to close this PR now. Thanks again for sharing your thoughts and updates!

@seratch I think the documentation should be something we tackle separately, but there’s still an open issue for a bug that this PR addresses.

Yes, I agree. We'll keep the issue open. If you'd like to work on the issue with this PR, please feel free to reopen this.


Godot 3.0 migration

I started migrating this plugin to 3.0.
All features & demos work, except:

Trailing particles. Particle2D node has changed a bit and I didn't succeed in making it work the same as previously. I'll try to continue the work and get it working, but if someone knows this better I'll gladly accept to help or hints. Fixed

I had to fiddle with set_process() and set_process_input() initialization in swipe_detector.gd::set_swipe_process() because Godot 3.0 sets process modes by default.
I also had to modify the angle calculation for it to stay correct in https://github.com/arypbatista/godot-swipe-detector/pull/18/files#diff-fab58008ae53e71bc82d625e2529e4cdR106

Hi! Have you tested all demos are running correctly? That's our test suite haha
I will check it out later and merge
Also, I should check if asset library allows to set different version of the plugin for each Godot version (2.1.4 & 3.0)

Hi !
Yep. I tested all of them. I am just not certain of the result for swipe_touch_smooth_impulse.
But ofc I strongly advise you just clone my repo, import it in Godot 3.0 and test :)

Roger! I will check later and merge!

Hi Julian! Good job!
Some questions over here:

You replaced relative import path with absolute paths on GDScript. Is there a reason for this? I prefer relative imports since it's easy to perform refactoring if needed plus the user of this code can move the swipe detector around without having to change load/preload statements to adjust to new paths.
On event_swipe_input.gd you commented the line 29 where event checking was performed. This was added to decide what received events will be processed. What is the reason for removing event checking? This seemed to be causing errors when press keys or trigger any other event, so added it again (adapted to Godot 3.0).
Fixed angle calculation to fix demos involving swipe direction.

Merged!
Bests,
Ary

Hi !

I actually used absolute paths for early convenience and simply forgot to get back to relative paths. For some reason, previous relative paths didn't work in Godot 3.0. It will be better if you can set them back :)
I failed translating this to Godot 3.0 because the type attribute doesn't exist anymore. I'll look at your solution, I am very interested.
I remarked this error just after you merged. Good thing you fixed it :+1:

I don't think my solution is the best one. Maybe there is a more 3.0-godotter approach to do this.
I don't really understand how Godot output angles, neither spend time on it. I would expect 0º to be 0, 90º to be PI/2, 180º to be PI, 270º to be PI + PI/2 and 360º to be PI. But they seem to do something different, like going from -PI to PI, and perceive angles are inverted. Maybe this is the way games handle angles, but I am new on this.

Updated demos.
I will update the asset library now.


i am trying to run darkwire.io on my CentOs machine.

when i trying to run command yarn start then darkwire.io is running on port :3001 but showing disconnected...
after inspecting the page showing below error in console tab
crypto.js:33 Uncaught (in promise) TypeError: Cannot read property 'generateKey' of undefined
can you please share solution on this

what browser are you using?

@seripap hi i am using both google chrome and mozilla firefox...

@seripap but i found above issue in google chrome..

I have had the same issue on Edge & Chrome on windows 10.
Running the server using docker-compose up on arch linux.


{WIP] Region aggregation mip feature

Please confirm that this PR has done the following:

[ ] Tests Added
[ ] Documentation Added
[ ] Description in RELEASE_NOTES.md Added

Adding to RELEASE_NOTES.md (remove section after adding to RELEASE_NOTES.md)
Please add a single line in the release notes similar to the following:
- (#XX)[http://link-to-pr.com] Added feature which does something

Description of PR
Adding aggregator functions (min, max, avg, w.avg) to aggregate_region
    def aggregate_region(self, variable, region='World', subregions=None,
                         components=None, append=False,
                         aggregator='sum', weight_var=None):

Coverage decreased (-0.6%) to 91.407% when pulling 328ee12e7cad6d6991cda3db661757f33bbeabee on peterkolp:region_aggregation_mip_feature into 75e9d03bfdddf7afd641782486ea72aebccd4799 on IAMconsortium:master.

Coverage decreased (-0.6%) to 91.407% when pulling 328ee12e7cad6d6991cda3db661757f33bbeabee on peterkolp:region_aggregation_mip_feature into 75e9d03bfdddf7afd641782486ea72aebccd4799 on IAMconsortium:master.

Thanks @peterkolp for the draft of this feature extension!
One concern, though, is that we are overloading the aggregate_region() function, which already has one "extra" feature, namely to look for components only defined at the region level and include those values in the aggregation.
My suggestion:

[ ] extract "translation" of str to function in auxiliary function so that it can be re-used later (e.g, by #241)
[ ] rename argument aggregator in aggregate_region() to method
[ ] refactor the "weighting" feature into own function aggregate_region_by_weight(), which calls aggregate_region(components=[], ...) to cleanly separate the two features (and reduce scope for user error)

Some tests fail on my machine, and also on the travis builds

closing in favour of #305


Small documentation note

I recently tried out Elixir for the first time yesterday and decided to use an Alpine Linux Docker container for this test (as I do with many things that I try out). I wanted to add SASS support to Phoenix, but I didn't really want an entire Node ecosystem tagged on and lacked the Elixir understanding to do it myself. I found this project and it is great! Well done!
However, sadly my journey wasn't straight forward (details below) and it might be worth noting in the docs somewhere that this project requires bash and glibc (neither of which ship with Alpine or some other distros). In fact, apparently using glibc on Alpine is very naughty and the project that I used to add it to my (dev-only) container is rather unsafe (or at best unpredictable).

Details on what happens without these dependencies follows. My only error on boot (interspersed with many other messages) was:
env: can't execute 'bash': No such file or directory

(no indication that this had anything to do with SASS) and when I added bash it became:
/app/_build/dev/lib/dart_sass/priv/dart_sass.bash: line 13: /app/_build/sass: No such file or directory

Which is absolutely untrue, that file existed in my _build directory.
After some searching, I found that SASS relied upon gclib, so I added that in the clunkiest way possible (since Alpine uses musl):
ENV GLIBC_VERSION=2.34-r0
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
    wget -q -O /tmp/glibc.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && \
    apk add /tmp/glibc.apk && \
    rm -rf /tmp/glibc.apk

And only then did the system build my CSS file.

Hi @paul-norman, thanks for the detailed report! I just merged #14 which adds an FAQ for Alpine Linux to the README, but after reading your note I wonder if it should be updated to highlight some of the issues you pointed out. Would you be able to send a PR?
The bash requirement comes from the wrapper script we use to ensure that we don't leave behind zombie processes when running as a watcher in a Phoenix app. I am not sure if the wrapper script can be written without the bash requirement, but I will look into it, thanks!

On newer alpine images we use this:
ENV GLIBC_VERSION=2.34-r0
COPY docker/sgerrand.rsa.pub /etc/apk/keys/sgerrand.rsa.pub
RUN wget -q -O /tmp/glibc.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && \
    mv /etc/nsswitch.conf /etc/nsswitch.conf.bak && \
    apk add --no-cache --force-overwrite /tmp/glibc.apk && \
    mv /etc/nsswitch.conf.bak /etc/nsswitch.conf && \
    rm -rf /tmp/glibc.apk

set version to latest GLIBC_VERSION=2.35-r1 if you encounter this error:
ERROR: glibc-2.34-r0: trying to overwrite etc/nsswitch.conf owned by alpine-baselayout-data-3.4.3-r2


[bug]:  Custom shell scripts in build phases do nothing

Is there an existing issue for this?

[X] I have searched the existing issues.

CLI Version
1.0.0
Firebase Tools version
13.10.2
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale
en-HU)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.3)
[✓] VS Code (version 1.90.0)
[✓] Connected device (6 available)
! Error: Browsing on the local area network for -- iPhone. Ensure the device is unlocked and attached with a cable or
associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• No issues found!
Description
The CLI-injected shell script execute without errors, but it fails to produce the expected results. Specifically, the script that should copy the GoogleService-Info file to the build directory does not copy the file.
Additionally, the script intended to upload Crashlytics debug symbols does not upload them, and exit with error below:
2024-06-06 08:39:42.688 upload-symbols[24420:159782] Unable to get file attributes for dSYM file at path "/Users/mateboros/Documents/Github/my_catalog_app/build/ios/Release-dev-iphoneos/Catalog/Contents/Resources/DWARF"

    #0      UploadCrashlyticsSymbols.run (package:flutterfire_cli/src/commands/upload_symbols.dart:406:7)
    <asynchronous suspension>
    #1      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
    <asynchronous suspension>
    #2      main (file:///Users/mateboros/.pub-cache/hosted/pub.dev/flutterfire_cli-1.0.0/bin/flutterfire.dart:63:5)
    <asynchronous suspension>

Steps to reproduce
SAMPLE: https://github.com/qwadrox/my_catalog_app

Create a new flutter app
Setup Flavors on iOS based on: https://docs.flutter.dev/deployment/flavors
Run the cli with build configuration option for iOS. Choose let's say: Debug-dev
Start the application and you will see the error: Unable to get file attributes for dSYM file.
Also, I couldn't find anywhere of the output directories the GoogleService-Info.json.

Expected behavior
Running the cli should correctly setup the shell scripts. All path should match the actual path. dSYM should be uploaded build time.  GoogleService-Info.json should be located in the products build directory.
Screenshots
No response
Additional context and comments
No response
Workaround
https://github.com/firebase/flutterfire/issues/11547#issuecomment-1707347602

The path seems incorrect for DSYM: 2024-06-06 08:39:42.688 upload-symbols[24420:159782] Unable to get file attributes for dSYM file at path "/Users/mateboros/Documents/Github/my_catalog_app/build/ios/Release-dev-iphoneos/Catalog/Contents/Resources/DWARF"
Take a look at my path for example:
/Users/russellwheatley/Library/Developer/Xcode/DerivedData/Runner-cqtrobmgajrkdoekebvuxzxiddfo/Build/Products/Release-iphoneos/Runner.app.dSYM
I would actually have a look in your build folder for the location of debug symbols because something is misconfigured. Here is how we get Xcode DSYM: https://github.com/invertase/flutterfire_cli/blob/main/packages/flutterfire_cli/lib/src/commands/upload_symbols.dart#L376-L377
If you want to see the value of these variable, run these commands:
cd ios/
xcodebuild -showBuildSettings

This should print out the Xcode build arguments. Take a look at the values for DWARF_DSYM_FOLDER_PATH and DWARF_DSYM_FILE_NAME for the full path

The output is this:
    DWARF_DSYM_FILE_NAME = Catalog.app.dSYM
    DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO
    DWARF_DSYM_FOLDER_PATH = /Users/mateboros/Library/Developer/Xcode/DerivedData/Runner-ahnzublnbgpgfphjcjgkpmxelgzr/Build/Products/Release-prod-iphoneos

but still getting:
    2024-07-03 21:40:12.055 upload-symbols[8275:80694] Unable to get file attributes for dSYM file at path "/Users/mateboros/Documents/Github/my_catalog_app/build/ios/Debug-dev-iphonesimulator/Catalog/Contents/Resources/DWARF"

Please check the repro sample, and the referenced workaround that eventually solved the problem.

I'd advise against the workaround, it will be overwritten when you run flutterfire configure.
I cloned your project, ran the same commands for configuring but with my own firebase project.
I then ran the following:
flutter run --flavor=prod --verbose > output.log 2>&1

Here is the log for successfully uploading debug symbols:
           Running upload-symbols in Build Phase mode
           Validating build environment for Crashlytics...
           Processing dSYMs...
           Successfully submitted symbols for architecture arm64 with UUID 034f61fa1f7537e1953152e7d6fb5266 in dSYM: /Users/russellwheatley/projects/devTests/my_catalog_app/build/ios/Debug-prod-iphonesimulator/Catalog.app.dSYM
           Successfully uploaded Crashlytics build event and symbols
           Running upload-symbols in Build Phase mode
           Validating build environment for Crashlytics...
           Processing dSYMs...
           Successfully submitted symbols for architecture arm64 with UUID 034f61fa1f7537e1953152e7d6fb5266 in dSYM: /Users/russellwheatley/projects/devTests/my_catalog_app/build/ios/Debug-prod-iphonesimulator/Catalog.app.dSYM
           Successfully uploaded Crashlytics build event and symbols

Closing as this is a user configuration issue.

"user configuration issue" What do you mean by that? could you point out what is misconfigure?
In the repro steps I mentioned, I used the dev flavor.
So I tried again running:
flutter run --flavor=dev --verbose > output.log 2>&1

In the output file the error still:
Unable to get file attributes for dSYM file at path "/Users/mateboros/Documents/Github/my_catalog_app/build/ios/Debug-dev-iphonesimulator/Catalog/Contents/Resources/DWARF"

but i also see this:

PhaseScriptExecution FlutterFire:\ \"flutterfire\ upload-crashlytics-symbols\" /Users/mateboros/Library/Developer/Xcode/DerivedData/Runner-ajmxjwmlxxrtseafejmdyldfqixn/Build/Intermediates.noindex/Runner.build/Debug-dev-iphonesimulator/Runner.build/Script-40627E6C380B162DBFB56451.sh (in target 'Runner' from project 'Runner')
****
export DWARF_DSYM_FILE_NAME\=Catalog\ dev.app.dSYM
export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT\=NO
export DWARF_DSYM_FOLDER_PATH\=/Users/mateboros/Documents/Github/my_catalog_app/build/ios/Debug-dev-iphonesimulator

which is different than the output of xcodebuild -showBuildSettings For me this command outputs just what i said.
So I decided to rename ProductName from Xcode:
ios/Runner.xcodeproj/project.pbxproj
-PRODUCT_NAME = "Catalog dev";
+PRODUCT_NAME = Catalogdev;

And now it works. Successfully uploaded Crashlytics build event and symbols.
@russellwheatley I think the problem is on your side. The path handled incorrectly or something because renaming the app should not effect the upload.
Furthermore it seems the recommended xcodebuild command does not outputs the path used by the build phase.

@russellwheatley


the same project

There is a same project.
https://github.com/Trinea/android-open-project

Let me make a reference.


Mic Error

just install Hello-Lucy,every thing went fine,where can i change the wellkom message ... ?
thanks

Hi , I think this is one of the Cool modules for Magic Mirror. But I was wondering , if we can extend this to Voice control the Relay or GPIO pins in raspberry pi. Please guide ...
thanks
MKJ

haymaan,
You can change the welcome message in the EasyPix/sound folder. Add your sound files there and enter the names in the config.js

manojjenago,
That's not an issue. It's a feature request. I didn't have any more plans for Hello-Lucy but I might take a look at it again in the future


Adding possibility to select only date, only time or both with a mode property.

The biggest change would be the possibility to give to the picker a 'mode' property with one of these values ('time', 'date' or 'datetime'). With this property the picker will activate just the necessary elements.
I also added keys to the children in Month view and Year view as there were warnings because of that.
The last change was to use the class 'new' or 'old' in the day selector because there was a bug in which the user cannot select the days of the previous and the next month. Now I check if the target element of the click has one of those classes to set the previous or the next month on the date.
Thank you very much for all your work, I hope my changes help you to improve or at least to give you some new ideas.
Best regards
Alex

I love it, i'm going to review it and maybe make a few changes (I want to update this.state.inputFormat on componentWillReceiveProps) and I'll merge it. Thanks a lot !

Thank you very much for your comment. I am happy to hear that my changes are helpful.
Make, of course, all changes what you need :). I am looking forward to see the new version!

Merged :)


EF Core Cancel edit: Entity Collection member does not returns original values

I tried many ways to solve this issue.
 Context.Entry(user).Collection(a => a.GroupMembers).LoadAsync();
                        //.Query()
                        //.Include(b => b.Group)//.ThenInclude(c => c.GroupMembers)
                        //.Load();
                    Context.Entry(user).Reload();

  public void RejectChanges()
        {
            foreach (var entry in Context.ChangeTracker.Entries())
            {
                switch (entry.State)
                {
                    case EntityState.Modified:
                    case EntityState.Deleted:
                        entry.State = EntityState.Modified; //Revert changes made to deleted entity.
                        entry.State = EntityState.Unchanged;
                        break;
                    case EntityState.Added:
                        entry.State = EntityState.Detached;
                        break;
                }
            }
        }

All properties reloaded. But Collection reloading did not work.

@azeemil Can you be more specific about exactly what it is you're trying to do? For example, if the goal is to ensure that the context contains fresh data, then usually that is best achieved through a new context instance at the beginning of the unit of work. On the other hand, if the goal is to refresh a graph of entities such that local and database changes are preserved, then that it quite hard to do because various kinds of conflicts will need to be resolved.

i am trying to reload data. I use WinForm bindingSource. When user edit data and click save button it is ok. When click cancel button edited data returns original value. But Collection member does not return.
I use this method to discard changes.
public void Discard(TEntity entity)
{
var entry = Context.Entry(entity);
switch (entry.State)
{
case EntityState.Modified:
entry.State = EntityState.Unchanged;
break;
case EntityState.Added:
entry.State = EntityState.Detached;
break;
case EntityState.Deleted:
entry.Reload();
break;
}
}
this work for model members except collections.
public partial class User : IBaseEntity, IAuditableEntity, IActive
{
    private string _password;
    public int Id { get; set; }
    public string UserName { get; set; }
    public string Password
    {
        get => string.IsNullOrEmpty(_password) ? string.Empty :
            CryptographicHelper.Decrypt(_password);
        set => _password = CryptographicHelper.Encrypt(value);
    }
    public string DisplayName { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public bool IsAdmin { get; set; }
    public bool IsActive { get; set; } = true;
    public int CreatedBy { get; set; }
    public int? ModifiedBy { get; set; }
    public DateTime CreatedDate { get; set; }
    public DateTime? ModifiedDate { get; set; }
    public virtual ICollection<GroupMember> GroupMembers { get; set; }
    public virtual ICollection<UserPermission> Permissions { get; set; }
    public virtual ICollection<UserBranch> Branches { get; set; }
    public virtual ICollection<UserWarehouse> Warehouses { get; set; }
}

@azeemil If the intent is to discard all changes made and reload from the database, then this would best be achieved by disposing the context instance and creating a new one.

Is there another  way to solve this issue? i don't want to dispose context.

@azeemil You could detach all entities to clear the context out. For example:
foreach (var entityEntry in context.ChangeTracker.Entries().ToList())
{
    entityEntry.State = EntityState.Detached;
}

However, this isn't efficient and is not recommended.


integrate codal for AVR/platformio

we need the codal to get fibers, message bus, eventing, all the goodness needed for higher-level scripting

Closing this as we are at a logical point of AVR. We can revisit this later.


[SP-3890][PDI-16573]-In Calculator step, "Remove CR/LF" function does  not work

-fixed

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f core/build.xml clean-all resolve jacoco && ant -f core/build.xml checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  core/src/org/pentaho/di/core/Const.java
  core/test-src/org/pentaho/di/core/ConstTest.java


Ensure a config object exists in Parent and Child

Handles #69 by creating an empty config object if config argument is passed to new pym.Parent or new pym.Child. It means that this line from the docs works:
var pymChild = new pym.Child();

+1

Thanks!

Happy to. Thanks for making and sharing awesome things.


Add games such as Chess and Gomoku

Debian has a gnustep-games package and I enjoy it on my Raspberry Pi. It would be nice if you supported it in GSD (I don't use GSD yet)

I added installation script to install additional games.
The scripts is in gs-desktop/extra-apps sub-directory.
You can launch the Games.command script from Workspace or in Terminal app. It will download necessary sources, build and install games into /Application/Games folder.


Custom Pattern Recognizer Not Working Properly with German Language in Analyzer Engine

I am trying to add a simple pattern recognizer to my registry and use it alongside some of the built-in recognizers for language="de". However, I am facing a few issues:

analyzer.get_supported_entities(language="de") returns 'BANK_ACCOUNT' only. Yet, for language="en" it returns the other globally supported entities, including the custom recognizer, as expected.
the context words do not work with the German language setting. en works fine, if context words are in english.

Any idea as to what I might be doing wrong? Thank you!
Code

# Define the regex pattern
regex =  r"(?<!\d)(?:\d(?:[^\d]{0,3}\d){6,12})(?!\d)"  # weak regex pattern
ba_pattern = Pattern(name="bankaccount_regex", regex=regex, score=0.01)

# Change the default context similarity factor
context_aware_enhancer = LemmaContextAwareEnhancer(
    context_similarity_factor=0.45, min_score_with_context_similarity=0.4
)

# Define the recognizer with the defined pattern and context words
ba_recognizer = PatternRecognizer(
    supported_entity="BANK_ACCOUNT",
    patterns=[ba_pattern],
    context=["Kto", "Konto"],
    supported_language="de"
)

# Create NLP engine based on configuration
provider = NlpEngineProvider(conf_file=conf_file)
nlp_engine = provider.create_engine()

# Create registry
registry = RecognizerRegistry()

# Load built in recognizers
registry.load_predefined_recognizers()

# Add the custom recognizer
registry.add_recognizer(ba_recognizer)

analyzer = AnalyzerEngine(
    registry=registry,
    supported_languages=["de", "en"],
    nlp_engine=nlp_engine,
    context_aware_enhancer=context_aware_enhancer
)

supported_entities = ['PERSON', 'IBAN_CODE', 'CREDIT_CARD', 'BANK_ACCOUNT']

text = """Das Konto von Max Müller ist 012/3456789."""

results = analyzer.analyze(text=text, language="de", entities=supported_entities)

print("Analyzer Entities: ", analyzer.get_supported_entities(language="en"))
print("Analyzer Entities: ", analyzer.get_supported_entities(language="de"))
print(f"Result: {results}")

Output:
Analyzer Entities 'en':  ['AU_ACN', 'DATE_TIME', 'IP_ADDRESS', 'LOCATION', 'AU_MEDICARE', 'US_SSN', 'US_DRIVER_LICENSE', 'US_ITIN', 'AU_TFN', 'EMAIL_ADDRESS', 'ORGANIZATION', 'IBAN_CODE', 'CRYPTO', 'US_BANK_NUMBER', 'US_PASSPORT', 'PERSON', 'NRP', 'MEDICAL_LICENSE', 'IN_PAN', 'AU_ABN', 'CREDIT_CARD', 'IN_AADHAAR', 'UK_NHS', 'PHONE_NUMBER', 'URL', 'SG_NRIC_FIN']
Analyzer Entities 'de':  ['BANK_ACCOUNT']
Result: [type: BANK_ACCOUNT, start: 29, end: 40, score: 0.01]

Config
conf_file points to the following yaml file. However, other implementations with simple spacy models, lg, md, and sm, show the same behavior.
---
nlp_engine_name: transformers
models:
  -
    lang_code: de
    model_name:
      spacy: de_core_news_sm
      transformers: /bert_base_multilingual_cased_ner_hrl
  -
    lang_code: en
    model_name:
      spacy: en_core_web_sm
      transformers: /bert_base_multilingual_cased_ner_hrl
ner_model_configuration:
  labels_to_ignore:
    - O
    - I-ORG
    - B-LOC
    - I-LOC
  aggregation_strategy: simple # "simple", "first", "average", "max"
  stride: 16
  alignment_mode: strict # "strict", "contract", "expand"
  low_confidence_score_multiplier: 0.4

Spacy Versions
de-core-news-sm==3.4.0
de-core-news-lg==3.5.0
en-core-web-lg==3.5.0
en-core-web-sm==3.5.0

Hi, Presidio is structured in a way that each recognizer supports only one language. The main reason is that there are language-specific attributes (like context words). In order to have a recognizer supporting multiple languages, it needs to be created multiple times.

But even if I use the above pipeline only for one language, where I do not supply multiple language arguments and trim down the config to one language, it works for language="en", but not "de".  In fact, "de" also does not work without loading predefined recognizers. The following is one version that works for "en" but will yield a ValueError: No matching recognizers were found to serve the request  for "de". Maybe I misunderstood you, but I'd appreciate any advice.
text = """"Max's Konto:<PHONE_NUMBER>123"""
registry = RecognizerRegistry()
#registry.load_predefined_recognizers()
registry.add_recognizers_from_yaml(yaml_file)
provider = NlpEngineProvider(conf_file=conf_file)
nlp_engine = provider.create_engine()
# Change the default context similarity factor
context_aware_enhancer = LemmaContextAwareEnhancer(
    context_similarity_factor=0.45, min_score_with_context_similarity=0.4
)
analyzer = AnalyzerEngine(
    registry=registry,
    supported_languages=["en"],
    nlp_engine=nlp_engine,
    context_aware_enhancer=context_aware_enhancer
)
supported_entities = ['BANK_ACCOUNT']
results = analyzer.analyze(text=text, language="en", entities=supported_entities)

recognizers:
  -
    name: "Bank Account Recognizer"
    patterns:
      -
         name: "bank account (weak)"
         regex: (?<!\d)(?:\d(?:[\\ -]{0,1}\d){8,12})(?!\d)
         score: 0.01
    context:
     - kto
     - Konto
    supported_entity: "BANK_ACCOUNT"

Apologies for the delayed response. The default language for each recognizer is English. Could you please try to add de as the supported_language of the recognizer in the yaml and try again? See example here:
https://github.com/microsoft/presidio/blob/c7fa82518d28532384560ad0270a52abcdb95ec1/presidio-analyzer/conf/example_recognizers.yaml#L16

No worries. I had already adjusted that in the meantime. But I only came back to this issue myself a few minutes ago and figured out that I also need to import the other predefined recognizers seperately to adjust their language, including the SpacyRecognizer for the PERSON  entity. The only thing that I am still trying to figure out is why the context enhancementit does not increase the confidence score.
from presidio_analyzer.predefined_recognizers import SpacyRecognizer

registry = RecognizerRegistry()
registry.add_recognizers_from_yaml(yaml_file)
registry.add_recognizer(SpacyRecognizer(supported_language="de"))
registry.add_recognizer(SpacyRecognizer(supported_language="en"))

provider = NlpEngineProvider(conf_file=conf_file)
nlp_engine = provider.create_engine()

context_aware_enhancer = LemmaContextAwareEnhancer(
    context_similarity_factor=0.45, min_score_with_context_similarity=0.4
)

analyzer = AnalyzerEngine(
    registry=registry,
    supported_languages=["de", "en"],
    nlp_engine=nlp_engine,
    context_aware_enhancer=context_aware_enhancer
)

text = "Kto. Konto<PHONE_NUMBER>123. Max Mustermann."
results = analyzer.analyze(text=text, language="de", entities=["PERSON", "BANK_ACCOUNT"])

I haven't tested the LemmaContextAwareEnhancer on German, but there might be a difference from English, for example on how spaCy creates lemmas. If lemmas are missing, this could result in the LemmaContextAwareEnhancer to not work.
By the way, if you pass the nlp_engine into the RecognizerRegistry.load_predefined_recognizers, you would not have to pass the language to the SpacyRecognizer as it would be instantiated with the language in the provided conf_file.


Do a real /healthcheck for MongoDB connectivity

https://trello.com/c/36cdHP3z/620-improve-the-content-store-healthcheck-to-check-mongo-so-failing-instances-are-automatically-removed-from-the-lb
This more accurately reflects whether an instance of the app is able
to serve requests, which contributed to an incident 1.

Tested and works in Integration ✅


Notebooks index

Let's list the notebooks in the README, with an explanation of what each one does and (if appropriate) how to configure/use it. Then if we add more, we can expand this too and make things easier for people to find.

Added in the readme


Only one form works

Hi,
I created a really simple project with a login form and another form with 3 fields. The second form won't work at all... I did exactly the same as the first one.
This is my reducers: https://github.com/DWboutin/Beverage/blob/master/src/reducers/index.js
My first form (Login form) is working well: https://github.com/DWboutin/Beverage/blob/master/src/components/forms/LoginForm.react.js
But my second form reload the page and nothing works. https://github.com/DWboutin/Beverage/blob/master/src/components/forms/RecipeForm.react.js
What did i do wrong? I have read the docs, but maybe i don't understand it well... Can i have some help please?
Thank you

What do you mean by "nothing works"? You can't type in the fields? Presumably its the LoginForm's container that is dispatching the actions to your login reducer. You haven't yet made a recipe reducer?

When i do the recipe reducer and i submit my form, it reload the whole page and posting form values in the url.

I have no idea what this formReducer() function you are calling is. Don't do that.

it reload the whole page and posting form values in the url

That sounds like it's not respecting your onSubmit prop and using the default method="get" html behavior, which is very, very odd.
Can you share a screenshot of your redux-devtools state, specifically form > recipe, values after you have filled out valid values into your recipe form and clicked submit?

This is my console infos about my handleSubmit function. I can't give you a screenshot about the onSubmit form because it do the submit no matter what i try (preventDefault, return false...)

I just pushed my last commits if you want to check

Any advices on how i can make it work?

Now, it's says that i have no onSubmit functions, but i have one.
This is my handleSubmit function: https://github.com/DWboutin/Beverage/blob/master/src/components/pages/RecipeCreatePage.js#L9-L13
And this is my component: https://github.com/DWboutin/Beverage/blob/master/src/components/forms/RecipeForm.react.js#L10-L29

I tried to run a fork of your example, but there seems to be a config file missing. When I renamed config.dist.js to config.js, it ran, but it seemed to be ignoring the onSubmit in the <form> and I couldn't put any console logs...maybe browserify was stripping them because I was using the production config or something?
Anyway, I gave you a couple of PRs to nudge you in the right direction, but I'm not entirely sure what your problem is.

Ah, I see you've upgraded to v3 now. Let me know how that goes. But do remove the reduxMountPoint config parameter.

the config.js is just this:
var config = {
  APP_PORT: 3000,
  ROOT_FOLDER: __dirname,
  API_URL: 'http://localhost:4000',
};

module.exports = config;

Not much... And Browserify don't have configurations. The login form work well too... I'll try to remove reduxMountPoint

With your pullRequest everything works. Thank you very much!
do this line must clear the whole form? Because the textarea doesn't reset his value. (do i create another issue about this?)
dispatch(initialize('recipeForm', {})); // clear form

The fix for that is here: https://github.com/erikras/redux-form/issues/145#issuecomment-152090278
It's awkward, I know. I'll have to include it in a FAQ or something.

Thank you VERY much for your help! I'll try to write a good guide for redux-form in my SO question: http://stackoverflow.com/questions/33237818/react-redux-whats-the-best-way-to-handle-crud-in-a-form-component/33393459#33393459

It's seems that my login form doesn't work now... :S

I gotcha. Easy misunderstanding. https://github.com/DWboutin/Beverage/pull/3

This is very weird indeed... Why i pass a onSubmit prop on my container and it transform into a handleSubmit prop for my component?
Thank you

It's the (unwritten?) React naming convention.
handleX is what you name the function that you pass to the onX prop.
render() {
  const handleClick = () => console.log('Clicked!');
  return <button onClick={handleClick}>Click me</button>;
}

Since the only way that redux-form can provide you with functionality is to pass it as a prop, it passes you a handleSubmit for you to pass to onSubmit.

Good, i'll take a good note of this!
Thank you

I had the same issue with my page refreshing on form submit.
That was caused by me using passing handleSubmit instead of onSubmit in mapDispatchToProps. It was not very clear from docs for me that it would be the case.


Update dependencies to resolve lodash vulnerability

bump lodash from 4.17.5 to 4.17.21 (to resolve CVE-2021-23337)
bump htmlprocessor from 0.2.4 to 0.3.1

@dciccale Is there any way to get this pull request integrated? It'd be nice to finally clear all the dependency vulnerability alerts that come along with the old version of htmlprocessor and lodash... just let me know if there's any help I can provide.


Feat: Add max attachment size option

:scroll: Description
Add max attachment size option according to https://develop.sentry.dev/sdk/features/#max-attachment-size
:bulb: Motivation and Context
https://develop.sentry.dev/sdk/features/#max-attachment-size
:green_heart: How did you test it?
New tests
:pencil: Checklist

[x] I reviewed submitted code
[x] I added tests to verify changes
[x] I updated the docs if needed
[x] All tests passing
[x] No breaking changes

:crystal_ball: Next steps

Codecov Report

Merging #553 (a1149b4) into main (0ca7e45) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #553      +/-   ##
==========================================
+ Coverage   91.55%   91.57%   +0.02%
==========================================
  Files          74       74
  Lines        2428     2434       +6
==========================================
+ Hits         2223     2229       +6
  Misses        205      205

Impacted Files
Coverage Δ

dart/lib/src/sentry_envelope.dart
100.00% <100.00%> (ø)

dart/lib/src/sentry_envelope_item.dart
97.14% <100.00%> (ø)

dart/lib/src/sentry_options.dart
92.59% <100.00%> (+0.59%)
:arrow_up:

dart/lib/src/transport/http_transport.dart
100.00% <100.00%> (ø)

flutter/lib/src/file_system_transport.dart
100.00% <100.00%> (ø)

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 0ca7e45...a1149b4. Read the comment docs.


React bootstrap as external

Coverage remained the same at 100.0% when pulling 775eeefbf5b294816fa9c2ab34ed3c5ec1b99911 on react-bootstrap-as-external into 67c62d3c05c9b5c2b49c5ed6774914ee81d69100 on master.

Looks good. Merge it, baby. :kiss:

Coverage remained the same at 100.0% when pulling f385d35e56dedc7d2a226229e9bfedb0dfa3b6a4 on react-bootstrap-as-external into 7bcc1bcd067e8260aba01afd2700d23063baaf27 on master.


Scratchpad/canvas

https://obsidian.md/canvas

Decision: The upside of an integrated infinite canvas is not worth the effort. Instead, I'll focus on doing less, but better. I'll also explore building a FigJam widget for Lumen that can bring notes into FigJam's canvas.


Activity overview page

I'd like to have a page where the bonus points of all participants of an activity can be seen.  Ideally it should have an opaque URL, e.g. pixelbonus.com/activity/754d84e375832ee476f52aa37465293dc8b7f4ed563ba4

I'm not sure if I understand this correctly. Are we talking about a public page that contains a table with columns student identifier, redemption counts and grade (akin to the grades page but without requiring login)? Or is the page more about showing summarized stats?

Yes, a public page that contains a table with columns student identifier, redemption counts and grade, such as this one.  Ideally the page should have a somewhat opaque URL, but this is not terribly important.

This page is ready. There is a link for it in the main activity page that can be given out to the participants.


v1.7.0

I'll release 1.7.0 next week and please specify the issues I forget to handle.

I know it's a long shot, but is it possible to include https://github.com/ruby/debug/issues/797 in this release?


:bug: Fix for mongoose 4.4.6

Matching based on error codes
Ignore unrequired chars to avoid problems on typo changes
valueRegex out, useless to declare each time

Hi! Thank you for your help.
I have not reviewed your code yet, I will try to do that this weekend.
Do the tests pass on your machine? There is a bug in the CI as per #9

Hi,
Yeah, the tests are passed, except the "custom validation message" ;)

Hello @Lcfvs, I do not experience any problem using Mongoose 4.4.7.
Thus I do not understand why we should add the E1100(?:0|1) check that you suggest to add in the regex. I try to keep that regex as lightweight as possible to avoid breaking between Mongoose's versions.  There are some problems with the current regex that are going to be fixed with #14.

Hi,
Sorry for the delay... I'm ok with the new RegExp, working fine.
For the error code matching, imho, because your doc is matching E11000 & E11001, it shouldn't trap others, if there were to have later, without a new release.

I believe we are already checking for that here:
https://github.com/matteodelabre/mongoose-beautiful-unique-validation/blob/master/index.js#L18

Hum, ok, sorry...

Thank you anyway. :)

Thanks to you, useful tool, even if I think to bypass the mongoose validation to make it based on JSON Schemas


[Refactor] Adapt to the new shadow partition

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[x] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

run all

run all

run all

run all

[FE PR Coverage Check]
:heart_eyes: pass : 8 / 10 (80.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/planner/OlapTableSink.java
1
2
50.00%
[420]

:large_blue_circle:
com/starrocks/catalog/PartitionKey.java
7
8
87.50%
[102]

run starrocks_admit_test

run all

run all

run all

run all

run starrocks_admit_test

run starrocks_be_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 8 / 10 (80.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/planner/OlapTableSink.java
1
2
50.00%
[420]

:large_blue_circle:
com/starrocks/catalog/PartitionKey.java
7
8
87.50%
[102]

run starrocks_be_unittest

run starrocks_admit_test

run starrocks_admit_test

run starrocks_admit_test

run starrocks_fe_unittest

run starrocks_admit_test

run starrocks_fe_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 8 / 10 (80.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/planner/OlapTableSink.java
1
2
50.00%
[420]

:large_blue_circle:
com/starrocks/catalog/PartitionKey.java
7
8
87.50%
[102]

@Mergifyio backport branch-3.0


Docker image crash issue

Hi i am using the latest docker image in my kubernetes deployment but i am having this issue, any way of resolving? thanks

@jdorn  @bryce-fitzsimons  your help needed

Hi @thearchitectxy , the issue should be resolved now (we had an error on the start script in the latest release!). Please let me know if this resolves your issue.

Hi @thearchitectxy , the issue should be resolved now (we had an error on the start script in the latest release!). Please let me know if this resolves your issue.

yes pod restarted and new mage works fine now thanks


Merge Two Sorted Lists

https://leetcode.com/problems/merge-two-sorted-lists/
Please assign me this in c++

@piyushsharma220699 also add the relevant labels

@swapnil604 Assigned in C++

@piyushsharma220699 please do add the labels or it won't be accepted.

Please do assign this to me. I would like to work on it in C++.

Could you assigned this to me for C.

@purohitmansi I'm Sorry, @swapnil604 has already worked on it in C++

@khushij12 Assigned in C 👍🏻


Unable to broadcast funding tx: output already spent

Background
$ lncli openchannel --node_key 024a8228d764091fce2ed67e1a7404f83e38ea3c7cb42030a2789e73cf3b341365 --connect <IP_ADDRESS>:9735 2000000
[lncli] rpc error: code = Unknown desc = not enough witness outputs to create funding transaction, need 0.02 BTC only have 0.01570152 BTC  available
$ lncli walletbalance
{
    "total_balance": "2562178",
    "confirmed_balance": "1570152",
    "unconfirmed_balance": "992026"
}
$ lncli openchannel --node_key 024a8228d764091fce2ed67e1a7404f83e38ea3c7cb42030a2789e73cf3b341365 --connect <IP_ADDRESS>:9735 1000000
{
        "funding_txid": "ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274"
}

This looks ok, but the created transaction is invalid and can not be broadcasted. The broken transaction is shown by pendingchannels and will stay there forever:
$ lncli pendingchannels
{
    "pending_open_channels": [
        {
            "channel": {
                "remote_node_pub": "024a8228d764091fce2ed67e1a7404f83e38ea3c7cb42030a2789e73cf3b341365",
                "channel_point": "ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274:1",
                "capacity": "1000000",
                "local_balance": "999455",
                "remote_balance": "0"
            },
            "confirmation_height": 0,
            "commit_fee": "545",
            "commit_weight": "600",
            "fee_per_kw": "753"
        }
...

Your environment

lnd version 0.5.1-beta commit=v0.5.1-beta-252-ge6623f98b38f279900aaedf6a6993f34c3a45337
Linux odroid 4.14.66-147 #1 SMP PREEMPT Wed Aug 22 13:24:49 -03 2018 armv7l armv7l armv7l GNU/Linux
bitcoind 0.16.3

Steps to reproduce
This seems to happen sporadically.
Expected behaviour
It should not use spent UTXOs to create funding transactions or at least it should remove the broken channel from the pending list.
Actual behaviour
It creates a broken funding transaction that can never be broadcasted and keep the broken channel forerver in the pending open channels list.
Log
2019-01-03 21:49:30.605 [INF] LNWL: Inserting unconfirmed transaction ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274
2019-01-03 21:49:30.635 [ERR] FNDG: Unable to broadcast funding tx for ChannelPoint(ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274:1): Transaction rejected: output already spent
2019-01-03 21:49:30.635 [INF] CNCT: Creating new ChannelArbitrator for ChannelPoint(ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274:1)
2019-01-03 21:49:30.635 [INF] CNCT: ChannelArbitrator(ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274:1): starting state=StateDefault
2019-01-03 21:49:30.635 [INF] NTFN: New block epoch subscription
2019-01-03 21:49:30.640 [INF] NTFN: New spend subscription: spend_id=144, outpoint=ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274:1, height_hint=556887
2019-01-03 21:49:30.705 [INF] FNDG: Finalizing pendingID(4736fb6125ca0fe4128f0c615fff390eb327f542faf4e04def99fef8d931b2a0) over ChannelPoint(ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274:1), waiting for channel open on-chain
2019-01-03 21:49:30.705 [INF] CNCT: Close observer for ChannelPoint(ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274:1) active
2019-01-03 21:49:30.705 [INF] NTFN: New confirmation subscription: txid=ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274, numconfs=3
2019-01-03 21:49:30.706 [INF] FNDG: Waiting for funding tx (ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274) to reach 3 confirmations
2019-01-03 21:49:31.086 [ERR] NTFN: Rescan to determine the spend details of ea17e0101b5154fd9e0ba335f7256b50dd76ff7eb89fa38ed1e0e2004132b274:1 failed: transaction not found within range

Were you also sending coins concurrently over the RPC interface during this funding attempt or prior ones? Do you have any sort of automated system that either open channels or sends coins on chain?

I successfully opened about three channels before which were still waiting for their first confirmation. Then, as described above, I tried to open a channel and got the error about the insufficient witness outputs. The next try to open the channel with a lower capacity failed because of the spent utxo. I have no scripts doing automated on chain transactions. The autopilot is deactivated.


Update OSM to v0.4.4

Signed-off-by: Waleed Malik<EMAIL_ADDRESS>What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number> format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Optional Release Note:

NONE

/retest

/retest

/hold

/retest

/retest

/retest

/test pull-machine-controller-e2e-gce

/retest

/retest

/override pull-machine-controller-e2e-gce

/retest

/retest

/retest

/override pull-machine-controller-e2e-gce

/unhold

I do not know anything about this PR, but was told to write
/lgtm
in some comment, so here you go. Do note that this does not mean that I know anything about OSM.

o here you go. Do note that this does not mean that I know anything about OSM.

@xrstf Yes, thanks a lot for the cooperation.


already resolved ip #17521

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

Fixed issues
#17521

Depend on
https://github.com/yiisoft/yii2/pull/17593

If the test is correct (depend on https://github.com/yiisoft/yii2/pull/17593), it is sufficient to supplement the documentation with this case of use.

Seems to fail.

Seems to fail.

Yes, I have noticed that during https://github.com/yiisoft/yii2/pull/17574 PR, secureHeaders is used incorrectly to resolve the IP address.
https://github.com/yiisoft/yii2/blob/23a8d041a6867090d95df9051b294dcc73f50b7e/framework/web/Request.php#L1145
https://github.com/yiisoft/yii2/pull/17593 in PR is patched and uses ipHeaders.
Then the idea will work properly.

Merged. Thanks!


Global undo dialog feedback

Refs: https://github.com/microsoft/vscode/issues/91248#event-3067581636
About this dialog:

I personally find the use of "Yes/No" followed with a comma for a button a bit weird.
Suggestions:

No, change only this file => Undo This File
Yes, change N files => Undo All Files

As for the message, then maybe we should list the file names explicitly to make things more obvious? Take for example our combined close dialog:

Lastly I would expect a "Cancel" button so that this dialog essentially becomes very similar to the combined close dialog.
//cc @weinand as good source for naming

Thank you, very good suggestions.

I've added the Cancel for #91388
I would not list the files because at one point we want to have more than text edits, such as file deletions, file renames, and IMHO representing those in this dialog would not work well.
I will push a tweak to the label of the buttons:

"Yes, change 3 files" => "Undo in 3 files"
"No, change only this file" => "Undo this file"

@alexdima better, but I find 2 issues still:

there is a trailing dot it seems in button labels
I would use capital casing for buttons

Also looks like a clash in quotes because the label includes quotes. Maybe strip quotes from the label and then surround it?

:+1: I liked all of your suggestions, so I pushed them.


NestedString representation for VSCode extension

Render trace using NestedString (a JSON representation) that lets the VSCode plugin display nested objects (e.g. struct with many fields) interactively

@nilehmann any clue on how to avoid the pesky
warning: the feature `fmt_internals` is internal to the compiler or standard library
  --> crates/flux-middle/src/lib.rs:14:5
   |
14 |     fmt_internals
   |     ^^^^^^^^^^^^^
   |
   = note: using it is strongly discouraged
   = note: `#[warn(internal_features)]` on by default

which is needed in nested_with_bound_vars?

@ranjitjhala To deal with the internal features thing we can make fmt_bound_vars take an &mut impl fmt::Write instead of &mut Formatter. Both Formatter and String implement fmt::Write.


Persist index data

It looks OK, although index range confuses me a bit, shouldn't it be based on how many days we have stored?

Looks good, only thing I would add is error handling for sql operations to see which one fails


add shfmt to CI + format

PR:

Adds shfmt to the CI
All shell scripts will be formatted with the flags:

-i 2: 2 spaces
sr: redirect operators will be followed by a space
ci: switch cases will be indented

Rolled out for repos, so we have a unified style for shellscripts
PR also formatted the scripts with the flags so that it passes
Added shfmt badge to the readme

Coverage remained the same at 84.253% when pulling 83d431286759a77838ed7149b8adfcaa583349d7 on feature/add-shfmt-to-CI into fd80dde9619be62b5104badac4ccccc80944c9c2 on develop.

@TheDen good to merge


Snapshot frame width

Hello Ivan. I was looking at Apple Music card UI and noticed that the snapshot card frame is wider than SPStorkController and I think it looks better this way. Can I make the frame wider or can you update it and make it wider liker Apple Music please?

I recently noticed this too.  I think this has been changed in recent updates.  Yes, I plan to do the same.

Thank you!

I am upload new version 1.6.2 for this future. You can update and see it. Thanks!

Thank you Ivan, I see it on multiple Simulator devices and It looks better now, but I have iPhone 5s real device and the frame still the same as the old version.

After pod update need clean project.

Okay let me try.

Yes it works now, thanks so much!


Change result of analysis to a tree of Info structs

This makes the code in the Analyzer and Compiler easier to follow.
I'm working on making regexes like (?<=$|.) work, and while this change is not required for that, it makes it simpler to implement.

The original choice of data structure (next-sibling pointers within a Vec) was a speed optimization. One can make the case that it was a premature one, but given that this patch pessimizes it, do we have any data on how it impacts performance?

Yeah, good point. I'll run the existing benches tomorrow. Or do you have any specific regexes in mind for which you want  to check compile speed?

I don't think the choice of regex matters much, the cost of allocating the tree should be more or less proportional to the size of the regex. I should add, the main motivation for making parsing and analysis super-fast is so that when the regex is analyzed to be fully NFA-able, the overhead over plain regex crate is minimal. I'm much less concerned about, eg, the amount of time spent optimizing the VM.
Thanks!

Ok, ran the benches (had to make them compile first), here's the result:
$ cargo benchcmp before after
 name                       before ns/iter  after ns/iter  diff ns/iter  diff %  speedup
 bench::lifetime_re         905             896                      -9  -0.99%   x 1.01
 bench::literal_re          2,222           2,209                   -13  -0.59%   x 1.01
 bench::literal_re_analyze  370             706                     336  90.81%   x 0.52
 bench::literal_re_regex    32,784          31,808                 -976  -2.98%   x 1.03
 bench::misc                808             817                       9   1.11%   x 0.99
 bench::run_backtrack       340             344                       4   1.18%   x 0.99
 bench::run_tricky          202             198                      -4  -1.98%   x 1.02

What's interesting is that literal_re_regex is pretty much unchanged. Looks like time spent in analyze is nothing compared to compiling with regex::Regex. But looking just at literal_re_analyze, it takes twice the time. What do you think? I can prepare a PR like #25 but with the old structure.
Also, maybe another way would be to just store the info on the Expr directly (as pub(crate) fields).

Ok, these numbers are pretty convincing that the cost of analysis is such a small fraction of the total that we should optimize for clarity and not speed.
It does leave the code in a slightly unsatisfying state, that the parsing has one structure and analysis another, but it doesn't seem at all urgent, maybe just something to keep in mind if another major refactor is called for.
Thanks!


https://picsum.photos/ not working

I got the following error today when browsing the site with Google Chrome:
This site can’t provide a secure connection
picsum.photos sent an invalid response.
ERR_SSL_PROTOCOL_ERROR

Hi,
I can't reproduce this, are you still having trouble?


Why do I get "ValueError: Unknown layer: KerasLayer" while converting from .hdf5 to .tflite?

Hello, I used a pretrained model from Tensorflow hub to train on my data and it gave me significantly higher val_acc. I saved the model as a .hdf5 file and intend to convert it into .tflite so I can import to my android application. This is the code I used in converting:
from tensorflow_core.lite.python.lite import TFLiteConverter
model_path = 'C:/Users/1/Desktop/data_sets/86%.hdf5'
converter = TFLiteConverter.from_keras_model_file(model_path)
tflite_model = converter.convert()
open("converted_model.tflite", "wb").write(tflite_model)
it outputs "ValueError: Unknown layer: KerasLayer"
I am using tf version 2.0.
This is how I saved the model. The below code was in a callback.
ModelCheckpoint(filepath=data_dir + '/weights.hdf5', monitor='val_accuracy',
verbose=1, save_best_only=True, save_weights_only=False, mode='auto', period=1)

Pleae take a look at this comment and it should help you in resolving the issue.

thanks @gowthamkpr . it gave a different error message "tensorflow.python.framework.errors_impl.InvalidArgumentError: Failed to import metagraph, check error log for more info."

@osemars What version of tensorflow are you using, Can you please post the entire errormessage. Also please provide some reproducible code for me to reproduce the issue.

Closing this issue as it has been in awaiting response for more than a week. Please add additional comments and we can open the issue again. Thanks!

I am getting same error. How did you resolve it?


XSS by eval injection on store.deep.js

Opening this issue since no security policy is defined.
Exploit
Because at line 31, eval is used to get the value of the key id, it is possible for an attacker to cause XSS if the parameter of store.get is user-controlled.
store.set('someKey', 'test');
store.get('someKey.key;alert(1337)');

Impact
This has the general security implications any XSS would have allowing attackers to potentially steal cookies, perform actions etc.
Even though the store.deep.js extension is marked with ALPHA status lots of sites and repos can be found using it. I think marking this as a valid bug makes sense since the impact is not entirely trivial.

Mitigation
We can remove eval completely and resolve the object path by splitting the string by dots.
;(function(_) {

    // save original core accessor
    var _get = _.get;
    // replace with enhanced version
    _.get = function(area, key, kid) {
        var s = _get(area, key);
        if (s == null) {
            var parts = _.split(key);
            if (parts) {
                key = parts[0];
                kid = kid ? parts[1] + '.' + kid : parts[1];
                return _.get(area, parts[0], kid);
            }
        } else if (kid) {
            try {
                var val = _.parse(s);
                val = _.resolvePath(val, kid);
                s = _.stringify(val);
            } catch (e) {
                console.error("Error accessing nested property:", e);
                return null;
            }
        }
        return s;
    };

    // Helper function to resolve nested paths safely
    _.resolvePath = function(obj, path) {
        return path.split('.').reduce((acc, key) => acc && acc[key], obj);
    };

    // expose internals on the underscore to allow extensibility
    _.split = function(key) {
        var dot = key.lastIndexOf('.');
        if (dot > 0) {
            var kid = key.substring(dot+1, key.length);
            key = key.substring(0, dot);
            return [key, kid];
        }
    };

})(window.store._);

I can open a PR with this patch as soon as this bug get's confirmed

Hmm. As localStorage and sessionStorage are single origin access and only persist on that browser, it's hard to see much actual risk here.  Of course an established XSS script might utilize store2 (if in the page) in some fashion, but it would already have all the access to the user's client and store.deep.js would not be adding risk.
Also, i don't see any actual uses of store.deep.js in the google results, more just places it shows up in indexes of the node_modules store2 directory.
That said, i always love removing eval and would be happy to give a PR for this a spin! I would definitely prefer a cleaner implementation.

One scenario i can imagine this could cause security issues is if for example you have web app with multiple authenticated users that maybe stores objects in the db, and store alongside store.deep.js is used for client-side caching, in that scenario user 1 could enter a malicious key in the db, then user 2 fetches it from the api and sets in on localStorage, then if it tries to fetch it using store an XSS is triggered.
store.set('someKey', {'key;alert(1337)':'a'});
store.get('someKey.key;alert(1337)');

These things usually require a chain of bad implementations to be weaponized but it does happen, and since alot of people use this lib (including myself) i thought it's a good idea to audit it.
PR coming in..

Resolved w/PR https://github.com/nbubna/store/pull/128


MP GO:0039679 viral occlusion body

GO:0039679 viral occlusion body
should have relation to
GO:0019012 virion

It does:

Ah OK, has_part
http://www.ebi.ac.uk/QuickGO/GTerm?id=GO:0039679#term=ancchart
I don't see this in QuickGO.
I expected part_of...


Stac load with non-native CRS returns empty image in some cases

Source data:

low resolution tiff in epsg:4326 with tiny region of interest (4x4 pixel area kinda thing)

Desired output:

UTM projection, much higher resolution, 4x4px -> 100x100px
configured via geobox paramater

Loading same source file with projection change alone and without cropping works fine

Culprit appears to be here:
https://github.com/opendatacube/odc-stac/blob/138846f999ae7caecfbb1dc03a4b4501aca0d394/odc/stac/_load.py#L859-L862
Almost global footprint of the source dataset doesn't project well into UTM.


[1.8.9] Multi-project builds fail

Waiting on MinecraftForge/ForgeGradle#347 and MinecraftForge/ForgeGradle#363

Just a question, would it not be possible to compile the two projects seperatly in the mean time? Just to get a 1.9 release out..

I fixed this a while ago 87c5cbb5d636bd4cd80ebc26ee8fcf93091ca8db


Wrong serialization with non-string map key when using BrowserSecure feature

Tested with the latest version 1.2.79. Consider the following code:
    var map = new HashMap<Object, Object>();
    map.put(UUID.randomUUID(), "foo");
    var json = JSON.toJSONString(map, SerializerFeature.BrowserSecure);
    System.out.println(json);

This will print
{"\"b27e1cc6-bda7-4271-aaef-f1cb17c87896\"":"foo"}

The key contains two additional " characters, which is wrong.

Note that it works without the SerializerFeature.BrowserSecure:
    var map = new HashMap<Object, Object>();
    map.put(UUID.randomUUID(), "foo");
    var r = JSON.toJSONString(map);
    System.out.println(r);

This prints
{"8dda8f4d-fab9-42b6-8cb6-9b7470e68204":"foo"}

Does this issue still exist? We would like to work on it

@nikolim  That's great to hear, let me know if I can help. I just tried the code I posted above with the latest version 1.2.79, and the issue is still present there.

I would like to work on this issue as well! 💪

Hi, I want to work on this issue. Seems that it has been a long time since and these guys still have no reply, so can I take this issue?

@raven3199 we looked at it but did not get it fixed. So we are happy if you are taking over :)


[e2e]: go release main config-ldflags-assets slsa3

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.100
Run: https://github.com/slsa-framework/example-package/actions/runs/3034849841
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.100
Date: Mon Sep 12 05:27:42 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.101
Run: https://github.com/slsa-framework/example-package/actions/runs/3087607104
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.101
Date: Tue Sep 20 05:24:58 UTC 2022
Tests are passing now. Closing this issue.


Ruby autoindenting oddly broken around for loops

Description
Certain characters will cause the CodeMirror autoindenting to strangely indent the block, but not all characters.
Reproduction

Go to http://codemirror.net/mode/ruby/

Paste in:

def output(x)
  for 0...1.

end

If you type d or e after the period on line 2, the line with the for loop will indent further. Most other characters will not cause this behavior.

Thank you for the very prompt fix!


replace window.onload to event

Your library rewrite window.onload method. It's wrong.
Better use addEventListener to attach uglipop.js functional

@zhuharev yeah ! many people told me to do that , i'll do that :smiley:  :+1:  Thanks for creating issue


fix: all sdkReplayConfig should have a default value

Problem
https://posthog.com/questions/installing-session-replay-and-updating-posthog-crashes-the-app
Changes

Release info Sub-libraries affected
Bump level

[ ] Major
[ ] Minor
[X] Patch

Libraries affected

[ ] All of them
[ ] posthog-web
[ ] posthog-node
[X] posthog-react-native

Changelog notes

Added support for X

Not fluent in js but I think we could also use the spread operator to merge defaults with params.
LGTM though

Yes, the spread operator would merge but it'd have the wrong result if someone passes eg maskAllTextInputs: undefined, the undefined would have precedence over the default value, with the current form, no, the default value would have precedence.


Object.Object.defineProperty.get is deprecated.

Requiring View from atom is no longer supported.
Please require atom-space-pen-views instead:
{View} = require 'atom-space-pen-views'
Add "atom-space-pen-views": "^2.0.3" to your package dependencies.
Object.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/exports/atom.js:61:9)
Object.<anonymous> (/Users/xxxx/.atom/packages/vim-mode/lib/view-models/vim-command-mode-input-view.coffee:1:1)

Fixed by https://github.com/atom/vim-mode/commit/197672907b652c1420b79a184eca021c41bd1913. Thanks!


Support examples-inlcude

I want to explicitly state which sketches should be compiled. Then you can directly see in the workflow definition which examples are compiled. This also reduces duplicate specification, when you have sketches for specific boards which must be excluded from every other boards compilation.

I understand and will have a look...

You do not want to specify full pathname I guess?

Would be nice

Please test it.
see https://github.com/ArminJo/arduino-test-compile#multiple-boards-with-parameter

@ArminJo I can't find the examples-inlcude option. When you force push to master, it's hard to track the changes you made.

You are right but I want avoid an endless commit log!
The option is sketch-names

Ok, cool can you trim the values after splitting at , so it is possible to specify the list using this syntax. This introduces white space for each new line.

Done :-)

Cool, thanks for your help.


add custom emotions button

Hello, I added a custom emotions button, next, how should I pass in a picture with custom attributes?
thanks a lot

This code is totally unacceptable


fix: point preloads to native_modules

[x] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
[x] The changes are appropriately documented (if applicable).
[x] The changes have sufficient test coverage (if applicable).
[x] The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

When using the webpack+typescript template if you import any packages that require native_modules the webpack-asset-relocator will inject __dirname into the output files in both development and production
Example of package use in preload that causes this issue in the webpack+typescript template; import { auto } from "darkreader";
The browser console then reports __dirname is undefined and preload doesn't run
Some users have removed webpack-asset-relocator from their webpack configuration to get around this, but without native_modules the BrowserView becomes sluggish
This PR applies the patch used for the renderer config to the preloads
The tests are updated and pass locally, but I am not sure if this is the effect maintainers want to happen, especially considering there are explicit tests to ensure this isn't applied

I think the logic for this fix was included in #3101, will close this PR for now.


shutdown() does not gracefully drain / clear generic pools

Related to #50. I've noticed that after trying to do a graceful shutdown(), my process hangs around for about ~30 seconds. Using wtfnode it seems that there is still a timer from generic-pool that keeps the process running for a while:
[WTF Node?] open handles:
- File descriptors: (note: stdio always exists)
  - fd 1 (tty) (stdio)
  - fd 2 (tty) (stdio)
- Timers:
  - (1000 ~ 1000 ms) (anonymous) @ /code/node_modules/generic-pool/lib/generic-pool.js:256

I'm guessing this is part of generic-pool's idle handling. idleTimeoutMillis defaults to 30s which is about the time I'm seeing before actual process exit.
Perhaps the rascal vhost should drain and clear the pools during shutdown?
From the generic-pool docs:
/**
 * Step 3 - Drain pool during shutdown (optional)
 */
// Only call this once in your application -- at the point you want
// to shutdown and stop using this pool.
myPool.drain().then(function() {
  myPool.clear();
});

I'm new to rascal but I'd be happy to work on a PR if you'd like this change.

Hi @rossj. Thanks for diagnosing this and the offer of a PR. The channel pooling code is a little ugly, so I'll sort shortly.

Should be fixed in<EMAIL_ADDRESS>

Cool, my process exits immediately now. Thanks!


Question: Provide a typed plugin parameter with Enum property without promoting to global namespace

How to extend the JQuery interface to support jQuery plugin methods where the options parameter has an Enum property.
What I want, is to have intellisense support in my app.ts for setting the properties of the options parameter of the respective jQuery plugin, without explicitly importing the jQueryInterfaceExtensions.ts file.
This works, when I don't use enum properties on my IOptions interface.
The approach below registers the Enum in the global namespace.
The more plugins I use, the more polluted the global namespace will get.
Usage (app.ts):
 import "./jQueryInterfaceExtensions";

    $("#slider").roundSlider({
        step: 20,
        circleShape: CircleShape.customQuarter
    });

jQueryInterfaceExtensions.ts
    interface JQuery {
        roundSlider(options: IOptions | string): jQuery;
    }

    interface IOptions {
        circleShape?: CircleShape;
    }

     enum CircleShape {
        full = "full",
        halfTop = "half-top"
    }

 (window as { CircleShape?}).CircleShape = CircleShape;

Simple solution, just create a custom type instead of an Enum.
type CircleShape = "full" | "half-top" | "custom-quarter" | "half-bottom" | "half-left" | "half-right" | "quarter-top-left" | "quarter-top-right" | "quarter-bottom-right" | "quarter-bottom-left" | "pie" | "custom-half";


Simpler versions of addCheck and addExecutable

This is a somewhat drastic change, but the new overloads feel much better than the backtick version. I think for now we should still support the backtick version for cases where users want to splice in packages.
Also while I think this is a backwards compatible change, maybe we should still bump the ts lib version? WDYT?

Can you remind me why we can’t just use normal template literals (by writing custom toString methods that generate the nix string) and get rid of the tag function altogether?

Can you remind me why we can’t just use normal template literals (by writing custom toString methods that generate the nix string) and get rid of the tag function altogether?

The issue with this is that we can't do any escaping, a shell function that includes a quote, backslash, or ${...} would be indistinguishable from an actual nix expression splatted in.

The issue with this is that we can't do any escaping. A shell snippet that includes a quote, backslash, or ${...} would be indistinguishable from an actual nix expression splatted in.

Why though? We could have the toString be whatever we want - $$$THIS-IS-PATH-somepath$$$ - and then process the whole string before giving it to nix.

Yeah, that's true, but it seems a little sad that we don't keep it structural in my opinion, especially since the user provides the structural data and we intentionally replace it with some magic string. Since we realized that splatting in packages is less of a common flow I think  having a specific tag template literal function that we can use feels like the right solution to me, but I don't feel too strongly if you want to keep them strings:
something.addExecutable("run-cowsay", nix`${pkgs.cowsay}/bin/cowsay moo`)

I think this PR should update the code on the website, examples, and readme before merging.

Good call, I updated the website and the readme in e673f18 (this one deserves scrutiny, since we don't typecheck this automatically anywhere) and updated the examples in 0459bef.


Update all pip3 packages Workflow is Incorrect

What section of this project is the bug in?
Workflows
What is the bug?
The current workflow pip3 list --outdated --format=freeze | cut -d = -f 1 | xargs -n1 pip3 install -U results in ERROR: List format 'freeze' can not be used with the --outdated option.
What is the expected behavior?
The correct behavior would be a successful update of the currently installed.  pip packages.
It seems like the correct command would be:
pip3 list --outdated --format=columns | tail -n +3 | awk '{print $1}' | xargs -n1 pip3 install -U
What is the actual behavior?
Running the workflow results in an error prior to initiating the package updates.
How would you replicate this bug?
Open the workflow panel, search for pip, select the Update all pip3 packages command, and press Enter.

Hey @csaper, thanks for filing! Can you add more information into the issue about what the problem with the workflow is? Thanks!

 Now you should see more details in the bug report. Thanks!

No worries, thank you for clarifying!!

@csaper fixed here:
https://github.com/warpdotdev/workflows/commit/c02d2c8245a87f4ce8e47c908a754f2b6fd183c7


Website translation

Have you think about internationalize the website? I would like to translate it to spanish :D

I would love to, but have limited experience with internationalization. I haven't gotten translations working correctly for iOS or the website, although I have text ready for both. If someone wants to work on either of those tasks I would be very happy.
The website in particular is a little tricky - it's not as simple as "drop in an alternate html file" since I would like all of the registration page error messages to be translated too, which probably means storing language in a cookie and presenting the right errors programmatically.


Blockwise to support 10 days of data being accumulated...

Hi Simon,
The firmware engineer asks about approach to how to transfer large amount of log data from the Client to the Device Management application.
Please provide  the guidance for the Client application to implement Blockwise to send data and the Device Management application to receive the these Block without losing information.
Thank in advanced.
Regards, Henry

Sry but "10 days of data" I don't really know what that means. :confused: , I would prefer size estimation of the payload.
How do you retrieve this 10 days of data ? server send a READ request on a resource , instance or object ?
I have no special guidance... just get a good implementation https://tools.ietf.org/html/rfc7959.
My experience is just that for very large payload this could be not so efficient.
(see https://github.com/eclipse/leshan/issues/585#issuecomment-435968764)

Could we close this issue ?

(Feel free to reopen it, if needed)


Add apply_llm flag to control where the LLM is applied on the API responses in OpenAPIEndpointChain

This PR introduces an apply_llm flag in the OpenAPIEndpointChain class to give users control over whether to apply a LLM to analyze the JSON API response or not. By default, the flag is set to True, which means the LLM will be applied as it was previously.
The primary motivation for this change is to handle cases where API responses are too large and exceed the context window of the LLM. In such situations, using an LLM to analyze the JSON response may not be feasible due to costs and token limits. With the new apply_llm flag, users can still use the OpenAPIEndpointChain to translate natural language to API requests based on the OpenAPI specification but can opt out of using an LLM to analyze the JSON response if needed.
To use the new flag, a call_with_apply_llm method has been added to the OpenAPIEndpointChain class. Users can call this method with their query and the desired value for the apply_llm flag:
output = chain_.call_with_apply_llm("my query", apply_llm=False)
By setting apply_llm to False, the LLM will not be applied to the JSON API response, making it more suitable for handling large responses without exceeding token limits or incurring additional costs.
There are other potentially better ways to address this problem. Let me know if you have any suggestions and I'd be very happy to revise this PR. Thanks.

@nick-gibb How about making api_response_chain optional? This would accomplish the same thing without adding additional argument, correct?

Thanks @vowelparrot, I’ll look into that!


File/Directory Path too long

Sample is close to the max length allowed by NuGet. I think it has something to do with the dependencies tacking on ~100-150 characters.
Work Around: Use a super short file path.  I had to stick the sample on my desktop.

Same problem as here: http://www.morgantechspace.com/2016/01/nuget-install-package-specified-path-is-too-long.html

This is a classical problem with Windows.
My advise is to clone the repo in C:\repos for instance.


 This example doesn't have any value.

If going from default hash to absent hash then the default hash is not restored... This sounds like an issue.


No domain informed

Hi @aharbis
I see that on the SOMA request there is no domain info, and so, files are pushed to 'default' domain.
In some scenarios (specially in test envs.) users are allowed to upload files only to their own domains, and so, in the way the tool is designed it will certainly fail into an auth. error.
I would suggest adding a command line parameter to get the domain name, and, if omitted, uses the 'default' domain.

Hey @rzancoper thanks for trying this tool out, and thanks for opening the issue.
I definitely can see some value in providing a --domain "name" option, so I'm more than happy to take this enhancement request.
In the meantime, you should be able to specify the full path from the default domain's perspective. This is because all application domain sub-directories exist within the default domain's filesystem. So for example if you had a domain sandbox and then a sub-directory foo in that domain, you could use the tool like this:
$ dp-file-uploader my.datapower.com "local:///sandbox/foo" file.txt

Alternatively, once this enhancement is implemented, the other form may look like:
$ dp-file-uploader --domain "sandbox" my.datapower.com "local:///foo/" file.txt

Hope this helps. Let me know if you have any other questions.

@rzancoper This feature is now available in version 0.1.4.


favicon for kudo.dev

What would you like to be added:
We should add a favicon to kudo.dev.

Done


Release 1.0.0

Codecov Report

Merging #4 (bd64101) into main (7132fcf) will decrease coverage by 6.88%.
The diff coverage is 93.11%.

@@             Coverage Diff             @@
##              main       #4      +/-   ##
===========================================
- Coverage   100.00%   93.11%   -6.89%
===========================================
  Files            8        9       +1
  Lines          603      421     -182
===========================================
- Hits           603      392     -211
- Misses           0       29      +29

Flag
Coverage Δ

unittests
93.11% <93.11%> (-6.89%)
:arrow_down:

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

Impacted Files
Coverage Δ

docs/examples/index/respo_client_example.py
0.00% <0.00%> (ø)

respo/cli.py
100.00% <100.00%> (ø)

respo/client.py
100.00% <100.00%> (ø)

respo/core.py
100.00% <100.00%> (ø)

respo/exceptions.py
100.00% <100.00%> (ø)

respo/fields/django.py
100.00% <100.00%> (ø)

respo/fields/sqlalchemy.py
100.00% <100.00%> (ø)

respo/settings.py
100.00% <100.00%> (ø)

respo/version.py
100.00% <100.00%> (ø)

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 7132fcf...bd64101. Read the comment docs.


Allows ARG before FROM

Addresses #90

Coverage remained the same at 99.16% when pulling 3830d84e4d0dc0b4b5a96ba05cd01300597f1a04 on deiga:update-to-allow-args-as-first-command into 4bae1ca74a0bae0d162b7976a44508cedd478d3a on replicatedhq:master.

Coverage remained the same at 99.16% when pulling 3830d84e4d0dc0b4b5a96ba05cd01300597f1a04 on deiga:update-to-allow-args-as-first-command into 4bae1ca74a0bae0d162b7976a44508cedd478d3a on replicatedhq:master.


Current Accumulative Cost Electricity not updating since June 16th

Describe the bug
Checking my energy dashboard I saw the grid total kwh but the cost is 0.00 . Have gone through history log and Current Accumulative Cost Electricity has kept the same value of £1.16 and this was last updated on the 16th June.
Reproduction steps
Log into Energy dashboard and view Grid Cost which is £.0.00 checked the configured is set as per energy dashboard setup here checked integration and reloaded.
Expected behaviour
The current accumlative cost electricity should be updating daily.
Tariff Code
22J0109863
Integration Version
11.2.1 and previous versions
Home Assistant Version
2024.6.3
Fresh Install?
Not specified
Home Assistant Logs
Will Provide if needed
Confirmation

[X] I confirm that I cannot find my solution within the documentation
[X] I confirm that I cannot find my solution within the FAQ

Hello and sorry that you're seeing this issue.
For the cost sensor, what does the data_last_retrieved and last_evaluated attributes state? Are they stuck at 16/6/2024? Do you have any errors in your logs relating to the integration? If you reload the integration, does it start coming through again?

Yes checked those attributes and both still on the 16th June.  I have just reloaded the integration and will check the sensor.  Nothing that I can see in the logs.

I am seeing the same issue for both Gas & Electricity for current_accumulative_consumption - it's coming back as "The state of these configured entities are currently not available: sensor.octopus_energy_electricity_xxxxxxxxxx_xxxxxxxxxxxxx_current_accumulative_consumption (unknown)"

I'm too seeing this issue.
sensor.octopus_energy_electricity_xxx_current_consumption showing 0. Last time I had data was 16th August.
Octopus dashboard shows fine. I have a home mini device.

I am seeing the same issue for both Gas & Electricity for current_accumulative_consumption - it's coming back as "The state of these configured entities are currently not available: sensor.octopus_energy_electricity_xxxxxxxxxx_xxxxxxxxxxxxx_current_accumulative_consumption (unknown)"

@tonyrsutton If the entities are no longer available, this indicates your account is no longer reporting that you have an Octopus Mini. If this is the case, you might need to contact OE to get this resolved. Could you please follow these instructions to download your diagnostics and report them here?

I'm too seeing this issue.
sensor.octopus_energy_electricity_xxx_current_consumption showing 0. Last time I had data was 16th August.
Octopus dashboard shows fine. I have a home mini device.

@eximo84 do you have any errors or warnings in your logs? I assume regarding the last time you saw data, you're getting this information from the data_last_retrieved attribute as well? I assume you don't see any data in the history of this sensor either? As the non accumulative version of the sensor is the delta value between updates so can report as zero. Is the accumulative version working fine?

I get feeling its related to mini tooI spoke with octopus and they sent me a new octopus mini after troubleshooting  I assume once the new one is in and my account is updated , the integration will pull the new mini?

I'm too seeing this issue.
sensor.octopus_energy_electricity_xxx_current_consumption showing 0. Last time I had data was 16th August.
Octopus dashboard shows fine. I have a home mini device.

@eximo84 do you have any errors or warnings in your logs? I assume regarding the last time you saw data, you're getting this information from the data_last_retrieved attribute as well? I assume you don't see any data in the history of this sensor either? As the non accumulative version of the sensor is the delta value between updates so can report as zero. Is the accumulative version working fine?

argh, just come to look at this and its all working again.  Maybe something octopus side :/.  Ill keep an eye on things though, thanks for the reply.

@BottlecapDave
Hi Dave,
Unfortunately I am also seeing the same thing, no updates to usage in kwh or £ since 22nd. I have the following in the logs, which would indicate a problem retrieving the data, rather than an issue with the integration:
logger: homeassistant.helpers.entity
Source: helpers/entity.py:1270
First occurred: 9:01:38 AM (2 occurrences)
Last logged: 9:01:38 AM

Update of sensor.octopus_energy_electricity_xxxxxxxxxx_xxxxxxxxxx_export_previous_accumulative_consumption is taking over 10 seconds
Update of sensor.octopus_energy_gas_xxxxxxxxxx_xxxxxxxxxx_previous_accumulative_consumption_m3 is taking over 10 seconds

I am getting other metrics on time though, like price changes, so I don't think it's a configuration issue. Any advice on next steps would be greatly appreciated.
Thanks,
James

@jbarrett-fmad are you having issues with the current accumulative sensor (which is what this ticket is about) or the previous consumption sensors (which is what your logs are referring to?) The warnings are a bi-produxt of the OE APIs sometimes taking a while to respond, but don't indicate a failure.

You're right, I hadn't spotted that. Would you prefer I open a new Issue?
Agreed re the log entries, but I'm not getting anything more granular, yet metrics are not updating since 22/08.
I think it's more likely to be an Octopus issue, but I'd rather have more info before I call them.

So which sensors are you having issues with?

Hi Dave,
The metrics seem to have started updating again, so I have to presume it was an API issue.
Thanks anyway.
James

Hi Dave.
It was all of the previous accumulated metrics, but data has started to flow again, so must have been at Octopus' end.
Thanks for the reply though, and the awesome integration.

Thanks for getting back to me. You might have been hit by https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/discussions/984