Cannot run the "manual (advanced)" example from the zipline beginner tutorial.

Hi everyone,
I am following the zipline  beginner tutorial.
I took the "manual (advanced)" example from http://www.zipline.io/tutorial/. As my purpose is to use zipline to backtest with my own data.
I got an error that I don't know why it comes. Below is the error message and the source code of the example . Anyone knows the reason ??

perf_manual = algo_obj.run(data)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\algorithm.py", line 423, in run
for perf in self.gen:
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\gens\tradesimulation.py", line 127, in transform
self.algo.instant_fill,
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\gens\tradesimulation.py", line 214, in _process_snapshot
new_orders = self._call_handle_data()
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\gens\tradesimulation.py", line 236, in _call_handle_data
self.algo.handle_data(self.current_data)
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\algorithm.py", line 226, in handle_data
self._handle_data(self, data)
File "", line 2, in handle_data
NameError: global name 'order' is not defined
from zipline.algorithm import TradingAlgorithm
from zipline.utils.factory import load_bars_from_yahoo
perf_manual = algo_obj.run(data)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\algorithm.py", line 423, in run
for perf in self.gen:
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\gens\tradesimulation.py", line 127, in transform
self.algo.instant_fill,
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\gens\tradesimulation.py", line 214, in _process_snapshot
new_orders = self._call_handle_data()
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\gens\tradesimulation.py", line 236, in _call_handle_data
self.algo.handle_data(self.current_data)
File "C:\Users\mickael\Anaconda\lib\site-packages\zipline\algorithm.py", line 226, in handle_data
self._handle_data(self, data)
File "", line 2, in handle_data
NameError: global name 'order' is not defined

--------------------------------------------------------------
import pytz
from datetime import datetime
from zipline.algorithm import TradingAlgorithm
from zipline.utils.factory import load_bars_from_yahoo
Load data manually from Yahoo! finance
start = datetime(2000, 1, 1, 0, 0, 0, 0, pytz.utc)
end = datetime(2012, 1, 1, 0, 0, 0, 0, pytz.utc)
data = load_bars_from_yahoo(stocks=['AAPL'], start=start,
end=end)
Define algorithm
def initialize(context):
pass
def handle_data(context, data):
order(symbol('AAPL'), 10)
record(AAPL=data[symbol('AAPL')].price)
Create algorithm object passing in initialize and
handle_data functions
algo_obj = TradingAlgorithm(initialize=initialize,
handle_data=handle_data)
Run algorithm
perf_manual = algo_obj.run(data)
[2014-07-25 17:12] INFO: Performance: Simulated 3019 trading days out of 3019.
[2014-07-25 17:12] INFO: Performance: first open: 2000-01-03 14:31:00+00:00
[2014-07-25 17:12] INFO: Performance: last close: 2011-12-30 21:00:00+00:00
AAPL

I found the solution. I was in the  DOC: Fix tutorial import. Closes #430.
Though, I will comment the correction because it is not clearly visible is the #430.
I simply just had to add these two lines at the beginning of the script:
import zipline
from zipline.api import order, record, symbol
So I suggest the http://www.zipline.io/tutorial/ to do this tiny correction.
cheers,
mayouf


naabu: 2.1.6 -> 2.1.7

Diff: https://github.com/projectdiscovery/naabu/compare/refs/tags/v2.1.6...v2.1.7
Changelog: https://github.com/projectdiscovery/naabu/releases/tag/v2.1.7
Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] Fits CONTRIBUTING.md.

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

1 package built:

naabu


Create note_memory_zh.md

@tqchen Should we create a separate folder for chinese docs?

yes, let us put it under doc/zh

why does this pull is not succeed？
Some checks were not successful
1 errored and 1 successful checks
Details Required  continuous-integration/travis-ci/pr — The Travis CI build could not complete due to an error

and i don't see anything in mxnet/master, i should create a folder like /zh?

yes, create mxnet/doc/zh


feat (DDI-641): Close modal on esc key press

Error is seen in console logs when modal is opened second time

https://user-images.githubusercontent.com/107069489/223515943-cb044f02-518d-4639-a287-36c7b313af15.mp4

:tada: This PR is included in version 4.0.0-alpha.122 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.162 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.0.0-alpha.15 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.21 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Separate exchange market cache, support additional alt markets

Supported additional alt markets
This required me to add gateio exchange support
Pulled out the exchange market cache into a separate method, this allows you to test the plugin via the console easily
The caching being pulled into a separate method also allows for consistent initialization of a market, including the "enableRateLimit": True flag

Two additional errors I ran into:
DEBUG: Found path - ['GUSD', 'USD']
DEBUG: Found path - ['GUSD', 'USD']
DEBUG: Exception from server, most likely too many requests. Making another attempt after 0.1 second delay. Exception - cex fetchOHLCV warning: CEX can return historical candles for a certain date only, self might produce an empty or None reply. Set exchange.options['fetchOHLCVWarning'] = False or add({'options': {'fetchOHLCVWarning': False}}) to constructor params to suppress self warning message.

DEBUG: Exception from server, most likely too many requests. Making another attempt after 0.1 second delay. Exception - coinbase fetchOHLCV() is not supported yet
DEBUG: Exception from server, most likely too many requests. Making another attempt after 0.1 second delay. Exception - coinbase fetchOHLCV() is not supported ye

Going to submit another commit here to clean up these errors

@iloveitaly If you don't have time to patch this up, that's fine. I'll merge it and patch it that way. Just let me know.

@macanudo527 sorry, short on time over here! Not going to have time to patch this up :( Feel free to merge + adjust from there.

I integrated some of the changes manually. I didn't implement the caching function because I just don't have the time to test it properly and I won't be using it.
Thanks for the ideas. If either of us has more time, we can open this back up and possibly implement all the changes.
The plugin needs to go through another refactoring anyway, so I'm sure I'll be looking at this again sometime.
Thanks for your support!


Local Host bug

I was configuring my Path Planner 2024, and I saw that my host location was wrong, so I went to change it, but I clicked on a wrong number, and I pressed enter because I didn't notice, but now my pathplanner 2024 doesn't want to start anymore, I've uninstalled and reinstalled it, I tried to restore the data through Windows 11 settings, I wanted to know if you could help me resolve this.
Versions: (please complete the following information):

OS: [e.g. Windows 11]
GUI Version: [e.g. 2024.1.1]
PPLib Version: [e.g. 2024.1.1]
PPLib Language: [e.g. Java]

If on windows, delete shared_preferences.json in %AppData%/com.mjansen4857/pathplanner
If on Mac, run defaults delete com.mjansen4857.pathplanner in terminal


Fixed Real Estate Price Prediction Model #48

hello @Akshat111111
fixed issue Number - #48

!

Thanks you @Akshat111111 sir


Support HTTPX cli

I think it would be great for us to support HTTPX, but with the HTTP caching layer.
We could have our own cli entry point, which is going to be hishel,
and we can just take the existing httpx cli and change the Client class to AsyncClient, and that's it.
We should try to do this without sticking to the particular HTTPX version, so we can be sure that by adding this feature, we are not making the development process more complicated.
I guess for the start we could just mock the httpx module because httpx cli does not support client injecting.
Examples:
Instead of
httpx https://hishel.com --download hishel.html --proxies https://example.com --timeout 5

do
hishel https://hishel.com --download hishel.html --proxies https://example.com --timeout 5

https://github.com/encode/httpx/blob/fd60b1815cf92354d097ac46aea63ebc0f34fd21/httpx/_main.py#L309-L447
Is there anyway to get these lines from httpx._main at runtime and decorate over our hishel client instead?

You can just import the main function, decorate and then call it


Bootstrapping nocode

I don't know what languages are used to build this amazing app but it seems there are to many bugs with this version of nocode so,  would be possible to rewrite a new nocode version with nocode ? This would improve the performance and would be more easy to maintain.

Actually NoCode is a member of an exclusive class of programs known as self-inclusive totalities. In short, any NoCode program is also every NoCode program, meaning that by writing just one NoCode program you've also written every possible NoCode program.
So NoCode is already written in itself, and it's already as efficient as it can be.
I do, however, suggest changing line 0 of the source code from:
``
To:
``
Surely that was just an oversight.

Wow NoCode is amazing


Error in pywrap_tensorflow.py after installing tensorflow

Hi!
I have this error after installing Tensor Flow. I downgraded my python version to python 3.6.9 and it still doesn't work.
ImportError: Traceback (most recent call last):
File "C:\Anaconda3_x64\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Anaconda3_x64\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Anaconda3_x64\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Anaconda3_x64\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Anaconda3_x64\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
I also tried to uninstall it and after installing  tf-nightly and it gives the same error when importing tensorflow.

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

ImportError                               Traceback (most recent call last)
~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in
63   try:
---> 64     from tensorflow.python._pywrap_tensorflow_internal import *
65   # This try catch logic is because there is no bazel equivalent for py_extension.
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.
During handling of the above exception, another exception occurred:
ImportError                               Traceback (most recent call last)
 in
2 import seaborn as sns
3
----> 4 from tensorflow.keras.preprocessing.text import Tokenizer
5 from tensorflow.keras.preprocessing.sequence import pad_sequences
6 from sklearn.preprocessing import StandardScaler
~\anaconda3\lib\site-packages\tensorflow_init_.py in
39 import sys as _sys
40
---> 41 from tensorflow.python.tools import module_util as _module_util
42 from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader
43
~\anaconda3\lib\site-packages\tensorflow\python_init_.py in
38 # pylint: disable=wildcard-import,g-bad-import-order,g-import-not-at-top
39
---> 40 from tensorflow.python.eager import context
41
42 # pylint: enable=wildcard-import
~\anaconda3\lib\site-packages\tensorflow\python\eager\context.py in
33 from tensorflow.core.protobuf import config_pb2
34 from tensorflow.core.protobuf import rewriter_config_pb2
---> 35 from tensorflow.python import pywrap_tfe
36 from tensorflow.python import tf2
37 from tensorflow.python.client import pywrap_tf_session
~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tfe.py in
26
27 # pylint: disable=invalid-import-order,g-bad-import-order, wildcard-import, unused-import
---> 28 from tensorflow.python import pywrap_tensorflow
29 from tensorflow.python._pywrap_tfe import *
~\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in
81 for some common reasons and solutions.  Include the entire stack trace
82 above this error message when asking for help.""" % traceback.format_exc()
---> 83   raise ImportError(msg)
84
85 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "C:\Users\Gaganu\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.
Failed to load the native TensorFlow runtime.

getting these errors while importing tensorflow..using python 3-8-3 and Tensorflow==2.2

same error as above I am getting

same error as above I am getting

any suggestions or solution will greatly help, thank you in advance

any suggestions or solution will greatly help, thank you in advance


How to implement this

Hi, I'm trying to implement this but I have a really hard time with the rasterizing part,
do you have any unreal project that you can share?
Thanks

Did you find the project


Fix migration from existing guest environment to new guest environment.

Specifically, in EL7 systemd will still not be setup properly in some instances of guest env migration. Specifying a trigger to run after uninstalling the old package to re-enable the new services and run instance setup fixes this problem.
In EL6, upstart would run startup scripts again because google-instance-setup, the init job, had run. Run it manually instead of with upstart to prevent startup scripts from running.

[Current coverage][cc-pull] is 98.07%

Merging [#302][cc-pull] into [development][cc-base-branch] will decrease coverage by 0.34%

@@           development       #302   diff @@
=============================================
  Files               34         34
  Lines             2644       2644
  Methods              0          0
  Messages             0          0
  Branches           131        131
=============================================
- Hits              2602       2593     -9
- Misses              37         44     +7
- Partials             5          7     +2

Powered by Codecov. Last updated by [73d121f...c1164e2][cc-compare]
[cc-base-branch]: https://codecov.io/gh/GoogleCloudPlatform/compute-image-packages/branch/development?src=pr
[cc-compare]: https://codecov.io/gh/GoogleCloudPlatform/compute-image-packages/compare/73d121fbb186e12aab6ca576fa2432a2f95bfc10...c1164e2118d9092e8226fdcaac3b227f20320aca?src=pr
[cc-pull]: https://codecov.io/gh/GoogleCloudPlatform/compute-image-packages/pull/302?src=pr

LGTM.


Az Bicep Format throws error

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az bicep format
Errors:
The command failed with an unexpected error. Here is the traceback:
ensure_bicep_installation() missing 1 required positional argument: 'cli_ctx'
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/resource/custom.py", line 3678, in format_bicep_file
TypeError: ensure_bicep_installation() missing 1 required positional argument: 'cli_ctx'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az bicep format -f {}

Expected Behavior
Environment Summary
Windows-10-10.0.22621-SP0
Python 3.10.10
Installer: MSI

azure-cli 2.46.0

Extensions:
aks-preview 0.5.117
azure-devops 0.25.0
change-analysis 0.1.0
containerapp 0.3.16
maintenance 1.3.0
stream-analytics 0.1.2

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1

Additional Context

route to CXP team

@m-soltani Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

@m-soltani This PR https://github.com/Azure/azure-cli/pull/25707 has the fix for this issue. It is currently under review.

@m-soltani This issue is a duplicate of  https://github.com/Azure/azure-cli/issues/25706 . Please refer this thread for the fix.


Adds aad app open command - Closes #2940

Closes #2940
Returns deep link to open Azure portal on the page to manage the current AAD app registration. Allows for triggering the preview portal and allows for automatically opening the browser.

Hi guys, I refactored this one to use the new global setting.

Awesome! We'll review it shortly 👏

I think we might be looking at the wrong issue. #2940 is for app open rather than aad app open and is meant to pick up the app ID from the .m365rc.json file rather than expect user to specify it.

Ah, I see. 😁
I created the file in the wrong place, and missed the integration with .m365rc.json.
I will be moving the fuctionality and fixing the integration with .m365rc.json.
Can you elaborate on how you meant the  appId parameter to be used?

Can you elaborate on how you meant the appId parameter to be used?

In the .m365rc.json file you can store information about multiple AAD apps. If you have multiple apps stored, and haven't specified which app you want to open, CLI will prompt you to choose one app. You can suppress this prompt by specifying the ID of the app which you'd like to view using the appId property.

Ok, great, I'll implement it like that

Ok, I was behind on this one as well. I moved it to the correct place and updated the functionality to actually do what it should have done in the first place. 🚀🚀
Hope it's okay like this.

Manually merged. Thank you


feat(ngRepeat): add $prev and $next

In some cases, i need to get previous element before this $index or get next element after this $index. Array works well, but Object not. Maybe others need this feature too.

Just adding a little context:
There's been a couple of similar PRs already (e.g. #9795, #10362).
--
IIRC, it was discussed during the planning meeting for 1.4.
IIRC again, people (@IgorMinar ?) weren't too keen on adding new properties on all ngRepeat generated scopes, but there were some interesting alternatives discussed (e.g. adding them on-demand, having a getter property that caclulates them only if they are requested).
I am not sure what the final verdict was (some memory, huh ?) :smiley:

I think the consensus was to add the extra properties on-demand. But we didn't really work on it.


fix: Remove profanity

Not sure if the value makes sense, but the old one didn't either

@nschonni : Thanks for your contribution! The author, @, has been notified to review your proposed change.

@gewarren : Thanks for your contribution! The author, @, has been notified to review your proposed change.


Bad icon src for left navber logo

Top left, here.
Seems like the link is https://tskit.dev/tutorials/_static/_static/tskit_logo.svg, so an extra _static has snuck in there somehow.

Thanks for spotting this


Update developer guide Use Case: Add person

Coverage remained the same at 92.159% when pulling 217538f6c3cd1582501260b84588036dff05f13d on Gideonfu:master into 5ad18ed814625818c4e506c254fa8867391fdaa9 on CS2103-AY1718S1-T17-B4:master.


Replace parallel_device_ids by gpu_device_ids

What does this PR do?
Make it specific for gpus, as will be adding similar logic for ddp_cpu
Before submitting

[ ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃

Why would you do this? This should be fine as it currently is. I don't understand the purpose here?


No way to configure Firmware Upgrade Mode

No way to configure UpdateManager mode it is always "Confirm Only" on both platforms.
iOS:
https://github.com/NordicSemiconductor/Flutter-nRF-Connect-Device-Manager/blob/ba4cf9f45bba1061be6ab8e10861718fdbc8b02f/ios/Classes/UpdateManager.swift#L39
Android:
https://github.com/NordicSemiconductor/Flutter-nRF-Connect-Device-Manager/blob/ba4cf9f45bba1061be6ab8e10861718fdbc8b02f/android/src/main/kotlin/no/nordicsemi/android/mcumgr_flutter/UpdateManager.kt#L49
But native iOS and Android libraries use TestAndConfirm mode as default mode and recommended mode.

Hi @wcoder sorry for the delay,
So for multi-image DFU, on the firmware side only .confirmOnly works due to development / software issues. It's not related to the library code itself, either the Flutter wrapper or the native Android / iOS libraries. It's because of the DFU update process itself. The library (this one, on Flutter) just tries to make it easier for you, the developers.
Let me know if you need more specific details / whatsoever.

in the latest version (0.2.0) DeviceUpdateManager accepts FirmwareUpgradeConfiguration.
So now you can set FirmwareUpgradeMode.


user authentication

I was wondering if the API documentation could provide a little more information, or suggestions for restricting downloads.
From my understanding anyone with the API endpoint link would be able to install the font, even if setting requiresUserID, seatsAllowedForUser, and seatsInstalledByUser flags, correct? The restriction would have to be done on the API?
I suppose we could generate a difficult to guess token for each user, rather than a user id, but still they could share that link with others?
Ideally, I wonder if it would be nice to have some kind of authentication mechanism, a 'sign in with type.world'(like sign in with facebook), so that our website could confirm the identity of the person who's installing. I realize this is a huge feature to add though...

Hi Travs.
I'm happy you're looking into the project.

From my understanding anyone with the API endpoint link would be able to install the font, even if setting requiresUserID, seatsAllowedForUser, and seatsInstalledByUser flags, correct? The restriction would have to be done on the API?

Yes.
requiresUserID is only for the app to know that it needs to send an uninstallFont request upon font removal.
seatsAllowedForUser is only for UI signaling. The actual download restrictions need to happen on the server side.

I suppose we could generate a difficult to guess token for each user, rather than a user id, but still they could share that link with others?

The idea is that this userID is already difficult to guess by making it anonymous instead of your system’s official userID.
But the result remains. A shared link will provide access to the fonts, given that the API still allows further downloads for these particular fonts.

Ideally, I wonder if it would be nice to have some kind of authentication mechanism, a 'sign in with type.world'(like sign in with facebook), so that our website could confirm the identity of the person who's installing. I realize this is a huge feature to add though...

Maybe not so huge.
I'm planning to add user accounts for the Type.World App, to synchronize and backup subscriptions for each user (at first, later also the actual font installations).
The font installation request could then include an anonymousTypeWorldUserID identifying the Type.World user account. You would then have to log that userID in your system and allow future access only from the same Type.World user account (even if it came from a different computer).
How does that sound?
Here's a catch, though: My idea is that users can share the subscriptions with each other, let’s say inside an office or a custom type work group. They would invite each other by email from inside the app.
Another user would then likely have another Type.World user account, and how do you then authenticate that other user, who has a legitimate right to use the fonts?
Then you would have to allow more user authentications for a particular subscription, and it's starting to feel a bit like a replication of the download restrictions by counting seats that are already in place (if you choose to implement them).
Please let me know what you think.

There is a way: Users can share a subscription with other users only through official Type.World user accounts instead of random email addresses.
When that happens, the Type.World App would then have to announce the authentication of the new user to your server, but that would have to happen in a secretive way because this authentication could also be forged outside of the app. And then it's starting to get a bit weird and messy, honestly, and a lot to ask for the publishers to implement.

Yeah, I can see how this gets complicated real quick. Especially when allowing people to install on multiple computers.

The font installation request could then include an anonymousTypeWorldUserID identifying the Type.World user account. You would then have to log that userID in your system and allow future access only from the same Type.World user account (even if it came from a different computer).

I wonder if something like this could work in a simpler way. Maybe the type.world app automatically assigns each installation with a unique identifier, but without requiring a sign up, or having to talk to a type.world database. Then the user can take that id and add it to a whitelist on the publisher's site?
I suppose this could be done in a similar manner with the current setup though. The publisher's UI could allow a customer to generate multiple single use tokens/ids that can be used to install a particular font/family.
So, I guess going back to my opening question, maybe this isn't so much of a feature request. Maybe the API documentation could just outline some strategies or best practices of controlling access from the server side? It would be good to know what solutions are officially supported as the API evolves.

 I didn’t write about the best practices yet, but it feels like this already contains what you are looking for, such as the anonymousAppID parameter that the app already sends.
This server is how I would implement it, but your own logic might differ.
It logs each installation with the tuple userID (should be anonymous but doesn't have to), anonymousAppID and fontID. This is not a white list, but a ledger of the installations. When a font needs to be updated, it will first be uninstalled, so the installation removed from the ledger, then the new version installed instantly.
(This is still debatable. A white list is also thinkable, but my approach definitely works)
In the reference server, this ledger is found in seatTracking/seats.txt. All the data is stored in files there. Obviously, you connect this to all your own data bases.
Theoretically, we could add the typeWorldAnonymousUserID parameter to each calls, which would be the Type.World App User Account that people can use to sync subscriptions. In fact I will definitely send the parameter once an account exists for a user, but I'm note sure yet what to do with it. However, each server could decide on its own what to do with it. Can definitely be used for stats of sorts.
I was thinking to make Type.World user accounts compulsory for commercial fonts (denoted in the JSON protocol by a font being requiresUserID=True as well as the JSON endpoint root being public=True.
This is for avoiding customer support issues for everyone once a user's computer gets lost or bricked and she/he needs to install a new OS installation and migrate fonts. The new font installations might get rejected then because the seat allowances have been previously exhausted.
In combination with the Type.World user account, the user could then de-authorize an entire computer's worth of Type.World font installations at once. The central Type.World server would send uninstallation requests for all fonts of all the user's subscriptions using the anonymousAppID parameter of the bricked/lost computer that it has previously recorded. So we need to expect incoming uninstallation requests for fonts that haven't been installed, which I think is manageable.
At first I thought I need to record every single font installation in the central server, but figured later that it's not necessary because I can just send uninstall requests for all fonts regardless.
I want to postpone the recording of each individual font until later, until I have a good overview of the amount of user accounts and fonts installations that need to be dealt with. Logging only subscriptions for a user is negligible effort for the server.
I'll write all of this up into a best practice article soon.
Let me know what you think.

I wonder if something like this could work in a simpler way. Maybe the type.world app automatically assigns each installation with a unique identifier, but without requiring a sign up, or having to talk to a type.world database. Then the user can take that id and add it to a whitelist on the publisher's site?
I suppose this could be done in a similar manner with the current setup though. The publisher's UI could allow a customer to generate multiple single use tokens/ids that can be used to install a particular font/family.

Both of the above ideas strike me as very complicated from a user experience point of view.
The idea is to massively simplify the font installation experience. The total clicks it takes to install a font is 3: First on the "Install fonts in Type.World App" button the the publisher's web site, second on the unfortunate "Allow this link to be opened in Type.World App" dialog of the browser, and finally on any of the "Install (All) Font(s)" buttons in the actual fonts being offered in the app.
Requiring the user to add his installation to a white list is an obstacle, and so is requesting single use tokens. Any such behaviour, if necessary, must be automated, or else I don't see the point.
By the way, the single use token idea doesn't work if you also want to push font updates to users.

I'm fine with a single "subscription link" being shared between people in an office, etc.
But I would like to see the "secret" (i.e. hard to guess) user ID/API key, whatever you may call it, not being sent as part of the URL for each update poll to the API server.
URLs are usually not considered secret, and may end up being part of analytics reports, stats, etc.
It would be better to define what part of the initial URL, used to launch the Type.World GUI app and start the subscription, constitutes the API key, then strip it from the URL for subsequent requests and send the API key in the HTTP request header instead. This way nobody will be able to see it (provided the connection uses HTTPS).
For example, the subscription link is:
https://example.com/typeworld/3d096037fb5bc47a
Type.World app would then use this URL for all further requests:
https://example.com/typeworld?command=installableFonts
https://example.com/typeworld?command=installFont[...]
with this request header:
api_key: 3d096037fb5bc47a
This is not as safe as e.g. OAuth, but in my opinion better than plain URL authentication.

Improved security design: https://type.world/developer#security-design


The height of tiles changes suddenly

On the Tiles section of the settings, I have Show my top sites as tiles activated with infinate rows x 5 columns.
Usually the tiles have the same height and look OK, but then suddenly when I click on the New Tab or press ctrl+N to open a new tab, the
tiles get vertically squashed. Even after a restart of Chrome the tiles remains squashed.
I don't know how to reproduce it, but sometimes it remains like that for days and then suddenly the height gets back to normal.
Inspecting the HTML with the dev tool reveals the following HTML code:

        localhost:3000

The class thumb has a height of 132px, but as you can see the
 tag has an inline style that
overrides the height to 44px.
Why is that? How can I fix it?
I'm using Fauxbar version 1.8.1 on a Chrome Version 77.0.3865.120 (on Debian Linux).

Off the top of my head, this issue can occur if one of the tiles' screenshots' heights is short. Likely due to a screenshot of one of your sites being taken at a time when the browser window was shorter than usual.
Fauxbar then sets the inline CSS at runtime to match the shortest screenshot's height for all tiles.

To resolve for now, just tested the code below – will clear the HTML5 persistent data where the thumbnails are stored.
Steps:

Open a Fauxbar tab.
Press F12 to open Chrome's DevTools.
Click the Console tab.
Copy and paste in:

// Get the HTML5 file system
window.requestFileSystem(window.PERSISTENT, 50*1024*1024, function(fs){
	// Get the `thumbs` directory
	fs.root.getDirectory('thumbs', {create:true}, function(dirEntry) {
		// Remove the `thumbs` directory and every thumbnail file within
		dirEntry.removeRecursively(function(){
			// Recreate the `thumbs` directory
			fs.root.getDirectory('thumbs', {create:true}, function(newDirEntry) {
				console.log("Done.");
			}, fileErrorHandler);
		}, fileErrorHandler)
	}, fileErrorHandler);
}, fileErrorHandler);

Press Enter to execute the code. A message in the console window should then say Done..
Refresh the Fauxbar tab with F5 or Ctrl+R, and your thumbnails should be cleared, and will be retaken as you browse your sites again.

To implement later:

Add the code above as a button to Fauxbar's Options > Management section.
Possibly add an option to set a minimum tile height.

Oh, very nice, the snippet removed the thumbnails.
One of my tiles points to http://localhost:3000 which is where I usually run my rails and webpack development pages. I usually start this pages with an open dev-tools and I like to have my dev-tools below the site (not on the side) and that's probably why the browser window is shorter than usual when the screenshots are being taken. That would explain why the sizes suddenly change after clicking on a tile.
What is the thumbnail update heuristic that you use? I noticed that for some tiles the screenshots are constantly being updated every time I visit the pages, but this is not the case for other tiles. I haven't been able to determine a pattern here.
Anyway it would be nice to have a button to automatically flush the thumbnails or allow users to set a fixed height for all tiles.

Ah yes, a smaller viewport with DevTools open sounds like the culprit.
Going down the rabbit hole of when Fauxbar decides to take a screenshot...
In background-new.js, there's a captureScreenshot function, which is called when a tab is loaded and Fauxbar sends itself a chrome.runtime message of either "scrolltop is 0" or "process prerendered page".
// Background event page listens for requests...
chrome.runtime.onMessage.addListener(function(request, sender){

	// Generate top site tile thumbnail for page if page reports page has not been scrolled at all
	if (request == "scrolltop is 0") {
		captureScreenshot(sender);
	}

// Pre-rendered page is being navigated to, so let's process it in a moment
	else if (request == "process prerendered page") {

		// Tab ID changes with prerendering (even though it's the same tab...), so need to get new ID via getSelected()
		setTimeout(function(){
			chrome.tabs.getSelected(null, function(tab){
				processUpdatedTab(tab.id, tab);
				captureScreenshot(sender);
			});
		}, 500);
	}

getscrolltop.js:
// If page hasn't been scrolled at all, tell background to possibly create a thumbnail of the page

if (($("body").scrollTop() <= 0 || window.location.hash) && (!window.fauxbar_thumbdone || window.fauxbar_thumbdone != window.document.title)) {
	window.fauxbar_thumbdone = window.document.title;
	chrome.runtime.sendMessage(null, "scrolltop is 0");
}

The idea is that Fauxbar captures a screenshot once a page has finished loading, but attempts to also take into account Ajax loading (since some webpages are considered "done" loading, but then really they have to wait for JavaScript-heavy post-load operations for content to appear, so that's where the 500 millisecond delay is attempted to be used above with setTimeout. And attempts to juggle title-changes too.
But if you've scrolled the page down when Fauxbar decides to consider screenshotting or not, Fauxbar won't bother capturing since I assume people would prefer having thumbnails display the top of a page, rather a screenshot of the page half-way down.


Initial population

An initial stab at a layer configuration and README, plus the inclusion of the PRs from meta-tegra that would be more suitable for this layer.

Hey @madisongh
I don't have any comments about the PR  itself but I have some comments about the Yocto recipes.
Should I add my commnets here or I will rework a bit the recipes and push new PR later ?
Please let me know what do you think ?

A while back there were some questions about contributing support for third party carrier boards, and this will be a good place to do that.

Should I add my commnets here or I will rework a bit the recipes and push new PR later ?

If you see something that needs changing, please do comment here.


Updated to Swift5.

Update to Swift5 and fixed Project Settings.

Much appreciated – I'll check through your pull requests as soon as possible.

@xoudini Have you had the chance to check it? :P

@xoudini Have you had the chance to check it? :P

Whoops, completely forgot about this. I'll fix it ASAP.

Thank you! 🙏 BTW, this emoji ---> 🥳 (twemoji) and some other emoji do not
work. Even after renaming. Maybe if you have time, teach us newbies how to
properly fix it?
On Thu, Jun 4, 2020 at 6:06 PM Dan<EMAIL_ADDRESS>wrote:

@xoudini https://github.com/xoudini Have you had the chance to check
it? :P
Whoops, completely forgot about this. I'll fix it ASAP.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/xoudini/emojica/pull/8#issuecomment-638753497, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AC7MNF57IMLQUSNQ3E4JLSTRU5WZ7ANCNFSM4H6TS5SA
.

--
Best Regards,
Glenn Posadas

Thank you! 🙏 BTW, this emoji ---> 🥳 (twemoji) and some other emoji do not work.

Yes, that's also something that needs to be updated (the codepoint isn't currently in the list of scalars to convert).

Awesome! Thanks Dan! If only I know how to fix that emoji issue, I'd submit
a PR 😅 But I'll try check it out this weekend.
On Thu, Jun 4, 2020 at 7:36 PM Dan<EMAIL_ADDRESS>wrote:

Merged #8 https://github.com/xoudini/emojica/pull/8 into master.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/xoudini/emojica/pull/8#event-3406424449, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AC7MNFZ6FSSKXE7ZQWLTYP3RU6BKHANCNFSM4H6TS5SA
.

--
Best Regards,
Glenn Posadas

@glennposadas – no worries!
The codepoints are updated for Unicode 13.0 now, so should work for all available twemoji now.


add page tile as prompt

ref: https://platform.openai.com/docs/guides/speech-to-text/prompting

close as I don't understand it anymore


Define dependencies for build targets

This patch introduces target dependencies so that requirements are met for each of the build targets. In practical terms this means there is no need to explicitly run make install-tools or make deps as these targets will be run whevener it is needed. Also, as make tracks modification dates for the real targets, it will not re-run dependent targets if there were no changes - meaning, these changes should not impact day-to-day development of thanos.

Ignore the build  CI error, something is wrong with our flow for external contributors, fixing now.

Please rebase master if you wish working CI.

Done.

wait what, why xd


CUDA out of memory rtx 2080 ti

Trying to train in docker container...
train.sh:
python3 run.py --config config/zel-256.yaml --device_ids 0

root@854db450e414:/df# ./train.sh
/usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
run.py:40: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  config = yaml.load(f)
Use predefined train-test split.
Training...
  0%|                                                                                | 0/100 [00:00<?, ?it/s]/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py:2423: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
  "See the documentation of nn.Upsample for details.".format(mode))
/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py:1332: UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.
  warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.")

Traceback (most recent call last):
  File "run.py", line 81, in <module>
    train(config, generator, discriminator, kp_detector, opt.checkpoint, log_dir, dataset, opt.device_ids)
  File "/df/train.py", line 51, in train
    losses_generator, generated = generator_full(x)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/parallel/data_parallel.py", line 141, in forward
    return self.module(*inputs[0], **kwargs[0])
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/df/modules/model.py", line 166, in forward
    x_vgg = self.vgg(pyramide_generated['prediction_' + str(scale)])
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/df/modules/model.py", line 47, in forward
    h_relu4 = self.slice4(h_relu3)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py", line 92, in forward
    input = module(input)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/pooling.py", line 148, in forward
    self.return_indices)
  File "/usr/local/lib/python3.6/dist-packages/torch/_jit_internal.py", line 132, in fn
    return if_false(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py", line 425, in _max_pool2d
    input, kernel_size, stride, padding, dilation, ceil_mode)[0]
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py", line 417, in max_pool2d_with_indices
    return torch._C._nn.max_pool2d_with_indices(input, kernel_size, _stride, padding, dilation, ceil_mode)
RuntimeError: CUDA out of memory. Tried to allocate 32.00 MiB (GPU 0; 10.76 GiB total capacity; 9.86 GiB already allocated; 10.12 MiB free; 31.07 MiB cached)

Not enough memory obviously. Adjust the batch size.

@ssnake ive got it working on single 2080ti using ~10 batch_size

@ssnake ive got it working on single 2080ti using ~10 batch_size

How long does an epoch last?

@ssnake for default fashion-256 config (100 epochs, 50 reps) and default dataset (in png format) it is around 3 days in total.


Attempted to use a closed session

When I run it it gives some errors including attempting to use closed session.

Hello @1552937 ,
Can you please give more details about the error? I recommend copying the logs or sending a screenshot of the output.

  File "main.py", line 83, in <module>
    model.fit(training, output, n_epoch=1000, batch_size=8, show_metric=True)
  File "/usr/local/lib/python3.7/dist-packages/tflearn/models/dnn.py", line 206, in fit
    callbacks=callbacks)
  File "/usr/local/lib/python3.7/dist-packages/tflearn/helpers/trainer.py", line 344, in fit
    show_metric)
  File "/usr/local/lib/python3.7/dist-packages/tflearn/helpers/trainer.py", line 826, in _train
    tflearn.is_training(True, session=self.session)
  File "/usr/local/lib/python3.7/dist-packages/tflearn/config.py", line 95, in is_training
    tf.get_collection('is_training_ops')[0].eval(session=session)
  File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/ops.py", line 921, in eval
    return _eval_using_default_session(self, feed_dict, self.graph, session)
  File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/ops.py", line 5512, in _eval_using_default_session
    return session.run(tensors, feed_dict)
  File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py", line 968, in run
    run_metadata_ptr)
  File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/client/session.py", line 1114, in _run
    raise RuntimeError('Attempted to use a closed Session.')

am not quite sure how any of this works but adding
model.fit(training, output, n_epoch=1000, batch_size=8, show_metric=True)
model.save("model.tflearn")

after line 71 helped... the model trained....

update: chat is working too.... my fix worked :)

Thanks. Worked for me.

@brewwmannsna  Feel free to make a pull request with these changes if possible. Thank you.


docs: use sphinx.ext.autosummary to generate more complete api docs

The api documentation follows the project layout exactly.

If a new module/class is included in a preexisting /capymoa/*/__init__.py  it will automatically appear in the documentation. New modules in the root i.e capymoa/new_module will need to manually added to docs/api/index.rst

Classes get a dedicated page:

The docs github action generates a documentation coverage report.

You can run the code coverage report locally with invoke docs.coverage (ensure you have installed the latest dependencies pip install -e ".[doc]" )

No dots


Variables for NovaGuilds

Hello
I have implemented variables for my plugin, but I can see you prefer adding variables to your plugin. It would make mine more lightweight.
https://github.com/MarcinWieczorek/NovaGuilds/commit/62ed4240d706ad2da958b9b7852a31c6642bd05c

but I can see you prefer adding variables to your plugin

No I don't, it's better if it's implemented in your plugins. But I could add it to the Variables page on devBukkit if you want to.

Would be great! Thanks.


Integrate browserforge fingerprints

Description
Integrate browserforge package and use it's fingerprint and header generation capabilities to enable fingerprint generation in PlaywrightCrawler
Issues

Will be documented later by https://github.com/apify/crawlee-python/issues/481 , which already has decent PR https://github.com/apify/crawlee-python/pull/576
Closes: [#549]

Open for discussion:
1. Javascript injected script  (src/crawlee/fingerprint_suite/_injected_page_function.py)

Extracted from utils and fingerprint_injector
Removed all type-script specific syntax( it does not work when used through Python's Playwright)
Merged into standalone file without any imports.
Wrapped in function that can be called with single argument -> fingerprint

Having such modified duplicated code in Python repo is not nice and is not practical when the original gets updated.
Proposal: Refactor JS code to make this a standalone-file without any dependency and without Typescript syntax. Download this single file from Javascript repo either on installing the crawlee or dynamically when running PlaywrightCrawler with fingerprints.
2. How can users use it? Currently I followed JS implementation https://crawlee.dev/docs/guides/avoid-blocking#customizing-browser-fingerprints
Which in Python looks for exmaple like this
crawler = PlaywrightCrawler(
    headless=True,
    browser_pool_options={
        'use_fingerprints': True,
        'fingerprint_generator_options': {
            'browser': 'edge',
            'os': 'android',
            'screen': Screen(
                min_width=min_width, max_width=max_width, min_height=min_height, max_height=max_height
            ),
        },
    },
)

It is a little bit clumsy as we pass so many nested options to internal objects of Crawler. Any better proposals?
3. Fingerprint QA?
How do we ensure that generated fingerprints are good? While writing tests I found out that around 5% fingerprints (specifically the headers) generated from the browserforge are not good and they will break the requests. I did a simple function to catch that specific problem, but how many more are there that I haven't found?
4. Keep our own header generation or rely on browserforge?
@vdusek already created header generation function. It is different implementation of browserforge HeaderGenerator. Do we keep both?
In this PR I kept our header generation unless 'use_fingerprints': True. If using fingerprints from browserforge, then I use header generation from browserforge as there is some basic logic to make header and fingerprint somewhat consistent (especially UserAgent).
5. Keep browser forge tightly integrated or just create example of how people can integrate it, but not have it available by default?

Good job! Why don't we use browserforge's injector module for this? Do we need more control over the fingerprint than browserforge can offer us?

Good job! Why don't we use browserforge's injector module for this? Do we need more control over the fingerprint than browserforge can offer us?

I was not aware of that. Wow, that guy did everything. I will try to use that injector,


Is this syntax correct?

Isn't there an extra single quote in this example after<EMAIL_ADDRESS>New-OrganizationSegment -Name "Segment2" -UserGroupFilter "MemberOf -eq<EMAIL_ADDRESS>-or MemberOf -ne<EMAIL_ADDRESS>
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2baec804-4a76-95ac-3595-985629448fd9
Version Independent ID: c0a5fb9d-93be-b448-5bf2-4c3bdd787b8e
Content: Define information barrier policies - Microsoft 365 Compliance
Content Source: microsoft-365/compliance/information-barriers-policies.md
Service: o365-seccomp
GitHub Login: @chrfox
Microsoft Alias: chrfox

Thanks for reporting @normand-MSFT


I am Using BranchIO for my project , I am sending Title and image in the branch Universal object which can be show in the message send via whatsapp, but since the whatsapp has been upgraded the title and image is not been show , as it was earlier.Please help me ,What is the problem?

BranchUniversalObject branchUniversalObject = new BranchUniversalObject()
// The identifier is what Branch will use to de-dupe the content across many different Universal Objects
.setCanonicalIdentifier("item/12345")
// This is where you define the open graph structure and how the object will appear on Facebook or in a deepview
.setTitle("Suits")
.setContentDescription("Great suits here")
.setContentImageUrl("http://steezo.com/wp-content/uploads/2012/12/man-in-suit.jpg")
// You use this to specify whether this content can be discovered publicly - default is public
.setContentIndexingMode(BranchUniversalObject.CONTENT_INDEX_MODE.PUBLIC)
// Here is where you can add custom keys/values to the deep link data
.addContentMetadata("picurl", "http://steezo.com/wp-content/uploads/2012/12/man-in-suit.jpg");
THis Title and ContentImageUrl is not working

@shrutika229 Thanks for reaching out. Since this is an implementation question and not an SDK issue you can better help from our awesome support team. In order to get a faster response, could you please email your implementation questions to<EMAIL_ADDRESS>


PX4 1.7.3: Airplane: Position and Mission reproducible stall without airpseed.

Hello guys,
At first we thought that this problem is due to lack of knowledge about parameters and tuning. After about 40 flight sessions and testing each and every TECS parameter we found that we really cannot do much about fixing our problem with aprameters.
The tests I'm about to post are made with PX4 1.6.5 BUT since we fly the 1.7.3 since 4 days it is totally the same in 1.7.3. No difference regarding this problem.
We cannot find a balance between the P and FF gains.
We use FW_T_HRATE_P = 0.15  in the tests to exaggerate the problem.
During regular flights we use FW_T_HRATE_P = 0.07
PX4 1.6.5
QGC 3.2.5
Without airspeed.
Flying wing.
Position, Altitude, Mission mode
With FW_T_HRATE_FF = 0.7 we have a good response in the pitch up, The throttle kicks in early and the VTOL FW is adequate. BUT on pitch down if we hold the pitch down for 3-5 seconds and then center the pitch the plane continues to dive with a pitch down for two seconds before it levels. So very scary thing given we have a higher airspeed due to the descend and the motor kick in while in nose dive.
https://logs.px4.io/plot_app?log=9e8c04c1-3553-41bd-9067-de0b41bfad76
From the LOG it is obvious that the throttle is not scaling smooth from 0-max. We noticed that during pith up the throttle goes to 0.8 given we set the cruise throttle to 0.7

100% throttle kicks in if we use full pitch up command (1) If we are at 0.9 pitch up then the max throttle goes to 0.8. We know that the plane can handle the current envelope settings given we use Manual mode and control the throttle ourselves. e have a very good ratio on the pusher motor. Despite that if we make a really steep climb in mission or we just hold the pitch up lever in 0.8-0.9 range for 30-50 seconds in Position or Altitude the pane starts to climb but not pushing enough and at some point it stalls. That is 100% reproducible.
If we use FW_T_HRATE_FF = 0.2 then we have a perfect response on the pitch down. The moment we release the lever the plane levels and the throttle kicks in level flight. BUT at a pitch up command we have a disaster. The throttle just does not kick except if we make a full pitch up command (1). So at full pitch up the throttle kicks with a 100% at 0.9 pitch up the throttle just stays at cruising 0.7.
With FF = 0.2 the stall is reproducable even faster and easier on the pitch up. Hold the pitch up for 10-30 sec and we have a stall. Make a mission with even smaller climb than in the first test and we have a stall. Again 100 % reproducable.
https://logs.px4.io/plot_app?log=afa6a688-23fe-4521-ace9-6bf43c380888

Using FF = 0.4 in the middle gives terrible performance to both the pitch up and pitch down.
Because it is better to have good response on pith down we decided to use FF=0.2 and then lower the FW_P_LIM_MAX = 10 degrees in order to not allow the plane to stall.
The ratio of the pusher motor is very good so the plane itself can perform very well, we could not understand why this is happening in the auto modes...
Can you please help us understand this TECS mechanism given we do not fly with airspeed sensor.
@sanderux helped us a lot trying to identify our problem and mentioned that there is some improvements for the TECS when we do not use airspeed sensor.
We wonder is there something we miss in the airplane parameters that could help us make workaround?
P.S. I have one week of flights only on trying to balance the P and FF if you need more flights I could give such. There are many stalls logged as well in mission flights due to this problem.

Hello guys,
I wonder if we are the only one having this problem?


[2.6 Backport] Remove External Harvester Cloud Credentails Support & Add csiClusterRoleName

Proposed changes

Backport of

https://github.com/rancher/ui/pull/4940
https://github.com/rancher/ui/pull/4947
https://github.com/rancher/ui/pull/4937

Types of changes

New feature (non-breaking change which adds functionality)

Hi, @mantis-toboggan-md. There have a PR that needs you to review, Thx!


[feature] add minimal base template

Purpose
Single use forms e.g. two factor auth, forgot password, and login, don't need many of the things packaged in the current base.mako template. minimal_template.mako strips the excess and leaves only the necessary components for the aforementioned and similar forms.
Changes
One new template
Side Effects
Faster loading times for singe use forms or pages with similar needs
Notes

Depends on PR: #2140

@sloria working example of the minimal_base template. I stripped the things from base.mako that I knew were not needed but there is a lot of things going on. Just ping any chunks that I can gut or raise a flag on anything I should look into deeper and I'll refine it.

@HarryRybacki Can you update with develop/?

@sloria sorry, thought I'd done that already. Re-pushed.

I'm going to hold off on merging this one. There is more duplication here than there was previously. Let's explore another solution: minimal_base.mako could inherit from base.mako and override the stylesheets() def to include the hiding rules. The auth forms would then inherit from minimal_base.mako.

@HarryRybacki The above is only a suggestion. I'm open to other ideas as well.

Was there other stuff from the template that could be removed? I only removed things I knew could be chucked.

@HarryRybacki Probably, but I think there will inevitably be a lot of duplication with base.mako even after paring the new template down, which isn't ideal.


Add --changesFile option to GtRrWorker

RemoteRunner workers can sync changes from the runner over the socket, however this is inefficient when there are a large number of workers on a single machine.  Add the ability to load changes from the file specified with the option.
It is up to the user to ensure that the changes file is populated.

See

GtRrWorkerExamples>>commandLineWithChanges
GtRemoteRunnerExamples>>workerChangesFile


[Suggestion] Lists of Suggestion for ESMValTool Documentation

**Substitute "Contact" in Introdudction and substitute with "Support" **
I believe that it will be better if the "Contact" section in the introduction chapter is substitute with a "Support" section which consists of ways how a user can find support for ESMValTool. The "User Mailing List" and "Discussions" can also be combined in this section also.
()

Update Core Development Team in "Introduction"
An update of the organizational structure of ESMValTool is necessary so that users know who is involved in the development of ESMValTool.

It is also possible that this section is erased and just update the organizations listed in the website.

Move Capabilites of ESMValTool in a different chapter
Since "What ESMValTool can do for you" I believe is a very important section for the user to see, it can be more reachable by the user if it is in a different chapter, rather than inside the "Introduction".

Switch position of how to obtain the source code and the prerequisites to install ESMValTool
Switching the position of "Obtaining the source code" and the "Prerequisites" section of the documentation will help the user to experience a more streamline process of installing ESMValTool

"Using the development version of the ESMValCore package" to ESMValCore
Since there is a section on how to use the development version of the ESMValCore package inside the documentation of ESMValTool, this can be confusing for a user. So, I believe that this can be moved to the ESMValCore section of the documentation to be more clear.

Subsitute number labels with plot description
Currently, the pictures inside "Gallery" are currently labeled with numbers that are linked to the title of the study below of the page, which links to the study. Replacing the number labels with the title will reduce the size of the page and create direct link to the study.

Combine sections in "Making a recipe or diagnostic" in one page
Instead of having four separate pages on how to make a recipe or diagnostic, each sections can be combined into one page since each page are not very long.

Remove conda installation in "Installation" of ESMValCore
Since Conda is not recommended for users to use when installing ESMValCore, this section can be removed and replaced with an explanation that ESMValCore is included when installing ESMValCore.

Add Introduction of ESMValCore
For consistency purposes, an introduction of ESMValCore can be added which describes its capability and the differences to ESMValTool

@stacristo many thanks for opening (a fairly large number of) issues with us! Correct me if I'm wrong but I think all the issues are related to the documentation, would it be possible to concatenate all the issues into a single one called e.g. Proposed improvements in documentation, and containing all your points in e.g. bullets? - makes things a bit more centralized and addressable. Then we can ask the @ESMValGroup/userengagementteam to have a look and comment on each of the suggested points. Cheers muchly! :beer:

It is definitely possible to combine the suggestions into one issue, I separated it just so that when there is a discussion the discussions are clear.
I will combine the suggestions into this issue to centralize the discussion.

brilliant, many thanks @stacristo :beer: Indeed, if issues are on different topics (or even the same topic, but with large variability in terms of what they propose) they should be separate - but here, as I see it, all the issues are on documentation and they propose fairly similar changes ie moving/replacing sections etc - very useful indeed, but collapsible into one issue IMO :+1:

(re)move the installation of ESMValCpre in dev mode - this is important not to remove, or move, see my comment in the original issue https://github.com/ESMValGroup/ESMValTool/issues/2462#issuecomment-1010063078
Substitute number labels with plot descriptions: in principle a good idea, I'd defer a decision to eg @axel-lauer or @ESMValGroup/userengagementteam  - same for the next Combine sections in "Making a recipe or diagnostic" in one page
Remove conda installation bits in ESMValCore: we have to be careful here - indeed mamba is the preferred tool to use, but conda still needs to be invoked in eg activating the env with conda activate esmvalcore; even so, conda is much more popular and known by users than mamba so a title a la Mamba installation will confuse a lot of people, so I'd say we should do a bit of cleanup in this section for sure, and bring it up to the standards of the equivalent section in ESMValTool but keep Conda in two places - in the title with eg Conda/Mamba Installation and in the call to activate the env; btw @zklaus we should change the Mamba Installation title in ESMValTool with Conda/Mamba Installation in the same vein
Add intro to ESMValCore - very good point, agreed, but a short one not a Dan Brown novel :+1:

Prerequisites before Obtaining the source code - where exactly is that, are you using the latest version of the docs https://docs.esmvaltool.org/en/latest/

This can be found under "Installation" when users want to obtain ESMValTool directly from the source codePrerequisites before

As for the Core Development Team, I think just the name of the institutions is fine, but if the specific persons are necessary then this is the way to go.
I will also need a correct explanation of ESMValCore so that the information is accurate and hope that someone can provide this information.
I will start working on the rest

Thanks @stacristo for your work on this!
I have one additional suggestions which I will add to your point 7 if people agree: Here we say conda activate .... I wonder if it makes more sense to consistently use mamba throughout our entire documentation, so e.g. use mamba activate ... here.

Thanks @stacristo for your work on this!
I have one additional suggestions which I will add to your point 7 if people agree: Here we say conda activate .... I wonder if it makes more sense to consistently use mamba throughout our entire documentation, so e.g. use mamba activate ... here.

Careful! According to the mamba docu, activate and deactivate are the only two commands that still must be done using conda, even when mamba is installed.

indeed, see me comment above:

keep Conda in two places - in the title with eg Conda/Mamba Installation and in the call to activate the env;

Ahh, didn't know that! That warning wasn't there when I last checked the mamba documentation (a long time ago), and I'm still using mamba activate ... without any problems.

Interesting. I saw the warning and never even tried mamba activate. Perhaps the documentation is out-of-date.

Thanks a lot for all your suggestions and work @stacristo! I have a few additional questions/comments related to the points you raised:

Update Core Development Team in "Introduction

Good idea to update this section and mirror the list available in the website. that section says "DLR [...] contact for requests to use...". But there are no clear contact emails (or github ids) given. I guess it could make to add a link to the website where contact email info is given.

Move Capabilites of ESMValTool in a different chapter

Agreed, the ESMValTool capabilities could be made more visible. But that would require to edit the introduction section accordingly and maybe adding a few links throughout the docs.

Switch position of how to obtain the source code and the prerequisites to install ESMValTool

I agree it would sound more natural to have the "prerequisites" section first. But doing so would break the installation process. Some instructions of this section would only work after doing a git clone as written in the "Obtaining the source code" section, e.g.: cd ESMValTool, mamba env update --name esmvaltool --file environment.yml (the environment.yml file is obtained with git clone).
I think we could instead split the "prerequisites" section into two subsections:

Installation of mamba: from the title until the instruction mamba update --name base mamba.
Environment creation: from "To create an environment" until the note "From now on, we assume that the conda environment for ESMValTool is activated."

The "Installation of mamba" part could be the prerequisites section that would go before the "Obtaining the source code" section.
We could also think of having only one gobal section on the "Installation of Mamba" instead of two overlapping ones (here and here) at the moment. Would it make sense to have only one subsection on the installation of Mamba with all the commands and notes at one place? @valeriupredoi @zklaus @schlunma

"Using the development version of the ESMValCore package" to ESMValCore

Agreed with @valeriupredoi that it would be better to keep that in the ESMValTool docs.

Remove conda installation in "Installation" of ESMValCore
Since Conda is not recommended for users to use when installing ESMValCore, this section can be removed and replaced with an explanation that ESMValCore is included when installing ESMValCore.

I'm not sure what is meant by "Conda is not recommended for users" and were that is displayed. But it is also surprising to me that ESMValTool installation needs to be done with Mamba while Conda is suggested for ESMValCore. It could be relevant to use Mamba for both packages. I agree with the suggestions from @valeriupredoi on this.

Add Introduction of ESMValCore

I guess this section missing was a bit of a decision made at the start of the project. We could probably revise that a bit and add at least a few lines to describe the ESMValCore package...

The "Installation of mamba" part could be the prerequisites section that would go before the "Obtaining the source code" section. We could also think of having only one gobal section on the "Installation of Mamba" instead of two overlapping ones (here and here) at the moment. Would it make sense to have only one subsection on the installation of Mamba with all the commands and notes at one place? @valeriupredoi @zklaus @schlunma

Yes, agreed!

It is definitely possible to combine the suggestions into one issue, I separated it just so that when there is a discussion the discussions are clear.

@stacristo @valeriupredoi This issue would have been perfect for a GitHub Discussion, because there each "comment" there starts a new thread of replies, so the GitHub Discussion format allows for discussing many similar topics in an organized manner.

@bouweandela good point! But I feel that the Discussion bit is still not attracting as many contributors as the Issues, but I might be talking merely from my own perspective :grin:


[ADD] German translations

Could you please remove (or add in gitignore) any .idea/  files before I merge the PR ?

Oh sorry I thought I did not include them...


doc: add channel to microk8s installation instruction

Description
This PR adds a concrete version of microk8s to be installed, as from 1.26v one of the api that we still use in mibserver is deprectaed.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[x] Bug fix

How Has This Been Tested?
Manual test.
Checklist
N/A

Codecov Report

Merging #683 (ae69292) into main (f875285) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #683   +/-   ##
=======================================
  Coverage   86.83%   86.83%
=======================================
  Files          25       25
  Lines        1603     1603
=======================================
  Hits         1392     1392
  Misses        211      211

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


Go demo example doesn't work or is not updated.

Going with demo from the web documentation I have following error:
{"level":"debug","service":"client","time":"2024-05-20T11:14:08.237709+02:00","message":"Registered worker with id: 2d5aa0ec-9bbd-4cfb-99b1-f72646b998b1"}
{"level":"debug","service":"client","time":"2024-05-20T11:14:08.238213+02:00","message":"Starting to listen for actions"}
{"level":"debug","service":"worker","time":"2024-05-20T11:14:08.238305+02:00","message":"worker <machine> is stopping..."}
{"level":"debug","service":"worker","time":"2024-05-20T11:14:08.238406+02:00","message":"worker <machine> received context done, stopping"}
{"level":"debug","service":"client","time":"2024-05-20T11:14:08.238825+02:00","message":"Context cancelled, closing channel"}
{"level":"debug","service":"worker","time":"2024-05-20T11:14:08.409023+02:00","message":"worker <machine> stopped"}

On quickstart repo, there is a concept of providing own context for worker Start() command, however newest package version doesn't allow that.

The example is very outdated, I will update it and add some auto-update magic

follow up issue for the docs #536


Avoid GC Allocations in sharedStaticDtor

The Thread.opApply static method will use realloc from core.stdc.stdlib instead of gc.gc.GC.malloc which sometimes fails with onInvalidMemoryOperationError when run within a static ~this module dtor
(gdb) bt
#0  0x00007f17edd2a9c8 in raise () from /lib64/libc.so.6
#1  0x00007f17edd2c65a in abort () from /lib64/libc.so.6
#2  0x0000000001352f5e in _d_throwdwarf ()
#3  0x00000000013d0a69 in onInvalidMemoryOperationError ()
#4  0x00000000013b832e in gc.gc.GC.runLocked!(_D2gc2gc2GC12mallocNoSyncMFNbmkKmxC8TypeInfoZPv, _D2gc2gc10mallocTimel, _D2gc2gc10numMallocsl, ulong, uint, ulong, const(TypeInfo)).runLocked(ref ulong, ref uint, ref ulong, ref const(TypeInfo)) ()
#5  0x00000000013b1c8a in gc.gc.GC.malloc(ulong, uint, ulong*, const(TypeInfo)) ()
#6  0x0000000001350be3 in gc_qalloc ()
#7  0x00000000013bac21 in rt.lifetime.__arrayAlloc(ulong, const(TypeInfo), const(TypeInfo)) ()
#8  0x0000000001355959 in _d_arraysetlengthT ()
#9  0x00000000013b0bd2 in core.thread.Thread.getAllImpl!(_D4core6thread6Thread6getAllFZ6resizeFKAC4core6thread6ThreadmZv).getAllImpl() ()
#10 0x00000000013b06dd in core.thread.Thread.getAll() ()
#11 0x000000000137d909 in std.parallelism._sharedStaticDtor1444() ()
#12 0x000000000137d9c1 in std.parallelism.__modshareddtor() ()
#13 0x00000000013bbd57 in _D2rt5minfo70__T17runModuleFuncsRevS442rt5minfo11ModuleGroup8runDtorsMFZ9__lambda1Z17runModuleFuncsRevMFAxPyS6object10ModuleInfoZv ()
#14 0x00000000013bb89d in rt.minfo.ModuleGroup.runDtors() ()
#15 0x000000000135865d in _d_dso_registry ()
#16 0x0000000000f50e4c in ?? ()
#17 0x0000000000000001 in ?? ()
#18 0x0000000001677970 in ?? ()
#19 0x00000000017625d0 in ?? ()
#20 0x0000000001763408 in __start_minfo ()
#21 0x0000000001763408 in __start_minfo ()
#22 0x0000000001763408 in __start_minfo ()
#23 0x00007fff37da3670 in ?? ()
#24 0x00007f17ef536ba7 in _dl_fini () from /lib64/ld-linux-x86-64.so.2

LGTM, but I think this should target the stable branch.

Like this?

Lists a bunch of unrelated commits, probably needs a rebase

etcimon changed the base branch to dlang:stable from dlang:master 9 hours ago

Nice, finally it's possible to change the base branch.

Are you using shared libraries?
The stacktrace above looks like a bug, once we exited the program (left main and destroyed the GC), _d_dso_registry should no longer call dtors, see https://github.com/dlang/druntime/blob/071bed6d3779abe5a4d67fff5df17c05b03bb59e/src/rt/sections_elf_shared.d#L419.

Does one of your module dtors throw an exception? Looks like we don't properly call finiSections in that case, see https://github.com/dlang/druntime/blob/15a227477a344583c4748d95492703901417f4f8/src/rt/dmain2.d#L210.

All libraries are statically built, this was a botan vibe http/2 server. I've started logging core dumps recently and this one occurs a few times a day on a busy server, the app actually closes in an unexpected moment as well

the app actually closes in an unexpected moment as well

What does that mean? The app closes and then this error happens, or some error causes the app to close and also seems to trigger this error?

I should be able to reproduce the Exception issue.

What does that mean? The app closes and then this error happens, or some error causes the app to close and also seems to trigger this error?

I can't find anything in my logs about an exception but the app closes at an unexpected time (release build) so I believe I might have another underlying issue that closes it and then this exception occurs... I think it'll take a little longer to think it through

Yep you found it

Fix for the underlying issue https://github.com/dlang/druntime/pull/1665.
Still makes sense to merge this, we don't need the GC allocated array.

Auto-merge toggled on


on the trail tile

i thought we got them all but i had a few pop up this run that i did not really love, mostly during the level 11 hidden city quest. will look into it
also i want to add the word kramco to the sausage goblin tile so it is easier to search

resolved in #161 latest push


text-embedding-ada-002 scaleType and Invalid Capcity

I chose second button to deploy and when I tried it I received an error:

Error: {"code":"InvalidTemplateDeployment","details":[{"code":"InvalidResourceProperties","message":"The specified scale type 'Standard' of account deployment is not supported by the model 'text-embedding-ada-002'."}],"message":"The template deployment 'Microsoft.Template-20231120105304' is not valid according to the validation procedure. The tracking id is 'cc4d43d8-4572-41dc-b1c6-54f509b91999'. See inner errors for details."}
I tried several regions to exclude region as one possible reason for error.

Then I checked for possible values for parameter "scaleType" and tried the setting:

"scaleSettings": {
"scaleType": "Manual",
"capacity": 1
}
Then I got the following error:
"code":"InvalidTemplateDeployment","details":[{"code":"InvalidCapacity","message":"The specified capacity ' ' of account deployment should be greater than 0 and no more than 3."}],"message":"The template deployment 'Microsoft.Template-20231120134601' is not valid according to the validation procedure. The tracking id is '50c6ea65-f0e3-4364-8372-bd49eaa5cc01'. See inner errors for details."}
I think that there should be smth wrong with "scaleSettings":"scaleType" parameter for model text-embedding-ada-002
in the template
Do you have any suggestion about this ?
Thank you and best regards, Marko

I am also getting this error. Was a fix provided?


Change TrainingDataImporter to be sync

Proposed changes:

fix #9131

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

@wochinge updated all the docs and made it all look much nicer than before. Please, check again!


sendMediaGroup doesnt support reply_markup ?

I need inline buttons for sendMediaGroup method but looks like it doesnt accept reply_markup field, So i'm just wondering why ? I really need inline button for my albums.
My use case : In my bot i want to paginate 100 photos splitted by 10 photo so the inline button shows the next 10 photo but i cannot use them

Clients are unable to show inline keyboards for albums, so server doesn't allow to send them.

Clients are unable to show inline keyboards for albums, so server doesn't allow to send them.


Quest v0.2 / G6PD :  Add Control mode workflow for G6PD

Name of feature to enhance
As a G6PD app user, I would like to check if the device is properly recalibrated  in either Control Mode 1 or Control Mode 2
Description of feature
Add both UI/UX for control mode user journey and leverage current CQL evaluation that can allow us to reuse the current CQL implementation for G6PD evaluation
Based on a Quest approach added a Questionnaire for test calibration that is independent of the Patient/Clinical workflow.
Control mode  table

Test Kit in normal mode

Test kit in control mode

More details on testing and control mode can be found here https://www.finddx.org/wp-content/uploads/2020/09/STANDARD-G6PD-test_Training_Bangladesh-FIND-icddr-Menzies_FINAL_26Nov19.pdf
Describe the enhancement

Add a menu item to initiate the control mode test
Add a Questionnaire to be able to conduct control mode, similar to the Test Questionnaire, an image of control mode and the 2 entry points for G6PD and Haemoglobin level. This should have the following fields

Chip No
Device Serial number
G6PD level
Haemoglobin level

Author and load  a CQL Library evaluation for control mode evaluation
Initiate the control mode evaluation on press submit
Add a test result page for Control mode level 1 or control mode level 2
Terminate control mode flow once the user has calibrated the device

Updated Jan 13th 2021

Added a control mode questionnaire  - http://turn-fhir.smartregister.org/fhir/Questionnaire/14222 but will need to add the correct SNOMED code for Control mode 1 and Control mode 2
Questionnaire available as in Quest app as G6PD Control mode test, press sync to update

CQL
//Declare name and version of lib
library TestArtifact version '1'

//FHIR as a data model and version of FHIR
using FHIR version '4.0.1'

//functions to help FHIR vs CQL primitives
include "FHIRHelpers" version '4.0.1' called FHIRHelpers

//System declarations  : Codable concept codes systems
codesystem "SNOMED": 'http://snomed.info/sct'
codesystem "ONA": 'http://fhir.ona.io'

//Code used as identifers
code "G6PD code": '86859003' from "SNOMED" display 'G6PD Enzyme'
code "Haemoglobin code": '259695003' from "SNOMED" display 'Haemoglobin'
code "g6pdResultTypeCode": '000001' from "ONA" display 'G6PD Result Type'
code "g6pdControl1": '410680006' from "SNOMED" display 'Control-mode 1'
code "g6pdControl2": '405358009' from "SNOMED" display 'Control-mode 2'

define "Control1Obs":
  Last([Observation: "g6pdResultTypeCode"] H
    where H.value ~ "g6pdControl1")

define "Control2Obs":
  Last([Observation: "g6pdResultTypeCode"] H
    where H.value ~  "g6pdControl2")

define "HaemoglobinObs":
  Last([Observation: "Haemoglobin code"] H
    where H.status ~ 'registered')

define "G6PDObs":
  Last([Observation: "G6PD code"] G
    where G.status ~ 'registered')

define "G6PD Value": ToString("G6PDObs".value.value.value)
define "Haemoglobin Value": ToString("HaemoglobinObs".value.value.value)

define "G6PD Normal":
    if "Control1Obs" is not null and "G6PDObs".value.value between 0.0 and 3.0
    	then true
    else if "Control2Obs" is not null and "G6PDObs".value.value between 6.0 and 10.0
    	then true
    else false

define "G6PD Conclusion":
    if "Control1Obs" is not null and "G6PD Normal"
    	then 'Value ('+ "G6PD Value"+') is in Normal G6PD Range 0-3'
    else if "Control2Obs" is not null and "G6PD Normal"
    	then 'Value ('+ "G6PD Value"+') is in Normal G6PD Range 6-12'
    else 'Value('+"G6PD Value"+') is Non Deterministic G6PD result'

define "Haemoglobin Normal":
    if "Control1Obs" is not null and "HaemoglobinObs".value.value between 8.0 and 12.0
    	then true
    else if "Control2Obs" is not null and "HaemoglobinObs".value.value between 13.0 and 17.0
    	then true
    else false

define "Haemoglobin Conclusion":
    if "Control1Obs" is not null and "Haemoglobin Normal"
    	then 'Value ('+ "Haemoglobin Value"+') is in Normal Haemoglobin Range 8-12'
    else if "Control2Obs" is not null and "Haemoglobin Normal"
    	then 'Value ('+ "Haemoglobin Value"+') is in Normal Haemoglobin Range 13-17'
    else 'Value('+"Haemoglobin Value"+') is Non Deterministic Haemoglobin result'

define "Conclusion":
  if "G6PD Normal" and "Haemoglobin Normal" then 'Correct result'
  else 'Invalid result'

define "Conclusion Details": '\nDetails:\n'+ "G6PD Conclusion" + '\n' + "Haemoglobin Conclusion"

define "OUTPUT": List { "Conclusion" , "Conclusion Details"}

Few points to be noted

Questionnaire updated

Updated SNOMED url i.e. 'http://snomed.info/sct'
Added boolean property experimental=true to questionnaire. This allows to dynamically mark questionnaire able to run into test mode and persist no data
Structure map is same
CQL is updated (library id is different in questionnaire) as older one is very different

Flow provides detailed feedback

It does not save data

Navigation added to Bottom as 'Control Test'.

Please test the apk shared and provide feedback on where to add the flow and menu i.e. need mockups incase UI needs major changes

What's the negative flow for this ? If device is not callibrated

Shared feedback on Slack

@pld the current version did not support configurable navigation... in current PR it is added today. plz check commit here https://github.com/opensrp/fhircore/pull/956/files#diff-49541e0378d07ee44cd73f8b24816df7b9c7e86c74b303fc54600061d9457943

@maimoonak Do we have a PR linked to this issue ?

This PR will be addressing issues in  this ticket PR #956


Change Terms boilerplate info on Opportunity detail

move Terms boilerplate text to display below Acceptance Criteria section
Change text to:
Terms
This is a fixed price opportunity governed by the terms of our lightweight procurement model, Code With Us. Read more to understand how it works.

Made changes as specified but this does seem vague.  Read more of what?

Read more will need a link to the Code With Us static content page (to be created).


Search in Stoplight Elements v1.7.4 DevPortal appears to be broken

Tested this out after updating the version to 1.7.4, and what happens is, when clicking on the dev portal search icon, the page crashes. Originally, it would open up a modal with a search list. I've attached a screenshot of the error that shows in the console.

Current Behavior
Page crashes instead of loading search
Expected Behavior
A modal with a search list should load
Steps to Reproduce
Info from customer

What version are we upgrading from?

"@stoplight/elements-core": "7.6.0"
"@stoplight/elements-dev-portal": "1.8.0",

Could we get access to the code you are using?

No. But it has worked for 2+ years and we are pretty certain that we haven't changed anything on our side

What guide did you use to set it up?

ReactJS

Customer upgraded and this is no longer an issue


Posting picture back to Python should return the figure object

Currently, when using the "Post to Python" feature, visualize returns two things: (1) the node-link dictionary with node positions and (2) the config dictionary. As a third tuple element it should also return the figure object, then one can handle that however one likes.

Nevermind. It makes more sense to have users use tools.draw_netwulf instead.


Disable Middleware for Payes

Could be between name and Layout ideally

Note that a page can have multiple middleware, as well as anonymous one.
There are also global middleware, maybe we could list them around here:

Happy to know your thoughts @antfu

You mean "Display Middleware for Pages", right? 👀


Mark all classes as final

Hi, thank you for your interest in this project.
About final:

https://ocramius.github.io/blog/when-to-declare-classes-final/
https://en.wikipedia.org/wiki/Composition_over_inheritance
More closed the source is to overwrite features like Inheritance, more robust it is to bugs and easier to maintain
If everything is open and we need to close it for some reason, it would be a BC break and thus a new major release. Instead, if everything starts closed and a new functionality needs opening a class, we can do it in a minor version.

What was the motivation in making everything final and thus preventing any sort of customization of services? This is after all a library and not an end product.

@uncaught https://github.com/openspout/openspout/pull/30#issuecomment-1068778672


Click on column headers to sort by that column

I'd like to see a way to sort by a column when you click on the column header, for instance clicking on "Delta to AT" sorts the column by that delta time.  Clicking on the column again should reverse the sort.

Agreed, I just need to find some way to do this efficiently.

I'm nearly done with the implementation, will be in the next version

added in version 3.3.0


fix(connector): [Bluesnap] fix expiry year

Type of Change

[x] Bugfix
[ ] New feature
[ ] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description

When a 2-digit expiry year is sent to Bluesnap, an error is thrown stating 'Problematic Input.' To address this, the 2-digit expiry year should be converted to a 4-digit expiry year.
Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed submitted code
[ ] I added unit tests for my changes where possible
[ ] I added a CHANGELOG entry if applicable

Closing this pull request as the conversion from a 2-digit to 4-digit year is no longer needed. The validation in #1416 will always expect a 4-digit year.

We need this PR as we are allowing 2 digits expiry year in HS


Change LICENSE.txt to have the actual BSD 3-Clause License

The source code and README.rst all indicate the BSD 3-Clause License should be used, but the LICENSE.txt file itself is the BSD 2-Clause License.  The PR makes the LICENSE.txt file match the code comments.

Thanks, may bad.


[numerics] NM storageType + NSM origin sync with matrix version

This adds a synchronization between storageType (DENSE & SPARSE BLOCK), origin (SPARSE) and matrix version
with a call to NM_version_sync(M). The call is added at the end of every function that modify some storage at the NM_* level.
Some missing initialization in GenericMechanical solver are added and NM_triplet, NM_half_triplet, NM_csc, NM_csr create the matrix again if the version is not the latest one (the creation was done only if the data is null).

storageType and origin are no longer supposed to be fixed, they depend
of what is done in NM_*. So, they become dynamic and maybe it is not
what is expected in some places ?
For the moment, 2 numerics tests are failing for me (under a guix config) :
The following tests FAILED:
60 - gfc3d_TEST_ADMM_COLLECTION_FCLIB (Failed)
62 - gfc3d_TEST_NSN_COLLECTION_FCLIB (Child aborted)
Errors while running CTest
On the master I have
The following tests FAILED:
60 - gfc3d_TEST_ADMM_COLLECTION_FCLIB (Failed)
61 - gfc3d_TEST_WR_COLLECTION_FCLIB (Child aborted)
62 - gfc3d_TEST_NSN_COLLECTION_FCLIB (Child aborted)
70 - ConvexQP_test_collection (Child aborted)
Errors while running CTest
So, it fixes the failing assertions of 61 and 70.
for 60 and 62, with the PR I have:
gfc3d_TEST_ADMM_COLLECTION_FCLIB:
[...]
Succeeded tests ids: [ 2, 3, 4, ] :
Failed tests ids: [ 0, 1, 5, ] :
test 0 (GFC3D ADMM, on ./data/spheres-in-a-box-98-i10000-256-10.hdf5)  was expected to fail.
test 1 (GFC3D ADMM, on ./data/spheres-in-a-box-98-i10000-256-10.hdf5)  was expected to fail.
test 5 (GFC3D ADMM, on ./data/spheres-in-a-box-98-i10000-256-10.hdf5)  was expected to succeed.
gfc3d_TEST_NSN_COLLECTION_FCLIB:
/home/maurice/wkt/siconos/mymaster/siconos/numerics/src/FrictionContact/gfc3d_nonsmooth_Newton_AlartCurnier.c:313:
_globalLineSearchSparseGP: Assertion `q >= 0' failed.
q is nan at this point.


Fix: complete function error traceback (type check fail in client)

Problem: complete ^45.<Tab> produces a type check error (issue #68)
Solution: return   () instead of Nil

Also gives #65 feature : "toto".^meth<Tab> completion

Squashed and merged as dfb39069


Offer ODS downloads

Context
We need to offer ODS downloads as we are deprecating XLSX
Changes proposed in this pull request
Serialize to ODS from frontend DB
Guidance to review
You should be able to download a register as ODS following the frontend download journey.
Still to do on this is to implement Analytics, need spec from @cliffshepp
@mpwoods should also probably look over wording.

@MatMoore
re https://github.com/openregister/registers-frontend/pull/496#pullrequestreview-175365018

Yes, I agree in principal we should move CSV to this mechanism. In practice I would rather release ODS first and do a separate PR for CSV, this is so we have some production traffic going into GA to prove the new mechanism works equivalently for ODS before swapping CSV over.

This mechanism is fast enough for the largest register we have today. I agree we could for example write them to S3 as part of the indexing process but I think this method is good enough for now and we can re-visit if we have a very large register in the pipeline.

Sounds good to me.
Can we create a backlog card to look at the CSV? I think it could cause confusion when it comes to measuring CSV downloads vs ODS downloads because at the moment I think we report on downloads based on the ORJ requests (i.e. it's tracked as a kind of API call rather than as a click in frontend).

@MatMoore I have added a planning card for generating CSV in the frontend.

OK, I am going to merge this now, will make any wording changes suggested by @mpwoods in a subsequent PR.


Improvements in BrowserWindow

movable option supported on Windows
added methods setMovable, isMovable
added options minimizable, closable and corresponding methods setMinimizable, isMinimizable, setClosable, isClosable. Implemented on Windows and OS X. This options controls whether specific window button and feature should be disabled or enabled.
On Windows implemented similar to OS X behaviour when fullscreen option is set to false. In this case the maximize button will be disabled.
Fixed a bug on OS X when resizable is set to false but the zoom button was not disabled when window is created
Fixed a bug on OS X when if you do win.setResizable(false); win.setResizable(true); win.setResizable(false), the zoom button was not disabled after the second setResizable(false) call

I’m not a Windows user, but I don’t think that disabling fullscreen should disable maximizing windows.

@sbruchmann Well, I agree that this is a bit strange. It's also a little strange to me how fullscreen option works on OS X. Another way is to add maximizable option for Windows.

Could you add setFullscreenable and isFullscreenable?

I'm afraid that fullscreenable will be easily confused with fullscreen. Moreover, "fullscreen" and "maximized" are different concepts. I think that adding maximizable option and setMaximizable and isMaximizable methods would be better solution. We could also improve API for OS X, make it more logical and clear.
Who are the maintainers here? I only know that @zcbenz is. What does he think?

The reason for fullscreenable or a different name is to separate entering/exiting fullscreen from enabling/disabling fullscreen. It will improve the fullscreen API, making it more consistent, logical, and clear. This is unrelated to maximize.

Now I understand. You suggest this for OS X, right?

Right.

@evgenyzinoviev Adding fullscreenable and maximizable looks good to me, this PR is awesome!

@evgenyzinoviev @zcbenz This will fix https://github.com/atom/electron/issues/2970 right?

@kevinsawicki Yes. I'm gonna complete this tomorrow.

Added the fullscreenable and maximizable options and methods.

Thanks!

Thank you for adding this, much appreciated ❤


Calculate token consumption for OpenAI function definitions

On 13 June, OpenAI introduced their new function calling API1
These functions are inserted into the prompt in a non-trivial format2
Neither openai-python nor tiktoken currently provide a function to calculate the expected token consumption of a set of function definitions

This is out of scope for tiktoken, maybe file an issue on openai-python


[WIP] Add Rasterize transform

Codecov Report

Merging #157 (f2b7f46) into master (a630942) will decrease coverage by 2.55%.
Report is 1 commits behind head on master.
The diff coverage is 22.50%.

@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
- Coverage   94.26%   91.71%   -2.55%
==========================================
  Files          47       49       +2
  Lines        1115     1147      +32
==========================================
+ Hits         1051     1052       +1
- Misses         64       95      +31

Files Changed
Coverage Δ

src/GeoStatsBase.jl
100.00% <ø> (ø)

src/transforms.jl
100.00% <ø> (ø)

src/transforms/rasterize.jl
0.00% <0.00%> (ø)

src/transforms/uniquecoords.jl
75.53% <100.00%> (-1.47%)
:arrow_down:

src/transforms/utils.jl
100.00% <100.00%> (ø)


Rename manifests/PhonerLite/PhonerLite/2.84.0.yaml to manifests/Phone…

…r/PhonerLite/2.84.0.yaml

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

Microsoft Reviewers: Open in CodeFlow

different pull request created


Add TypeScriptTypeSource

Before merging I'd like to rename the WIP commits in the typescript-input branch, and look it over again real quick.

I prettied up the typescript-input branch so you'll have to rebase.  Other than that I'm happy to merge.  Please check that the diff only contains new files, just to be sure.  I really need to implement it not failing if there are only new files.


Duplicate jabber messages should be handled differently

Currently when the bot receives the same message twice in a row it just posts them without consideration:

@everyone
кта флот собирается, ратлы, флит от юберо
Broadcast sent at 2016-12-10 23:40:34 EVE Time by<EMAIL_ADDRESS>to all users group.

@everyone
кта флот собирается, ратлы, флит от юберо
Broadcast sent at 2016-12-11 00:41:21 CET by<EMAIL_ADDRESS>to all users.

Although strictly speaking the body of the message is different and it comes from a different server it should probably not be posted twice.
Maybe some indication that the message was sent twice could be added.

Additionally, it might be nice to display these pings in an embed rather than a codeblock