Which license governs the kotlin-tutorials?

Hi Team,
May you please advise which license governs the kotlin-tutorials repo/project?
Thanks,
Radi

Hi Team,
We would like to contribute to the project, but before we submit a PR we would like to make sure that we understand which license is governing kotlin-tutorials.
Please advise,
Radi

Hi Team,
May you please advise which license governs the kotlin-tutorials repo/project?
Thanks,
Radi

Hello Team,
May you please advise which license governs the kotlin-tutorials repo/project? And may you please post the project's open-source license in the project documentation?
Thanks,
Radi

Hi,
This repository serves only code examples presented on the baeldung.com site. Basically, only Baeldung's authors should contribute.
Hope this makes sense.


[CS2103-T16-3] ResidenceTracker

ResidenceTracker is a desktop app which can help landlord to manage multiple residences rent out on Airbnb. It uses quick CLI way to note down bookings and  track status of different residences (clean/occupied/needs cleaning...) , so the landlord can process booking in time and inform the cleaning agent as necessary.

Codecov Report

Merging #37 (99c8d6d) into master (c36220c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #37   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

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 c36220c...99c8d6d. Read the comment docs.


[Javascript][Calling SDK] createView promise pending state forever

Package Name: communication-calling
Package Version: 1.3.2
Operating system:
[X] browser

name/version:  Google Chrome 97.0.4692.99

After calling createView() promise in pending state forever when there is more than 6 camera video streams. This is why is not possible to render more than 6 video streams simultaneously.
Steps to reproduce the behavior:

Open tutorial app
Open Project/src/MakeCall/StreamRenderer.js file and in line 97 replace:

this.view = await this.renderer.createView();

with

const promise = this.renderer.createView();
console.log('[App][StreamMedia]', promise)
this.view = await this.renderer.createView();`

Run tutorial app in 8 tabs and join to the same room
You will see only 6 camera videos and in the console all cameras connected after 6th participant will be in forever pending state (this can be checked in console).

Expected behavior
I expect to see all cameras what is currently connected to the conference to be visible and createView() not to be in forever pending state.

Hi @andriinuts , thanks for reporting, currently we support rendering up 4 video streams at the same time with web SDK ( https://docs.microsoft.com/en-us/azure/communication-services/concepts/voice-video-calling/calling-sdk-features#calling-sdk-streaming-support )
Current behavior is not correct - we should fail (reject promise) createView sooner - we'll work on this fix

This is recommended limits, below this table there is a comment: While the Calling SDK won't enforce these limits, your users may experience performance degradation if they're exceeded., but thx for response.

There are hard limits - and as you can see results is pending promise, we'll work on improving this

closing as improvements were added 1,8+, if issue persists please reopen


Data grid self-Reference hierarchy IQueryable support.

Describe the bug
When using Data grid self-Reference hierarchy and setting the Data attribute to IQueryable Instead of IEnumerable and clicking the expand icon, nothing happens.
If I do .ToList() on my IQueryable and set it to IEnumerable then it works as expected.
To Reproduce
Create DataGrid with Data grid self-Reference hierarchy and set Data attribute to IQueryable
Additional context
I am using MongoDB C# driver instead of EF so this might be the problem.
I haven't tried this with EF.

Our demo is using exactly IQueryable:

Here is the same with explicitly declared variable as IQueryable:


Feat : build cmd support list and overwrite

Describe what this PR does / why we need it
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews

Not overwrite the BaseImage CMD


base-files build error with latest poky

NOTE: Applying patch 'profile-add-a-tuning-knob-to-allow-sbin-paths-for-no.patch' (../meta-overc/meta-cube/recipes-core/base-files/files/profile-add-a-tuning-knob-to-allow-sbin-paths-for-no.patch)
ERROR: Command Error: 'quilt --quiltrc /yow-lpggp31/ywei/overc/poky/build/tmp/work/genericx86_64-overc-linux/base-files/3.0.14-r89/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch profile-add-a-tuning-knob-to-allow-sbin-paths-for-no.patch
patching file profile
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- rejects in file profile
Patch profile-add-a-tuning-knob-to-allow-sbin-paths-for-no.patch does not apply (enforce with -f)

This issue is gone.


Editor is Getting Super Slow from Past Few Days

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: Latest Downloaded Today
OS Version:  21H2

Steps to Reproduce:

Whenever I try to open a new file from the server or from local drives it says the instance is already running.
When i try to save file file saved after 2 -3 minutes.

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Add Fixed Accordion Utility

@dtaylor113 @dlabrecq Please review

Not sure why 'pfFixedAccordion' is in 'patternfly.utils', seems like it should be in just 'patternfly'.
'patternfly' currently has the following directives: pfSelect, pfFocused, pfValidation; seems like pfFixedAccordion would fit here.

I've modified it to show up in the base patternfly area of ngDocs.

LGTM


can robotjs watch for mouse movement / actions like nodejs events?

So I see the pixel location picker, I want to build an automated one that watch for mouse click and just capture the location when its clicked somewhere... can robotjs watch that click action?
Expected Behavior
there maybe should be some sort of .on() function so we can watch if mouse's certain action took place and be able to have callback
Current Behavior
not see any documented way to do it
Possible Solution
new to this.. but with some help, I may be able to contribute?

hum.. maybe use this!!!
https://github.com/WilixLead/iohook


Fix bug that prevented names from being one character

Codecov Report

Merging #349 (b382dd6) into master (7d48c95) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #349   +/-   ##
=========================================
  Coverage     56.67%   56.67%
  Complexity      663      663
=========================================
  Files           126      126
  Lines          2862     2862
  Branches        362      362
=========================================
  Hits           1622     1622
  Misses         1112     1112
  Partials        128      128

Impacted Files
Coverage Δ

src/main/java/dash/model/person/Name.java
90.00% <ø> (ø)

Continue to review full report at Codecov.

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


Machine mac-27 & mac-11 lost external connection phone device.

Is there an existing issue for this?

[X] I have searched the existing infra issues

Type of Request
infra task
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
Machine mac-27 & mac-11 lost external connection phone device.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Both external connections have been restored by rebooting both machines.


Building and publishing an add-on utility component for MUI

Hey folks, I've built a small (TypeScript-enabled) utility component that extends MUI and I want to publish it on npm for easy installation. The component and its dependencies work fine if I copy and paste the files into a project (so far I've tested with Next.js and CRA), but I'm struggling to get it to transpile into a packagable format that doesn't cause a cornucopia of errors.
I've tried babel-loader, ts-loader, a combo of both, with and without webpack, and even though I can get it to generate files, they don't seem to work with React.
Trouble is I'm flying blind and just trying random things hoping they'll work. Now out of desperation, I'm hoping you might be able to point me in the direction of a build system or even documentation I could read that would help me?
Thanks!

@brandonscript Is there a repository you can share?
Maybe you can check out some of these related projects in the Material UI docs as a reference

Yep! https://github.com/brandonscript/mui-flexy


kubergrunt: 0.10.0 -> 0.10.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/gruntwork-io/kubergrunt/releases.
meta.description for kubergrunt is: Collection of commands to fill in the gaps between Terraform, Helm, and Kubectl
meta.homepage for kubergrunt is: https://github.com/gruntwork-io/kubergrunt
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.10.1 with grep in /nix/store/h9lg7klnhjqcgw21pc7fw1c4qh5gsp3m-kubergrunt-0.10.1
found 0.10.1 in filename of file in /nix/store/h9lg7klnhjqcgw21pc7fw1c4qh5gsp3m-kubergrunt-0.10.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
kubergrunt

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/h9lg7klnhjqcgw21pc7fw1c4qh5gsp3m-kubergrunt-0.10.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A kubergrunt https://github.com/r-ryantm/nixpkgs/archive/2c5a3273ce7242ac6e7f80877d43639d98432661.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/h9lg7klnhjqcgw21pc7fw1c4qh5gsp3m-kubergrunt-0.10.1
ls -la /nix/store/h9lg7klnhjqcgw21pc7fw1c4qh5gsp3m-kubergrunt-0.10.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

kubergrunt

Maintainer pings
cc @psibi for testing.

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

1 package built:

kubergrunt


Added fmt library

https://github.com/fmtlib/fmt

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


Type annotations / stubs

Did you ever consider adding type annotations or creating stubs for type checking?

I personally don't use typing so I don't mind its absence.
However, if you or someone else wants to contribute, I'd merge it provided that it won't be too much hassle for me to maintain in the future.

I wanted to start now with type annotations.
Currently you support python down to version 3.4. How important is this to you?
The typing module is part of the standard packages from 3.5. Type annotations became actually usable with 3.9+.
There a two approaches we could use:

I do the type annotations directly in the library.

PRO: easy to maintain as everything is in the base package
CON: minimum python version would increase to 3.9

I create an extra pypi package with the stubs

PRO: your code won't be touched
CON: harder to maintain, as every change to the original code needs to be mirrored in the stub package

In October this year Python 3.8 will be end-of-live ... (https://devguide.python.org/versions/), so I personally would go with option 1.
Which approach would you prefer?

The minimum I can go right now is Python 3.6.
Here are some estimated download stats for django-jsonform:

Python version
Downloads

3.6
~100/mo

3.7
~2,000/mo

3.8
~7,000/mo

I'm planning a major v3 (in a couple of months). So maybe then we can drop support for Python < 3.9.
I think for the time being, you should create a third party package for the stubs and we might merge it in v3.
Until then I can mention your library in the Docs and the Readme for people looking for typing support.

CON: harder to maintain, as every change to the original code needs to be mirrored in the stub package

The backend code rarely changes in django-jsonform. I don't think that would be too much work between updates.

I created a repo with the stub files ... I have not yet published a package yet ...
https://github.com/H4rryK4ne/django-jsonform-stubs


Support clangd's completion score extension

See https://clangd.llvm.org/extensions#code-completion-scores
Is this something that could be added to nvim-cmp?

Thank you! You can add it in the Wiki :)

Just or of curiosity, from the clangd docu:

Clients that fuzzy client-side filtering should multiply score by their fuzzy-match score and sort by the result.
Clients with non-fuzzy client-side filtering only should sort by score.
Clients that don’t support client-side filtering should ignore this and use sortText, which incorporates score and fuzzy-matching.

Which one of these statements applies to cmp? Judging from the code snippet posted by @dmitmel it's the second one...?

nvim-cmp supports fuzzy matching
The above example of comparetor uses only clangd's score only (does not multiply with client matching score)

I dunno, I didn't try it. As far as I understand, true being returned from a comparator means that the element A must come before B.


Implement AddPersonToModuleCommand

Implements AddPersonToModule command (Draft)
This pull request is intended for @ekweirui to see so as to maintain consistency in the codebase.
User guide pending in separate PR.
Rationale: Merging one feature will result in merge conflict on user guide file due to the command summary table being updated. It could hold up the merging of the feature itself if done together with implementing the feature.

Codecov Report
Base: 77.48% // Head: 77.72% // Increases project coverage by +0.23% :tada:

Coverage data is based on head (5ef2b6d) compared to base (0d79fa1).
Patch coverage: 81.25% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #101      +/-   ##
============================================
+ Coverage     77.48%   77.72%   +0.23%
- Complexity      722      745      +23
============================================
  Files           110      113       +3
  Lines          2203     2267      +64
  Branches        258      273      +15
============================================
+ Hits           1707     1762      +55
+ Misses          404      403       -1
- Partials         92      102      +10

Impacted Files
Coverage Δ

...c/main/java/seedu/address/model/module/Module.java
86.15% <25.00%> (-4.02%)
:arrow_down:

...s/logic/parser/AddPersonToModuleCommandParser.java
72.72% <72.72%> (ø)

...dress/logic/commands/AddPersonToModuleCommand.java
86.95% <86.95%> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
83.33% <100.00%> (+10.91%)
:arrow_up:

...ceptions/PersonAlreadyExistsInModuleException.java
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Enables BidFlow for users

This PR includes a few things:

Updates the Echo config to add a new feature called ARDisableReactNativeBidFlow (set to false).
Runs make update_echo to ship Eigen with the new feature.
Removes AROptions lab option for BidFlow.
Uses Echo config to show the user the new BidFlow (or the old one, if ARDisableReactNativeBidFlow is true).

Fixes PURCHASE-271

😱 🕹


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-28-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4087

Questions ?
Please refer to the Backport tool documentation


resizeCanvas event broken.

Hello,
The Window onresize canvas seems to be broken after updating to 0.11.1-SNAPSHOT (with the unchanged index.html) when doing indigo runGame for testing in
electron:indigo-support.js:21 Uncaught TypeError: Cannot set properties of null (setting 'height')
    at resizeCanvas (indigo-support.js:21)
    at later (indigo-support.js:9)

something changed?

Yes, there is another issue (poorly named): https://github.com/PurpleKingdomGames/indigo/issues/306
I think this is because I changed the way the canvas element is named but haven't accounted for that in the supporting JS.

Oh, yes, that's the one :-)


Exposed Unexport to user. #7

Andy,
I have added a close channel method which allows people to use the unexport method to cleanup the GPIO pins after they use them.

Thanks, Michael :)


retrieve kubernetes version from client-go - [closed]

In GitLab by @tmon546596046 on Dec 11, 2018, 08:39
Merges kubeversion -> dev

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 67.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 21.8%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 76.8%  %  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
The test coverage for backend is 70.5%  39.31%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:33
closed


Add default flank settings to optimize performance

Fixes #455
Chnages

Add FlankDefaults class to preserve defaults Flank settings
Update unit tests
Update documentation

Checklist

[x] Documented
[x] Unit tested

Codecov Report

Merging #644 into master will decrease coverage by 0.03%.
The diff coverage is 75%.

@@             Coverage Diff              @@
##             master     #644      +/-   ##
============================================
- Coverage     77.32%   77.29%   -0.04%
  Complexity      613      613
============================================
  Files            82       83       +1
  Lines          2329     2330       +1
  Branches        311      311
============================================
  Hits           1801     1801
- Misses          334      335       +1
  Partials        194      194


301 error when doing a curl on cli.fyi

When I do the $ curl cli.fyi/BTC example request, all I get is :

<title>301 Moved Permanently</title>

301 Moved Permanently

nginx/1.12.1 (Ubuntu)

I need to pass the -L parameter in order to get something.
I think this should be mentioned in the documentation, although it worked without before :confused:

Thanks for bringing this to my attention @VonKavalier! It's related to a bad Nginx update. I'll fix it ASAP.

Awesome ! Thanks for the quick reply :)
I'll close it then ;)


Presentation: Diagnostics listeners

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


Remember the input value of the Folder search

Checklist

[X] I have used the search function to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

App version
6.904
Where did you get the app from?

Expected behavior
It should remember the Filter until it is changed or removed/deleted.
Actual behavior
it forgets the filter
Logs
No response

Developer note: I've just spent quite a bit of time on this and failed to make SearchView properly restore the saved state. We've had so many problems with SearchView that we should probably spend time moving away from it rather than wasting time trying to make it do what we want.


On release append release date or version number to title?

We now have 4 monthly releases of the CoL with the title Catalogue of Life - Working Draft
These should have a better title like e.g. "Catalogue of Life, April 2020" or "Catalogue of Life, release 4". Of course we can manually change the title, but I think there should be an automated way of generating at least a unique title. How can we do this in a generic way that does not know about release frequency? Options to consider:

append the date: Catalogue of Life, 2020-04-13
append the release number: Catalogue of Life, release 4
append a configurable template that takes the date, release number and any of the dataset properties as a variable, e.g. Catalogue of Life ({alias}), {date,MMM YYYY} would result into Catalogue of Life (CoL), April 2020

I guess the last is the best with a default template of {title}, {date,YYYY-MM-dd} that can be changed in every project.

use freemarker or MessageFormat


How to run the Last version from the Commande Line  ?

Hello Team,
the manager of the project that i was working on last summer wants to execute ,now, my work from the commande line (and not from eclipse or Intellij Idea).
In this summer , @pstutz  showed me here this mvn command to run examples:
 mvn scala:run -DmainClass=org.opencypher.example.HelloCypher //(after mvn clean install)

however this last version dosen't contain a "pom.xml" , so mvn clean install dosen't work (I see that you use gradle to build)
So how to run from command line ?

I created a PR that allows you to run a specific Gradle job for custom Scala apps: https://github.com/opencypher/cypher-for-apache-spark/pull/793
Let's say you put your main class in spark-cypher-examples/src/main/scala/ the command would be:
./gradlew spark-cypher-examples:runApp -PmainClass=org.opencypher.example.HelloCypher


Index DataStream

Use the API to get polar data (they have a lot of Great Lakes stuff too). The API docs are here: https://github.com/datastreamapp/api-docs
The dataset landing pages all seem to be good schema.org json-ld, so I think we'd be in business.

It's a bug in the Gleaner miller, possibly the same one that I was seeing with the NSIDC.
An example jsonld dataset blob:
 { "@context": {"@vocab":"https://schema.org/"}, "@type": "Dataset", "@id": "ad780d9a-e6a7-4a6f-824c-367b40d377b8", "name": "ACAP Saint John: Temperature Logger Data", "description": "ACAP Saint John’s Water Quality Monitoring Programs aim to build upon the community-based water monitoring program established in 1992 in the Greater Saint John Area. The data collected from these various monitoring programs is used to track stressors, determine restoration sites, strengthen/shape policy, and expand community partnerships. Water temperature is logged in various watercourses across the Greater Saint John using temperature logger deployed for months at a time.", "url": "https://datastream.org/dataset/ad780d9a-e6a7-4a6f-824c-367b40d377b8", "version": "2.0.0", "datePublished": "2019-02-04T22:19:58.129Z", "dateModified": "2022-04-30T15:48:42.840Z", "isAccessibleForFree": true, "keywords": "Harbour, Saint John, New Brunswick, Water temperature, Urban, Bay of Fundy", "license": "https://opendatacommons.org/licenses/by/1-0/", "citation": "ACAP Saint John. 2022-04-30. \"ACAP Saint John: Temperature Logger Data\" (dataset). 2.0.0. DataStream. https://doi.org/10.25976/12cf-1g82.", "identifier": { "@type": [ "PropertyValue", "datacite:ResourceIdentifier" ], "datacite:usesIdentifierSchema": { "@id": "datacite:doi" }, "propertyID": "DOI", "url": "https://doi.org/10.25976/12cf-1g82", "value": "10.25976/12cf-1g82" }, "temporalCoverage": "2016-08-04T13:54:00-03:00/2018-12-06T10:55:50-04:00", "spatialCoverage": { "@type": "Place", "geo": { "@type": "GeoShape", "box": "-66.19002 45.193191 -65.88223 45.40079" } }, "measurementTechnique": "Water temperature is logged using either HOBO or EasyLog temperature loggers attached to cinder blocks and left in the watercourse for various time periods based on the program.", "variableMeasured": [], "creator": { "@type": "Organization", "name": "ACAP Saint John" }, "publisher": { "@type": "Organization", "name": "DataStream", "url":"https://datastream.org", "logo":"https://datastream.org/favicon.svg" } }
Gets turned into just
_:bcf4tc9a3cb2c73ao5p8g <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/Organization> . _:bcf4tc9a3cb2c73ao5p8g <https://schema.org/name> "ACAP Saint John" . _:bcf4tc9a3cb2c73ao5p90 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/PropertyValue> . _:bcf4tc9a3cb2c73ao5p90 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <datacite:ResourceIdentifier> . _:bcf4tc9a3cb2c73ao5p90 <datacite:usesIdentifierSchema> <datacite:doi> . _:bcf4tc9a3cb2c73ao5p90 <https://schema.org/propertyID> "DOI" . _:bcf4tc9a3cb2c73ao5p90 <https://schema.org/url> "https://doi.org/10.25976/12cf-1g82" . _:bcf4tc9a3cb2c73ao5p90 <https://schema.org/value> "10.25976/12cf-1g82" . _:bcf4tc9a3cb2c73ao5p9g <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/Organization> . _:bcf4tc9a3cb2c73ao5p9g <https://schema.org/logo> "https://datastream.org/favicon.svg" . _:bcf4tc9a3cb2c73ao5p9g <https://schema.org/name> "DataStream" . _:bcf4tc9a3cb2c73ao5p9g <https://schema.org/url> "https://datastream.org" . _:bcf4tc9a3cb2c73ao5pa0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/Place> . _:bcf4tc9a3cb2c73ao5pa0 <https://schema.org/geo> _:bcf4tc9a3cb2c73ao5pag . _:bcf4tc9a3cb2c73ao5pag <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://schema.org/GeoShape> . _:bcf4tc9a3cb2c73ao5pag <https://schema.org/box> "-66.19002 45.193191 -65.88223 45.40079"
Only the organization information is in there. The dataset information itself is missing.

example landing page: Carrot River Watershed Association Monitoring Program

For some reason we are getting the organizations but not the datasets themselves in the triplestore.

New plan: use the DataStream script that Yemisi wrote to grab just the DOIs and build a sitemap that lists the DOI urls. They'll resolve to the landing pages, with JSON-LD in them.

Buuuuut the API doesn't return schema.org json-ld! It returns its own metadata format that looks like this:
{     "205": {         "Id": null,         "DOI": "10.25976/vmet-ct64",         "Version": "4.0.0",         "DatasetName": "LakeWatch Water Quality Data",         "DataStewardEmail"<EMAIL_ADDRESS>        "DataCollectionOrganization": "Alberta Lake Management Society",         "DataUploadOrganization": "Alberta Lake Management Society",         "ProgressCode": "onGoing",         "MaintenanceFrequencyCode": "unknown",         "Abstract": "The Alberta Lake Management Society accepts requests from citizen scientists across Alberta to have their lake monitored as part of the LakeWatch program. Volunteers often contact the Alberta Lake Management Society due to concerns around eutrophication, harmful algal blooms, watershed developments, biodiversity monitoring, and for the early detection of aquatic invasive species. If accepted into the program, a lake will be monitored 4-5 times throughout the open water season: once in June, once in July, twice in August, and once in September. ALMS hires and trains field technicians in proper sampling techniques and it is these field technicians who arrange the sampling trips with the citizen scientists. At the lake, the citizen scientist’s role is to transport the technicians around the lake on a boat and to assist with sampling. The field technicians provide all necessary sampling equipment, support the volunteers in training, and oversee sample preservation, handling, and shipment. This program is free of charge for individuals hoping to collect water quality data from their lake. This program is made possible with the support of various funders, including the Government of Alberta, and would not be possible without hundreds of hours of volunteer time by lake stewards.",         "DataCollectionInformation": "Data is collected as both a profile and a composite sample. For profiles, Hydrolab multiparameter sondes are used to measure depth, temperature, conductivity, pH, dissolved oxygen, and redox potential at one location on the lake. Samples are recorded in increments of 0.5 or 1.0 meters. The multiparameter probes are calibrated on a weekly basis, with the exception of the RO meter which is calibrated monthly. At this location, a Secchi disk depth reading is also collected. The composite sample is comprised of water collected from ten locations around the lake. These samples are collected from the lake’s euphotic zone using a one-way foot-valve attached to weighted tubing. Samples collected using the composite method are ultimately poured off into various bottles to be tested for various parameters. Nutrients and general water chemistry are analyzed by Maxxam Analytics whereas total recoverable metals are analyzed by Innotech. Chlorophyll-a samples are filtered by field technicians before being sent for analysis.\n\nBiological data is also collected through the LakeWatch program. Biological data includes a zooplankton haul at the lake’s profile site, samples collected to detect spiny water flea and Dreissenid mussels, and a sample collected as part of the composite for phytoplankton taxonomy. \n\nA duplicate true-split total phosphorus sample is collected once per season at each lake to act as a quality control.",         "DataProcessing": null,         "FundingSources": null,         "DataSourceURL": null,         "OtherDataSources": null,         "Citation": "Alberta Lake Management Society. 2022. \"LakeWatch Water Quality Data\" (dataset). 4.0.0. DataStream. https://doi.org/10.25976/vmet-ct64.",         "Licence": "https://opendatacommons.org/licenses/by/1-0/",         "Disclaimer": null,         "TopicCategoryCode": [             "inlandWaters"         ],         "Keywords": [             "Water",             "Phosphorus",             "Citizen Science",             "Algae",             "Chlorophyll"         ],         "CreateTimestamp": "2022-04-30 15:48:48.852129+00"     } }

This now depends on API-based indexing for Gleaner
DONE IN Q4 (JANUARY - MARCH) 2023

We could also get json from the API directly, which is cool. CCADI works the same way, and so does DataCite. If I can add an extension to Gleaner that can take an API key (DataStream requires one) and handle results, then we could do away with some of our sitemap building.


Get Option for Cricular/Round Camera Preview

Feature Request
Motivation Behind Feature
Idea about capturing user's display picture
Feature Description
I need the camera preview that should display Circular or Round shape but should capture the image normally (Rectangle/Square). This can help the user to get idea how their display profile picture will look like.

This is not possible with current implementation as the native elements used don't allow it. You'll have to create your own plugin.


Port to windows & add CI

makes the code platform-independent, without changing the current behavior on linux.
adds a CI job that produces compiled binaries for windows, macos, and linux

Supporting all platforms is definitely a good thing, thank you.
What is the default config path for Windows and MacOS with these changes? On directories-rs example, they show the path for Windows being resolved to C:\Users\Alice\AppData\Roaming\Foo Corp\Bar App\config, though in this case it seems like \Foo Corp would be omitted (so the full qualified path would be C:\Users\Alice\AppData\Roaming\Shiny Dir\config\shinydir.toml), is that right?

Yes, it will be

C:\Users\Alice\AppData\Roaming\Shiny Dir\config\shinydir.toml on windows, and
/Users/Alice/Library/Application Support/Shiny-Dir/shinydir.toml on MacOS


As a prospective Cartography user, I'd like to play with sample data and query examples without needing to install Neo4j

Feature request template
Title: As a prospective Cartography user, I'd like to play with sample data and query examples without needing to install Neo4j
Description:

Describe your idea.  Please be detailed.  If a feature request, please
describe the desired behavior, what scenario it enables, and how it
would be used.

One way of doing this could be to provide a container with sample data (basically the output of a get_* function in one of our intel modules) and then on container startup, load that sample data to the Neo4j living in that container.
I'd like to see what others think of this idea or if there's a better way of accomplishing this task.

I think the easiest thing might be to use Neo4j's export and import functions with the Neo4j Playground.


Add new intent: wiki

https://github.com/the-vision/jarvis-telegram/wiki

@swapagarwal @TeAmP0is0N I can work on this. Please assign it to me.

@adityabisoi Go Ahead.


Converting to TF Lite with tf.lite.OpsSet.SELECT_TF_OPS is bounded

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Linux Ubuntu 16.04
TensorFlow installed from (source or binary):
binary
TensorFlow version (use command below):
v1.13.1-0-g6612da8951
Python version:
3.5.6 (Anaconda)
CUDA/cuDNN version:
CPU version

I am trying to export a very simple model (see code below) into TensorFlow Lite with loss function [1] and gradients [2] calculation support using the official tutorial [3].
Describe the current behavior
The model can be converted only when global step variable and custom cross entropy implementation are used (but it cannot be run on Android). Without one of them or both the converting process crashes.
Describe the expected behavior
The model should be converted with standard cross entropy implementation and without explicitly defined global step variable.
Code to reproduce the issue
import numpy as np
import tensorflow as tf

use_custom_crossentropy = True
use_global_step = True

inputs = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 0.0], [1.0, 1.0]])
labels = np.array([[0.0], [1.0], [1.0], [0.0]])

global_step = tf.Variable(0, trainable=False, name='global_step')
x = tf.placeholder(tf.float32, shape=(None, 2), name='Input')
y = tf.placeholder(tf.float32, shape=(None, 1), name='Output')

with tf.name_scope('layer1'):
    w1 = tf.Variable(tf.random_uniform([2, 2], -1., 1.), name='w1')
    b1 = tf.Variable(tf.zeros([2]), name='b1')
    l1 = tf.add(tf.matmul(x, w1), b1, name='l1')
    l1 = tf.nn.sigmoid(l1)

with tf.name_scope('layer2'):
    w2 = tf.Variable(tf.random_uniform([2, 1], -1., 1.), name='w2')
    b2 = tf.Variable(tf.zeros([1]), name='b2')
    model = tf.add(tf.matmul(l1, w2), b2, name='model')

for variable in tf.trainable_variables():
    var_name = variable.name.split(':')[0].replace('/', '_')
    var_value_ph = tf.placeholder(tf.float32, shape=variable.shape, name='{}_ph'.format(var_name))
    var_value_assign = tf.assign(variable, var_value_ph, name='{}_assign'.format(var_name))
    print(var_name, var_value_ph.name, var_value_assign.name)

if use_custom_crossentropy:
    cost = tf.nn.sigmoid(model)
    cost = tf.maximum(cost, 0.0) - cost * y + tf.log(1 + tf.exp(-tf.abs(cost)))
    cost = tf.reduce_mean(cost, name='cost')
else:
    cost = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(labels=y, logits=model),
                          name='cost')
optimizer = tf.train.AdamOptimizer(name='optimizer')
if use_global_step:
    train_op = optimizer.minimize(cost, global_step=global_step)
else:
    train_op = optimizer.minimize(cost)

init = tf.global_variables_initializer()
sess = tf.Session()
sess.run(init)

for step in range(10000):
    sess.run(train_op, feed_dict={x: inputs, y: labels})
print(sess.run(model, feed_dict={x: inputs}))

converter = tf.lite.TFLiteConverter.from_session(sess,
                                                 [x, y], [model, cost, train_op])
converter.target_ops = [tf.lite.OpsSet.TFLITE_BUILTINS,
                        tf.lite.OpsSet.SELECT_TF_OPS]
tflite_model = converter.convert()
with open('xor_old.tflite', 'wb') as f:
    f.write(tflite_model)

Other info / logs
use_custom_crossentropy = True
use_global_step = True

WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
layer1_w1 layer1_w1_ph:0 layer1_w1_assign:0
layer1_b1 layer1_b1_ph:0 layer1_b1_assign:0
layer2_w2 layer2_w2_ph:0 layer2_w2_assign:0
layer2_b2 layer2_b2_ph:0 layer2_b2_assign:0
2019-03-19 12:09:59.552926: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-19 12:09:59.586599: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-03-19 12:09:59.587967: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x5601b1c8d640 executing computations on platform Host. Devices:
2019-03-19 12:09:59.587988: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
[[-6.7735147]
 [-7.4516478]
 [ 4.8298645]
 [-6.928589 ]]
WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/lite.py:591: convert_variables_to_constants (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.graph_util.convert_variables_to_constants
WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/python/framework/graph_util_impl.py:245: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.graph_util.extract_sub_graph

use_custom_crossentropy = False
use_global_step = True

WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprec
ated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
layer1_w1 layer1_w1_ph:0 layer1_w1_assign:0
layer1_b1 layer1_b1_ph:0 layer1_b1_assign:0
layer2_w2 layer2_w2_ph:0 layer2_w2_assign:0
layer2_b2 layer2_b2_ph:0 layer2_b2_assign:0
2019-03-19 12:10:47.189917: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-19 12:10:47.214732: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-03-19 12:10:47.215498: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x560ffe1fcd90 executing computations on platform Host. Devices:
2019-03-19 12:10:47.215538: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
[[-3.9300842]
 [ 3.913724 ]
 [ 3.9203634]
 [-3.8768034]]
WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/lite.py:591: convert_variables_to_constants (from tensorflow.python.framework.graph_util_i
mpl) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.graph_util.convert_variables_to_constants
WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/python/framework/graph_util_impl.py:245: extract_sub_graph (from tensorflow.python.framework.graph_uti
l_impl) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.graph_util.extract_sub_graph
Traceback (most recent call last):
  File "./training_old_version.py", line 58, in <module>
    tflite_model = converter.convert()
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/lite.py", line 455, in convert
    **converter_kwargs)
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/convert.py", line 442, in toco_convert_impl
    input_data.SerializeToString())
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/convert.py", line 205, in toco_convert_protos
    "TOCO failed. See console for info.\n%s\n%s\n" % (stdout, stderr))
tensorflow.lite.python.convert.ConverterError: TOCO failed. See console for info.
2019-03-19 12:10:51.425153: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: Log1p
2019-03-19 12:10:51.434088: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: BroadcastGradientArgs
2019-03-19 12:10:51.434177: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: BroadcastGradientArgs
2019-03-19 12:10:51.434246: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: Reciprocal
2019-03-19 12:10:51.434268: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: BroadcastGradientArgs
2019-03-19 12:10:51.434696: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: BroadcastGradientArgs
2019-03-19 12:10:51.434748: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: SigmoidGrad
2019-03-19 12:10:51.434761: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: BroadcastGradientArgs
2019-03-19 12:10:51.434834: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: ApplyAdam
2019-03-19 12:10:51.434848: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: ApplyAdam
2019-03-19 12:10:51.434860: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: ApplyAdam
2019-03-19 12:10:51.434871: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: ApplyAdam
2019-03-19 12:10:51.434884: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: Assign
2019-03-19 12:10:51.434902: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: Assign
2019-03-19 12:10:51.434918: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: AssignAdd
2019-03-19 12:10:51.436899: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 110 operators, 148 arrays (0 quantized)
2019-03-19 12:10:51.437594: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After Removing unused ops pass 1: 21 operators, 30 arrays (0 quantized)
2019-03-19 12:10:51.438536: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 21 operators, 30 arrays (0 quantized)
2019-03-19 12:10:51.438758: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 1: 15 operators, 24 arrays (0 quantized)
2019-03-19 12:10:51.438853: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before dequantization graph transformations: 15 operators, 24 arrays (0 quantized)
2019-03-19 12:10:51.438930: I tensorflow/lite/toco/allocate_transient_arrays.cc:345] Total transient array allocated size: 256 bytes, theoretical optimal value: 192 bytes.
2019-03-19 12:10:51.439212: W tensorflow/lite/toco/tflite/operator.cc:1768] Op Log1p is a valid TensorFlow op but has not been whitelisted for the TensorFlow Lite flex op set.
2019-03-19 12:10:51.439273: W tensorflow/lite/toco/tflite/operator.cc:1768] Op Log1p is a valid TensorFlow op but has not been whitelisted for the TensorFlow Lite flex op set.
2019-03-19 12:10:51.439319: E tensorflow/lite/toco/toco_tooling.cc:421] We are continually in the process of adding support to TensorFlow Lite for more ops. It would be helpful if you could inform us of h
ow this conversion went by opening a github issue at https://github.com/tensorflow/tensorflow/issues/new?template=40-tflite-op-request.md
 and pasting the following:

Some of the operators in the model are not supported by the standard TensorFlow Lite runtime and are not recognized by TensorFlow. If you have a custom implementation for them you can disable this error w
ith --allow_custom_ops, or by setting allow_custom_ops=True when calling tf.lite.TFLiteConverter(). Here is a list of builtin operators you are using: ADD, EXP, FULLY_CONNECTED, GREATER_EQUAL, LOGISTIC, M
EAN, MUL, NEG, SELECT, SUB, ZEROS_LIKE. Here is a list of operators for which you will need custom implementations: Log1p.
Traceback (most recent call last):
  File "$HOME/miniconda3/envs/tf-cpu/bin/toco_from_protos", line 11, in <module>
    sys.exit(main())
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/toco/python/toco_from_protos.py", line 59, in main
    app.run(main=execute, argv=[sys.argv[0]] + unparsed)
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 125, in run
    _sys.exit(main(argv))
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/toco/python/toco_from_protos.py", line 33, in execute
    output_str = tensorflow_wrap_toco.TocoConvert(model_str, toco_str, input_str)
Exception: We are continually in the process of adding support to TensorFlow Lite for more ops. It would be helpful if you could inform us of how this conversion went by opening a github issue at https://
github.com/tensorflow/tensorflow/issues/new?template=40-tflite-op-request.md
 and pasting the following:

Some of the operators in the model are not supported by the standard TensorFlow Lite runtime and are not recognized by TensorFlow. If you have a custom implementation for them you can disable this error w
ith --allow_custom_ops, or by setting allow_custom_ops=True when calling tf.lite.TFLiteConverter(). Here is a list of builtin operators you are using: ADD, EXP, FULLY_CONNECTED, GREATER_EQUAL, LOGISTIC, M
EAN, MUL, NEG, SELECT, SUB, ZEROS_LIKE. Here is a list of operators for which you will need custom implementations: Log1p.

use_custom_crossentropy = True
use_global_step = False

WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprec
ated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
layer1_w1 layer1_w1_ph:0 layer1_w1_assign:0
layer1_b1 layer1_b1_ph:0 layer1_b1_assign:0
layer2_w2 layer2_w2_ph:0 layer2_w2_assign:0
layer2_b2 layer2_b2_ph:0 layer2_b2_assign:0
2019-03-19 12:13:04.851757: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-03-19 12:13:04.874754: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-03-19 12:13:04.875673: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x55832b67a430 executing computations on platform Host. Devices:
2019-03-19 12:13:04.875706: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
[[-6.0365562]
 [-6.613834 ]
 [ 5.176443 ]
 [-6.16683  ]]
WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/lite.py:591: convert_variables_to_constants (from tensorflow.python.framework.graph_util_i
mpl) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.graph_util.convert_variables_to_constants
WARNING:tensorflow:From $HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/python/framework/graph_util_impl.py:245: extract_sub_graph (from tensorflow.python.framework.graph_uti
l_impl) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.graph_util.extract_sub_graph
Traceback (most recent call last):
  File "./training_old_version.py", line 58, in <module>
    tflite_model = converter.convert()
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/lite.py", line 455, in convert
    **converter_kwargs)
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/convert.py", line 442, in toco_convert_impl
    input_data.SerializeToString())
  File "$HOME/miniconda3/envs/tf-cpu/lib/python3.5/site-packages/tensorflow/lite/python/convert.py", line 205, in toco_convert_protos
    "TOCO failed. See console for info.\n%s\n%s\n" % (stdout, stderr))
tensorflow.lite.python.convert.ConverterError: TOCO failed.  Is it
 a typo? To silence this message, pass this flag:  allow_nonexistent_arrays
Aborted (core dumped)

Below presented a log from Android for the successfully converted model.
2019-03-19 11:24:38.739 32452-32452/com.example.tflite E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.tflite, PID: 32452
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tflite/com.example.tflite.MainActivity}: java.lang.IllegalArgumentException: Internal error: Failed to run on the given Interpreter: cannot compute AssignAdd as input #0(zero-based) was expected to be a int32_ref tensor but is a int32 tensor
    	 (while executing 'AssignAdd' via Eager)Node number 15 (DELEGATE) failed to invoke.

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3086)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3229)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1926)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:213)
        at android.app.ActivityThread.main(ActivityThread.java:6981)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
     Caused by: java.lang.IllegalArgumentException: Internal error: Failed to run on the given Interpreter: cannot compute AssignAdd as input #0(zero-based) was expected to be a int32_ref tensor but is a int32 tensor
    	 (while executing 'AssignAdd' via Eager)Node number 15 (DELEGATE) failed to invoke.

        at org.tensorflow.lite.NativeInterpreterWrapper.run(Native Method)
        at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:149)
        at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:275)
        at com.example.tflite.MainActivity.onCreate(MainActivity.java:53)
        at android.app.Activity.performCreate(Activity.java:7326)
        at android.app.Activity.performCreate(Activity.java:7317)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3066)
        	... 11 more

[1] https://github.com/tensorflow/tensorflow/blob/v1.13.1/tensorflow/lite/toco/tflite/whitelisted_flex_ops.cc#L333-L334
[2] https://github.com/tensorflow/tensorflow/blob/v1.13.1/tensorflow/lite/toco/tflite/whitelisted_flex_ops.cc#L35
[3] https://www.tensorflow.org/lite/guide/ops_select#converting_the_model

When you use the non-custom loss implementation, internally TF will call the log1p operator, which is not supported by TF Lite (it's neither built-in nor select). So this will crash the conversion process.
I'm wondering if you could strip loss/train_op from the model and then convert it to TF Lite. TF Lite models can't be used for training, since it doesn't support gradient ops or variable updates.

Forgot the attach the code link where log1p is called:

I kept in mind the following.
The difference between the operations set of this simple graph (it includes training and assigning operations) and the set of allowed select operations is an empty set [1]. So if I recompile TF Lite for Android with select operations support [2] it will be possible to train model with TF Lite.
[1] https://colab.research.google.com/drive/1rpKNTPZ4z914PNqGzXlH3pnUDQnr5pVe
[2] https://www.tensorflow.org/lite/guide/ops_select#android_aar

Training in isn't supported in TensorFlow Lite.
We're looking into supporting Training. Stay tuned.

@haozha111, is it a not a good idea just to add Log1p operation into allowed Flex operations list?
It seems that the following modification works:
--- a/tensorflow/lite/toco/tflite/whitelisted_flex_ops.cc
+++ b/tensorflow/lite/toco/tflite/whitelisted_flex_ops.cc
@@ -170,6 +170,7 @@ bool IsWhitelistedFlexOp(const std::string& tensorflow_op_name) {
           "ListDiff",
           "_ListToArray",
           "Log",
+          "Log1p",
           "LogicalAnd",
           "LogicalNot",
           "LogicalOr",

The conversion will probably succeed if you add that op into the whitelisted flex ops. However, I doubt it will work as expected if you want to train it on device. Because TF Lite graph can only be used for inference at the moment.

Yes, conversion finished successfully, but after recompiling *.aar with bazel build --cxxopt='--std=c++11' -c opt --config=android_arm --config=monolithic //tensorflow/lite/java:tensorflow-lite-with-select-tf-ops I've got the error
 Caused by: java.lang.IllegalArgumentException: Internal error: Failed to run on the given Interpreter: Could not find valid device for node.
Node: {{node Log1p}}
All kernels registered for op Log1p :
  <no registered kernels>

         (while executing 'Log1p' via Eager)Node number 14 (TfLiteFlexDelegate) failed to invoke.

It seems that some modifications in TfLiteFlexDelegate are needed. Is it the right starting point?

However, I doubt it will work as expected if you want to train it on device. Because TF Lite graph can only be used for inference at the moment.

I think it will be good starting point for expanding TfLite functionality.


HAWKULAR-758 - Added cassandra driver as WF module

For reference, see hawkular/hawkular#617

LGTM, waiting for answers. I can't merge myself though, I don't have proper permissions.


changing the default sort order for facts_table

This would address #572

Coverage increased (+0.02%) to 82.332% when pulling 22e6f0551f9d7d2f0f94b4115b2f3f493d5145b4 on jokreliable:fact-order-572 into 91ef079ef020bdd0bbc632141e50cdc7069d8467 on voxpupuli:master.

I don't quite understand why the ci is failing on various versions of python with my change...

Thanks for the contribution @jokreliable !
This change looks very reasonable, I cannot find any trace of information why is the order desc instead of asc...
The only slight doubt about this PR that I have is that perhaps we should just change the order to asc everywhere, without the if.
But I'll just merge it for now to not delay this further. :)

Regarding the all asc, that would be good, I think, except for reports (where it's likely better to see the latest one on top). That being said, I'm not that familiar with the entire code base, so I could be wrong here...
In any case, thanks for merging that in!


invidious: 0.20.1-unstable-2024-03-31 -> 0.20.1-unstable-2024-04-10

Description of changes
cc @999eagle @sbruder @infinisil
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.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.

Add a :+1: reaction to pull requests you find important.


Uploading secret (processing tar file) to container failed with invalid symlink (CVE-2018-15664)

Hi,
I am running BuildConfig with s2i strategy on OKD 3.9 cluster and I am getting error:
{"message":"Error processing tar file(exit status 1): invalid symlink \"/tmp/..data\" -> \"..2019_08_06_16_00_26.551658995\""}
ERROR: Error occurred during injecting "/var/run/secrets/openshift.io/build/maven-setting" to "/tmp": Error response from daemon:

{"message":"Error processing tar file(exit status 1): invalid symlink \"/tmp/..data\" -> \"..2019_08_06_16_00_26.551658995\""}

My BuidConfig is:
apiVersion: build.openshift.io/v1
kind: BuildConfig
spec:
  source:
    secrets:
      - destinationDir: /tmp
        secret:
          name: maven-setting

Version of Docker daemon on compute node with failed build:
 Package version: docker-1.13.1-102.git7f2769b.el7.centos.x86_64
 Go version:      go1.10.3

Errors don`t occurs when I roll back docker package version to the older version:
Package version: docker-1.13.1-88.git07f3374.el7.centos.x86_64
 Go version:      go1.9.4

I found that it is due to this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1714722
Any plans to fix s2i secrets injection with CVE-2018-15664 fix in docker package?

Moving this issue to Bugzilla, as this appears to affect OpenShift builds (and not the s2i tool per se).
Note that this will likely not be patched to OKD 3.9, as it's downstream product (OpenShift Container Platform) reaches end of life in October.
https://bugzilla.redhat.com/show_bug.cgi?id=1738599

The problem also occurs in Openshift 3.11.  It was introduced after the docker fix https://bugzilla.redhat.com/show_bug.cgi?id=1714722 was applied to fix a vulnerability.  Downgrading to docker 1.13.1-96 or earlier will resolve this issue, however will leave docker vulnerable to the fix that was intended in the bugzilla.

yep we already know it applied to 3.10 / 3.11 as well @jbodswor but thanks
So the changes in the docker CVE fix, in particular https://github.com/moby/moby/pull/39292/files#diff-7d8fc0dcb0916621d523276add8210c2R33-R44, appear to have some bearing on the symlinks k8s employs with secrets to get automatic updates in case the secret changes, a la:
lrwxrwxrwx. 1 root<PHONE_NUMBER>  31 Aug 15 14:59 ..data -> ..2019_08_15_14_59_51.598105595
the relative path is the secret sauce there ... i.e. https://unix.stackexchange.com/questions/390844/creating-a-copy-of-a-file-that-gets-automatically-updated or https://serverfault.com/questions/389997/how-to-override-update-a-symlink
But it looks like the docker CVE fix does not like that use of .. .... I have some more verifications to do to prove that.
Certainly how k8s mounts secrets into a pod (in this case the build pod) is not going to change.
So we are exploring if we can we work around this .... i.e. convert the symlink to point to an absolute path instead of a relative path, when you are tarring/untarring the content
If we figure it out we'll be updating https://bugzilla.redhat.com/show_bug.cgi?id=1738599 and not this issue.


Update .travis.yml for faster runs

The --retry is default on Travis now.
Use Travis container for faster tests.
Cache Bundler downloads.

Coverage remained the same at 99.16% when pulling 2436c6a90a2cc801ad68a0f97080736da1ccffb9 on jc00ke:patch-1 into d8b3cecc07d2ee5e46f9c50868f01299c0afad17 on lotus:master.

Coverage remained the same at 99.16% when pulling 2436c6a90a2cc801ad68a0f97080736da1ccffb9 on jc00ke:patch-1 into d8b3cecc07d2ee5e46f9c50868f01299c0afad17 on lotus:master.

@jc00ke Thank you, Sir. :+1:


Fix prompt for user host for GHE

Reference: https://github.com/github/hub/issues/769

Nice and quick thanks :)


No valid OpenPGP block found

Hi!
I am not sure, whether this is an openkeychain issue or a k9 mail issue, that's why I'd like to post it here again: https://github.com/open-keychain/open-keychain/issues/1665
I use K9 5.007 and OpenKeyChain 3.7 on my Android with CM 12.1.
When I reply a mail, K9 mail adds the old message quoted like this:

This is the reply mail followed by the quotation of the original mail:

-----BEGIN PGP MESSAGE-----
Charset: utf-8
Version: GnuPG v2
hQIMA324sfl24ltklwqfl2tl2gw

However, K9 mail cannot decrypt my sent message then and Thunderbird tells me that no valid OpenPGP block could be found. This is how the sent mail looks then:

-----BEGIN PGP MESSAGE-----
hQIMAypJd8s8JCpBAQ//fWrPkSHfvGyh9YPbIn9OhQCOKCQM2yUusUiGbOxYPxbZ

When I compare it to a working encrypted mail

-----END PGP MESSAGE-----

is missing here at the end of the mail. So only a part of the encrypted messages seems to be sent!
How can I help you to narrow down the problem?

@Valodim Can you please have a look at this?

I wasn't able to reproduce this, so it does not seem to be a deterministic issue with replying. Since the actual symptom is that part of the message is missing at the end, my guess is that this is caused by  https://github.com/open-keychain/openpgp-api/pull/3. This is an issue in OpenKeychain, but the fix requires an update of the OpenPgpApi lib to version 0.9 so it's not included in K9 5.007.

We're using the IOpenPgpService2 that was merged into K-9 now. So I think we can probably close this one.


Adjust leaflet maps to have alpha <1

Spoke to Stuart about this and had a few thoughts:

we can add labels for places over the top. this feature is already implemented so saves stuart extra work.
we should probably move to normal svg maps rather than zoomable ones as this will lighten the site.

I have switched to SVG maps, and we are working on generate a list of places to lay over the top of each svg map (see #80)

Stuart has added this feature if we want to use it.


Added tour response for Upgrade and Validate actions, Closes #188

🎯 Aim
Adding the tour options and both md & tour options as settings for the upgrade and validate actions
📷 Result

✅ What was done

[X] Added Md, Tour, Both as upgrade options in the settings
[X] Added Md, Tour, Both as validate options in the settings
[X] Added tour logic to code for the upgrade option
[X] Added tour logic to code for the validate option

🔗 Related issue
Closes: #188

Awesome. Thank you for another awesome contribution. I will review it ASAP

@nicodecleyre I also did some merging to the dev branch. May I kindly ask you to rebase against latest dev

@nicodecleyre we just rebased dev branch with latest main.
May I kindly ask you to align your branch 🙏 Cheers

@nicodecleyre we just rebased dev branch with latest main. May I kindly ask you to align your branch 🙏 Cheers

Still working on it, having a little trouble with the rebase 😆

Hi Adam, you're right, there seems to be a sort of hickup. It seems that the setup right now "still lives in the past". I did some testing and this are the results:

run validate: no code tour selectable
run validate: validate code tour selectable
run upgrade: validate code tour selectable
run validate: validate & upgrade code tour selectable.

So it seems that only the tour from the previous run is selectable. Timeout doesn't seem to solve the problem right away. Will have to dig deeper.

Hi Adam, you're right, there seems to be a sort of hickup. It seems that the setup right now "still lives in the past". I did some testing and this are the results:

run validate: no code tour selectable
run validate: validate code tour selectable
run upgrade: validate code tour selectable
run validate: validate & upgrade code tour selectable.

So it seems that only the tour from the previous run is selectable. Timeout doesn't seem to solve the problem right away. Will have to dig deeper.

I wonder if we could open a issue in the code tour extension repo to ask for some advice 🤔?

Hi Adam, you're right, there seems to be a sort of hickup. It seems that the setup right now "still lives in the past". I did some testing and this are the results:

run validate: no code tour selectable
run validate: validate code tour selectable
run upgrade: validate code tour selectable
run validate: validate & upgrade code tour selectable.

So it seems that only the tour from the previous run is selectable. Timeout doesn't seem to solve the problem right away. Will have to dig deeper.

I wonder if we could open a issue in the code tour extension repo to ask for some advice 🤔?

It's not a tour related issue it seems. I've tested with 100, 200 & 300 ms which didn't do the trick. But with 500 ms latency, it seems to work (tested aaaaaaa lot 😜 ) and 500 is still acceptable for end users i guess. Will update the PR


Attach tags to projects

Tags will enable grouping of projects (#work, #web-dev) and the ability to visualize their aggregated data.

Implemented in ea824c4ca8b942e57e749f25978f0ab8a5afd370


Oauth2 authentication problems

following the suggested code in the docs for Oauth2 flow, I do this:
oauth2_user_handler = tweepy.OAuth2UserHandler(
    client_id="xxxxx",
    redirect_uri="http://<IP_ADDRESS>:8080",
    scope=["tweet.read", "tweet.write", "tweet.moderate.write", "users.read", "follows.read", "follows.write", "offline.access", "space.read",
           "mute.read", "mute.write", "like.read", "like.write", "list.read", "list.write", "block.read", "block.write", "bookmark.read", "bookmark.write"],
    # Client Secret is only necessary if using a confidential client
    client_secret="xxxxxxx"
)

print(oauth2_user_handler.get_authorization_url())
when I get the URL I authorize my user with the app, then I get redirected to the callback URL
then when I do this, by pasting the resulting URL, I get the following error :
access_token = oauth2_user_handler.fetch_token(xxxxxxx)
    raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidClientIdError: (invalid_request) Missing required parameter [code_verifier].

what I'm missing ? do I need to format the resulting url after auth on a specific way before passing it to fetch_token() ?
my needs are just to have my own user ( the account owner ) to use all these scopes defined. I don't need to have any other user using the app
thanks

just realized that this can be done just with the tokens and api keys provided by tweeter without the need to Oauth

I'm unable to reproduce this.
You'll have to provide how exactly you're passing the URL to fetch_token if you need further help with this.

do I need to format the resulting url after auth on a specific way before passing it to fetch_token() ?

No, it should be the full un-modified URL.

just realized that this can be done just with the tokens and api keys provided by tweeter without the need to Oauth

You need to use OAuth to authenticate. There is no way around that.
If you're referring to the OAuth 1.0a User Context credentials that you can generate through the Twitter Developer Portal, that is still OAuth.


Sample Spfx Webpart read / update MS Graph Custom Schema Extensions

Q
A

Bug fix?
no

New feature?
no

New sample?
yes

What's in this Pull Request?
This sample shows how read and update a custom Schema extension in MS Graph. It shows how to create a
custom Schema extension in Graph to store custom data related to an Office 365 Group, and how we can read and update
that data using an spfx webpart.
A possible business scenario here could be if we want to store some additional custom data related to some specific
Office 365 Groups, for instance Sales information, and make it available in the SharePoint site.

Really cool scenario and absolutely super valuable sample as well. You noted that you'd be welcome to demo this in community call - so - Any change you could demonstrate this in the upcoming monthly community call on 10th of July. Would be perfect demo there for 15 min spot and great solution demonstrating end-to-end SPFx solution, permissions and MS Graph usage.

Thanks @VesaJuvonen ! yeah, count me in to demonstrate this sample in the next community call (10th July). Speak you soon.

Here's first promo of that call - thanks for volunteering - https://twitter.com/SharePoint/status/1014905706884059136


Combining two effects on one page - CSS clashing

Hi Mike,
I am trying to use both effect 6 and 12 on a page but the supplied CSS is clashing. I've tried to look at your CSS on the main demo page and notice you are renaming things to ehover but could you help me combine the CSS for just those 2? Or any tips you could give would be great - I'm not very technical.
Thanks in advance,
Hannah

Hi Hannah,
Of course! Yes I renamed them all to use all 12 in my example.
As you are not very technical I would recommend doing it this way just so it really clearly separates both the effects even though some code would be reused. So copy the first effect you want to use and use it.
Then when you copy the code for effect 12 rename all the references of "hovereffect" to "hovereffect2" in the css and html for hover effect 12
So in your case hovereffect will be effect 6 and hovereffect2 will be effect 12.
If this is still confusing let me know

That's perfect, thanks. Just have to tweak it all now.
One final question (sorry). On the effect 12 you have the social media icons which seem to be pulling in from somewhere. Do you know how I could get these to work/how I can link to them?
Thank you so much for your speedy response!
Hannah
Date: Thu, 18 Feb 2016 07:15:10 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [miketricking.github.io] Combining two effects on one page - CSS clashing (#3)
Hi Hannah,
Of course! Yes I renamed them all to use all 12 in my example.
As you are not very technical I would recommend doing it this way just so it really clearly separates both the effects even though some code would be reused. So copy the first effect you want to use and use it.
Then when you copy the code for effect 12 rename all the references of "hovereffect" to "hovereffect2" in the css and html for hover effect 12
So in your case hovereffect will be effect 6 and hovereffect2 will be effect 12.
If this is still confusing let me know
—
Reply to this email directly or view it on GitHub.

I think this is what you are looking for:
https://fortawesome.github.io/Font-Awesome/get-started/
I am using font-awesome icons for the social media icons. With my code that you have copied it will work. All you need to do is import the font awesome icons by putting:

In the  section of your HTML file

Thanks for the link- that works perfectly!
Kind regards,
Hannah
Date: Thu, 18 Feb 2016 08:04:14 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [miketricking.github.io] Combining two effects on one page - CSS clashing (#3)
I think this is what you are looking for:
https://fortawesome.github.io/Font-Awesome/get-started/
I am using font-awesome icons for the social media icons. With my code that you have copied it will work. All you need to do is import the font awesome icons by putting:
In the  section of your HTML file
—
Reply to this email directly or view it on GitHub.


[Question]  Some confusion about activity calculation

Description
I have a doubt, as shown in the picture below, my activity is 79.16 in January 2022 and 61.5 in March 2022, but the activity is 1.0 in February, so I want to know what is the basis for calculating the activity. This is my homepage：https://github.com/zhicheng-ning

Hello @zhicheng-ning, we caculate the activity metrics based on your issues, PRs and others but not on commits directly pushed into repos.
Yes, your activity dropped so dramatically in February so I think it might need to be further confirmed. @frank-zsy

The data is correct on my side.

Maybe you participant in some discussion which is not included in GitHub event log right now. @zhicheng-ning

@zhicheng-ning From the data, you participant in ByteLegend a lot in Jan. and Mar. , can you confirm on yourself that you also active a lot in Feb. ? Issues or PRs with URL are enough.

And here is the data status of the data import service, from the missing files, we can see all data has been imported for 2022.2, not a single hour is missing.
http://<IP_ADDRESS>:9238/status

@zhicheng-ning From the data, you participant in ByteLegend a lot in Jan. and Mar. , can you confirm on yourself that you also active a lot in Feb. ? Issues or PRs with URL are enough.

Yes, I just checked the activity records in Feb. The main reason is that there are activities in my repository. My activities on bytelegend are not frequent. Thank you!

Yes, I just checked the activity records in Feb. The main reason is that there are activities in my repository. My activities on bytelegend are not frequent. Thank you!

No problem, the thing is if you only commit to repos, the events are not counted as activity index since it is not a collaborate action.


Added Swedish Forestry Agency dataset

Added the tree detection dataset from the Swedish Forestry Agency.

Great find! Thank you for creating the contribution :)


Should readonly modifiers be output?

Note that this could be implemented better as a prefix unary operator. Whilst it can't appear anywhere, that's a matter of correctness that we needn't concern ourselves with.

Note that this could be implemented better as a prefix unary operator. Whilst it can't appear anywhere, that's a matter of correctness that we needn't concern ourselves with.

https://github.com/samhh/tshm/commit/b605e0ce2a9d656509e0c718bcaa2bcfc83a3dae

https://github.com/samhh/tshm/commit/b605e0ce2a9d656509e0c718bcaa2bcfc83a3dae


Sync with Google Drive

Since every Android user normally also has a Google Drive account, (auto)syncing to Google Drive would be an additional measure to keep your texts safely backuped.

The feature is under development.

Nice to hear. Do you have an ETA?

May be early of July.

WriterSync (https://play.google.com/store/apps/details?id=co.easy4u.writer.sync) has been released. You can use it to sync files in WriterPlus app.


error is an empty object using throw new Error(error)

Describe the bug
When using throw new Error, the value of error is set as an empty object.
Your minimal, reproducible example
https://codesandbox.io/s/rq-throw-issue-iyz0xi?file=/src/index.js
Steps to reproduce

Wait for the RQ query to execute
The error will be shown as {}
Go to line 23 and change it to throw "Oh snap!"
The error will be shown as Oh snap!

Expected behavior
The error property to be set correctly when using throw new Error(error)
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Firefox, 100.0 (64-bit)
react-query version
3.38.1
TypeScript version
No response
Additional context
No response

The problem is merely that you cannot json stringify an Error object. This will just yield empty object. You can try this in the console:
JSON.stringify(new Error("my message"))

changing it to:
<div>{isError ? `Error: ${error.message}` : ""}</div>

just works as expected. working sandbox fork: https://codesandbox.io/s/rq-throw-issue-forked-rz5mfg?file=/src/index.js


rename download files to specify and update or delete

Fixed by #https://github.com/sul-dlss/libsys-airflow/pull/972


Have better formatting for the LocalStack URL

Description
This change is a minor improvement to how we create the URL to connect to LocalStack (a fake version of AWS used during local development):

Include the ".s3" part of the URI directly in the configuration file instead of adding it later in the Java code.
Have the localStackEndpoint method return a URI instead of a String so that AwsApplicantStorage doesn't need to convert the Stringback to aURI. (And a future PR for program images also requires a URIobject instead of aString`.)

Release notes
Checklist
General
Read the full guidelines for PRs here

[x] Added the correct label: < feature | enhancement | bug | dependencies | infrastructure | ignore-for-release | database >
[x] Assigned to a specific person, civiform/developers, or a more specific round-robin list.
[x] Performed manual testing (Chrome and Firefox if it includes front-end changes)

Instructions for manual testing

On a local server, verify uploading a file as an applicant still works.
On a local server, verify uploading a program image as an admin still works.

Issue(s) this completes
Related to epic #5676

Current dependencies on/for this PR:

main

PR #6341   👈

PR #6314

PR #6325

This stack of pull requests is managed by Graphite.

Rocky, I realized why the LocalStack URL in cloud.conf didn't have the "s3." in it 😅 It's because other LocalStack actions like emailing applicants once they've submitted an applications shouldn't have "s3." in the URL. I've updated this PR to only add the "s3." in AwsStorageUtils.
I've doubled checked locally that:

Browser tests now pass
Applicant file upload still works
Program image file upload still works
Applicants can see published program images

I think you should re-approve since it's mildly different from before, I'll request after the long weekend!

Rocky, I realized why the LocalStack URL in cloud.conf didn't have the "s3." in it 😅 It's because other LocalStack actions like emailing applicants once they've submitted an applications shouldn't have "s3." in the URL. I've updated this PR to only add the "s3." in AwsStorageUtils.
I've doubled checked locally that:
1. Browser tests now pass

2. Applicant file upload still works

3. Program image file upload still works

4. Applicants can see published program images

I think you should re-approve since it's mildly different from before, I'll request after the long weekend!

Wow good catch! This looks good to me, just one question for my own understanding.

Merge activity

Jan 17, 10:58 AM: @caitlinshk started a stack merge that includes this pull request via Graphite.


Pause before checking alarm status

The Verify-Maas playbook has two tasks:

Wait for all checks & alarms to be registered
Check that no alarms are triggered.

The problem is the step 2 happens before most of the checks have had
time to run. This patch introduces a two minute wait, to ensure all
checks have had time to run. (default check interval is 60s).
Related: #798

recheck

recheck

:+1: lgtm

I hate this, and I feel like we should be polling for results instead of blindly setting timeouts and waits all over the place. But, since this is the best we have for now. :+1:


Add "tls" extra to Twisted requirement

This is required to install dependencies required for TLS support in Twisted >= 15.1.0 (see https://github.com/twisted/twisted/blob/twisted-15.1.0/NEWS).

Hi, Anyone please please help me to solve the problem

My 1st Problem is :- When I run ./prepare_etcd.sh, I am getting error in last line :-> "W1013 07:02:03.298388 528384 etcd.cc:798] Got invalid JSON:**"

My2nd Problem is :- How to get Base64 Log ID..?

Please help me


More Replacement

It took a lot of restraint to not call this "ArMored".
This rewrite of the More app written in QML is mostly made to make it possible to add third party repositories outside of the default repository. This is being pushed to the community apps for proper testing before outright replacing the current more app. With this new more app it should make the barrier to trying my other replacement proposals much smaller and make any bug fixes faster.
Currently does not have compatibility with this repository. Temporary support will be added soon:tm:.
As always feedback is highly encouraged. No restraints!
TODOS:

[ ] Backwards compatibility with legacy metadata.js.

[ ] Add Overte community-apps repo by default.

[ ] Documentation (README.md).
[ ] Test on tablet interface

[ ] https://github.com/overte-org/overte/pull/1046

Until I can get around to documentation you can add my test repo as a entry.
https://raw.githubusercontent.com/Armored-Dragon/overte-thirdparty-test-repo/master/metadata.json

The menu button now takes you to a menu page where you can choose between a list of installed applications and the repository manager page.


setting up using docker-compose | help needed

yay.. nice project :)
but its lacking some documentation. I want to try to help.
questions about the distrust.yml file:
listenAddr: <IP_ADDRESS>:3000
This is the address to listen to all requests to login?
Can I re-use the same private key that you posted on this repository? How can I generate my own private key?
What means allow_groups ?
thanks! :) I want to be able to use discourse as a open id provider.. to connect to nextcloud.. and later to mastodon/peertube... :)

making progress: https://github.com/ory/fosite will read this

Sorry for the late response,
the listenAddr is used by the server to bind to a port.
allowGroups can be used to restrict the client to discourse groups (e.g you only want team members to use nextcloud).
When configuring nextcloud you must configure the oidc_login_provider_url.
It should be: https://your-auth-server/oauth2
If you want to generate a private key run ./distrust genkey

will test and give feedback.. thank ya.. amazing work!! \o/ juhuuuu been waiting for this for weeks.

I get this on the logfile of distrust:
openid_distrust_1 is up-to-date
Attaching to openid_distrust_1
distrust_1  | 3:29PM INF clients loaded numClients=1
distrust_1  | 3:29PM INF Starting server url=http://<IP_ADDRESS>:3000
distrust_1  | 3:30PM TRC request finished duration=0.024997 from=<IP_ADDRESS>:43026 method=GET path=/ status=307
distrust_1  | 3:31PM TRC request finished duration=0.046828 from=<IP_ADDRESS>:45780 method=GET path=/.wellknown/ status=404
distrust_1  | 3:34PM INF clients loaded numClients=1
distrust_1  | 3:34PM INF Starting server url=http://<IP_ADDRESS>:3000
distrust_1  | 3:34PM TRC request finished duration=0.014457 from=<IP_ADDRESS>:49586 method=GET path=/.well-known/openid-configuration status=404
distrust_1  | 5:54PM TRC request finished duration=0.225272 from=<IP_ADDRESS>:36438 method=GET path=/ status=307
distrust_1  | 3:59PM TRC request finished duration=6.829464 from=<IP_ADDRESS>:54070 method=GET path=/ status=307
distrust_1  | 4:00PM TRC request finished duration=2.605694 from=<IP_ADDRESS>:54182 method=GET path=/oauth2 status=404
distrust_1  | 4:00PM TRC request finished duration=0.038773 from=<IP_ADDRESS>:57194 method=GET path=/oauth2 status=404

the <IP_ADDRESS> is the gateway.. but it doesnt matter much in here..

It looks like nextcloud is still configured wrong. It should try to use /oauth2/.well-known/openid-configuration

When i go to
https://discourseserver/oauth2/.well-known/openid-configuration
I get
"404 / Not found"

For the consumers (nextcloud etc) you need to specify the distrust url, not the discourse url since the distrust server acts on its own and does no register routes with discourse

ill close this. and open a new one. hope you can still answer me


Clarification on the use of plain text passwords within code

The article states "as we all know, storing user credentials locally is not a good security practice", but then with no caveats goes on to immediately show an example doing precisely that:
ConvertTo-SecureString -String "<MyPassword>" -AsPlainText

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

ID: d2cfafdf-cbe9-2ffe-eabe-becc66d51728
Version Independent ID: 4a46c8a8-dc70-d877-271e-6679c465a6d5
Content: App-only authentication in Exchange Online PowerShell and Security & Compliance PowerShell
Content Source: exchange/docs-conceptual/app-only-auth-powershell-v2.md
Service: exchange-online
GitHub Login: @chrisda
Microsoft Alias: chrisda

@AAdamCCox, it would seem the whole point of the procedures in that topic is automation (no user intervention).
With 'connect using a local certificate' method, you basically have 3 ways to enter the password for the CertificatePassword parameter:

(ConvertTo-SecureString -String '<password>' -AsPlainText -Force).
Before you run the command, store the password as a variable (for example, $password = Read-Host "Enter password" -AsSecureString), and then use the variable ($password) for the value.
(Get-Credential).password to be prompted to enter the password securely when you run the command.

Two out of three options involve being prompted for the password, which would seem to defeat the purpose of automation.
The remaining connection methods ('connect using a certificate thumbprint' and 'connect using a certificate object') don't require a password.
So are you saying that adding a note like this to the 'connect using a local certificate' method is the fix?

[!NOTE]
Unless you want to be prompted for the password, this method stores the password locally.

Or should I replace that CertificatePassword value with one of the two 'prompt me' options for the password (likely, the last one)?

Hi @chrisda yes I think a note like that would make it clear that there's no automated and secure way to use a local certificate PFX file, making this approach unsuitable for production use.
Since it might be recommended only while manually testing a PFX, perhaps switching the example to use Get-Credential would also be appropriate? Given that in that context, automation isn't the goal, yet we can still show a best practice approach for handling passwords securely.

@AAdamCCox, thanks for the suggestions.
I moved 'connect using a local certificate' after 'connect using a certificate thumbprint' and 'connect using a certificate object' to deemphasize IT, and I added the following note to it:

[!NOTE]
Using a ConvertTo-SecureString command to store the password of the certificate locally defeats the purpose of a secure connection method for automation scenarios. Using a Get-Credential command to prompt you for the password of the certificate securely isn't ideal for automation scenarios. In other words, there's really no automated and secure way to connect using a local certificate.

OK?

Looks good, thanks!


browserify on Windows - easy fix

@substack - you updated node-resolve to fix it for Windows, but you forgot to update the package.json requirements for Browserify to pick up 0.1.2.
Any chance you can fix this?

Jeah it would be really useful to have this included. Copying the stuff by hand is always so ugly.

+1


impossible to change incident commander through dispatch menu

Describe the bug
Sometimes it's impossible to change incident commander within incident through Dispatch incident menu
To Reproduce
Steps to reproduce the behavior:
Go to Dispatch Incidents
Click on 3 dots on the right of an incident and then View/Edit
Click on commander field and try to change it to someone else
See that no changes were made after page reload, soemtimes commander changes back instantly after change
Expected behavior
Incident commander suppose to change

What release/tag of dispatch are you currently running? I believe this bug has been fixed in the most recent releases.


elfutils and stack packages conflict

Both the elfutils and stack packages provide a stack binary, which conflict.

The standard solution is to indicate a precedence to manually resolve the conflict. What else would you propose?

Debian and Linux from Scratch prefix all scripts from elfutils with "eu-":
https://packages.debian.org/jessie/amd64/elfutils/filelist
http://www.linuxfromscratch.org/blfs/view/svn/general/elfutils.html

@edolstra is listed as the maintainer of elfutils

Closing since there doesn't seem to be any interest in fixing this, and I've moved on to another distro.