Crashes browser EVERYTIME

Every single time I try to use the extension, it crashes browser.

@mikeerickson can I just check that you are actually using THIS extension? There are two with the same name and I had the same problem with the other one.
Mine (by Goran Gligorin): https://chrome.google.com/webstore/detail/save-to-omnifocus/gkjcjolgbgobjdmnocfmojklgpapdnff
The one that crashed my browser (by David Xie): https://chrome.google.com/webstore/detail/save-to-omnifocus/cjbckbkkecemddpbcmcpjcdhgkchacad

Yes, I have confirmed it is your extension.  I just removed the extension and tried again and same results.

I tried to do some debugging (not easy) any console I had to script causes the plugin to be invalid (thinking some checksum being done by browser)

I have not done any extension work, but know JavaScript so if there are any tips you can offer as it relate to debugging extensions, I am willing to help

This is my first extension as well and thank you very much for offering to help.
Can you provide some more info on what you were doing before it crashed? Did you use the right-click menu to save a page or to save a link? Or did you use the extension button in the top right?
Can you also provide the version of you browser and OS? I'm on the latest Chrome on MacOS Catalina and it works fine for me.
Oh, and also the version of OmniFocus might come in handy.
As far as debugging goes, first try enabling developer mode in the top right corner of chrome://extensions. Then go to the card for this extension and click on the link under the ID (the text might be slightly different):
.
If that doesn't work you can try cloning this repo and using the "Load unpacked" button in top left of chrome://extensions to load in the folder where you cloned the repo to.

Can you provide some more info on what you were doing before it crashed? Did you use the right-click menu to save a page or to save a link? Or did you use the extension button in the top right?

I am using the icon in top right.  Upon clicking button, it just immediately crashes.

Can you also provide the version of you browser and OS? I'm on the latest Chrome on MacOS Catalina and it works fine for > me. Oh, and also the version of OmniFocus might come in handy.

Here are all the various versions

macOS Catalina 10.14.5
Chrome Version 84.0.4147.89 (Official Build) (64-bit)
OmniFocus 3.9.1 (v144.4.0)

As far as debugging goes, first try enabling developer mode in the top right corner of chrome://extensions.
Then go to the card for this extension and click on the link under the ID (the text might be slightly different):

Off to do some debugging, hopefully I can get it running and debug

@gligoran Well, I have debugged as best as I can, but it still crashes.  The crash occurs in this command, basically the last piece of the extension.
document.body.insertAdjacentHTML('afterend', `<iframe src="${url}" style="display:none" />`);

I have verified that body is valid (cant really be invalid) but it still crashes
The following returns true so we can safely assume the method should work
document.body.hasOwnProperty('insertAdjacentHTML');  // <-- true

Further, I decided to try this with Microsoft Edge (which supports Chrome Extensions) and it crashed as well (which doesn't surprise me seeing as it uses Chromium under the hood)
I wish I could provide more assistance, but I am stumped at this point.
I have moved to use PopClip which has a functional OmniFocus plugin so I have a solution, but i would really like to use the Chrome extension.
One more piece, Firefox has an extension which works fine. Their extension is quite a bit more code, not sure what portion of it is related to Firefox extension boilerplate.
Let me know if you have any further questions, or you are able to get it working.
Regards,
Mike

@mikeerickson I created a PR that attempts to fix this issue: https://github.com/gligoran/save-to-omnifocus/pull/2.
Could you pull the branch fix-chrome-crash and load the extension from the folder?

OK, I have tried the new build and while it sort of works, when I click the icon, it opens a new chrome tab with the following

That's a know issue. There used to be a checkbox on that popup that allowed you to remember you choice, but it was removed with Chrome 77 as there was no way to change it.
I found a way to make that pop-up go away, by adding the omnifocus:// protocol to the `URLWhitelist via this command:
defaults write com.google.Chrome URLWhitelist -array-add 'omnifocus://*'

Once added you can see it in chrome://policy/.

@gligoran Winner, winner, chicken dinner!
After adding omnifocus:// to the chrome policy, things are working now!
Let me know when you have pushed an update to the store and I will install the fix.  Until then, I will use what I have right now.

@mikeerickson The fixed version (1.0.2) should be out now.


data.frame wrappers and converters

I had a quick look through the current repo, and it doesn't seem like we have an explicit handling for data frames.
I quickly tested it using:
let df = R!("iris");
dbg!(df);

Ok(
    r!(List::from_pairs(
        Zip {
            a: ["Sepal.Length", "Sepal.Width", "Petal.Length", "Petal.Width", "Species"],
            b: [r!([...]), r!([...]), r!([...]), r!([...]) r!([...])]
        }
    )).set_class(["data.frame"]
)

So I guess we're treating it as an R list of vectors, which is pretty reasonable.
Two thoughts though:

Firstly, I'm wondering if we could use the guaranteed properties of a data frame to simplify this conversion. For example, names are guaranteed to be unique, so we could losslessly convert to a hashmap
Secondly, I've been happily using Polars as my Rust data frame library. I'm wondering if there is interest in a feature-gated conversion between Polars and R data frames, in the same way we are doing for ndarray

I don't exactly understand what the specific request/suggestion is. Could you be more specific? What exactly is the feature that is missing? And if there is more than one, maybe open a separate issue for each?

I'm really not sure how to make this clearer:

Can we make the default R type for a data frame be a hash map?
Can I write a wrapper class that converts an R data.frame into a Polars DataFrame?

Can we make the default R type for a data frame be a hash map?

Do you mean Rust type? And wouldn't it make more sense to write an abstract wrapper and then leave how the wrapper stores the data as an implementation detail?

Can I write a wrapper class that converts an R data.frame into a Polars DataFrame?

Sure, but note that this entirely separate from your point one and thus deserves a second issue.

Do you mean Rust type? And wouldn't it make more sense to write an abstract wrapper and then leave how the wrapper stores the data as an implementation detail?

Yes I meant Rust. Maybe you're right, but I vaguely remember there being discussion about how users have to manually convert to hash map because it's normally a lossy conversion.

Sure, but note that this entirely separate from your point one and thus deserves a second issue.

Okay, I'll create a new issue.

In retrospect this is probably such a niche request that's satisfied well enough either by the existing List conversion or by #331.


Intermittent failure in test_multi_join()

The test test_multi_join() will intermittently fail, although it can take a large number of runs to see this. Running the following script:
#!/bin/bash
set -e

for i in `seq 5000`; do
    echo ==================== $i ====================
    cargo test -- multi_join;
done

will eventually produce the following error:
running 1 test
test test::test_multi_join ... FAILED

failures:

---- test::test_multi_join stdout ----
thread 'test::test_multi_join' panicked at src/lib.rs:1111:9:
assertion `left == right` failed
  left: Ok(0)
 right: Err(Empty)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    test::test_multi_join

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 20 filtered out; finished in 0.00s

error: test failed, to rerun pass `--lib`

Test output with the debugging uncommented:
running 1 test
p0: 0
p0: 1
p0: 2
p0: 3
p0: 4
p0: 5
p0: 6
p0: 7
p1: 0 -=- ThreadPool { name: Some("multi join pool0"), queued_count: 0, active_count: 0, max_count: 4 }
p1: send(0)
p1: 1 -=- ThreadPool { name: Some("multi join pool0"), queued_count: 0, active_count: 0, max_count: 4 }
p1: send(1)
p1: 2 -=- ThreadPool { name: Some("multi join pool0"), queued_count: 0, active_count: 0, max_count: 4 }
p1: send(2)
p1: 3 -=- ThreadPool { name: Some("multi join pool0"), queued_count: 0, active_count: 0, max_count: 4 }
p1: send(3)
p1: 4 -=- ThreadPool { name: Some("multi join pool0"), queued_count: 0, active_count: 0, max_count: 4 }
p1: 5 -=- ThreadPool { name: Some("multi join pool0"), queued_count: 0, active_count: 0, max_count: 4 }
p1: send(4)
p1: send(5)
p1: 6 -=- ThreadPool { name: Some("multi join pool0"), queued_count: 0, active_count: 0, max_count: 4 }
p1: 7 -=- ThreadPool { name: Some("multi join pool0"), queued_count: 0, active_count: 0, max_count: 4 }
p1: send(6)
p1: send(7)
test test::test_multi_join ... FAILED

failures:

---- test::test_multi_join stdout ----
thread 'test::test_multi_join' panicked at src/lib.rs:1111:9:
assertion `left == right` failed
  left: Ok(0)
 right: Err(Empty)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    test::test_multi_join

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 20 filtered out; finished in 0.00s

error: test failed, to rerun pass `--lib`


Add support for FIDO2 credential metadata

The SimpleWebAuthn library does not seem to be pulling metadata about a passkey. Here are the instructions for enabling metadata support.

Metadata isn't being pulled because most of the authenticators that have been used in testing (eg. Apple iCloud Keychain, Chromium, 1Password) are not officially registered in the FIDO Alliance MDS. Yubikey devices are registered, so they actually work.
An alternative approach here would be to pull from a different source that contains both the MDS data as well as other authenticators that have yet to go through the registration process. The passkeydeveloper/passkey-authenticator-aaguids Github project helps with this problem by collecting AAGUIDs for all known devices. They've conveniently compiled a combined list of authenticators here:
https://raw.githubusercontent.com/passkeydeveloper/passkey-authenticator-aaguids/main/combined_aaguid.json
using a subset of data that's ideal for UI display:
{
  "ea9b8d66-4d01-1d21-3ce4-b6b48cb575d4":
    {
      "name": "Google Password Manager",
      "icon_dark": "data:image/svg+xml;base64,...",
      "icon_light": "data:image/svg+xml;base64,..."
    },
  ...
}


Office-Addin-Dev-Settings not forcing IE on BetaChannel Word

Expected behavior
As per the documentation here (https://docs.microsoft.com/en-us/office/dev/add-ins/testing/ie-11-testing), I expected that when using the BetaChannel Word and running npx office-addin-dev-settings webview manifest.xml ie that after reloading Word (or restarting Windows), that my add-in would be loaded in an IE browser.
Current behavior
In lieu of being run in IE, the add-in is run in Microsoft Edge, and when I delete Edge Webview2 from my machine, my add-in runs in Edge Legacy. It ignores the registry key (confirmed it is there, and my add-in ID is correct) and just uses the latest version of Edge.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.

Install Office using ODT with the instructions here (Beta Channel): https://insider.office.com/en-us/business/deploy/windows/office-deployment-tool
Run npx office-addin-dev-settings webview manifest.xml ie
Restart Windows (or not)
Check the runtime inside the running add-in

Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Operating System: Windows 10 Pro (10.0.19043)
Node version: 16.13.1
Office version: 2112 (Build 14718.20000) - Beta Channel

Note: My workaround was to install a version of Word that is only IE11 (as per the above website).

What are you specifically doing to reload word?

@millerds Quitting and re-opening Word, and/or full OS restart

It sounds like you are trying to use Word generally instead for Office Add-in development.  The tool is designed for development scenarios where you have an add-in project you are trying to sideload and test.  It sets the webview for a specific add-in (generally the project you are sideload) and not add-ins in general.

That's the exact scenario I'm in.
I'm building an add-in, trying to test it out in IE11 - as per the documentation, and the CLI version does not select IE11 for the add-in I'm developing.

How are you loading the add-in in Word?  What version of office-addin-debuggin and office-addin-scripts packages do you have installed?
When I follow the instructions with current project it works so there is something different about our environments or how we're going about our configuration and launching.

Are you still looking at this @sureshjoshi?

Nah, I've put the kibosh on IE11 - it was only needed because AppSource required IE11 testing.


Update tooling to use Eslint and Rollup

Welcome to the future.

This resolves #140

gulp test-browser isn't working.  After running it you should be able to run runner.html


Windows fixes for 3 0 0

When a master ACL is set on the cluster, the service reload requires the ACL token; this is now added to the Windows service as well.
I've added Windows 2016 to the testing suite, as well as using Matt Wrock's Vagrant boxes as the default for Windows. This means that developers aren't stuck with the choices of rolling their own Windows boxes or skipping testing on Windows.

Most of the food critic failures are in code not touched by this PR

Codecov Report

Merging #452 into master will increase coverage by 2.32%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master     #452      +/-   ##
==========================================
+ Coverage   62.11%   64.44%   +2.32%
==========================================
  Files           7        7
  Lines         359      360       +1
==========================================
+ Hits          223      232       +9
+ Misses        136      128       -8

Impacted Files
Coverage Δ

libraries/consul_service_windows.rb
22.95% <0%> (ø)
:arrow_up:

libraries/consul_service.rb
57.14% <100%> (+0.89%)
:arrow_up:

libraries/consul_execute.rb
55% <0%> (-45%)
:arrow_down:

libraries/consul_definition.rb
91.66% <0%> (+47.22%)
:arrow_up:

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 a552ae7...5b929cb. Read the comment docs.

Lol, coverage went down when I added tests

@legal90, any chance you could take a look at this? It's blocking ACL use on Windows.

@gdavison Thank you! LGTM


charts are not correctly hidden after host change

steps to reproduce:

enter a working hostname
wait for charts to appear
change hostname to an invalid one
charts are just pushed down instead of vanishing

I think this is fixed with a4ba2d255e0918459b281a24b85bd97e6f4f09de


"Something went wrong: The version of the Google Play services installed on this device is not authentic"

I'm getting this error with the latest release of YASNAC
With YASNAC v1.1.3, I was getting "Requires Google Play Services v13.0 and above" error, even though my Google Play services is v22
Device: Pixel 2 XL
OS: Lineage OS 18.1 based on Android 11 (XDA)

Duplicate #22

I fixed it by installing YASNAC from Play store


It is very inconvenient to modify the Zorro component style through CSS files.

What problem does this feature solve?
In the angular-cli configuration, when webpack is compiled, the CSS selector I write is added an attribute selection (for example: _ngcontent-c1), and the Zorro component's label has not be added, which causes my CSS selector can not select the components in the Zorro, so that the style of the Zorro component can not be changed conveniently.
  <div class="table-wrap">
  <!-- My code will be converted to the following format -->
  <div _ngcontent-c1="" class="table-wrap">

  <!-- But some Zorro tags will not be converted in this way, like this -->
  <thead class="ant-table-thead ng-star-inserted">

What does the proposed API look like?
Zorro components,  like the HTML tags written by myeself, are added Angular attributes, so that my CSS can choose the tags correctly.

I'm not good at English. Please forgive me.

https://angular.cn/guide/component-styles#inspecting-generated-css

I saw the official website explained, thank you!
But some component labels of Zorro will not be added to these attributes. Why?

some components in ng-zorro-antd are compiled, transformed or removed after view init.


More breadcrumbs between examples and templates

I was looking for the example OpenAI chat app and couldn't find it. https://github.com/posit-dev/py-shiny/blob/main/examples/chat/playground/app.py#L6 even says it should be there. Looking at git history, I discovered that it was moved to the templates inside the package.
As a user, it's not obvious what the difference between examples and templates are. (Is there one?) It would be nice to have more "see also" comments in the examples and templates--maybe that's only an issue for the chat ones because the other examples are self-contained and don't need to reference each other. At a minimum it would be good to update the code comments to point to the right place.
Related: https://github.com/posit-dev/py-shiny/issues/1671

For context, examples live only in the repo and aren't bundled in the package; the templates on the other hand are part of the shiny package and are available via shiny create, which now includes a "Generative AI templates..." menu item (happened in #1631).
With the latest version of shiny, you can now run the following to get started with the OpenAI chat app
shiny create --template chat-ai-openai


auto dismiss if the detected country has no cookie law

Fixes #332
These extra options ensure hooks are fired and the consent cookie is set, avoiding geo lookups on subsequent requests.
If merged, it might be nice to change the onStatusChange docs to include something like:

Also called if the detected country has no cookie laws.

I don't fully agree with the use of autoDismiss because it is setting the 'dismiss' value for the user if they are not under cookie laws. This value will still be honored as if it was the users explicit choice should they move to a location where they would be protected by cookie laws.
To cover this case, I'm using a second cookie that stores if the user is in a region with cookie laws. This allows for checking if the user should be protected or not before even checking their explicit choice.
The end result is two cookies that can be checked directly by anything so long as it is under the domain (useful for iframed apps that cannot recieve CC directly) and a popup that honors the users location without stomping out their actual preference.


refactor: odp graphql query

Summary

Modify odp graphql query to utilize graphql variables.

Allows the query itself to be separate from user provided data.
Test plan

all existing tests pass

Ticket

FSSDK-8477

One more suggestion. Can we clean up these names for consistency?
odp_events_api_manager -> odp_event_api_manager
odp_segments_api_manager -> odp_segment_api_manager


python3.pkgs.textual: 0.23.0 -> 0.24.1

Diff: https://github.com/Textualize/textual/compare/refs/tags/v0.23.0...v0.24.1
Changelog: https://github.com/Textualize/textual/releases/tag/v0.24.1
Description of changes

Things done

Built on platform(s)

[x] 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

[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 231865 run on x86_64-linux 1

6 packages built:

dooit
dooit.dist
python310Packages.textual
python310Packages.textual.dist
python311Packages.textual
python311Packages.textual.dist

@ofborg build python310.pkgs.textual


Use domain event to generate application reports

This updates the ApplicationEntityReportRow to use the domain events, rather than the actual entities to generate the reports. This simplifies the report generator considerably, and also allows us to get the information as a point in time report, rather than us having to get data (especially data from external services) at the point the application is generated.
Rather than creating the domain events manually in test, I’ve updated the ApplicationReportsTest to be more like an end to end test, so we submit applications, assess them and go through the bookings process like an actual user, so the domain events get generated in the backend. This way, if the implementation of the domain events changes in any way, these tests will fail and alert us to the fact that something has changed.
I’ve removed the ApplicationReportGenerator unit test too now, as the integration test already covers this pretty well, and the implementation on the generator is vastly simplified now.

 Application report tweaks


Icon inside a textfield

Hello,
I try to set an icon inside a textfield
In the material-components-web com official documentation, it's supported but how to do it with react-mdc-web ?
https://github.com/material-components/material-components-web/blob/master/demos/textfield.html
The code below do the job

             event             <input type="text" id="tf-box-leading" class="mdc-textfield__input custom-textfield-input">             Your name

Hi @ataliadvanstep , sorry it wasn't implemented. Will be available in next release in few days

cool !! waiting for it :-)

On Sun, Dec 3, 2017 at 9:21 PM, Andrey Yaroshenko<EMAIL_ADDRESS>wrote:

Hi @ataliadvanstep https://github.com/ataliadvanstep , sorry it wasn't
implemented. Will be available in next release in few days
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kradio3/react-mdc-web/issues/50#issuecomment-348811400,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZEcTKj2rszZP5NSrQv9dcJFMIaS8DoBks5s8wLigaJpZM4P2irW
.

Released
https://kradio3.github.io/react-mdc-web/components/text_field/


Improves sprite click detection

About the PR
Improves sprite detection as code was treating layers with different direction offsets the same way.
Fixes vaulting not working sometimes.

 Before
https://user-images.githubusercontent.com/12466334/109719831-d7ad2600-7b6e-11eb-84bf-87faa2a2e21d.mp4

 After
https://user-images.githubusercontent.com/12466334/109719827-d7148f80-7b6e-11eb-8acd-def96c743a86.mp4

 Before
https://user-images.githubusercontent.com/12466334/109720847-37580100-7b70-11eb-9dfe-55b604ae08e3.mp4

 After
https://user-images.githubusercontent.com/12466334/109720868-3de67880-7b70-11eb-97f6-f6780505883b.mp4

add fixes #3375 and #3422 to the pr?

Get another maintainer to vibe it too as I didn't follow the sprite rotation changes.


Support for non-String fields in metadata like HKMetadataKeySyncVersion

Is your feature request related to a problem? Please describe.
Harmonized.metadata uses [String: String] map for field representation. This fails for metadata fields like HKMetadataKeySyncVersion which expect an NSNumber. Presumably affects other NSNumber fields like HKMetadataKeyReferenceRangeLowerLimit, etc.
Describe the solution you'd like
Quantity.Harmonized.metadata should not fail when setting {'HKMetadataKeySyncVersion': 123} and writing to healthKit on device.

Hi, following up to see if the problem description is clear. There are more details in https://github.com/VictorKachalov/health_kit_reporter/issues/46 - it reads like a debug log, but I'm happy to clarify any details you'd like.
In the meantime, is there is a workaround to write HKMetadataKeySyncVersion to apple health in quantity samples ?

Hi, just checking in: were you able to look at this bug ? @VictorKachalov

Hi @umangsh
Thank you for your message. Unfortunately I didn't yet have time to take a look at the issue.
Have you tried to provide any local fixes? If so It could be a good opportunity to open a PR, if not I will try this week

Thanks! My local fixes didn't work unfortunately.

@VictorKachalov were you able to look at this bug last week?

@VictorKachalov checking in, any luck with this bug?

Hi @umangsh
Please sorry for my late response, unfortunately couldn't make it for the deeper investigation due to the lack of time last months.
The original HK metadata expects one of the three possible types: NSString, NSDate, NSNumber and these Obj-C types unfortunately are not Codable friendly. But I can use Swift's String, Date, Double instead.
I am seeking the possibility to bring a clean solution combining these types in one metadata property, but currently don't have any ideas.
As a fallback solution, I could extend the amount of metadata properties like:
let metadataString: [String: String]?
let metadataDate: [String: Date]?
let metadataDouble: [String: Double]?

Makes sense, thanks for the explanation. Fallback solution sounds reasonable as a short term fix.

Hi @umangsh
please check the latest 2.0.0 version (Metadata revamp potentially introduces breaking change, but I prepared a fallback solution to avoid errors because ExpressibleByDictionaryLiteral)

@VictorKachalov Awesome, thank you!
I'm using the API through health_kit_reporter (https://github.com/VictorKachalov/health_kit_reporter), which is still at 2.0.4. Mind updating the flutter plugin?

Thanks! I was able to update the plugin version (2.1.0) and pod version (2.0.0) - I think it's improved, but doesn't work quite yet - HKMetadataKeySyncIdentifier and HKMetadataKeySyncVersion values aren't written to Apple Health.

Code that initiates the writes in flutter: https://github.com/umangsh/famnom_flutter/blob/main/packages/healthkit/lib/src/healthkit.dart#L108

Printing the values in Quantity.swift shows the metadata values as nil:

extension Quantity.Harmonized: Payload {
    public static func make(from dictionary: [String: Any]) throws -> Quantity.Harmonized {
        guard
            let value = dictionary["value"] as? NSNumber,
            let unit = dictionary["unit"] as? String
        else {
            throw HealthKitError.invalidValue("Invalid dictionary: \(dictionary)")
        }
        print("dict")
        print(dictionary["metadata"])
        let metadata = dictionary["metadata"] as? [String: Any]
        print("converted")
        print(metadata)
        print("cast")
        print(metadata?.asMetadata)
        return Quantity.Harmonized(
            value: Double(truncating: value),
            unit: unit,
            metadata: metadata?.asMetadata
        )

Sample outputs:
dict
Optional({
    HKMetadataKeySyncIdentifier = "FAMNOM-2022-10-30-1087";
    HKMetadataKeySyncVersion =<PHONE_NUMBER>558;
})
converted
Optional(["HKMetadataKeySyncIdentifier": FAMNOM-2022-10-30-1087, "HKMetadataKeySyncVersion":<PHONE_NUMBER>558])
cast
nil ---> Didn't expect this to be nil

@VictorKachalov was the previous message helpful? Let me know if I can provide any more info.

hi @umangsh
I will check this, thank you for the input. Have you tried to do this with this native HealthKitReporter? Does HealthKit also ignore the data during writing?

@VictorKachalov Just the two fields - HKMetadataKeySyncIdentifier and HKMetadataKeySyncVersion, other values are written fine.

@kvs-coder still an issue. I wonder if Double and NSNumber are causing issues. Here's a small snippet to reproduce in flutter:
 final data = Quantity(
        '',
        QuantityType.dietaryEnergyConsumed.identifier,
<PHONE_NUMBER>148,
<PHONE_NUMBER>148,
        null,
        const SourceRevision(
          Source('appTitle', 'appBundle'),
          null,
          null,
          '',
          OperatingSystem(0, 0, 0),
        ),
        QuantityHarmonized(1504, 'kcal', <String, dynamic>{
          'HKMetadataKeySyncVersion':
              DateTime.now().millisecondsSinceEpoch,
          'HKMetadataKeySyncIdentifier':
              'appTitle-2023-02-09-100',
        }),
      );
await HealthKitReporter.save(data);

HKMetadataKeySyncVersion and HKMetadataKeySyncIdentifier are not written to apple health. These fields are required for de-duping:


Incorrect date format in SQL query from custom date format cast on model

Laravel Version
10.6.2
PHP Version
8.1.10
Database Driver & Version
MySQL 10.4.25-MariaDB (using Xampp with Apache) on Windows 11 Pro
Description
When updating a model using a PATCH request, a custom date attribute is not being correctly transformed to the valid MySQL date value. Resulting in the error:
SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '20-10-2000' for column `users`.`date_of_birth` at row 1 (Connection: mysql, SQL: update `users` set `date_of_birth` = 20-10-2000, `users`.`updated_at` = 2023-04-10 11:38:19 where `id` = 1)

Steps To Reproduce
Database (MySQL)
Column date_of_birth is type DATE.
Migration
The column was created using $table->date('date_of_birth')
Model
On the default User model, I added the attribute to fillable and set a custom date cast (as described in the docs).
protected $casts = [
    // other attributes
    'date_of_birth' => 'date:d-m-Y',
];

protected $fillable = [
    // other attributes
    'date_of_birth',
];

And according to the documentation about date serialization, this should not change the format used for storing it in the database, only the format used in PHP array/JSON model instances.
Steps/flow

When loading the page with an edit form, the attribute on the User model is in the correct d-m-Y format.
The post/patch request sends the date value in d-m-Y format as well.

Route definition in `web.php`
Route::patch('/users/{user}', [UsersController::class, 'update'])->name('users.update');

The values are correctly validated by the rule in UserUpdateRequest:

public function rules(): array
{
    return [
        // other attributes' rules
        'date_of_birth' => 'nullable|date_format:d-m-Y',
    ];
}

The controller fills the values in the model:

`update` method on the controller
public function update(UserUpdateRequest $request, User $user)
{
    $user->fill($request->validated());

    // dd($user->date_of_birth); <-- Shows it's a Carbon object with the correct value!

    $user->save();

    return response()->json([
        'status' => 'ok',
        'user' => $user,
    ]);
}

The JSON response (back to the form page) has the error:

SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '20-10-2000' for column `users`.`date_of_birth` at row 1 (Connection: mysql, SQL: update `users` set `date_of_birth` = 20-10-2000, `users`.`updated_at` = 2023-04-10 11:38:19 where `id` = 1)

Somehow the framework did not correctly turn the Carbon date object into a valid MySQL date representation. So either:

there is something wrong in the Carbon to MySQL transformation
or the date format defined in the model's casts property is wrongly being used here
or the documentation (1 and 2) is incorrect.

Note: Setting the model's attribute cast to date:Y-m-d does not produce this error. Of course, this is also the exact format MySQL's DATE field uses. This also indicates the issue is option 2.
Note 2: Sending/posting the same value as currently in the DB/on the model, does not give an error. (I guess the attribute is skipped in the SQL here because it hasn't changed.)
Update: created example repo
Repo at: https://github.com/vHeemstra/laravel-date-format-bug
To set it up:

Clone repo
Create MySQL database (collation: utf8mb4_unicode_ci)
Set DB credentials in .env
Run composer and NPM install commands
Run php artisan migrate
Run the website (either with own server or php artisan serve)
Run Vite dev server (npm run dev)
Open site and go to login
Create/register new user and log in
Go to "Personen" page and click on the pencil icon to edit (modal pops up)
Change the "Geboortedatum" (translation: birthday) field to a different d-m-Y value
Click "Opslaan" (Save)
View the Console log and Network tab in Developer tools in browser

Just FYI, I had a very similar thing with Datetime to Timestamp, where casting just wouldn't work.
Workaround was to write a nutator as per [https://laravel.com/docs/10.x/eloquent-mutators#defining-a-mutator](Laravel 10 Docs)

@cosmastech I will try to create a working example.
It might be that MySQL is needed, because the Exception is thrown even before any SQL query is sent. Using:
DB::enableQueryLog();
try {
  $user->save();
} catch (\Exception $e) {}
dd(DB::getQueryLog());

The dd'ed result was an empty array, so I guess the DB grammar/adopter (idk) checks all of this before sending the query and there finds the wrong format?
As stated in the report above, the date is correctly filled in the user model instance and becomes a Carbon instance with the correct date. It is just that when compiling/preparing the DB query, the Carbon object is turned into a string using the wrong format (that from $casts instead of the MySQL one).
Possibly because it might use HasAttributes::attributesToArray()? Which calls HasAttributes::addCastAttributesToArray, which calls the format method on the Carbon instance with the format from $casts.
@tttogo Thanks, yeah I might do that for the moment. Or switch to Y-m-d and have front-end rearrange the date. 😄

@vHeemstra could you link to a repo that shows this is failing?
I tried to write a test case and it's not failing. https://github.com/cosmastech/laravel-framework/pull/1/files Do I have some part of the setup wrong? It could be that it's using SQLite instead of MySQL 🤷 but I'll admit I feel that's not the issue.

Repo at: https://github.com/vHeemstra/laravel-date-format-bug
The .env is just like .env.example but with DB_DATABASE set to a new MySQL database.

The application worked fine for me.

@cosmastech First off, thank you so much for taking the time to help!
Second, how strange.. The axios request (when submitting the modal form with a different d-m-Y date) returns with status 200?
I feel OS should not make a difference here. Maybe MySQL versions and/or PHP version, in the way some of the magic getters/setters are implemented??

I just made a new clone from the repo and installed using the steps above. After submitting the edit modal form with only the date set, I still get the described error back from the server.

@tttogo when you were running into this issue, were you using Laravel 10? What version of PHP, DB, etc?

Now I'm getting the error! I was editing my profile, not the Personen edit page.

It seems Taylor has decided to not take any action here, sorry.

But that does not address the issue in the bug report. As Taylor says, the cast format should only be used when model instances become arrays or JSON, but it should not interfere with the way it is stored in the database. (See also the referenced docs in my comment there and in the bug report above.)
So it is still a bug that needs a fix. (Or the docs need changing.)


Use full glyph as filename for getImageSource

fixes #1205 , fixes #1024

To add a bit of explanation: The current implementation uses [glyph characterAtIndex:0] to uniquely generate a path for a cached icon. This does not work, since some glyphs have multiple characters, and only taking the first one is not unique. Instead, I'm just using the full glyph's name for a path, which works perfectly fine for paths even though they are not ASCII paths.
Until @oblador merges this PR, here's a patch generated by patch-package which fixes the issue:
diff --git a/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m b/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m
index a81ce83..2823543 100644
--- a/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m
+++ b/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m
@@ -57,10 +57,9 @@ - (NSString *)generateFilePath:(NSString *)glyph withFontName:(NSString *)fontNa
 {
   CGFloat screenScale = RCTScreenScale();
   NSString *hexColor = [self hexStringFromColor:color];
-  NSString *fileName = [NSString stringWithFormat:@"%@RNVectorIcons_%@_%@_%hu_%.f%@@%.fx.png",
+  NSString *fileName = [NSString stringWithFormat:@"%@RNVectorIcons_%@_%@_%@_%.f%@@%.fx.png",
                                                   NSTemporaryDirectory(),
-                                                  identifier, fontName,
-                                                  [glyph characterAtIndex:0],
+                                                  identifier, fontName, glyph,
                                                   fontSize, hexColor, screenScale];

   return fileName;

Thanks for merging @oblador. Can you take a look at the type definitions to find out why getImageSourceSync is not being exported but getImageSource is?

Hey, I don't maintain the @types repo 🤔 Should probably bring in the types into this repo instead (and migrate to TS for that matter).


[QUESTION]:

Question
I have a 32 gb usb and used to run kali linux on it. i have erased the usb completly and flashed athena os onto it using balena etcher. i want to run athena os on this usb as a live usb with persistance. can you tell me how to do so?

or is it even possible to do so? and can i get apps such as bluemail and all for it?
and are apps such as disccord. whatsapp and all available?

or is it even possible to do so? and can i get apps such as bluemail and all for it? and are apps such as disccord. whatsapp and all available?

So I do not know about your persistence issue friend, But Athena does have the ability to use Discord, The ISO currently should already have discord on it. Now i do know that it is based in Arch, So i'm sure anyway to make Arch Persistent would work as a way of making Athena. I personally use Ventoy so i dont know if there is much of a difference from that and Balena Etcher,  but here are some links you might find interesting involving the persistence, https://mags.zone/help/arch-usb.html https://wiki.archlinux.org/title/Install_Arch_Linux_on_a_removable_medium

yeah you can do it.
i do that too but hdd for me not fd .

@greedoftheendless can we close the issue?

Yeah sure
On Mon, 19 Jun 2023, 4:06 am D3vil0p3r, @.***> wrote:

@greedoftheendless https://github.com/greedoftheendless can we close
the issue?
—
Reply to this email directly, view it on GitHub
https://github.com/Athena-OS/athena-iso/issues/55#issuecomment-1596292612,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A6EAUMRKXXAZF5DHJ7WLTDTXL57ITANCNFSM6AAAAAAYJO2PGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks!


authentication

Hi
Does request support basic authentication and two-way ssl?

Thanks - not sure which library you refer to as 'core'. According to this post:
http://vanjakom.wordpress.com/2011/08/11/client-and-server-side-ssl-with-nodejs/
the 'https' library does support client side certificate. Does this mean request also support it?

by "core" i mean node.js itself, which request is built on top of :)
if node supports it then request supports it.

Well, I agree it is in the readme, but I also agree it could be documented a little more explicitly... I ended up grepping the source code to see whether it was supported.

Is there any update on whether two-way ssl is supported today?


Remove all deprecated methods for 2.0.0

[Tracking bug]

I think this was completed by @SUPERCILEX


Patch: Add logging level option to closurebuilder.py

This issue was imported from Closure Library's previous home at http://closure-library.googlecode.com
The link to the original issue is:
https://code.google.com/p/closure-library/issues/detail?id=337

This issue is being closed as a preparation step before archiving the repository.  See the README for more detail.


Fix the link for avatar.

Hi Christian. The avatar on your website only shows up on the main page. I replace the link for the avatar with a permanent link so that the avatar shows up on every web page.

Hello, I just saw this! Thanks for the assist


[Running the Microservices locally] Package.md is missing

Description:
ballerina: Package.md is missing in bala file
Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

The issue is invalid.


nb_samples, timesteps, input_dim Explanation

Hey, I am currently working on a LSTM Music Composer.
Looking at the required Input Shape of LSTM the Documentation states as follows: Input shape: 3D tensor with shape: (nb_samples, timesteps, input_dim).
I was wondering what nb_samples, timesteps, and input_dim actually mean exactly. I know it must be obvious, but I couldn't figure out what nb_samples is exactly referring to.
So I am going to feed my LSTM RNN with a piano roll like representation of a Midi File. So it's a matrix with ones and zeros, 1 meaning note_on, 0 meaning note_off. So what I have as piano roll is a matrix with each row representing one note (= input_dim?) and the columns representing one Midi tick (timing in midi files) (= timesteps?). This tells the Net which Note is on at what point in time. But I can't figure what the third dimension should be in my case.
Thanks for your help!

Assumedly you have more than a single MIDI file (otherwise you won't be learning much). So each MIDI file you have is a "sample", and the 0th dimension of your input tensor is your different files.

Thanks for giving proof to my assumption :)

So this a correct (simplify) example , isn't it?
X = [  [ [1, 4, 2, 0] , [2, 3, 1, 0],  [3,7,8,0] ] , [1,1,1,0],4].
X = self.get_input(train)  # shape: (nb_samples, time (padded with zeros), input_dim)
# new shape: (time, nb_samples, input_dim) -> because theano.scan iterates over main dimension
padded_mask = self.get_padded_shuffled_mask(train, X, pad=1)
X = X.dimshuffle((1, 0, 2))
x = T.dot(X, self.W) + self.b


Introduce support for fabric MTU to apstra_datacenter_blueprint resource

This PR depends on SDK #194

bump SDK version for new fabric addressing objects. These are used for:

templates (design api) in Apstra 4.1.0 only
blueprint creation
blueprint updates

add fabric_mtu attribute to apstra_datacenter_blueprint data source and resource
fabric_addressing (string: ipv4 / ipv4_ipv6 / ipv6) is now a retrievable attribute for the apstra_datacenter_blueprint data source and resource
move some broadly-useful constants from the blueprint package into the constants package
remove references to the deprecated Capability field of CreateRackBasedTemplateRequest
rename min and max variables to prevent collision with Go 1.21's builtin functions

Optional arguments aren't fully demonstrated in the example files. I didn't think this one was all that interesting.


The awkward.arrow.toparquet function should take a filename as first argument

So that the awkward.save and awkward.toparquet have similar signatures. awkward.save's filename first, object-to-save second order was chosen for consistency with numpy.save; awkward.toparquet doesn't have a model, but it might as well follow the one in the same library.
(Unless awkward.toparquet was chosen to be consistent with some pyarrow thing; but those are less visible to the users.)

Fixed by PR #114.


Build caffe2 on Raspberry3 Failed!

I run the  build_raspbian.sh in scripts,but it failed with the hint that

could not find NNPACK(missing NNPACK_INCLUDE_DIR NNPACK_LIBRARY)

and a lot of errors that

does not contain a CMakeLists.txt file

how do i solve it ?

I meet the same problem,and how can i solve it

Could you paste the full cmake output? If you do not need NNPACK, you can probably turn it off with -DUSE_NNPACK=OFF and things should compile properly.

I try to run that with -DUSE_NNPACK=OFF,but no use.I will put the output later.

here is all the output:
and the uploaded zip file is cmakeoutput.log and cmakeerror.log
cmakelog.zip

Caffe2 codebase root is: /home/pi/caffe2-master
Build Caffe2 raspbian into: /home/pi/caffe2-master/build
Installing dependencies.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgflags-dev is already the newest version.
libgoogle-glog-dev is already the newest version.
libprotobuf-dev is already the newest version.
libpython-dev is already the newest version.
protobuf-compiler is already the newest version.
python-protobuf is already the newest version.
cmake is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied (use --upgrade to upgrade): hypothesis in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python2.7/dist-packages (from hypothesis)
Cleaning up...
Building caffe2
fatal: Not a git repository (or any of the parent directories): .git
-- The BLAS backend of choice:Eigen
-- Could NOT find NNPACK (missing:  NNPACK_INCLUDE_DIR NNPACK_LIBRARY)
-- Will try to build NNPACK from source. If anything fails, follow the NNPACK prerequisite installation steps.
CMake Warning at cmake/External/nnpack.cmake:157 (message):
NNPACK is chosen to be installed, but confu and ninja that are needed by it
are not installed.  As a result we won't build with NNPACK.
Call Stack (most recent call first):
cmake/Dependencies.cmake:52 (include)
CMakeLists.txt:85 (include)
CMake Warning at cmake/Dependencies.cmake:57 (message):
Not compiling with NNPACK.  Suppress this warning with -DUSE_NNPACK=OFF
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
-- Found gflags  (include: /usr/include, library: /usr/lib/arm-linux-gnueabihf/libgflags.so)
-- Found system gflags install.
-- Found glog    (include: /usr/include, library: /usr/lib/arm-linux-gnueabihf/libglog.so)
-- Found system glog install.
CMake Error at cmake/Dependencies.cmake:90 (add_subdirectory):
The source directory
/home/pi/caffe2-master/third_party/googletest

does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
CMake Error at cmake/Dependencies.cmake:92 (add_subdirectory):
The source directory
/home/pi/caffe2-master/third_party/benchmark

does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
-- Could NOT find LMDB (missing:  LMDB_INCLUDE_DIR LMDB_LIBRARIES)
CMake Warning at cmake/Dependencies.cmake:103 (message):
Not compiling with LMDB.  Suppress this warning with -DUSE_LMDB=OFF
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
-- Could NOT find LevelDB (missing:  LevelDB_INCLUDE LevelDB_LIBRARY)
-- Could NOT find Snappy (missing:  Snappy_INCLUDE_DIR Snappy_LIBRARIES)
CMake Warning at cmake/Dependencies.cmake:119 (message):
Not compiling with LevelDB.  Suppress this warning with -DUSE_LEVELDB=OFF
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
-- Could NOT find RocksDB (missing:  RocksDB_INCLUDE_DIR RocksDB_LIBRARIES)
CMake Warning at cmake/Dependencies.cmake:131 (message):
Not compiling with RocksDB.  Suppress this warning with -DUSE_ROCKSDB=OFF
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
CMake Warning at cmake/Dependencies.cmake:174 (message):
Not compiling with OpenCV.  Suppress this warning with -DUSE_OPENCV=OFF
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
-- NumPy ver. 1.8.2 found (include: /usr/lib/python2.7/dist-packages/numpy/core/include)
-- Could NOT find MPI_C (missing:  MPI_C_LIBRARIES MPI_C_INCLUDE_PATH)
-- Could NOT find MPI_CXX (missing:  MPI_CXX_LIBRARIES MPI_CXX_INCLUDE_PATH)
CMake Warning at cmake/Dependencies.cmake:226 (message):
Not compiling with MPI.  Suppress this warning with -DUSE_MPI=OFF
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
-- Adding -fopenmp
CMake Warning at cmake/Dependencies.cmake:262 (message):
Not compiling with CUDA.  Suppress this warning with -DUSE_CUDA=OFF
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
CMake Warning at cmake/Dependencies.cmake:270 (message):
If not using cuda, one should not use NCCL either.
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
CMake Error at cmake/Dependencies.cmake:314 (add_subdirectory):
The source directory
/home/pi/caffe2-master/third_party/gloo

does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
CMakeLists.txt:85 (include)
-- Need to define long as a separate typeid.
-- This compiler does not have builtin_cpu_supports feature.
-- Turning off deprecation warning due to glog.
-- GCC 4.9.2: Adding gcc and gcc_s libs to link line
-- NCCL operators built due to no CUDA support
-- CUDA RTC operators built due to no CUDA support
-- Excluding image processing operators due to no opencv
-- Excluding mkl operators as we are not using mkl
-- MPI operators skipped due to no MPI support
-- Automatically generating missing init.py files.

See also "/home/pi/caffe2-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/caffe2-master/build/CMakeFiles/CMakeError.log".

CMakeOutput.docx

God！ I find the problem！ you have to use git clone to download the caffe2 instead of downloading it from web browser!

A new problem:
/home/pi/caffe2/caffe2/third_party/gloo/gloo/mpi/context.cc:63:51: error: no matching function for call to 'max(long unsigned int&, std::vector<char>::size_type)'
    maxLength = std::max(maxLength, address.size());

Disable GLOO (i doubt on raspi can be usefull): cmake .. -DUSE_GLOO=OFF
Or add #include <vector> to your local copy of /home/pi/caffe2/caffe2/third_party/gloo/gloo/mpi/context.cc

I couldn't finish the build also:
I grep caffe2 by git clone --recursive https://github.com/caffe2/caffe2.git
but then I can't find gloo in my error log:
CMakeError.log
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/pi/caffe2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1c7ad/fast"
/usr/bin/make -f CMakeFiles/cmTC_1c7ad.dir/build.make CMakeFiles/cmTC_1c7ad.dir/build
make[1]: Entering directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1c7ad.dir/CheckSymbolExists.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_1c7ad.dir/CheckSymbolExists.c.o   -c /home/pi/caffe2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_1c7ad
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1c7ad.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTC_1c7ad.dir/CheckSymbolExists.c.o  -o cmTC_1c7ad -rdynamic
CMakeFiles/cmTC_1c7ad.dir/CheckSymbolExists.c.o: In function main': CheckSymbolExists.c:(.text+0x38): undefined reference to pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_1c7ad.dir/build.make:97: recipe for target 'cmTC_1c7ad' failed
make[1]: *** [cmTC_1c7ad] Error 1
make[1]: Leaving directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_1c7ad/fast' failed
make: *** [cmTC_1c7ad/fast] Error 2
File /home/pi/caffe2/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/pi/caffe2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_1563f/fast"
/usr/bin/make -f CMakeFiles/cmTC_1563f.dir/build.make CMakeFiles/cmTC_1563f.dir/build
make[1]: Entering directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_1563f.dir/CheckFunctionExists.c.o
/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_1563f.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.6/Modules/CheckFunctionExists.c
Linking C executable cmTC_1563f
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1563f.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_1563f.dir/CheckFunctionExists.c.o  -o cmTC_1563f -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_1563f.dir/build.make:97: recipe for target 'cmTC_1563f' failed
make[1]: *** [cmTC_1563f] Error 1
make[1]: Leaving directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_1563f/fast' failed
make: *** [cmTC_1563f/fast] Error 2
Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 failed with the following output:
Change Dir: /home/pi/caffe2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_76c41/fast"
/usr/bin/make -f CMakeFiles/cmTC_76c41.dir/build.make CMakeFiles/cmTC_76c41.dir/build
make[1]: Entering directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_76c41.dir/src.cxx.o
/usr/bin/c++     -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -DHAVE_CXX_FLAG_WSHORTEN_64_TO_32 -Wshorten-64-to-32   -Wshorten-64-to-32 -o CMakeFiles/cmTC_76c41.dir/src.cxx.o -c /home/pi/caffe2/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-Wshorten-64-to-32'
c++: error: unrecognized command line option '-Wshorten-64-to-32'
CMakeFiles/cmTC_76c41.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_76c41.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_76c41.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_76c41/fast' failed
make: *** [cmTC_76c41/fast] Error 2
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WTHREAD_SAFETY failed with the following output:
Change Dir: /home/pi/caffe2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_e87fb/fast"
/usr/bin/make -f CMakeFiles/cmTC_e87fb.dir/build.make CMakeFiles/cmTC_e87fb.dir/build
make[1]: Entering directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_e87fb.dir/src.cxx.o
/usr/bin/c++     -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -Wfloat-equal -fstrict-aliasing -Wzero-as-null-pointer-constant -Wstrict-aliasing -DHAVE_CXX_FLAG_WTHREAD_SAFETY -Wthread-safety   -Wthread-safety -o CMakeFiles/cmTC_e87fb.dir/src.cxx.o -c /home/pi/caffe2/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-Wthread-safety'
c++: error: unrecognized command line option '-Wthread-safety'
CMakeFiles/cmTC_e87fb.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_e87fb.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_e87fb.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_e87fb/fast' failed
make: *** [cmTC_e87fb/fast] Error 2
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test CAFFE2_LONG_IS_INT32_OR_64 failed with the following output:
Change Dir: /home/pi/caffe2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_0ebc4/fast"
/usr/bin/make -f CMakeFiles/cmTC_0ebc4.dir/build.make CMakeFiles/cmTC_0ebc4.dir/build
make[1]: Entering directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0ebc4.dir/src.cxx.o
/usr/bin/c++     -fopenmp -DCAFFE2_LONG_IS_INT32_OR_64 -std=c++11   -o CMakeFiles/cmTC_0ebc4.dir/src.cxx.o -c /home/pi/caffe2/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_0ebc4
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0ebc4.dir/link.txt --verbose=1
/usr/bin/c++    -fopenmp -DCAFFE2_LONG_IS_INT32_OR_64 -std=c++11    CMakeFiles/cmTC_0ebc4.dir/src.cxx.o  -o cmTC_0ebc4 -rdynamic
CMakeFiles/cmTC_0ebc4.dir/src.cxx.o: In function main': src.cxx:(.text+0x3c): undefined reference to void Foo()'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_0ebc4.dir/build.make:97: recipe for target 'cmTC_0ebc4' failed
make[1]: *** [cmTC_0ebc4] Error 1
make[1]: Leaving directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_0ebc4/fast' failed
make: *** [cmTC_0ebc4/fast] Error 2
Source file was:
#include
template <typename T> void Foo();
template<> void Foo<int32_t>() {}
template<> void Foo<int64_t>() {}
int main(int argc, char** argv) {
  Foo<long>();
  return 0;
}

Performing C++ SOURCE FILE Test HAS_BUILTIN_CPU_SUPPORTS failed with the following output:
Change Dir: /home/pi/caffe2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_0598f/fast"
/usr/bin/make -f CMakeFiles/cmTC_0598f.dir/build.make CMakeFiles/cmTC_0598f.dir/build
make[1]: Entering directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0598f.dir/src.cxx.o
/usr/bin/c++     -fopenmp -DHAS_BUILTIN_CPU_SUPPORTS -std=c++11   -o CMakeFiles/cmTC_0598f.dir/src.cxx.o -c /home/pi/caffe2/build/CMakeFiles/CMakeTmp/src.cxx
/home/pi/caffe2/build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main(int, char**)’:
/home/pi/caffe2/build/CMakeFiles/CMakeTmp/src.cxx:4:49: error: ‘__builtin_cpu_supports’ was not declared in this scope
std::cout << __builtin_cpu_supports("avx2") << std::endl;
^
CMakeFiles/cmTC_0598f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_0598f.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_0598f.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_0598f/fast' failed
make: *** [cmTC_0598f/fast] Error 2
Source file was:
#include
int main(int argc, char** argv) {
  std::cout << __builtin_cpu_supports("avx2") << std::endl;
  return 0;
}

Performing C++ SOURCE FILE Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING failed with the following output:
Change Dir: /home/pi/caffe2/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_0d181/fast"
/usr/bin/make -f CMakeFiles/cmTC_0d181.dir/build.make CMakeFiles/cmTC_0d181.dir/build
make[1]: Entering directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0d181.dir/src.cxx.o
/usr/bin/c++     -fopenmp -DCAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING -std=c++11   -o CMakeFiles/cmTC_0d181.dir/src.cxx.o -c /home/pi/caffe2/build/CMakeFiles/CMakeTmp/src.cxx
In file included from /usr/include/c++/4.9/ext/hash_set:60:0,
from /usr/include/glog/stl_logging.h:54,
from /home/pi/caffe2/build/CMakeFiles/CMakeTmp/src.cxx:1:
/usr/include/c++/4.9/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
#warning
^
Linking CXX executable cmTC_0d181
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0d181.dir/link.txt --verbose=1
/usr/bin/c++    -fopenmp -DCAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING -std=c++11    CMakeFiles/cmTC_0d181.dir/src.cxx.o  -o cmTC_0d181 -rdynamic
make[1]: Leaving directory '/home/pi/caffe2/build/CMakeFiles/CMakeTmp'
Source file was:
#include <glog/stl_logging.h>
int main(int argc, char** argv) {
return 0;
}

I have built successfully... you have to modify your build_raspbin.sh file find cmake and -DUSE_GLOO=OFF just like @cbalint13 mentioned. and then i can build successfully.

Makefile add
rpi:
@./scripts/build_raspbian.sh

No help adding #include <algorithm>

a new problem!
/home/pi/share/caffe2/caffe2/queue/rebatching_queue.cc:66:76: error: ‘split’ function uses ‘auto’ type specifier without trailing return type
auto split(CPUContext& context, const std::vector<const TensorCPU*>& inputs) {
^
/home/pi/share/caffe2/caffe2/queue/rebatching_queue.cc:66:76: note: deduced return type only available with -std=c++1y or -std=gnu++1y

@hehengxiang0 This problem is fixed on master (see ba4c9977c5e76f5dd51bcf762f9ba5dd4a6e9fcc)

@AngularLock Thanks for helping out here. Updated CMake skip Gloo on 32 bit systems (see 5b5ba3eefc481150b4df6cd8c2118bb70cb4510b).
That resolves this particular build issue.
If there is another issue building on Raspberry Pi then please open a new issue.

Hi,
I am trying to set up caffe2 on my mac. getting tons of cmakelists.txt missing warning and a bunch of other error messages. PLEASE ADVISE.
-- The BLAS backend of choice:Eigen
-- Found gflags  (include: /usr/local/include, library: /usr/local/lib/libgflags.dylib)
-- Found system gflags install.
-- Found glog    (include: /usr/local/include, library: /usr/local/lib/libglog.dylib)
-- Found system glog install.
-- Found PythonInterp: /Users/avidan/anaconda3/envs/py2/bin/python (found version "2.7.13")
-- Could NOT find Benchmark (missing:  Benchmark_INCLUDE_DIR Benchmark_LIBRARY)
-- git Version: v0.0.0
-- Version: 0.0.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Found lmdb    (include: /usr/local/include, library: /usr/local/lib/liblmdb.dylib)
-- Found LevelDB (include: /usr/local/include, library: /usr/local/lib/libleveldb.dylib)
-- Found Snappy  (include: /usr/local/include, library: /usr/local/lib/libsnappy.dylib)
-- OpenCV found (/usr/local/share/OpenCV)
-- Found PythonInterp: /Users/avidan/anaconda3/envs/py2/bin/python (found suitable version "2.7.13", minimum required is "2.7")
-- NumPy ver. 1.13.1 found (include: /Users/avidan/anaconda3/envs/py2/lib/python2.7/site-packages/numpy/core/include)
-- Could NOT find pybind11 (missing:  pybind11_INCLUDE_DIR)
CMake Warning at cmake/Dependencies.cmake:313 (message):
If not using cuda, one should not use NCCL either.
Call Stack (most recent call first):
CMakeLists.txt:74 (include)
CMake Warning at cmake/Dependencies.cmake:351 (message):
Gloo can only be used on Linux.
Call Stack (most recent call first):
CMakeLists.txt:74 (include)
CMake Warning at cmake/Dependencies.cmake:391 (message):
mobile opengl is only used in android or ios builds.
Call Stack (most recent call first):
CMakeLists.txt:74 (include)
-- Need to define long as a separate typeid.
-- Current compiler supports avx2 extention. Will build perfkernels.
-- NCCL operators skipped due to no CUDA support
CMake Error at caffe2/contrib/CMakeLists.txt:6 (add_subdirectory):
The source directory
/Users/avidan/caffe2/caffe2/contrib/opengl

does not contain a CMakeLists.txt file.
-- CUDA RTC operators skipped due to no CUDA support
-- Including image processing operators
-- Excluding video processing operators due to no opencv
-- Excluding mkl operators as we are not using mkl
-- MPI operators skipped due to no MPI support
-- Automatically generating missing init.py files.

I have now another issue. When running -
python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
It succeeds in the build directory but fail outside of it.
No change after using -
sudo install_name_tool -change libpython2.7.dylib ~/anaconda/lib/libpython2.7.dylib /usr/local/caffe2/python/caffe2_pybind11_state.so
Thanks in advance.

hi @AngularLock,
have u solved the problem "fatal: Not a git repository: caffe2/.git/modules/third_party/NNPACK"？
thanks.

@zimenglan-sysu-512
hi！
that time,i found that u have to use a git command to download the whole framework. and  i use the download button on the website that cause the problem

hi @AngularLock,
yes i use git clone to download, and can install caffe2. but after installation, it encounters this problem.

Hi all - correct. You need to use git clone --recursive https://github.com/caffe2/caffe2.git. The --recursive is  to make sure all of the third_party libraries are downloaded as well.


What it means for the Project Team?

Plexus demonstrates the following

[ ] Increased visibility and positioning in FINOS Web Resources
[ ] Increased visibility and positioning in FINOS Marketing
[ ] Increased visibility and positioning in FINOS Community building efforts

Meetups
Blog posts
Etc ...

@paulwhitby, @kryusvy and @udalmik - I've added Plexus Interop to a backlog of webinars I'm organising inside FINOS. It would be great to get your ideas for future 30 minute sessions.
The following are a few suggested subjects that would be great to cover.

What is Plexus Interop?
What are the business advantages of Plexus Interop?
What are the engineering advantages of Plexus Interop?
How to clone, run and configure Plexus Interop.
How to contribute to Plexus Interop.
How to raise issues and feature requests with the Plexus Interop team.
How to join Plexus Interop project team calls.

Let me know your thoughts for running a 30 minute webinar that answers the top three questions above?
Speak soon,
James.

Hi @udalmik,
Please add this item to the agenda of a team meeting to discuss.
Many thanks.
James.

Met with @paulwhitby who confirmed this story has moved forward within DB and has agreed a FINOS Plexus Interop webinar in early May sounds like a feasible idea.
@paulwhitby also confirmed DB conversations about Plexus Interop marketing materials are also in the pipeline.


The missing cookbook(s)

Cookbook version
2.0.2
Chef-client version
13.x
Platform Details
centos 7
Scenario:
multiline edits
Steps to Reproduce:
knife cookbook site install line
Expected Result:
replace_or_add "postgresql.md5_auth_cidr_addresses/etc/chef-backend/chef-backend.rb" do
  path "/etc/chef-backend/chef-backend.rb"
  pattern "postgresql.md5_auth_cidr_addresses"
  line "postgresql.md5_auth_cidr_addresses = ["samehost", "samenet", "#{node['chefclusterbe1']['ip']}"]"
  replace_only true
end

i uploaded line cookbook on the server via knife
Actual Result:
$knife cookbook upload chefclusterbe
Uploading chefclusterbe  [2.2.2]
ERROR: Cookbook chefclusterbe depends on cookbooks which are not currently
ERROR: being uploaded and cannot be found on the server.
ERROR: The missing cookbook(s) are: '[#<Logger:0x000000000466d1a0 @level=2, @progname=nil, @default_formatter=#<Logger::Formatter:0x000000000466d128 @datetime_format=nil>, @formatter=#<Mixlib::Log::Formatter:0x000000000466cfc0 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x000000000466d088 @shift_period_suffix=nil, @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>, @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000000000466cfe8>>>]' version '>= 0.0.0'

Hey, you probably want to be using berks rather than knife as it'll sort out the dependent cookbooks too.
Closing as this isn't a line issue. In future if you have issues like this, your best and quickest bet is to go to the chef community slack.
http://community-slack.chef.io


The Magnifying image in the search bar is not visible .

Describe the bug
In the search bar the search icon image is not showing  .
To Reproduce
Steps to reproduce the behavior:

Go to home page
See the left side of the text "Search" .
See error

Expected behavior
The image of the search is to be shown .
Screenshots

Additional context
Add any other context about the problem here.

It is already done !


[CoreML][FRONTEND] Support Split Multiple Output

Split is not necessary and this is only the problem of improving the frontend to handle split

Am woking on this to support Split layer in CoreML frontend.


Hi, me again!

Hey, sorry to bug you, but this mod was throwing a crash when I tried to launch it on a server;
my friends and I are playing as of current, so I will send you a log when no one's online so I can freely crash the server lol
Just making this issue while I can! I think the crash was happening during the preintializing or loading process

latest.log
Here's the log!

latest.log
Here's the log!

Welcome back! This crash is actually already fixed, go ahead and update to 0.12.2 :)

Welcome back! This crash is actually already fixed, go ahead and update to 0.12.2 :)

man pog, you're quite good at this ^^
just wondering, are there any other projects you do for minecraft mods? Idk you seem like a pretty chill dude so if you were looking for like, some models or anything anytime soon I fancy myself a good modeller ^^
your help has been much kinder than most devs I've met so I feel a bit wanting to repay you

man pog, you're quite good at this ^^
just wondering, are there any other projects you do for minecraft mods? Idk you seem like a pretty chill dude so if you were looking for like, some models or anything anytime soon I fancy myself a good modeller ^^
your help has been much kinder than most devs I've met so I feel a bit wanting to repay you

Nice of you to offer! I'm not working on anything right now that needs models, but maybe sometime in the future, for sure. Have you thought about making a resource pack, or a mod that adds decorative blocks/items/critters? Or if you've already have something like that posted online, could you send me a link?

Nice of you to offer! I'm not working on anything right now that needs models, but maybe sometime in the future, for sure. Have you thought about making a resource pack, or a mod that adds decorative blocks/items/critters? Or if you've already have something like that posted online, could you send me a link?

I've thought about making add-ons to mods before, but I don't have many people I know who aren't busy with their own projects
As for what I've done, not much yet!
I have done about a third of the models for this Mod
and I've been doing all future models for that creator! He's a chill dude, and its a fun mod.
Personally, my biggest weakpoint is texturing but a few good youtube tutorials could probably teach me how to improve

I've thought about making add-ons to mods before, but I don't have many people I know who aren't busy with their own projects
As for what I've done, not much yet!
I have done about a third of the models for this Mod
and I've been doing all future models for that creator! He's a chill dude, and its a fun mod.
Personally, my biggest weakpoint is texturing but a few good youtube tutorials could probably teach me how to improve


Error in installing fb.python

I removed python3, python3.4, libpython3, libpython3.4 and tried to install fb.python using
luarocks make rockspec/fbpython-0.1-1.rockspec
The error message:
cmake -E make_directory build &&
cd build &&
cmake -DROCKS_PREFIX=/home/fs/ylu/torch/install/lib/luarocks/rocks/fbpython/0.1-1
-DROCKS_LUADIR=/home/fs/ylu/torch/install/lib/luarocks/rocks/fbpython/0.1-1/lua
-DROCKS_LIBDIR=/home/fs/ylu/torch/install/lib/luarocks/rocks/fbpython/0.1-1/lib
.. &&
make
-- Found Folly: /usr/local/include
-- Found Torch7 in /home/fs/ylu/torch/install
-- Found Folly: /usr/local/include
-- Found Folly: /usr/local/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fs/ylu/Downloads/fblualib/fblualib/python/build
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libpython3.4m.so', needed by 'lib.so'.  Stop.
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/lua_module.dir/all' failed
make[1]: *** [CMakeFiles/lua_module.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Error: Build error: Failed building.
I wonder what's the problem and how to solve it.

also remove the build directory, it has temporary cached paths.
rm -rf build should do I think

It worked! Thank you very much, Soumith!


Document Spark connector in README

Requires

[x] how to build quasar for spark
[x] how to use quasar with spark

https://github.com/quasar-analytics/quasar/pull/1597

Done


Use Default to handle missing entry in sequence

This uses a more complex but ultimately more correct approach that fixes #672. By creating default error kinds for several of the AST and HIR types that can appear in sequences, sequence parsing recovery now inserts error entries to correspond to places where commas appear at the start of a sequence or back-to-back in the sequence. The end result is better signature help due to recovered HIR including placeholder error entries.

Need to add some new tests for sequences, as well as for signature help.

Looks great! I noticed two strange behaviors while playing around with this:

let temp = (1,); shows as having type (Int,) in the HIR and (Int) in the LS display. I expected it to have type (Int, ?).
let temp = (1,,); shows as having type (Int, ?) in the HIR and LS display. I expecte dit to have type (Int, ?, ?).
I think both of these situations arise from the fact that I think a comma should imply the existence of the following item, and when the item is not given, it should be the new Err item.

It doesn't need to be part of this PR, but this solution could be scaled to address #749 as well in a later PR.

Looks great! I noticed two strange behaviors while playing around with this:

let temp = (1,); shows as having type (Int,) in the HIR and (Int) in the LS display. I expected it to have type (Int, ?).
let temp = (1,,); shows as having type (Int, ?) in the HIR and LS display. I expected it to have type (Int, ?, ?).
I think both of these situations arise from the fact that I think a comma should imply the existence of the following item, and when the item is not given, it should be the new Err item.

Discussed offline: Decided to keep the notion that trailing commas do not imply a following item. Decided to keep the use of the (Int,) syntax for arity-1 tuple type displays to be consistent with the convention seen in other languages. This means that (Int) is not a valid display for a type.
There still needs to be a fix for how the language server displays arity-1 tuples to be consistent with this decision.


Alphabetize links, add my personal blog, move Web Starter Project

I'd rather not aphabetize the links. First come first serve is the contribution guide rule. All new links always get appended at the bottom of the list.

ping @taylorbryant

Closing this as there's no response. If you want to open another PR with your personal blog I'll accept that.


Docker - segmentation fault

I was testing these dotfiles in a docker container before I install it on my computer. It gives me a segmentation fault as soon as I start zsh.
Here's what I did:
docker run -it ubuntu:latest /bin/bash
Inside the docker container
sudo apt-get install git python vim zsh
I cloned your repo, ran the ./install script and tried executing /bin/zsh.
Immediately gives a segmentation fault.
Also the ./install script couldn't finish, I got:
Command [git update-submodules] failed
Some commands were not successfully executed

Yeah, it's an issue with old versions of zsh. Works fine on 5.0.8, for example.
I spent an hour looking into this a while ago, and this was the result: https://github.com/anishathalye/dotfiles/commit/1ef3d791c25f9f5d67ce66f1b7b9782554c84146 (reverted since it was kinda annoying). There's some more details in the commit message, which may help if you want to investigate.
So you could use the workaround that I used in that commit, or just update to the latest version of zsh.


0 commits - .git not repo - WRN partial scan

hello brother, what is this error? it's not normal
gitleaks detect --source /home///JSScanner-master/Jsscanner_results/
○
│╲
│ ○
○ ░
░    gitleaks

4:12PM ERR [git] fatal: .git non è un repository Git (né lo è alcuna delle directory genitrici)
4:12PM INF 0 commits scanned.
4:12PM ERR  error="git error encountered, see logs"
4:12PM WRN partial scan completed in 84.5ms
4:12PM WRN no leaks found in partial scan

If the directory you are scanning it not a git directory, you'll have to use the --no-git flag. There is a little more info here: https://github.com/zricethezav/gitleaks#detect
Let us know if that works.

I didn't know ghosts were real?!


dispatch graph dump generates two graphs and only shows the first one

What happened?
The dispatch graph is incorrectly rendered because there are two graphs in the generated dot file.
Steps to reproduce your issue

Dump the graph for bert_encoder_unrolled_fake_weights.mlir
iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=cuda --iree-input-type=mhlo iree/tests/e2e/models/bert_encoder_unrolled_fake_weights.mlir -o check_cuda_cuda_bert_encoder_unrolled_fake_weights.mlir_module.vmfb --iree-flow-dump-dispatch-graph

Check the dot file. Should see

digraph G {
  compound = true;
  subgraph cluster_1 {
    v2 [label = " ", shape = plain];
    label = "";
    v3 [label = " = func.call\n", shape = ellipse];
    v4 [label = " = func.return\n", shape = ellipse];
  }
}
digraph G {
  compound = true;
  subgraph cluster_5 {
    v6 [label = " ", shape = plain];
    label = "";

What component(s) does this issue relate to?
Compiler
Version information
No response
Additional context
No response

The actual target is iree_tests_e2e_models_check_dylib-llvm-aot_dylib_bert_encoder_unrolled_fake_weights.mlir.

This is the wrong dot file. dispatch.dot.zip

Done by https://github.com/iree-org/iree/pull/9741/


Generate example with factory

First of all, thank you very much for the great tool you created and made available.
Due to the needs of my project, I need the examples to be generated exactly as the factories provide me, so I avoid using fake examples to extract my documentation.
The possibility of disabling this process has been added for those who do not wish to use this tool.
I adjusted the tests to meet the pipeline this way and there are no problems with the merge

I ll merge it to develop first to see the test results.


Updated ports to 8080

Codecov Report

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

@@            Coverage Diff             @@
##           master     #186      +/-   ##
==========================================
- Coverage   76.12%   76.09%   -0.03%
==========================================
  Files          29       29
  Lines        4004     4004
==========================================
- Hits         3048     3047       -1
- Misses        956      957       +1

Flag
Coverage Δ

#CHTTPParser
62.66% <ø> (ø)
:arrow_up:

#KituraNet
76.09% <ø> (-0.03%)
:arrow_down:

Impacted Files
Coverage Δ

Sources/KituraNet/HTTP/HTTPServer.swift
79.06% <ø> (-0.78%)
:arrow_down:

Continue to review full report at Codecov.

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


Creating the contributing.md for this repo

Descripion📜
Made an contributing.md for this repo
Fixes #51
Type of Change 📝

[x] Improve the readme of any project

Checklist ✔

[x] I'm SSOC'22 Contributor

Paste the ss of the New issue creation window and same applied for fork the project  . As newbies are bit confuse to find the New isaue and fork the project
@AnmolSirola

@Vikash-8090-Yadav Can u check it now

Great @AnmolSirola


no state.sh

chmod: cannot access 'state.sh': No such file or directory                     state cleaned                                                                    ls: cannot access '**stateimp.sh': No such file or directory                     imports completed                                                                Terraform fmt ...                                                                azure.tf                                                                         Terraform Plan ...                                                               Refreshing Terraform state in-memory prior to plan...                            The refreshed state will be used to calculate this plan, but will not be         persisted to local or remote state storage.

Can you give me a little more of the output - before and after.

terraform validate                                                               Success! The configuration is valid.                                                                                chmod: cannot access 'state.sh': No such file or directory                     state cleaned                                                                    ls: cannot access '**stateimp.sh': No such file or directory                     imports completed                                                                Terraform fmt ...                                                                azure.tf                                                                         Terraform Plan ...                                                               Refreshing Terraform state in-memory prior to plan...                            The refreshed state will be used to calculate this plan, but will not be         persisted to local or remote state storage.                                                                                ------------------------------------------------------------------------                                                                                No changes. Infrastructure is up-to-date.

And can you share:

The actually command line you are running   ./az2tf.sh ......
The output between that command and the terraform validate Success!
are there any *.tf files being generated in the sub-directory  generated/tf. ?

Thanks

Its generating file but its empty, only contains terraform and provider 'azurerm'. Ive removed my subscription ID
./az2tf.sh -s
Subscription ID =
Azure Resource Group Filter =
Terraform Resource Type Filter =
Get Subscription Policies & RBAC = no
Extract Key Vault Secrets to .tf files (insecure) = no
Fast Forward = no
Validate Only = no
Debug = no
python2.7 ../../scripts/az2tf.py -s  2>&1 | tee -a import.log
./az2tf.sh: line 123: python2.7: command not found
terraform init
Initializing the backend...
Initializing provider plugins...

Checking for available provider plugins...
Downloading plugin for provider "azurerm" (terraform-providers/azurerm) 1.31.0...

Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
terraform validate
Success! The configuration is valid.

Ah - here's the problem:
python2.7 ../../scripts/az2tf.py -s 2>&1 | tee -a import.log
./az2tf.sh: line 123: python2.7: command not found
It couldn't find python v 2.7 on your system - so the main bulk of the code that generates the terraform didn't run
I'll code in a test to drop out with a better error......
In the meantime - unless you can run "python2.7"  - or alias that to python v2 on your system this isn't going to work for you....

If i run python it works fine and shows that its version 2.7
$ python --version                                                               Python 2.7.16

Hi,
There are many many ways python can get installed and be available on the command line.
I'll have to work some more logic in to cover all these cases.
In the meantime you should be able to work-around simple by changing that "python2.7"  to "python" in the az2tf.sh file (line 91)
If you have the time could you please give that a try and let me know how you get on ?
Thanks

Thanks! I'm now getting the following errors

python ../../scripts/az2tf.py -s 7e42623b-2051-4ab2-a66b-36b5866ac99b 2>&1 | tee                      -a import.log                                                                                Get Access Token from CLI                                                                            Subscription: 7e42623b-2051-4ab2-a66b-36b5866ac99b                                                   Traceback (most recent call last):                                                                     File "../../scripts/az2tf.py", line 200, in                                                    r = requests.get(url, headers=headers, params=params)                                              File "C:\Users\Zoe.MacKay\AppData\Roaming\Python\Python27\site-packages\reques                     ts\api.py", line 75, in get                                                                              return request('get', url, params=params, **kwargs)                                                File "C:\Users\Zoe.MacKay\AppData\Roaming\Python\Python27\site-packages\reques                     ts\api.py", line 60, in request                                                                          return session.request(method=method, url=url, **kwargs)                                           File "C:\Users\Zoe.MacKay\AppData\Roaming\Python\Python27\site-packages\reques                     ts\sessions.py", line 519, in request                                                                    prep = self.prepare_request(req)                                                                   File "C:\Users\Zoe.MacKay\AppData\Roaming\Python\Python27\site-packages\reques                     ts\sessions.py", line 462, in prepare_request                                                            hooks=merge_hooks(request.hooks, self.hooks),                                                      File "C:\Users\Zoe.MacKay\AppData\Roaming\Python\Python27\site-packages\reques                     ts\models.py", line 314, in prepare                                                                      self.prepare_headers(headers)                                                                      File "C:\Users\Zoe.MacKay\AppData\Roaming\Python\Python27\site-packages\reques                     ts\models.py", line 448, in prepare_headers                                                              check_header_validity(header)                                                                      File "C:\Users\Zoe.MacKay\AppData\Roaming\Python\Python27\site-packages\reques                     ts\utils.py", line 942, in check_header_validity                                                         raise InvalidHeader("Invalid return character or leading space in header: %s                     " % name)                                                                                requests.exceptions.InvalidHeader: Invalid return character or leading space in                      header: Authorization                                                                                terraform init

Hi,
Two things to try:

sudo pip install requests
have you logged in to azure via the CLI ?

Thanks

The issue is with the request module. Couldnt get it to work but thanks

When you fix that - it should be ok

having the same issue. I have python 3 and installed pip requests and pip adal.
@zoemac11 How did you solve this error?
@andyt530 can't find line 91 on the az2tf.sh file


Duplicate Carbonic Anhydrase Reactions

Background Information:
These are all the reactions that represent the carbonic anhydrase reaction currently in Human-GEM:

ID
reaction
Description

MAR03955
CO2 [c] + H2O [c] ⇒ H+ [c] + HCO3- [c]
one-step cytosolic version

MAR05406
CO2 [c] + H2O [c] ⇔ carbonate [c]
first step of two-step cytosolic version

MAR08749
H+ [c] + HCO3- [c] ⇔ carbonate [c]
second step of two-step cytosolic version

MAR03956
CO2 [m] + H2O [m] ⇒ H+ [m] + HCO3- [m]
one-step mitochondrial version

MAR08751
CO2 [m] + H2O [m] ⇔ carbonate [m]
first step of two-step mitochondrial version

MAR08750
H+ [m] + HCO3- [m] ⇔ carbonate [m]
second step of two-step mitochondrial version

MAR05407
CO2 [e] + H2O [e] ⇔ carbonate [e]
first step of two-step extracellular version

MAR05409
carbonate [e] ⇒ H+ [e] + HCO3- [e]
second step of two-step extracellular version

Problems:

The one- and two-step versions of this reaction in the cytosol and mitochondria enable arbitrarily large loop fluxes
All of these reactions should be reversible; even if the enzymes didn't catalyze both directions (which they do), this reaction occurs spontaneously at an appreciable rate in both directions

Proposed Changes:
I personally would remove the two-step versions and keep the one-step versions, because they just seem unnecessary complicated; the only other reaction that carbonate (MAM01421e/c/m) participates in is its exchange reaction, MAR13066), so it's not really adding anything of value to the model. But I recognize that you might want to keep the two-step versions and drop the one-step versions, so I have outlined both options:
Keep the one-step versions:

[ ] Remove MAR05406 and MAR08749 for being redundant with MAR03955
[ ] Remove MAR08751 and MAR08750 for being redundant with MAR03956
[ ] Make MAR03955 and MAR03956 reversible
[ ] Remove either MAR05407 or MAR05409 (one of the two extracellular reactions)
[ ] Edit either MAR05407 or MAR05409 (whichever wasn't removed) to be MAM01596e + MAM02040e <-> MAM02039e + MAM02046e so that all compartments accomplish this reaction in a single step
[ ] Remove MAR13066 (carbonate exchange reaction)
[ ] Remove MAM01421e, MAM01421c, and MAM01421m (carbonate)

Keep the two-step versions:

[ ] Remove MAR03955 for being redundant with MAR05406+MAR08749
[ ] Remove MAR03956 for being redundant with MAR08751+MAR08750
[ ] Make MAR05409 reversible

A direct impression is this is too large, please consider to break it down to manageable size

How would you split it? Compartment-specific GPRs in one issue and resolving the one-step vs two-step duplicates in another?

How would you split it? Compartment-specific GPRs in one issue and resolving the one-step vs two-step duplicates in another?

actually I don't know, which way do you prefer?
if you hope to keep it in one piece, please rebuttal

I'll split it into three separate issues once I get to work (in ~1 hour)

thanks - take your time :-)

So while I understand that reason for wanting to retain as many metabolites as possible in general, in the specific instance of retaining the "carbonate" metabolite, I don't think that's reasonable. In any system with both CO2 and water, there is a constant equilibrium between these reactions, which all happen spontaneously and rapidly equilibrate at the temperatures and pressures living cells typically find themselves in:
CO2 + H2O <-> H2CO3
H2CO3 <-> H+ + HCO3-
HCO3- <-> H+ + CO3-2
It is extremely difficult to separately measure the abundances of H2CO3, HCO3-, and CO3-2, and those measurements require entirely different experimental setups than those typically used in metabolomics experiments (source). As far as I know, metabolomics datasets will either not report abundances for any of these compounds, or do something like this paper where they estimate an approximate lower bound on the total amount of dissolved CO2, i.e. the sum of the abundances of H2CO3, HCO3-, and CO3-2
So as I said before, I don't think including the "carbonate" metabolites (which I put in quotes because those metabolite objects represent H2CO3, which is carbonic acid -- carbonate refers to CO3-2) adds anything to the models

It would be better for us to agree on general rule about how to deal with this kind of cases of lumped rxns. If that is agreed to keep as many mets as possible, then even the specific case is a little bit different, I would suggest follow the rule.
However, I totally agree with your comments in this specific case of carbonate. So if @haowang-bioinfo  also votes removing carbonate, I am also ok with that :)

agree to remove carbonate - one-step versions are always preferred if possible (Occam's razor principle)

I wouldn't necessarily say that a one-step reaction should always be preferred over a multi-step formulation. In some cases, it can be useful to explicitly show individual reaction steps, especially if those steps are catalyzed by different enzymes and/or the intermediate metabolite(s) are used in other reactions.
However, in this case I agree with all of you that keeping carbonate as an intermediate in these reactions is not so useful, and if anything just causes problems with loops and a larger-than-necessary model.
Keep up the good work @Devlin-Moyer, @haowang-bioinfo, and @feiranl!

@JonathanRob good points
So the reasons for keeping multi-step formulation are:

those steps are catalyzed by different enzymes
the intermediate metabolite(s) are used in other reactions

@JonathanRob good points
So the reasons for keeping multi-step formulation are:

those steps are catalyzed by different enzymes/subunits
the intermediate metabolite(s) are used in other reactions

@haowang-bioinfo
and I would suggest also keep if those intermediate metabolites are detected as metabolites in human metabolome data.

I would suggest also keep if those intermediate metabolites are detected as metabolites in human metabolome data.

good point

just wonder if reaction MAR05407: CO2 [e] + H2O [e] <=> H+ [e] + HCO3- [e] is needed, how about just remove it?

fixed in #601


[Suggestion] Port over Mr. Okushama's NES emulator?

That was a big, popular thing. People liked the concept of playing NES games on the mod. Maybe it should be ported over? Or better yet, integrated as an optional core for game entries to use, as defined in the JSON? So you can have new games made with the Java API, and legal homebrew (cough, cough) via the NES emulator core? Would make more sense than the frontend with a buttload of ROMs, IMHO.

I already asked Mr. Okushama if he would port his NES emulator over when I released the arcade mod, and he basically replied with what sounded like an optimistic "maybe" to me. :)
But I will in no way integrate the NES emulator straight into the mods code (again). This was how it was done in the old version of the mod and that was the thing that slowed me down in developing the mod. Because I did not understand what it did, and it was hardwired into many parts of the mod.
However, I am designing the current specification for arcade games in a way that allows them to run background threads if they want to (which was necessary for the NES emulator). And I am planning to have a seperate GitHub repo with a collection of curated games, that will be available to every mod user without having to download those games manually. And should oku port it over, it will definitely be in that list.


Allows for generic request handlers to be resolved.

For more information please refer to this so question: https://stackoverflow.com/questions/69546722/ninject-just-wont-register-mediatr-irequesthandler-using-convention-based-bi

Can you add a test to show a scenario that this addresses?

Can you add a test to show a scenario that this addresses?

Just saw your answer, sorry for delay.  In fact, I just can't see what kind of a test I could write to demonstrate what it addresses apart the given SO link provided (https://stackoverflow.com/questions/69546722/ninject-just-wont-register-mediatr-irequesthandler-using-convention-based-bi).
I'll try and perhaps come up with something.  In the meantime, I would not have created this request if I had not experienced any trouble.

No I understand you had an issue, but I don't like taking PRs that change behavior without a unit test that demonstrates what behavior this addresses. Otherwise I might break this behavior in the future.

No I understand you had an issue, but I don't like taking PRs that change behavior without a unit test that demonstrates what behavior this addresses. Otherwise I might break this behavior in the future.

I totally understand it.  I'll write a test to cover this issue then.  :)

No I understand you had an issue, but I don't like taking PRs that change behavior without a unit test that demonstrates what behavior this addresses. Otherwise I might break this behavior in the future.

I'm gonna need a hand to make the solution work on my computer as I just can't compile the cloned project.
First, I cloned using:

gh repo clone jbogard/MediatR gh/MediatR
cd /gh/MediatR
gh pr checkout 665

Then I can see my changes within the ContravariantBindingResolver class in the Ninject sample.
What I don't understand is how can't I even make it restore and compile?  Here's a screenshot of the error list.  This happens when I rebuild the entire solution.  It seems to bug on Ninject, and I suspect the problem is deeper than that.  Help would be appreciated.  I'm not used to contribute on gh.


Fix for Julia 0.5

I can see that @SimonDanisch has already an open PR for this.

Well, yours seems better :) And I see now: @keno supplied the same fix as well...


A trick based on triplet loss to improve performance

Add two-line code to improve performance slightly. Just name it as Harder Example Mining :)
Change $L = max(min(D_{an}) - max(D_{ap}) + m, 0)$ to $L = max(0.8min(D_{an}) - 1.2max(D_{ap}) + m, 0)$
See a code example from the line 109-110 of my implementation TripletLoss

@lulujianjie   i try 'Harder Example Mining' on cross datasets training，but it don't help.  maybe you can test it.
my traning datasets , all data :   Market1501 + MSMT17 + CUHK03-np
test on :  DukeMTMCreID （gallery + query ）


GovUK notify integration

Jira
https://tools.hmcts.net/jira/browse/RST-3427
https://tools.hmcts.net/jira/browse/RST-3164

Already merged via other branch