Unable to exclude automation entities from logbook

Home Assistant Version: 0.29.7
Python release: Python 3.4.2
Component/platform: Running on Raspberry Pi 3
Description of problem: I cannot exclude an automation entity, or the entire automation domain from logbook, using exclude:.
I have also tried customizing and setting hidden to true which should also remove it from logbook but it does not. My automation runs a script every minute.
Expected: It shouldn't show up in my logbook.
Problem-relevant configuration.yaml entries
homeassistant:
  customize:
    automation.train_view_notifications:
      friendly_name: 'train'
      hidden: true

logbook:
  exclude:
    entities:
      - train
      - automation.train_view_notifications
    domains:
      - automation

shell_command:
  train_view: 'python /home/pi/.homeassistant/www/scripts/tv_hack.py'

automation:
- alias: Train View Notifications
  hide_entity: True
  trigger:
    platform: time
    minutes: '/1'
    seconds: 0
  action:
    service: shell_command.train_view

Everything runs, but it just isn't hidden from logbook.
Any ideas? @wokar, I know you were involved with this addition. More than happy to test everything. Much thanks in advance.

Currently only state change events are filtered in the logbook. For an automation the state chages only if the automation is enabled or disabled and not when it is executed :-(
I will take a look on how we could exclude automation entries after my other PR's for the logbook and history are merged.

Awesome great! thanks for the quick response. I think the ability to exclude anything from the logbook would be ideal.
Can I help on this at all?


Fix #4

Fix RuntimeError occurring due to input and weight tensors residing on different devices

 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.


#3987: enabled build for darwin/arm64 and upgraded to helm 3.6.0

Signed-off-by: warber<EMAIL_ADDRESS>

superseeded by https://github.com/keptn/keptn/pull/4445


Info.plist entries in the example app for FacebookAutoLogAppEventsEnabled and FacebookAdvertiserIDCollectionEnabled as Strings instead of Booleans

🐛 Bug Report
I was reviewing the Info.plist file in the example app and noticed that the following keys are set with string values "FALSE" instead of boolean values:
<key>FacebookAutoLogAppEventsEnabled</key>
<string>FALSE</string>
<key>FacebookAdvertiserIDCollectionEnabled</key>
<string>FALSE</string>

According to Meta's documentation, these keys should be of boolean type:
https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-advertiser-id
I'm wondering if this was intentional or if it might be a mistake. Should these values be changed to booleans?
Thank you for your time and assistance!

That looks like an error to me - nothing like upstream documentation as a solid basis for argument at least
If you proposed a PR to the example and/or to any related documentation that would be a huge help 🙌
well spotted


Register password restrictions

There were lots of bugs opened at StarEast about password creation int he registration process. All are pasted below:
Enter mismatching password/confirm password and no immediate feedback is provided - Expected, after encountering Issue 33 (feedback that I did not expect) that I would have received immediate feedback on the mismatched password
No info on password requirements until you have a validation issue (must be > 6 chars, etc)
password and confirm password should confirmed at input time instead of submission time - The proper behavior should be when input password and confirm password. It should confirm at input time instead submission time.

I'll implement this by sending ajax requests to the server and requesting the PasswordComplexity class.

@BillWagner I assume your comment on this issue was meant for another issue as it seems unrelated?

@BillWagner I implemented this and will post a pull request as soon as #271 (implementation of password reset functionality) is merged. My current solution builds on top of that code.

@tditiecher Yes, my comment was for issue #187 and related to the multiple admin accounts.
What caused all the confusion: one of the test professionals at a hackathon changed the admin password, and didn't tell anyone what the new PW was before leaving. We were pretty well stuck. It did point out a big hole though,.


[ENH] Truncated Backpropagation Through Time

Is Truncated Backpropagation Through Time supported?
I've found no documentation or example about it.

It seems that it is not supported. At least I haven't found it in training_step nor in the step method implemented. I think this could be a nice add on for autoregressive or recurrent networks.
For implementing it, I suppose it would require to add for the recurrent models a new step method or add a hook in the step method of the BaseModel for the calculation of the loss.

PyTorch Lightning had this feature, then they removed it. We could take inspiration from their old code?


Make zip-iterator c++20 compliant

When building with c++20 flag, Apple Clang complains on '!=' and '==' operators:
ISO C++20 considers use of overloaded operator '!=' to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Werror,-Wambiguous-reversed-operator]

Just adding a const on both  the operators (as stated here) solves the problem and the code builds also with c++20.

Thanks @alemuntoni!


README: Adding resource TOC

Fixes #450

This change is

Should not have errors in any markdown files
Any ideas why this test is causing the build to fail?

Codecov Report

Merging #503 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #503   +/-   ##
=======================================
  Coverage   91.39%   91.39%
=======================================
  Files          17       17
  Lines        2661     2661
=======================================
  Hits         2432     2432
  Misses        229      229

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 ab0a0d4...e390e28. Read the comment docs.

@midacts Will help look at the tests

Mission complete

Thanks for your help on this and opening these up for me to contribute for Hacktoberfest.


Spring boot 3 support for Ignite

We are migrating spring boot projects from 2.7.x versions to 3.x version. Looks ignite spring boot autoconfigurer not compatible with latest spring boot 3.x version. Is there any support from community or this support is planned for future releases?

There is a ticket to support the Spring Boot 3.x version. IGNITE-22528
It has not yet been implemented, so the target release version has not been determined.

There is a ticket to support the Spring Boot 3.x version. IGNITE-22528 It has not yet been implemented, so the target release version has not been determined.

Hello, I would like to ask, when will Ignite officially support Spring Boot 3.x?


Built a "filter" for terms.php

I wrapped the "getCorrectedTerms" around all hooks in that file (maybe no necessary), but it should only affect "correct" formated parts. (Tested with sendinblue newsletter plugin)

May I ask what exactly the point is of this code?
Also, I recommend to make the functions in the Woocommerce functions file, not in a template file.

This fixes hooked broken checkboxes in checkout. For example a sendinblue newsletter check.
I agree that it's better to solve that as a function instead of changing the WC template. Any idea?

Thought about it again. @justinkruit You're right, this file will too hard to maintain if WC updates the terms.php and we should keep template files as simple as possible. Was too fast pressing the merge button, my bad. I reverted this PR.
@Axos11 Are you able to remodel this filter using hooks and add it to woocommerce-functions.php?

As far as i know, there are no filters for the hooks in terms.php. (if there are, just tell me and i will happily use them)
The issue came up with the modification of the terms.php file in the first place. So reverting the changes but still changing the "terms.php" file to a bootstrap syntax is not really an option in my oppinion.
You can move the 2 functions to a function.php file, thats not an issue at all. The only problem that still exists is, that there is not really any access to this content without modifying the terms.php file. (we could add a new filter for the used hooks there, but still. the terms.php file has to be edited and its basically the same :) )

Of course, this filter is absolutely neccessary. This is just some brainstorming how to add it more smooth. I'm a bit worry about maintaining this file.
However, terms.php is edited already. So, more editing is ok. What's about your idea to add a new filter to file and do function in woocommerce-functions.php? A filter there is just one line of code in terms.php.

If you just move the 2 functions "getCorrectedTerms()" and "captureHookOutput()" to the woocommerce-functions.php then you only have 3 changed lines of code which are :

do_action('woocommerce_checkout_before_terms_and_conditions')

echo getCorrectedTerms(captureHookOutput('woocommerce_checkout_before_terms_and_conditions'));

do_action('woocommerce_checkout_terms_and_conditions')

echo getCorrectedTerms(captureHookOutput('woocommerce_checkout_terms_and_conditions'));

do_action('woocommerce_checkout_after_terms_and_conditions')

echo getCorrectedTerms(captureHookOutput('woocommerce_checkout_after_terms_and_conditions'));

The adaption to filters would be just a cosmetic thing. Actually the functionality would be just the same (at least i think so :) )
Ps: (I have to say, that i don't like the woocommerce approach there anyways. because they mix hooks with html code where only hooks would be as good :) )

Yes, think this is better. Keeping terms.php slim and put function to woocommerce-functions.php will be much more cleaner. Want to create a new PR?

(I have to say, that i don't like the woocommerce approach there anyways. because they mix hooks with html code where only hooks would be as good :) )

I disagree with many things in WooCommerce ;-)

I think this would be the right approach, having the functions in woocommerce-functions.php. That way the terms.php is the most authentic, and should make updating it easier.


Moving the code of parameter estimation with JIM

The code should be working (the instruction is on README.md), but lots of work and cleaning up are yet to be done.

I have put everything in the single event pe folder


I can resolve the issue that requires the mandatory inclusion of the @JsonIgnore annotation.

If you use Transient Annotation, that field will be ignored when they are serialized.
Loot at the result below.
[Before]

[After]

Can you check my Pull Request?


products visibility synchronization

When i set original language product visibility to hidden the translated product is hidden too.
Then when i make visible again the translated product stays hidden.
I have to edit the translated product and make it visible again
(v 143)

Hi, it is normally intentional that visibility is synchronised, however if you want to turn the synchronisation off, please see Settings, WooPoly, Metas - see documentation at https://github.com/hyyan/woo-poly-integration/wiki/Settings-Metas
I have tested this is still working even with with WP5.4.2 woo4.2.2 polylang 2.7.3 php7.4.2
but I don't particularly recommend it.
There are also other ways of hiding a product like marking it out of stock  etc.


powershell: add maintainer script getHashes

Description of changes
I added a maintainer script that gets the hashes for new versions of PowerShell

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

It's a script for PowerShell, and it's opaquely wrapped by nix-shell. Is it a big problem? I'm not good at bash.

Yes, it is a problem. If update scripts are written in one well known language and use similar tooling they can be easily understood by everyone and if they ever break or need changing that can be done by lots of people. I personally wouldn't even know who I could ask for help in powershell on Linux and NixOS. The bash the update scripts are written in is pretty easy. I am sure you can easily learn that with the help of some already commited ones.

OK, I wrote a bash script.


feat(cli): add new plugins option

Description
Generalized CLI's plugins configuration.
This is an alternative implementation of #2029.
Test plan
TODO

cc @acoates-ms


Unit tests

[ ] Add unit tests for all the methods in all the classes.

Added test for add_rental method in  Person class


Account for possibly-null username in AchievementUser

Description
Added check in AchievementManualEditor for toLowerCase()
Couldn't really replicate the issue locally but should work...
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Code quality improvements

How to test

Checklist

[ ] I have tested this code
[ ] I have updated the documentation

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 2 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 30.879%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/commons/achievement/AchievementManualEditor.tsx
0
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
3417

Relevant Lines:
10321

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.03%) to 30.862%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/commons/achievement/AchievementManualEditor.tsx
0
4
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.03%

Covered Lines:
3417

Relevant Lines:
10321

💛  - Coveralls


prepare for mainnet alpha

Current dependencies on/for this PR:

main

PR #80   👈

This comment was auto-generated by Graphite.


[release-4.14] CVE-2023-45142,CVE-2023-47108: bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.1

@openshift/storage
This is a manual cherry-pick of:
https://github.com/openshift/ibm-vpc-block-csi-driver-operator/pull/88
https://github.com/openshift/ibm-vpc-block-csi-driver-operator/pull/103

/jira cherry-pick OCPBUGS-22603,OCPBUGS-25604

/close
we've decided not to fix 4.14.z and wait for 4.15 GA instead. The amount of dependency changes is too big to be safe for a z-stream and moderate CVE.


CORS not working

On some request i get the error "Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin." but some others are working. I have added config params to the config.xml.

@do-web can you provide more details. I have the same issue in my case. I saw all the other threads but there was not a real solution.
Issue on:

iOS
latest Ionic & Cordova
https requests

I just reinstall the plugin, then it works.


Receive: file reloading broken with k8s config maps or secrets

Thanos, Prometheus and Golang version used:
Thanos: v0.30.2
Prometheus: N/A
Golang: N/A

Object Storage Provider: N/A
What happened:
Today I was debugging something with a colleague regarding Thanos’ fs watcher based configuration reloaders. Both implementations, which I call “new” (the PathContentReloader function) and “old”, have big problems with k8s config maps and secrets.
We pushed new limits configuration to our Receive pods and they've never detected the file changes. In the past we also pushed hashring configuration changes that were never detected by the fs watcher and only became effective when Thanos re-read the whole file.
K8s config maps and secrets are using lots of symlinks. Every file inside inside them is a symlink. And the parent folder as well. From what we see, this makes file changes transparent to both implementations. :disappointed:
What you expected to happen:
Thanos Receive to detect the changes in the files and reload them properly.
How to reproduce it (as minimally and precisely as possible):

Deploy Thanos Receive in Kubernetes
Mount the hashring or limits configuration from a ConfigMap or Secret.
Change the configuration mounted.
Confirm updated file is inside pods.
Confirm Thanos Receive never reloaded them.
Open them manually, change something, save and exit.
Confirm Thanos Receive finally reloaded them.

Full logs to relevant components: N/A
Anything else we need to know:
We plan to try to open a PR to improve the new implementation, allowing it to detect such situation (file and its folder being symlinks) and default to re-read the file every 5s or so (maybe with some added logic to be smart and efficient about it).
Some reading material to better understand the issue:

https://github.com/kubernetes/kubernetes/issues/112677
https://martensson.io/go-fsnotify-and-kubernetes-configmaps/
https://ahmet.im/blog/kubernetes-inotify/

I think it should be fine, @manulpatel. Let us know when you have a PR ready. :)

Seems like we could solve the problem by trying to reloading the configuration when we get a "remove" event. At this point though I believe the fsnotify-based implementation is becoming increasingly complex and full of gotchas. Keeping only the polling-based solution seems attractive as it's a pretty simple and effective one. Waiting for a discussion with maintainers to see what we'll do moving forward.

Hi @douglascamata,
I would like to work on this issue and help resolve the problem with file reloading in Thanos Receive. I have experience with Kubernetes . Could you please assign this issue to me? I'm excited to work on it!

Hello @yashvardhanmishra. There's already a PR linked to this issue that should solve the problem: #6503.

Considering #6503 is merged, now we have ways to circumvent the symlink issues on both mechanisms used to reload configuration. We should migrate the hashring one to use the same mechanism as the tenant limit configuration, but this can be tracked in another issue.
Closing this as the problem's gone.


Can we get calendar's event color by passing an identifier?

Hi there,
Since calendars's description is presented in such JSON format, where the color of the event isn't part of the nested json, I was wondering how can we retrieve the colorid of each event and know which color is for which event?
Sample event JSON:
{
    'kind': 'calendar#event',
    'etag': '"3211301669508000"',
    'id': '3ts0nd8l1..50000Z',
    'status': 'confirmed',
    'htmlLink': 'https://www.google.com/calendar/event?eid=M3RzMG5kOGw..Bn',
    'created': '2020-11-17T22:06:44.000Z',
    'updated': '2020-11-17T22:07:14.754Z',
    'summary': 'Check email, news, articles',
    'creator': {
        'email'<EMAIL_ADDRESS>    },
    'organizer': {
        'email'<EMAIL_ADDRESS>        'displayName': 'ToDo',
        'self': True
    },
    'start': {
        'dateTime': '2020-11-25T10:00:00-05:00',
        'timeZone': 'America/Toronto'
    },
    'end': {
        'dateTime': '2020-11-25T10:30:00-05:00',
        'timeZone': 'America/Toronto'
    },
    'recurringEventId': '3ts0nd8...qdefa',
    'originalStartTime': {
        'dateTime': '2020-11-25T10:00:00-05:00',
        'timeZone': 'America/Toronto'
    },
    'iCalUID'<EMAIL_ADDRESS>    'sequence': 1,
    'reminders': {
        'useDefault': True
    }

I was wondering if one of the ways would be to pass an identifier such as ICalUID to colors = service.colors().get().execute() per doc to get the event's color? if not, curious to know how we can?

Hi,
It looks like this is primarily a question about the Calendar API rather than the library google-api-python-client. Please use one of the support channels listed on this page to get help from someone with Calendar API expertise.
Thanks!


[T2A2] & [T2A3][T11-A1]Tan Hong Yu

Good attempt. Next time

Commit individual changes

include only relevant comments in a PR

Have seperate PRs for each activity as you are advice in the tutorials.


Adding functions related to clients reposting a Bluesky post

Description
This pull request implements the createRepostRecord and deleteRepostRecord functions for the ATProtoKit package to implement full support for users who want to repost Bluesky posts.
Linked Issues
None
Type of Change

[ ] Bug Fix
[x] New Feature
[ ] Documentation

Checklist:

[x] My code follows the ATProtoKit API Design Guidelines as well as the Swift API Design Guidelines.
[x] I have performed a self-review of my own code and commented it, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings or errors in the compiler or runtime.
[x] My code is able to build and run on my machine.

Additional Notes
In my testing, using deleteLikeRecord with repost URIs works correctly, so the deleteRepostRecord just calls on the deleteLikeRecord function. I have commented this quirk in code, although I'm not too sure if theres minute details I'm missing out.
Credits
If you want to be credited in the CONTRIBUTORS file, you can fill out the form below. Please don't remove the square brackets.

Name: [Andy Lin]
GitHub: [@andylin2004]
Bluesky: [Replace with your Bluesky handle if you have one]

Thank you very much for making this for me. I appreciate it a lot! I have so much to do, so takes a bit of weight off my shoulders.
With respect to deleteRepostRecord(), I wasn't expecting deleteLikeRecord() to actually work for reposts as well. I feel like we can refactor that method to be more generic (so a deleteRecord() method), and then any delete[record]Record() method could simply invoke that private method. I guess this means that method will work regardless of the record, then. This is good.

I have edited the deleteLikeRecord() function to call a deleteActionRecord() (basically the old deleteLikeRecord() function). The deleteActionRecord() function is an internal function instead of an actual private method to prevent it from being called externally, but without the complier issues with private being too restrictive.

Ack, sorry, I should have checked open PRs before opening mine! Will close #61 😀

No problem! I want to release this and a few other things as part of 0.21.0 some time next week, though there's a specific bug that I'm struggling to tackle right now. Please be patient. 🙏


Pvp restriction on every spell

Today, my players found a problem. There is pvp restriction on every spell. Almost all of them are unusable. I don't know how this happened, but they are all this way. How do I fix this?

Seems odd, did you enable a WorldGuard pvp flag for the whole work or something?  If you need to turn it off completely you can add this to your plugins/Magic/spells.yml
override:
  parameters:
     bypass_pvp: true

That will allow pvp with spells even in areas that disallow pvp.
I'd be curious to know what exactly happened, though.

Did you figure out what was going on here? Did the pvp bypass fix it?


How to fetch more than 50 results?

https://developer.bigcommerce.com/display/API/Paging

added pull request


Additional Designtweaks

Added:
colours for different answer options
Little bit clearer lobby creation page
new points are displayed as "^+New Points" next to total score in answer view
also added that Players-List is only shown if at least one player is in the lobby in lobby-view
Sadly, I couldnt get the buttons for "next question" and "finish quiz" to work for the host on answer view

Manual Pull Request, should now contain the correct changes .


[BUG] The requested operation is invalid. Server Response: BAR_Requests failed: The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.

Looks like we have exceeded  the SharePoint list limit of 5000.
We're using the original app version made available by MSFT. We've not moved to newer versions created by the community.
Any suggestions on how to fix this?
I'm going to create 5000 rows in my test app and fiddle around there, but if anyone has a suggestion to fix this that would be great.
Many thanks!

Check if the indexes were created correctly on the requests list.

Check if the indexes were created correctly on the requests list.


How to change the default "fall back" icon for any mp3 files

Hi, when I try to use this software in my android, I see the icons are "fall back" icons with a man raises both hands.
I'm not sure whether it is by design. But could it be possible to change the default icon? For example, I need an icon which is more simple and compact.
Anyway, this music player is very nice, thanks!

Hi, when I try to use this software in my android, I see the icons are "fall back" icons with a man raises both hands.
I'm not sure whether it is by design. But could it be possible to change the default icon? For example, I need an icon which is more simple and compact.
Anyway, this music player is very nice, thanks!

Thanks.
Would you please post the screenshot of problem you are facing?

Look at the below screen shot. You can see if the mp3 file does not have an icon, the default fall back icon is used.

In the next version this will be fixed.
Thany for the report.

OK, thanks.

#70 fixes this issue.

Thanks.
Is there any nightly build version of apk file? So that I can try it on my phone.


why work_nume=group_count * work_itemswork_itemsrange_count?

const unsigned long work_numel = param.global[0] * param.local[0] * param.range_count = group_count * work_itemswork_itemsrange_count
I want to know why work_items is square？

It has to do with the summation that is done in 2 passes so that we can launch as many parallel threads as possible.


Crash file marker to indicate that a crash has occurred not working

[REQUIRED] Step 1: Describe your environment

Xcode version: 11.3
Firebase SDK version: 6.22.0
Firebase Component: Crashlytics
Component version: 4.0.0-beta.6
Installation method: `CocoaPods'

[REQUIRED] Step 2: Describe the problem
Api Crashlytics.crashlytics().didCrashDuringPreviousExecution() is not working.
Steps to reproduce:
Application  requirement is to check if app had crashed for previous  app launch.
Steps:

Launch app.
Force crash
Launch app again.
Observer  Crashlytics.crashlytics().didCrashDuringPreviousExecution() returns false.
In this I was expecting  api should  return true.

Observation is that FIRCLSCreateCrashedMarkerFile(); is not called
Relevant Code:
// TODO(you): code here to reproduce the problem

Potentially related to some of the issues that @samedson was investigating.

Hey thanks for reaching out. Could you share an xcode project or code that crashes that reproduces this?

Application code is  same as https://github.com/firebase/quickstart-ios/tree/master/crashlytics.
My build script: "${PODS_ROOT}/FirebaseCrashlytics/run" "find ${DWARF_DSYM_FOLDER_PATH}" -name "*.dSYM" | xargs -I \{\} "$PODS_ROOT/FirebaseCrashlytics/upload-symbols" -gsp "${PROJECT_DIR}/GoogleService-Info.plist" -p ios \{\}
Investigation is that https://github.com/firebase/firebase-ios-sdk/blob/master/Crashlytics/Crashlytics/FIRCrashlytics.m#L133 is always false.
This is as because "previously-crashed" file is never created. Also manually verified the path "crashedMarkerFileFullPath" and found that folder has never created.
I have tested this on Crashlytics 4.0.0
Also crash is not reported immediately on console.
My requirement is to check if app was crash in previous application launch.
Tried following code :
  let crashlytics = Crashlytics.crashlytics()
        FirebaseConfiguration.shared.setLoggerLevel(.max)
        crashlytics.setCrashlyticsCollectionEnabled(false)

        crashlytics.checkForUnsentReports { (hasUnsent) in

            if hasUnsent {
                crashlytics.sendUnsentReports()
            } else {
                crashlytics.deleteUnsentReports()
            }
        }
        let x =  Crashlytics.crashlytics().didCrashDuringPreviousExecution()
        print("didCrashDuringPreviousExecution = \(x)")

@SayaliMalekar what target platform are you running on (simulator, device, iOS version)? Are you able to see any file writing errors in the device's logs?

Hi,
With following steps,  able to see correct output:

Build application
Stop application in Xcode. [Debugger shouldn't be attached].
launch application, crash it.
Open application , observe Crashlytics.crashlytics().didCrashDuringPreviousExecution() returns true.

This issue can reproduce in following case :

Firebase Crashlytics framework is configured in main project, it is configured in  internal framework.
If your main project has any Firebase product dependency.
In this case main project as well as internal framework will require to call [FIRApp config].
This will result in creation of two Crashlytics object https://github.com/firebase/firebase-ios-sdk/blob/master/Crashlytics/Crashlytics/Public/FIRCrashlytics.h#L31.
So here one of the Crashlytic object will always return false as other has already cleared "previously-crashed" file. Most likely in internal framework.

Are you seeing duplicate class definition warnings in console when running your app?

Can see following Warning:
 objc Class FIRCrashlytics is implemented in both "Framework" and "APP" One of the two will be used. Which one is undefined.

@SayaliMalekar The "undefined" log is indicative of two copies of Crashlytics in the app. It should be restructured so Crashlytics is not linked twice.

By restructuring the code solved my issue.  Will there be a work around to decide which Crashlytics to be in use?
@paulb777 @morganchen12 @samedson Thank you for listening and helping to solve the issue.

It is not really possible to work around the duplicate class definitions at runtime issue in the SDK code itself, since it results in undefined behavior. Please let us know if you have any more questions and we'll continue to answer them in this thread.
Thanks!

In the next major Firebase release, we're planning to remove the static_framework constraint from the pods sources in this repo so that the Podfile can determine whether they get linked statically or dynamically.  That should mitigate some of the "duplicate class definition" occurrences. See #2022


docs: 'hello world' visualization plugin

DRAFT / WIP.
This is WiP towards documenting the process of developing and using plugins.
I'm trying to create simple template for people to follow to create more ambitious visualization plugins. View the related Superset package code to get this plugin integrated: https://github.com/apache/incubator-superset/pull/8333

@mistercrunch  i think in this case also we need to follow some guidelines/step to add custom visualisation in superset-ui and then we need to register it in superset Mainpreset.js..
can we design arch like
https://www.elastic.co/guide/en/kibana/current/development-plugin-resources.html
we just develop plugin outside superset or superset-ui  and just install /un-install it on top of superset.

@williaster @kristw working on this, I couldn’t get the plugin to call /api/v1/query instead of /superset/explore_json/. Any pointers?

@mistercrunch
On current master of supetset, I can point to the URL to /api/v1/query/ by changing exploreUtils.js:
export function getURIDirectory(formData, endpointType = 'base') {
  // Building the directory part of the URI
  let directory = '/superset/explore/';
  if (
    ['json', 'csv', 'query', 'results', 'samples'].indexOf(endpointType) >= 0
  ) {
    directory = '/api/v1/query/';
  }
  return directory;
}

But from the flask log shows:
INFO:werkzeug:<IP_ADDRESS> - - [06/Dec/2019 11:39:34] "GET /superset/favstar/slice/82/count/ HTTP/1.1" 200 -
DEBUG:root:[stats_logger] (incr) query
ERROR:root:Input string must be text, not bytes
Traceback (most recent call last):
File "/storj-storage/src/incubator-superset/superset/views/base.py", line 121, in wraps
return f(self, *args, **kwargs)
File "/storj-storage/src/incubator-superset/venv/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py", line168, in wraps
return f(self, *args, **kwargs)
File "/storj-storage/src/incubator-superset/superset/views/api.py", line 44, in query
query_context = QueryContext(**json.loads(request.form.get("query_context")))
File "/storj-storage/src/incubator-superset/venv/lib/python3.6/site-packages/simplejson/__init__.py", line 518, in loads
return _default_decoder.decode(s)
File "/storj-storage/src/incubator-superset/venv/lib/python3.6/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/storj-storage/src/incubator-superset/venv/lib/python3.6/site-packages/simplejson/decoder.py", line 392, in raw_decode
raise TypeError("Input string must be text, not bytes")
TypeError: Input string must be text, not bytes
INFO:werkzeug:<IP_ADDRESS> - - [06/Dec/2019 11:39:34] "POST /api/v1/query/?form_data=%7B%22slice_id%22%3A82%7D HTTP/1.1" 500 -
INFO:werkzeug:<IP_ADDRESS> - - [06/Dec/2019 11:39:34] "GET /static/assets/images/favicon.png HTTP/1.1" 200 -
DEBUG:root:[stats_logger] (incr) log
INFO:werkzeug:<IP_ADDRESS> - - [06/Dec/2019 11:39:35] "POST /superset/log/?explode=events&slice_id=82 HTTP/1.1" 200 -

Any idea what that mean? seems the core part is not really ready to the new plugin system or I missed something.

I couldn’t get the plugin to call /api/v1/query instead of /superset/explore_json/. Any pointers?

I'm facing the same issue, unable to use the new API and therefore unable to develop a visualisation without changing core Superset files. From my understanding, this is meant to change based on the 'useLegacyApi' flag when creating a visualisation but it seems to have no impact.


[Improve] Define platform icons

Platform icons helps user pinning your website with an icon that fits well on mobile device home.
What files to fix:
examples/basic.html
examples/basic_material.html
examples/basic_model.html
examples/fps.html
examples/plugin_example.html
examples/skybox.html
examples/stone_wall.html
or any new example *.html file
How To Do it:
add Apple - iOS icons by adding link tags like
'< link rel="apple-touch-icon-precomposed" href="youricon" sizes="57x57" />'
add Microsoft - Windows tiles by adding meta tags like
'< link name="msapplication-square150x150logo" content="yourimage" />'
How to test it:

Install [Vorlon.JS] (http://vorlonjs.com/?WT.mc_id=16538-DEV-sitepoint-article74)

add the following line into your test HTML file:

'<  script src="http://localhost:1337/vorlon.js"  >' '<  /script  >'

Once Vorlon.JS is done installing, run the server:

$ vorlon

With the server is running, open http://localhost:1337 in your browser to see the Vorlon.JS dashboard.

Open your test html file,  and it should appear on the Vorlon.JS dashboard.

In the dashboard, click on the button Best Practice: MOBILE WEB
and check the define platform icons

@bdirl All those icons you can find in development/art/logo/ folder.

Added the following to all *.html files:


APP SDK for iOS and Android

Hi, I am APP developer. Are there SDK or Library for Android and iOS platform? We want to enable Alexa service on our own APP. Thanks.

@jairajiv We have the same use case for Android and iOS platform. Can you please discuss it with us?

@vkreal - AVS provides code for companion apps for Android and iOS. The companion app is used for enrolling and managing an AVS device. Here are the links to companion apps.
Android - https://github.com/alexa/alexa-avs-sample-app/tree/master/samples/androidCompanionApp
iOS - https://github.com/alexa/alexa-avs-sample-app/tree/master/samples/iOSCompanionApp
If you want to discuss your use case further, Please fill out this Contact Form..

@jairajiv
I have the same use case for Android and iOS platform. And I have already asked the same question on  the https://github.com/alexa/alexa-avs-sample-app/issues/1036#issuecomment-348216027,
" The actual java AVS application is not supported on Android. It has only been tested on the platforms you listed above. There is an AVS C++ SDK, which does not formally support android yet, but has been successfully deployed on Android by other users."
Is it possible to provide libs for android or ios platform?
Thanks!

Hi @jairajiv,
Sorry, but we do not have support for Android or iOS at this time.
Regards,
-SWH

@scotthea-amazon do you guys expect to support Android in the near future?

@scotthea-amazon
do you mean can't build AVS sdk with android platform.?Some folks are saying  we can build the AVS SDK  with Android NDK.

I'm also struggle with the Alexa to connect with my custom skill. Its working fine on the test emulator which provided in the Alexa voice service, but i try to connect with my android application I'm not able to gettting the response as like as the emulator. I dont know what was the exact problem which i did.so please anyone help me out from this problem.Thanks in advance...
contact me as private aslo<EMAIL_ADDRESS>

@prihtiv kindly help me i'm also struggling while integrating app to app linking using alexa skill kit


✨Add endpoint DELETE LinkTrace

Feature Request
From this conversation: https://github.com/numerique-gouv/impress/pull/432#discussion_r1852330500
As it is now, we cannot remove a document from our list where we are not admin or owner, but we should be able at least to remove Public or Authenticated document that are not interesting us anymore.
To do so we need an endpoint to remove ourself from the table link_trace.
To do
Add an endpoint DELETE LinkTrace.

@AntoLC do you also need a solution to remove yourself from a document where you are editor or reader via a specific access?

I checked how google drive does this. In the menu you have an option called "remove" in your shared docs.
When you click it's removed from your list of shared docs but you keep your access to the document even if it was shared specifically to you.
We might want to have that in mind for this feature and decide what we want to do, does remove mean I delete my access when it's specifically shared to me or does it remove from the list only.
What do you think ?


Add lz4 update to changelog

Updated in commit https://github.com/spacetelescope/asdf/commit/f139f7966dc1c9eb49f6ddad1a7c761e68cac5dc


Boardwalk crash

Version of Boardwalk:1.1
Version of Android:6.0.1
Device model:nexus 7
Description of the problem: the app crashes when mc tries to launch

I have the same problem with Nvidia Shield Tablet

I have same problem mc can launch with Android 6.0


SQl server Database is not connected using docker compose

I am trying last 3 days sql server database connectivity not work
compose file below
orderdb:
container_name: orderdb
environment:
SA_PASSWORD: "SwN12345678"
ACCEPT_EULA: "Y"
restart: always
ports:
- "1433:1433"
ordering.api:
container_name: ordering.api
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:OrderingConnectionString=Server=orderdb;Database=OrderDb;User Id=sa;Password=SwN12345678"
- "EventBusSettings:HostAddress=amqp://guest:guest@rabbitmq:5672"
- "ElasticConfiguration:Uri=http://elasticsearch:9200"
depends_on:
- orderdb
- rabbitmq
ports:
- "8004:80"
I have not use entity framework I am using dapper
I have check API connection string is "Server=orderdb;Database=OrderDb;User Id=sa;Password=SwN12345678"
error given is docker-compose database container file  Login failed for user 'sa'. Reason: Failed to open the explicitly specified database 'OrderDb'. [CLIENT: <IP_ADDRESS>]
How to fix this issues
I have try to remove orderdb and try this   host.docker.internal,1433 working fine so how to multicontainer setup

@viralchauhan
I think you need to create a network bridge.
see my last issue about Ocelot's and docker-compose configurations. you will figure it out


RESTCapableHybridTopologyFactory working with small molecules

Description
the lambda_protocol option for the HybridRepexSampler object was being specified, forcing LambdaProtocol() (which can only be used with HybridTopologyFactory, not RESTCapableHybridTopologyFactory) to be used. lambda_protocol is now left undefined, so that the HybridRepexSampler will automatically detect and choose the appropriate lambda protocol according to the HTF.
Motivation and context

Resolves #1039
How has this been tested?
Tested locally with partial tyk2 benchmark simulation
Change log

Bug fix when trying to use the new `RESTCapableHybridTopologyFactory` in the small molecule pipeline -- fixed by not specifying a protocol, hence allowing the `HybridCompatibilityMixin` object to automatically handle it.

@ijpulidos : LGTM! I just made some clarifying changes to the description.


Failed to download zig@master

Describe the bug
can't download zig@master
$ mise i zig@master
mise ERROR failed to install core:zig@master
mise ERROR HTTP status client error (404 Not Found) for url (https://ziglang.org/download/master/zig-linux-x86_64-master.tar.xz)
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information

It seems like the url changed from https://ziglang.org/download/master/... to https://ziglang.org/builds/..
mise doctor output
version: 2024.12.14 linux-x64 (ac3079c 2024-12-18)
activated: yes
shims_on_path: no

build_info:
  Target: x86_64-unknown-linux-gnu
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Wed, 18 Dec 2024 18:58:12 +0000
  Rust Version: rustc 1.83.0 (90b35a623 2024-11-26)
  Profile: release

shell:
  /usr/bin/zsh
  zsh 5.9 (x86_64-pc-linux-gnu)

dirs:
  cache: ~/.cache/mise
  config: ~/.config/mise
  data: ~/.local/share/mise
  shims: ~/.local/share/mise/shims
  state: ~/.local/state/mise

config_files:
  ~/.config/mise/config.toml

backends:
  aqua
  asdf
  cargo
  core
  gem
  go
  npm
  pipx
  spm
  ubi
  vfox

plugins:
  gradle  https://github.com/rfrancis/asdf-gradle.git#3af5633
  usage   https://github.com/jdx/mise-usage.git#fe3888a

toolset:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
path:
  ~/.local/share/mise/installs/go/1.23.4/bin
  ~/.local/share/mise/installs/usage/1.6.0/bin
  ~/.local/share/mise/installs/zig/0.13.0/bin
  ~/.local/share/mise/installs/node/22.12.0/bin
  ~/.local/share/mise/installs/gradle/8.11.1/bin
  ~/.local/share/mise/installs/java/openjdk-22.0.2/bin
  ~/.local/share/zinit/polaris/bin
  ~/.local/share/cargo/bin
  /sbin
  /bin
  /usr/local/sbin
  /usr/local/bin
  /usr/sbin
  /usr/bin
  ~/.local/bin
  /var/lib/flatpak/exports/bin
  /usr/bin/site_perl
  /usr/bin/vendor_perl
  /usr/bin/core_perl

env_vars:
  MISE_SHELL=zsh

settings:

No problems found

Additional context
Add any other context about the problem here. Consider running mise with --debug or --trace for extra debug info.

I think you need to use zig@ref:master


Should the gitlab API token be settable in gitlab_runner_runners?

In the code below, the GitLab URL can change but not the GitLab API token.
https://github.com/lgatellier/ansible-gitlab-runner-compose/blob/a709b50c8fbb8819b734c0fa59b3338cbca30752/tasks/single-runner.yml#L22-L23
Would it be possible to define the API token in gitlab_runner_runners as well?
Example:
# Define default GitLab API token
gitlab_runner_api_token: mysecureapitoken

# Define runners list as below
gitlab_runner_runners:
  - gitlab_url: https://my.gitlab.url
    group: my/group
    registration_token: mysecuregrouptoken
  - gitlab_url: https://other.gitlab.url
    group: foo/bar
    api_token: myotherapitoken
    registration_token: mysecuregrouptoken

Something similar to this maybe?
api_token: "{{ item.api_token | default(gitlab_runner_api_token) }}"

Maybe also add a fake gitlab_runner_api_token in defaults/main.yml to document this variable?

Hi @btravouillon,
Thanks for this suggestion !
I agree with you on this point. I think it would be logic that gitlab_url could be defined globally as a default value too.
I'll open a PR to improve this. :rocket:


In the article, it says, OATH Haardware and software tokens are only supported for MFA but not SSPR, I installed google authenticator (softwrae token)and I did reset my password leveraging SSPR.Also in the password reset page, i see mobile app or hardware token is supported.Kindly check and confirm if we can leverage OATH software code and hardware token for SSPR reset

[Enter feedback here]

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

ID: b8f14188-98ec-5c94-f408-162ee1baa076
Version Independent ID: 41ed4874-e1e6-56d3-4de4-39c024d1e06c
Content: Authentication methods and features - Azure Active Directory
Content Source: articles/active-directory/authentication/concept-authentication-methods.md
Service: active-directory
Sub-service: authentication
GitHub Login: @Justinha
Microsoft Alias: justinha

Thanks for the feedback! We are currently investigating and will update you shortly.

@priyankareddy20 Thanks for catching this! Both software and hardware OATH tokens support SSPR. The topic is corrected now.

#please-close


About toggling viewControllers

Hi,
Is there way that makes me to know when the user pressed a button on the menu that will change masterViewController?
I ask this because, I need a way to execute a HTTPRequest and then wait for it to be done right before dismissing a ViewController'. Finally dismiss the ViewController. It is because the related VC` is meant to be updating some type of data on server.
I will be very appreciated if someone helps.

A UIButton, a UITableViewCell?

There is a uibutton in table view cell but, toggling process is triggered when user tapped on the cell not button

You can intercept when the cell is selected by implementing:
didSelectRowAtIndexPath


Add an end-to-end test

Overview
In comparison with #1, the following changes were made:

Makefile was replaced with _test.go for portability (make needs special setup on Windows)
ruby-bundler sample was replaced with java-maven one. This is because I couldn't get the source code for this and upstream ruby-bundler wasn't recognised by any of the common builders (Paketo&Google reported "no buildpacks" and Heroku one couldn't start the app)

Testing

Test passes locally

CC @jromero for awareness ^


Pre-Lollipop animation is weird

When animating from burger to arrow, It looks like it's spinning, and then the burger is fading out and the arrow is fading in.
Is it possible to change this?

Could you provide a video or gif to demonstrate?

Sure.
Just please let me know when to delete the video.
Here it is:
https://drive.google.com/file/d/0B-PZZGk2vPohc3dmdUFNOU1sanM/

It looks like you are either reinitialising some part of layout or recreating it completely with animateLayoutChanges enabled. It is your layout that does the fading.
The library could not behave that way even if it wanted. It is just a Drawable with animated transformations. They behave the same way for every version since it is using the Canvas api

No, I didn't perform any animations on the layout. There is a transition between the activities, but when reaching the second activity I wait till the keyboard is shown, and only then I start the view's animation.
Also, when leaving the second activity, I first perform the animation and then really close the activity.
Not only that, but for Kitkat and below, I've disabled any transitions between activities.
Here's the relevant code:
mMaterialMenuView = (MaterialMenuView) findViewById(R.id.navButton);
mMaterialMenuView.setState(IconState.BURGER);
mMaterialMenuView.setTransformationDuration(1000);
// the next line is called after the keyboard is shown:
mMaterialMenuView.animateState(IconState.ARROW);


This doesn't.


[BUG] Response validation fails when using authentication and custom session

Checklist

[x] I checked the FAQ section of the documentation
[x] I looked for similar issues in the issue tracker
[x] I am using the latest version of Schemathesis

Describe the bug
Validating responses fails when an endpoint specifies a security parameter and a custom test client is passed as the session argument to case.call_and_validate(), such as in this example from the documentation.
To Reproduce
🚨 Mandatory 🚨: Steps to reproduce the behavior:
Running this test example with pytest should reproduce the issue:
from typing import Annotated
from fastapi import FastAPI, Security
from fastapi.security import APIKeyHeader
from starlette_testclient import TestClient
import schemathesis

app = FastAPI()

@app.get("/", responses={200: {"model": {}}, 403: {"model": {}}})
def root(api_key: Annotated[str, Security(APIKeyHeader(name="x-api-key"))]):
    return {"message": "Hello world"}

schemathesis.experimental.OPEN_API_3_1.enable()

schema = schemathesis.from_asgi("/openapi.json", app)

@schema.parametrize()
def test_api(case):
    client = TestClient(app)
    case.call_and_validate(session=client)

This gives me the following error:
FAILED tests/test_schema.py::test_api[GET /] - requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7c2e41ffa6...

This is the OpenAPI schema:
{
  "openapi": "3.1.0",
  "info": {
    "title": "FastAPI",
    "version": "0.1.0"
  },
  "paths": {
    "/": {
      "get": {
        "summary": "Root",
        "operationId": "root__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  }
}

Expected behavior
The test given above should pass
Environment
- OS: Linux
- Python version: 3.12
- Schemathesis version: 3.34.1
- Spec version: 3.1.0

Additional context
I believe the issue is in this check: https://github.com/schemathesis/schemathesis/blob/master/src/schemathesis/specs/openapi/checks.py#L351 The check is creating a requests.Session which will lead to an actual HTTP call. It should be using the specified session instead.

We have the same issue with similar code
We mitigated the issue for now by pinning schemathesis to 3.33.3

Thank you for reporting! Fixed in 3.34.2


Autotools/vpath support

closes #10
Discussion
LevelDB currently has a hand-rolled Makefile and it seems to work well, especially for build systems that do not have a shell (Windows). What the build system for LevelDB does not have is support for Autotools, specifically leveraging autconf, autoreconf, and the macros that come along with that.
LevelDB is, fundamentally, a project that should be a dependency to another project with its own build system. Many of these projects are also open-source and use Autotools. As such, those projects can easily integrate this project if, and only if, this project has at least a configure.ac file. Otherwise those projects need to hack in running "make -c" in their own Makefile.am's.
This code adds

a basic configure.ac and autogen.sh script
a basic configure script
a Makefile input file that mirrors the original Makefile, so that non-shell systems can still continue to use the Makefile

Concept ACK

I don't think that the generated configure script should be included in the pull request.
Maybe update the .gitignore?

The addition of the configure script is intentional. The rationale is consistency with secp256k1 library which includes a configure shell script. Without the configure script, parent projects would need to run autoconf or autoreconf on leveldb.

Without the configure script, parent projects would need to run autoconf or autoreconf on leveldb.

The problem with committing build-generated scripts is that when developers do run autoconf, a repository file will have changes, which is easy to inadvertently commit, resulting in merge conflicts with other developers (as well as a lot of commit noise).
(as a convenience, ./configure script is part of the tarball created with make dist but not the repository)
Also I suppose the only intended parent project here is bitcoin, which will handle calling the autoconf.

Tested ACK apart from the configure nit - see https://github.com/bitcoin/bitcoin/issues/7466#issuecomment-182408931

There is no ./configure script included in the secp256k1 repository, by the way: https://github.com/bitcoin/secp256k1 nor https://github.com/bitcoin/bitcoin/tree/master/src/secp256k1

The problem with committing build-generated scripts is that when developers do run autoconf, a repository file will have changes, which is easy to inadvertently commit, resulting in merge conflicts with other developers (as well as a lot of commit noise).

Agreed! Let me fix this so that there is no configure script and that gitignore is properly aligned to ignore the output of autoreconf.

@theuni can you take a look here please?

Hmm, I wonder if it would be simpler to just add our own simple Makefile.am here, rather than trying to pile on their stuff. I'll whip something up for comparison.

Well this is already done, and checked it works.

Pushed an alternative to https://github.com/theuni/bitcoin/commit/3b714691956e623935929e5b174eceb8ab342bcd
The benefit is that it's directly integrated into our build without the need for another configure run. I'm not married to it, but I'm not a fan of adding more complexity to what should be a pretty straightforward build.

I agree, it's a worthwhile alternative - however, please read the discussion in https://github.com/bitcoin/bitcoin/issues/7466 on how we got to this solution.
I think the advantage of your solution is that it can be maintained entirely outside of leveldb's tree (given that the .include is moved).
On the other hand this solution would be better if leveldb upstream could be convinced to switch. It's more of a modular approach.
Not wedded to either though, I just want out of tree builds to work.

@theuni I've tested your patch, but it fails on test_bitcoin and the bench.
Seems every executable now needs both $(INT_LIBLEVELDB) $(INT_LIBMEMENV) as well as $(LIBLEVELDB) $(LIBMEMENV) in its LDADD?

@laanwj I've pushed a cleaned up version here: https://github.com/theuni/bitcoin/tree/leveldb-integration. Having done that cleanly now, I do prefer it over the wrapper approach. That's not to diminish @kleetus's work, of course.
If you're ok with the approach, I'll PR it here.

@theuni Looks good to me! You probably want to pr it at bitcoin/bitcoin though, not here.

Right, I forgot the file was moved up. PRing over there.

Closing this in favor of the build system changes in Bitcoin Core.
It may still make sense to try to do this upstream.


Long term plans for Documentation

Right now PyPI supports the ability for people to upload zip files containing raw HTML that we'll then host at https://pythonhosted.org/{projectname}/. Ideally I'd like to stop being in the documentation hosting business and instead direct people to use ReadTheDocs. This was proposed before on distutils-sig however it was ultimately shot down because some people don't use Sphinx in their documentation toolchain and they want/need to be able to upload raw html.
After talking with @ericholscher this is a use case that ReadTheDocs wants to support, so I believe once RTD does, we can work on moving people over to using that instead. This issue will be about capturing what work needs done to enable such a transition.
In addition it would be great to have better integration between RTD and PyPI. Currently having your documentation hosted on PyPI gives a somewhat better link to the documentation than having that documentation in RTD does. We should prefer integrations that bias users towards using RTD and try to figure out what an ideal integration looks like. It's possible that this could be used as a model for additional integrations, both for Warehouse integrating with other services (code quality? i18n?) and for other package repositories wanting to integrate with RTD.

+1
Not sure what this would look like. I've previously thought about doing
something like:
project.pypi.readthedocs.org -- or perhaps we could continue to use a CNAME
for this and keep it top-level, so RTD would support project.pypidocs.org
or we could continue to use the existing namespace at packages.python.org/
.
I'd love to work to figure out a way to auto-build docs for packages that
are uploaded. It would be neat to have this built into the python
toolchain, similar to python setup.py test have a python setup.py doc or something. Though to make my world make sense, we'd likely just do
a Sphinx build on all markdown & rst files we found, along with
auto-generating an API reference from the python files.
On Thu, May 7, 2015 at 9:13 AM, Donald Stufft<EMAIL_ADDRESS>wrote:

Right now PyPI supports the ability for people to upload zip files
containing raw HTML that we'll then host at
https://pythonhosted.org/{projectname}/. Ideally I'd like to stop being
in the documentation hosting business and instead direct people to use
ReadTheDocs. This was proposed before on distutils-sig however it was
ultimately shot down because some people don't use Sphinx in their
documentation toolchain and they want/need to be able to upload raw html.
After talking with @ericholscher https://github.com/ericholscher this
is a use case that ReadTheDocs wants to support, so I believe once RTD
does, we can work on moving people over to using that instead. This issue
will be about capturing what work needs done to enable such a transition.
In addition it would be great to have better integration between RTD and
PyPI. Currently having your documentation hosted on PyPI gives a somewhat
better link to the documentation than having that documentation in RTD
does. We should prefer integrations that bias users towards using RTD and
try to figure out what an ideal integration looks like. It's possible that
this could be used as a model for additional integrations, both for
Warehouse integrating with other services (code quality? i18n?) and for
other package repositories wanting to integrate with RTD.
—
Reply to this email directly or view it on GitHub
https://github.com/pypa/warehouse/issues/509.

--
Eric Holscher
Maker of the internet residing in Portland, Oregon
http://ericholscher.com

+1

So, as I posted on distutils-sig here's the plan:

Implement the ability to delete documentation.
Implement the ability to add a (simple) redirect where we would essentially just send /<project>/(.*) to $REDIRECT_BASE/$1.
Implement the ability to point the documentation URL to something that isn't pythonhosted.org
Send an email out to all projects that are currently utilizing the hosted documentation telling that it is going away, and give them links to RTD and Github Pages and whatever BitBucket calls their service.
Disable documentation Uploads to PyPI with an error message that tells people the service has been discontinued.

In addition to the above steps, we'll maintain any documentaton that doesn't get deleted (and the above redirects) indefinitely. Serving static read only documentation (other than deletes) is something that we can do without much trouble or cost.
Most of that work will belong as part of PyPI legacy, but Warehouse will need:

Descriptive error on documentation upload.
Ability to delete existing documentation.
Ability to set up a redirect from pythonhosted.org to the new location.
Ability to define a specific documentation URL for a project that isn't pythonhosted.org.

+1 on this plan. GitHub Pages is great for arbitrary HTML uploads. They
even support CNAME's.
I think having a solid RTD & Pypi integration would be really cool:

Autogenerate "javadoc" style API references from the source code that is
published in the package.
Build Sphinx documentation from the RST and Markdown files that are in
the release of the package.

Optionally support a readthedocs.yml file inside the project to
configure doc building

Link these two together on our side inside of a TOCTree.

This would allow for a really tight integration with Pypi. We could then
serve these packages at either:

.pypi.readthedocs.org
.package.python.org

Or at a CNAME configurable in the YAML file.
On Wed, Jun 3, 2015 at 6:27 AM, Donald Stufft<EMAIL_ADDRESS>wrote:

So, as I posted on distutils-sig
https://mail.python.org/pipermail/distutils-sig/2015-May/026381.html
here's the plan:

Implement the ability to delete documentation.
Implement the ability to add a (simple) redirect where we would
essentially just send //(.*) to $REDIRECT_BASE/$1.
Implement the ability to point the documentation URL to something
that isn't pythonhosted.org
Send an email out to all projects that are currently utilizing the
hosted documentation telling that it is going away, and give them links to
RTD and Github Pages and whatever BitBucket calls their service.
Disable documentation Uploads to PyPI with an error message that
tells people the service has been discontinued.

In addition to the above steps, we'll maintain any documentaton that
doesn't get deleted (and the above redirects) indefinitely. Serving static
read only documentation (other than deletes) is something that we can do
without much trouble or cost.
Most of that work will belong as part of PyPI legacy, but Warehouse will
need:

Descriptive error on documentation upload.
Ability to delete existing documentation.
Ability to set up a redirect from pythonhosted.org to the new
location.
Ability to define a specific documentation URL for a project that
isn't pythonhosted.org.

—
Reply to this email directly or view it on GitHub
https://github.com/pypa/warehouse/issues/509#issuecomment-108410428.

--
Eric Holscher
Maker of the internet residing in Portland, Oregon
http://ericholscher.com

I've added the above steps as their own issues in #582 and #583 and I've already merged #581. Since there isn't a real actionable item in this issue and I don't think we need an issue to remind us we want to integrate more with RTD I'm going to go ahead and close this.

Converning the

Ability to set up a redirect from pythonhosted.org to the new location.

item, I failed to find how to do that...


OOM due to long context length with MPT-7B

I'm running into OOM while trying to run MPT-7B on a context length of >20K on 8 H100 80GB GPUs. It seems that MPT-Storywriter, which goes up to 65K context, is supported so I'm wondering if there is something wrong with the way I'm implementing this:
I use a version of the MPT-7B that was been finetuned on some internal data, referenced in model_path.
llm = LLM(model=model_path,
          max_num_batched_tokens=20000,
          block_size=32,
          gpu_memory_utilization=0.95,
          tensor_parallel_size=8,
         )

This initializes the model as
INFO 07-20 19:23:49 llm_engine.py:60] Initializing an LLM engine with config: model='/root/MPT-exps/MHS2.2.3_finetune/medmpt_coding2.2.3_ep4/', tokenizer='/root/MPT-exps/MHS2.2.3_finetune/medmpt_coding2.2.3_ep4/', tokenizer_mode=auto, dtype=torch.bfloat16, use_dummy_weights=False, download_dir=None, use_np_weights=False, tensor_parallel_size=8, seed=0)
INFO 07-20 19:27:06 llm_engine.py:131] # GPU blocks: 37085, # CPU blocks: 2048

Then, running the following gives me an OOM:
sampling_params = SamplingParams(n=1,
                                 temperature=0.95,
                                 top_p=0.9,
                                 best_of=1,
                                 use_beam_search=False,
                                 stop="<|endoftext|>",
                                 max_tokens=500,
                                )
outputs = llm.generate(example_text, sampling_params)

RayTaskError(OutOfMemoryError): ray::Worker.execute_model() (pid=575849, ip=<IP_ADDRESS>,
actor_id=ff7f49b832d6c36378376b4f01000000, repr=<vllm.worker.worker.Worker object at 0x7f0d2128b190>)
  File "/usr/lib/python3/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/vllm/worker/worker.py", line 284, in execute_model
    output = self.model(
  File "/usr/lib/python3/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/vllm/model_executor/models/mpt.py", line 233, in forward
    hidden_states = self.transformer(input_ids, positions, kv_caches,
  File "/usr/lib/python3/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/vllm/model_executor/models/mpt.py", line 201, in forward
    hidden_states = block(
  File "/usr/lib/python3/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/vllm/model_executor/models/mpt.py", line 152, in forward
    x = self.attn(
  File "/usr/lib/python3/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/vllm/model_executor/models/mpt.py", line 101, in forward
    attn_output = self.attn(q, k, v, k_cache, v_cache, input_metadata,
  File "/usr/lib/python3/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/vllm/model_executor/layers/attention.py", line 169, in forward
    self.set_attn_bias(input_metadata)
  File "/usr/lib/python3/dist-packages/vllm/model_executor/layers/attention.py", line 319, in set_attn_bias
    bias = torch.empty(
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1.61 GiB (GPU 0; 79.11 GiB total capacity; 76.06
GiB already allocated; 316.69 MiB free; 76.13 GiB reserved in total by PyTorch) If reserved memory is >> allocated
memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and
PYTORCH_CUDA_ALLOC_CONF

Want to follow up on this as I see there are a couple of bugs related to long context. Would this PR fix it: https://github.com/vllm-project/vllm/pull/555


Startup on Mac is extremely slow consistently.

Description
When starting an application with:
Logger logger = LogManager.getLogger("test");
It takes 5 seconds consistently for the first logger to initiate. Afterwards, this command can be repeated and there is no slowdown.
This makes it extremely troublesome to run tests, debug as program start time is increased by 5 seconds.
Configuration
Version: [Log4j version]
2.21.1
Operating system: [OS and version]
macOS Montery (m1 processor)
JDK: [JDK distribution and version]
openjdk-21.0.1
Reproduction
  public static void main(String[] args) {     long ts = System.currentTimeMillis();     LogManager.getLogger("test");     System.out.println(System.currentTimeMillis() - ts); // eg. 5432   }

I have tested the same with zulu-21 and openjdk-21 with an Apple M2 max.
My times are around 250-300ms. I created the attached project to test it.
Can you check with this project as well?
simpletest.zip

This is a long-known issue specific to macOS because by default, macOS does not include an entry in /etc/hosts for localhost, so the default behavior of its network stack (or at least in Java) involves DNS lookups to try to determine the hostname of the local interface. Once Java has cached the initial DNS lookup here, it doesn't resolve it again.
Simplest fix is documented in https://github.com/apache/logging-log4j2/blob/2.x/BUILDING.adoc where you can run:
printf '<IP_ADDRESS> %s\n::1 %s\n' `hostname` `hostname` | sudo tee -a /etc/hosts

I think that we should just log a warning  (which will not show up due to the default being ERROR ;-( ) if the lookup takes more than 100 ms. By comparison Tomcat logs a warning if Random() takes more than 100 ms to initialize.
This is a fairly well-known JDK characteristic (see e.g. JDK8143378) that implements InetAddress#getLocalHost() on UNIX-es as:

a super-fast gethostname call,
a slow getaddrinfo call with a AI_CANONNAME hint to retrieve the fully qualified host name (2 DNS calls) and discard the result of the reverse lookup.

On the other hand it is pretty common for server software to retrieve the FQDN of the machine, so users experiencing delays with Log4j will also experience delays in e.g. Apache HTTPD.

Back when I first tried to debug this, I had fun due to the fact that Java calls into those exact C functions, and you can't exactly debug those through the Java debugger (at least not with older Java versions; the new FFI stuff should make it debuggable). Anyways, I think it's a good idea to warn (and also to set warn as the default level).

OK so why would there be a DNS lookup like this anyway? I don't see any configuration requiring this

@grobmeier, good question!
The naive answer is "if you want to use ${hostName} in a configuration, InetAddress#getLocalHost is one of the few ways to do it in Java", but in fact I don't remember the last time I saw ${hostName} in a configuration file. We should probably move it to a lookup in 3.x.


Failed to start gauge API: Error occurred while waiting for runner process to finish.

project： git@github.com:OlcayEkin/gauge_appium.git
java -version
java version "11.0.8" 2020-07-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.8+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)
when i run : gauge run specs
The error message is as follows:
This version of gauge-java plugin does not support Java versions < 1.9
Please upgrade your Java version or use a version of gauge-java <= v0.7.4
Error occurred while waiting for runner process to finish.
Error : exit status 1
Error ----------------------------------
[Gauge]
Failed to start gauge API: Error occurred while waiting for runner process to finish.
Error : exit status 1
Get Support ----------------------------
Docs:          https://docs.gauge.org
Bugs:          https://github.com/getgauge/gauge/issues
Chat:          https://spectrum.chat/gauge
Your Environment Information -----------
windows, 1.1.1, 6e0d83f
html-report (4.0.11), java (0.7.8), js (2.3.11), screenshot (0.0.1), ts (0.0.4)
pom.xml:
pom.xml.zip

Idea JDK selection error, switch to JDK11 is normal


[Conductor] Add documentation to individual files

This PR adds documentation with context to the files in conductor, written by the original creator and maintainer: @christopherfujino.
The comments will be cleaned up and deleted over time as we continue to refactor the tool.

Thanks, I wasn't aware of the suggestions you made.  Learning experience.

@christopherfujino do you know why the linux tests are failing even though only comments were added?

@christopherfujino do you know why the linux tests are failing even though only comments were added?

analysis is correcting my diction:
For your convenience, the error messages reported above are repeated here:
  ð���  ð���
Avoid the word "simply" in documentation. See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#use-the-passive-voice-recommend-do-not-require-never-say-things-are-simple for details.
In many cases thes words can be omitted without loss of generality; in other cases it may require a bit of rewording to avoid implying that the task is simple.
Similarly, avoid using "note:" or the phrase "note that". See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#avoid-empty-prose for details.
/b/s/w/ir/x/w/Ã� flutter sdk/dev/conductor/core/lib/src/stdio.dart:11: Found use of the taboo word "simply" in documentation string.


Clarify Facebook bridges status

The fact that there were two bridges and one is deprecated should be
made more clear.
This preserves all existing URL.
This also updates all URL to secure HTTPS versions.

I was using the legacy Facebook bridge myself, since the new one was using insecure URI.

Both bridges work as well as each other. As I understand it, FB2 was created to fix a captcha issue with the original which now seems not to be a problem anymore.
I'm currently using the original which is working fine. Keeping FB2 as a backup bridge rather than deprecating the original seems reasonable to me.

https://github.com/RSS-Bridge/rss-bridge/issues/1188#issuecomment-508914802
It seems the original Facebook bridge still works, but it's not being maintained.

I added a PR to fix the issue reported there (remove relative times/date) which has been merged.
In my opinion it's better to maintain the bridge that pulls from the more "standard" url www.facebook.com rather than touch.facebook.com. Of course I'll leave that decision to the project maintainers.

I agree, let's keep both bridges. I reworded this to remove the "deprecated" references, but still distinguish between both bridges more easily.
This also updates all URL to HTTPS.

Sounds good to me.
Line 295 states "v2", perhaps it should be "Touch Site" for consistency?

#1283 someone is confused about having two Facebook bridges.

If one is to be dropped, I suggest dropping FB2. We should also note that FacebookBridge is enabled by default upon installation, so I would suggest it is still working well for the vast majority (including myself).

The PR just clarifies the names of the bridges and forces HTTPS urls everywhere.
There's no need to drop working bridges, we should just have better names than "Facebook" and "F2", so that bug reports are clearer.

It was mooted before by @LogMANOriginal before that the two Facebook bridges should be consolidated into one somehow. I agree with the person you referenced that the situation is confusing, and does raise the prospect of people seeking Facebook Bridge support when in fact they are using FB2.
Even when renamed, we still run the possibility of people referring to any bridge that accesses Facebook as "Facebook Bridge".

Very interesting discussion. A single Facebook bridge would certainly reduce confusion, but that bridge would also have to pull from multiple sources to make it work for everyone. Certainly possible, but only if someone is willing to spend time on it.
This is not something I'd be willing to spend time on right now, especially considering that I don't use Facebook (as does @teromene IIRC). Let me know if anyone of you is interested in taking on this task. Unfortunately there are no statistics, but chances are high that the Facebook bridges are the most utilized bridges in the repository.
Anyway, this PR looks good to me so I'm going to merge.

Merging Facebook and FB2 not only sounds like a messy task, but the complexity of such code sounds like a recipe for headaches.
In my low-volume use case Facebook does not trip any limits. If FB and FB2 can handle equal volumes of traffic without triggering a captcha, the need for FB2 seems questionable.
P.S. Good to see you again @LogMANOriginal 👍 I noticed you'd not posted for a while.

If FB and FB2 can handle equal volumes of traffic without triggering a captcha, the need for FB2 seems questionable.

I'll leave that for @teromene to decide. Don't hesitate to open an issue for it.

P.S. Good to see you again @LogMANOriginal +1 I noticed you'd not posted for a while.

Thanks, I'm happy to be back as well :grin:


Added AME shielding deconstruction

As title suggests. Players have been having issues placing AME in the wrong spot and can't break it down so made it so they can weld it back down to a part.
:cl:

tweak: Antimatter Engine Shielding can now be deconstructed with a welder.

Not much clue what the error is to be honest so will look at this again over / after christmas break.

Wasn't keen on doing the same for the core as I don't know how easy we want it to be to take out power generation and 1 use of a welder seems too easy when previously they'd have to sabotage. Will leave that up to debate in future if we want to go full construction for AME.

ideally i'd like there to only be a 20%-ish chance of actually being able to reclaim the ame part, but should be good for now.
that being said, i see no removal here of the original way of constructing the shielding, with a multitool. is there a reason to keep it?

This was meant as a stop gap for people miss placing the shielding and complaining they have to destroy it. This is for deconstruction only rather than construction and won't appear in the construction menu.
I mentioned moving the full construction to machine graphs but some people were opposed to that, but I can if need be or in future.

ideally i'd like there to only be a 20%-ish chance of actually being able to reclaim the ame part, but should be good for now.
that being said, i see no removal here of the original way of constructing the shielding, with a multitool. is there a reason to keep it?

This was meant as a stop gap for people miss placing the shielding and complaining they have to destroy it. This is for deconstruction only rather than construction and won't appear in the construction menu.
I mentioned moving the full construction to machine graphs but some people were opposed to that, but I can if need be or in future.

Happy for this to be canned if it's not desirable and we would rather go construction route or otherwise.


Most networks are asymmetric

So you really need to emulate 20Mbit down/5 up, 50 down/10 up, 8mbit down 1up. Etc.

Agreed, this would be ideal.

At current, it's a slight more strange (at least on Linux thus far, I haven't delved into ipfw quite yet) to affect ingress traffic as it is egress traffic using traffic control. There's ways to do it I have not yet researched, but will be soon after I've finished other work. This is on my personal todo list with regard to this project.
There's something to be said for possibly ditching use of traffic control (on linux) and doing everything in pure iptables rules which might solve this entirely, I still need to look into the ramifications of what would be lost by that switch. Perhaps @tylertreat might know this answer?

Yeah, using iptables on Linux might be a better long-term solution. I went with traffic control because it was simple and did just what I needed for the initial iteration. Since this is a program meant to simplify these tools, it would be nice to expose some really interesting/useful features out through a simple, easy-to-use interface which is as cross-platform as possible. That's really my goal for it, anyway.

You might already have seen this already, but there is a way to use an IFB to "convert ingress traffic to egress" so that tc can be used: https://serverfault.com/a/386791
A limitation is that one IFB is needed per interface, and a fixed number of IFBs are allocated statically at modprobe time. So if the number of interfaces varies, then this might be difficult to use.


Add basic pre-flight checks and setup (Windows / Hyper-V)

Depends on: #9

This needs a tighter integration between the pre-flight check failure and the setup code (for each of the steps).

Hypervisor setup: Hyper-V

Fixed in #364


bulk operations from TPT

see if we can generalize the work TPT has done and incorporate that into the plugin

CC @johnsonpaul1014
Yeah, some bulk operations on the List Posts page would be very useful.  Off the top of my head:

Dropdown/links to filter Posts based on "Pushed to PMP", "Pulled from PMP", and "Not in PMP"
Bulk action to "Push to PMP"
Bulk action to "Delete from PMP"

Somewhat related: #63


Make getting vanilla data, command tree, and config lazy

:tada: This issue has been resolved in version 2.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Bump jshint to 2.6.2 for tagged template support.

See: https://github.com/jshint/jshint/releases/tag/2.6.1 :)

Awesome, thank you!

Published in v0.5.5.


_cftime.so throws error 'undefined symbol: __intel_sse2_strlen'

On one of our computing clusters, we have intel python (i.e., python compiled with intel compilers and MKL) installed. I wanted to install python-netcdf on that cluster, so I downloaded cftime and netCDF4 and compiled them with the standard python setup.py install after setting the environment variables HDF5_DIR, NETCDF4_DIR and SZIP_DIR appropriately. When I try to import netCDF4 from python, I get the error
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-0a92aca04109> in <module>()
----> 1 from netCDF4 import Dataset

/work/noaa/co2/sbasu/packages/python-modules/intelpython-2019.5/lib/python2.7/site-packages/netCDF4-1.5.4-py2.7-linux-x86_64.egg/netCDF4/__init__.py in <module>()

/work/noaa/co2/sbasu/packages/python-modules/intelpython-2019.5/lib/python2.7/site-packages/netCDF4-1.5.4-py2.7-linux-x86_64.egg/netCDF4/_netCDF4.py in <module>()

/work/noaa/co2/sbasu/packages/python-modules/intelpython-2019.5/lib/python2.7/site-packages/netCDF4-1.5.4-py2.7-linux-x86_64.egg/netCDF4/_netCDF4.py in __bootstrap__()

netCDF4/_netCDF4.pyx in init netCDF4._netCDF4()

/work/noaa/co2/sbasu/packages/python-modules/intelpython-2019.5/lib/python2.7/site-packages/cftime/__init__.py in <module>()
----> 1 from ._cftime import utime, JulianDayFromDate, DateFromJulianDay, UNIT_CONVERSION_FACTORS
      2 from ._cftime import _parse_date, date2index, time2index
      3 from ._cftime import datetime, real_datetime
      4 from ._cftime import DatetimeNoLeap, DatetimeAllLeap, Datetime360Day, DatetimeJulian, \
      5                          DatetimeGregorian, DatetimeProlepticGregorian

ImportError: /work/noaa/co2/sbasu/packages/python-modules/intelpython-2019.5/lib/python2.7/site-packages/cftime/_cftime.so: undefined symbol: __intel_sse2_strlen

Googling told me that this was because even though I was using intel python, my cftime was still being compiled with gcc, thereby not linking all the needed libraries. So I tried to manually install cftime by downloading cftime and issuing
CC=icc python setup.py install --prefix=/work/noaa/co2/sbasu/packages/python-modules/intelpython-2019.5

And yet, in the compile step, I could see the line being executed:
gcc -pthread -shared -Wl,-z,noexecstack,-z,relro,-z,now -L/apps/intel-2019.5/intel-2019.5/intelpython2/lib -Wl,-rpath=/apps/intel-2019.5/intel-2019.5/intelpython2/lib,--no-as-needed build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.2.1/cftime/_cftime.o -L/apps/intel-2019.5/intel-2019.5/intelpython2/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/cftime/_cftime.so

Sure enough, trying to import cftime gave me the same error as before. Finally, I manually compiled _cftime.so with icc and copied it over,
icc -pthread -shared -Wl,-z,noexecstack,-z,relro,-z,now -L/apps/intel-2019.5/intel-2019.5/intelpython2/lib -Wl,-rpath=/apps/intel-2019.5/intel-2019.5/intelpython2/lib,--no-as-needed build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.2.1/cftime/_cftime.o -L/apps/intel-2019.5/intel-2019.5/intelpython2/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/cftime/_cftime.so
cp build/lib.linux-x86_64-2.7/cftime/_cftime.so /work/noaa/co2/sbasu/packages/python-modules/intelpython-2019.5/lib/python2.7/site-packages/cftime/_cftime.so

and now I could import cftime without errors. So I found a fix, but I feel like there should be a less hacky way of ensuring that cftime and netCDF4 get compiled with icc when compiling for intel python.

Update (maybe this should be filed elsewhere): I noticed that netCDF4 has the same issue, i.e., _netCDF4.so is compiled with gcc even when I specify CC=icc in the setup.py step. However, that can't be fixed as easily, because even if I compile _netCDF4.so manually with icc, the step to build a new egg, python setup.py bdist_egg, recompiles _netCDF4.so with gcc.

Update (maybe this should be filed elsewhere): I noticed that netCDF4 has the same issue, i.e., _netCDF4.so is compiled with gcc even when I specify CC=icc in the setup.py step. However, that can't be fixed as easily, because even if I compile _netCDF4.so manually with icc, the step to build a new egg, python setup.py bdist_egg, recompiles _netCDF4.so with gcc.

Maybe this will help?

Maybe this will help?

Compiling my own python would solve this, but I still think the problem is with the cftime and netCDF4 packages, unless you can explain to me why it isn't. Basically, when I try to build cftime, this is what happens:
$ CC=icc python setup.py build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cftime
copying cftime/__init__.py -> build/lib.linux-x86_64-2.7/cftime
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'cftime._cftime' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/work
creating build/temp.linux-x86_64-2.7/work/noaa
creating build/temp.linux-x86_64-2.7/work/noaa/co2
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.3.0
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime
icc -fno-strict-aliasing -Wformat -Wformat-security -fstack-protector-all -D_FORTIFY_SOURCE=2 -fpic -fPIC -O3 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include -I/apps/intel-2019.5/intel-2019.5/intelpython2/include/python2.7 -c /work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.c -o build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.o
In file included from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h(12),
                 from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h(4),
                 from /work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.c(617):
/apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h(84): warning #2650: attributes ignored here
                      NPY_CHAR NPY_ATTR_DEPRECATE("Use NPY_STRING"),
                               ^

In file included from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h(1824),
                 from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h(12),
                 from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h(4),
                 from /work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.c(617):
/apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h(17): warning #1224: #warning directive: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
  #warning "Using deprecated NumPy API, disable it with " \
   ^

gcc -pthread -shared -Wl,-z,noexecstack,-z,relro,-z,now -L/apps/intel-2019.5/intel-2019.5/intelpython2/lib -Wl,-rpath=/apps/intel-2019.5/intel-2019.5/intelpython2/lib,--no-as-needed build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.o -L/apps/intel-2019.5/intel-2019.5/intelpython2/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/cftime/_cftime.so

The issue is, _cftime.so is still being compiled with gcc instead of icc. Why is that and who controls that? Why isn't the build process using the value of CC?

Compiling my own python would solve this, but I still think the problem is with the cftime and netCDF4 packages, unless you can explain to me why it isn't. Basically, when I try to build cftime, this is what happens:
$ CC=icc python setup.py build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cftime
copying cftime/__init__.py -> build/lib.linux-x86_64-2.7/cftime
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'cftime._cftime' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/work
creating build/temp.linux-x86_64-2.7/work/noaa
creating build/temp.linux-x86_64-2.7/work/noaa/co2
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.3.0
creating build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime
icc -fno-strict-aliasing -Wformat -Wformat-security -fstack-protector-all -D_FORTIFY_SOURCE=2 -fpic -fPIC -O3 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include -I/apps/intel-2019.5/intel-2019.5/intelpython2/include/python2.7 -c /work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.c -o build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.o
In file included from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h(12),
                 from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h(4),
                 from /work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.c(617):
/apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h(84): warning #2650: attributes ignored here
                      NPY_CHAR NPY_ATTR_DEPRECATE("Use NPY_STRING"),
                               ^

In file included from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h(1824),
                 from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h(12),
                 from /apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h(4),
                 from /work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.c(617):
/apps/intel-2019.5/intel-2019.5/intelpython2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h(17): warning #1224: #warning directive: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
  #warning "Using deprecated NumPy API, disable it with " \
   ^

gcc -pthread -shared -Wl,-z,noexecstack,-z,relro,-z,now -L/apps/intel-2019.5/intel-2019.5/intelpython2/lib -Wl,-rpath=/apps/intel-2019.5/intel-2019.5/intelpython2/lib,--no-as-needed build/temp.linux-x86_64-2.7/work/noaa/co2/sbasu/packages/sources/cftime-1.3.0/cftime/_cftime.o -L/apps/intel-2019.5/intel-2019.5/intelpython2/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/cftime/_cftime.so

The issue is, _cftime.so is still being compiled with gcc instead of icc. Why is that and who controls that? Why isn't the build process using the value of CC?

the cftime package doesn't control what compiler is used, distutils does.  It looks like icc is being used to compile the c extension, but gcc is being used as a linker to create the shared object.  I think you need to set LDSHARED to 'icc-shared' (see https://stackoverflow.com/questions/37905210/how-to-override-pythons-distutils-gcc-linker-with-icc)

the cftime package doesn't control what compiler is used, distutils does.  It looks like icc is being used to compile the c extension, but gcc is being used as a linker to create the shared object.  I think you need to set LDSHARED to 'icc-shared' (see https://stackoverflow.com/questions/37905210/how-to-override-pythons-distutils-gcc-linker-with-icc)

@jswhit Thanks, that fixed it! I had worked out that the trouble was that gcc was still being used as the linker, but did not know how to change it.

@jswhit Thanks, that fixed it! I had worked out that the trouble was that gcc was still being used as the linker, but did not know how to change it.


bug: documentation is outdated but allegedly current

Describe the bug
I think we agreed that https://docs.kcp.io/kcp should have the capability to hold docs for multiple releases, and the existence of the "Releases" menu looks like an attempt to realize that.  But:

there is only one choice available now, "main", and
the documentation there is for older releases.

See the attached screenshot.

I understand that it will take some time to update the documentation for the current release.  As we work through that process, it would probably be less confusing if there were at least two choices under the "Releases" menu, one getting updated for the current truth and one preserving the existing documentation (seems a shame to simply discard what has been written).
Steps To Reproduce

Try to follow the documented steps with the currrent release

Expected Behaviour
See above.
Additional Context
No response

/cc @pdettori

Issue #2615 mentions some ways in which the current documentation is not accurate.
There are also changes in workspace naming since v0.10.0, for another example.

Issue #2597 also mentions changes needed.

Not quite fixed yet
/reopen

We now have multiple versions!