Update kubernetes versions in e2e test

What this PR does / why we need it:
Update versions for all 3 Kubernetes distributions in e2e test. Preparing for the April release
Special notes for your reviewer:
If applicable:

[ ] this PR has an associated PR with documentation in akri-docs
[ ] this PR contains unit tests
[ ] added code adheres to standard Rust formatting (cargo fmt)
[ ] code builds properly (cargo build)
[ ] code is free of common mistakes (cargo clippy)
[ ] all Akri tests succeed (cargo test)
[ ] inline documentation builds (cargo doc)
[ ] all commits pass the DCO bot check by being signed off -- see the failing DCO check for instructions on how to retroactively sign commits

i dont think we need to bump version in this @harrison-tin since it is not updating any of Akri rather just a test suite. We can instead use the same-version tag on the PR


OutOfMemoryException when compiling UWP App with .Net Native

Problem:
I am trying to compile a UWP Project using the .Net Native Tool-chain (Because its required for publishing in the Windows Store).
What I've tried:

changing the architecture x86 | x64 | ARM
removing "" (results in run time crashes due to missing type information)
always compile with x64 tools
add explicit reference to .net native

Project dependency's:
Voyonic.Client

Voyonic.Client.Lib

Voyonic.Client.Models

Voyonic.Shared.CommService

Voyonic.Shared

Versions:
Microsoft Visual Studio Enterprise 2017
Version 15.7.3
VisualStudio.15.Release/15.7.3+27703.2026
Visual Studio Tools for Universal Windows Apps   15.0.27703.2026
DotNet Core 2.1.300

Could you try instructions here and see if it helps? https://github.com/dotnet/corert/issues/5905#issuecomment-395701818

I will try it right now

Was able to solve the issue by:

referencing the .Net Native tooling via NuGet
disabling code analytics
moving code from Libary to main Project


how connect to druid?

find DruidSchema.java
`   * Creates a Druid schema.
*

@param url URL of query REST service, e.g. "http://localhost:8082"
@param coordinatorUrl URL of coordinator REST service,

                  e.g. "http://localhost:8081"

@param discoverTables If true, ask Druid what tables exist;

                  if false, only create tables explicitly in the model`

but idon't know how can connect with
./bin/quicksql.sh -e

Druid data source is currently a semi-finished product, it needs to be refined.


fix: [#9528] Unable to add two PVA bot skills through bot framework composer with the option connect to a skill

Description
This PR fixes an issue where Composer fails to connect to multiple PVA skills due to a validation error saying "The skill is already part of the Bot Project". This validation happened because a single manifest was saved in the skills folder, and adding another PVA bot will replace it.
Therefore, changing the folder structure to where the bot's manifest is saved solved the issue.
Other issues have been addressed due to being related to PVA skills, where:

The Manifest URL didn't redirect to a valid content, since the bot was loaded from a .zip file and no endpoint was available.

Instead of redirecting to the manifest.json file, it shows its content in a modal.

Switching between PVA skill pages, the information didn't get refreshed.

Adding the projectId to the useMemo function solved the issue.

When a PVA skill is added and the visual focus is on another bot that is not the root, it will throw an error that it didn't locate .lg and .lu files, failing to add the skill action trigger to the root bot.

Changing the current opened bot project id to use the root one, solved the issue.

Task Item
#minor
Fixes # 9528
Screenshots
The following images show the validation when adding an existing PVA skill and the folder structure, and the bots working as expected.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

12 of 22 (54.55%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.009%) to 54.544%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

Composer/packages/client/src/pages/design/Modals.tsx
0
1
0.0%

Composer/packages/server/src/models/utilities/util.ts
3
4
75.0%

Composer/packages/client/src/recoilModel/dispatchers/project.ts
2
4
50.0%

Composer/packages/client/src/pages/design/ManifestEditor.tsx
4
10
40.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.009%

Covered Lines:
19685

Relevant Lines:
31719

💛  - Coveralls

/promoted 9549


[CIT-428] Fix system test by making the parameter accessible

Proposed changes
Make the variable a static member.
Types of changes

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Improvement (general improvements like code refactorings that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue

Checklist

[x] I have read the CONTRIBUTING doc
[ ] I have signed the CLA (in all commits with git commit -s)
[ ] I ran cargo fmt as mentioned in CODING_GUIDELINES
[ ] I used cargo clippy as mentioned in CODING_GUIDELINES
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Codecov Report

Merging #361 (906d4c4) into main (24cbbae) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #361      +/-   ##
==========================================
- Coverage   68.70%   68.68%   -0.03%
==========================================
  Files          86       86
  Lines        4749     4749
==========================================
- Hits         3263     3262       -1
- Misses       1486     1487       +1

Impacted Files
Coverage Δ

mapper/tedge_mapper/src/collectd_mapper/batcher.rs
82.14% <0.00%> (-0.45%)
:arrow_down:

Continue to review full report at Codecov.

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


References through other references being produced

Sorry if this is a bit confusing to understand, but I have a complicated schema with many (circular) references, and I'm using the bundle() method then passing the results to z-schema which can't understand it.
My main schema (minus a lot of irrelevant detail) is:
model.yaml
$schema: http://json-schema.org/draft-04/schema#
type: object
title: Model
properties:
    body:
        type: array
        items:
            $ref: section.yaml
        minItems: 1
    body2:
        type: object
        properties:
            content:
                type: array
                items:
                    $ref: any.yaml
                minItems: 1

Then the following are referenced:
any.yaml
oneOf:
  - $ref: list.yaml
  - $ref: section.yaml
  - $ref: text.yaml

list.yaml
$schema: http://json-schema.org/draft-04/schema#
type: object
title: List
properties:
    items:
        type: array
        items:
            oneOf:
              - $ref: list.yaml
              - $ref: text.yaml
        minItems: 1
required:
  - items

section.yaml
$schema: http://json-schema.org/draft-04/schema#
type: object
title: Section
properties:
    content:
        type: array
        items:
            $ref: any.yaml
        minItems: 1
required:
  - content

text.yaml
$schema: http://json-schema.org/draft-04/schema#
type: object
title: Text
properties:
    text:
        type: string
required:
  - text

The bundle() method of this library returns:
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "title": "Model",
    "properties": {
        "body": {
            "type": "array",
            "items": {
                "$schema": "http://json-schema.org/draft-04/schema#",
                "type": "object",
                "title": "Section",
                "properties": {
                    "content": {
                        "type": "array",
                        "items": {
                            "$ref": "#/properties/body2/properties/content/items"
                        },
                        "minItems": 1
                    }
                },
                "required": [
                    "content"
                ]
            },
            "minItems": 1
        },
        "body2": {
            "type": "object",
            "properties": {
                "content": {
                    "type": "array",
                    "items": {
                        "oneOf": [
                            {
                                "$schema": "http://json-schema.org/draft-04/schema#",
                                "type": "object",
                                "title": "List",
                                "properties": {
                                    "items": {
                                        "type": "array",
                                        "items": {
                                            "oneOf": [
                                                {
                                                    "$ref": "#/properties/body/items/properties/content/items/oneOf/0"
                                                },
                                                {
                                                    "$ref": "#/properties/body/items/properties/content/items/oneOf/2"
                                                }
                                            ]
                                        },
                                        "minItems": 1
                                    }
                                },
                                "required": [
                                    "items"
                                ]
                            },
                            {
                                "$ref": "#/properties/body/items"
                            },
                            {
                                "$schema": "http://json-schema.org/draft-04/schema#",
                                "type": "object",
                                "title": "Text",
                                "properties": {
                                    "text": {
                                        "type": "string"
                                    }
                                },
                                "required": [
                                    "text"
                                ]
                            }
                        ]
                    },
                    "minItems": 1
                }
            }
        }
    }
}

When using z-schema to parse (any) JSON it errors with:
[
    {
        "code": "UNRESOLVABLE_REFERENCE",
        "params": [
            "#/properties/body/items/properties/content/items/oneOf/0"
        ],
        "message": "Reference could not be resolved: #/properties/body/items/properties/content/items/oneOf/0",
        "path": "#/properties/body2/properties/content/items/oneOf/0/properties/items/items/oneOf/0"
    },
    {
        "code": "UNRESOLVABLE_REFERENCE",
        "params": [
            "#/properties/body/items/properties/content/items/oneOf/2"
        ],
        "message": "Reference could not be resolved: #/properties/body/items/properties/content/items/oneOf/2",
        "path": "#/properties/body2/properties/content/items/oneOf/0/properties/items/items/oneOf/1"
    }
]

The (first) problem is that the reference at #/properties/body2/properties/content/items/oneOf/0/properties/items/items/oneOf/0 ("$ref": "#/properties/body/items/properties/content/items/oneOf/0") goes through another $ref. According to https://github.com/json-schema/json-schema/wiki/$ref-traps#references-through-other-references this should still be resolvable (so the bug could be in z-schema not understanding it), but the bundle() method could have produced "$ref": "#/properties/body2/properties/content/items/oneOf/0" which would avoid the problem.
I hit this problem yesterday and reordering some properties (hence reordering some $refs) fixed it a couple of times, but I can't find a way around the latest instance.

I have a workaround, which is to run it through bundle() a second time.


Change mouse pointer to arrow when scroll bar on focus

Describe the bug
In Richeditbox and Textbox when scrollbar is in focus the mouse pointer is still an ibeam instead of an arrow.
Steps to reproduce the bug
Implement standard Richeditbox and Textbox with scrolling support in your app.
Expected behavior
When scroll bar is on focus the pointer should change to an arrow, and when content is in focus pointer would change back to ibeam.
Version Info

NuGet package version: Microsoft.UI.Xaml 2.3.200213001

Windows 10 version
Saw the problem?

Insider Build (19564)
Yes

November 2019 Update (18363)
Yes

May 2019 Update (18362)
Yes

October 2018 Update (17763)
Yes

April 2018 Update (17134)
Yes

Fall Creators Update (16299)
Yes

Creators Update (15063)
Yes

Device form factor
Saw the problem?

Desktop
Yes

Mobile

Xbox

Surface Hub

IoT

Additional context

@soumyamahunt I'm unable to reproduce this so far with some quick testing. I'm seeing the I-beam transition off and on as I move around. Can you please provide more detail about how your TextBox and scroller are configured? Provide some sample markup, and screen captures are always nice.

@soumyamahunt I'm unable to reproduce this so far with some quick testing. I'm seeing the I-beam transition off and on as I move around. Can you please provide more detail about how your TextBox and scroller are configured? Provide some sample markup, and screen captures are always nice.

The issue I am describing is when the scroll bar is focused (dragged up and down or just hovered over) the pointer doesn't transition from I-beam to arrow. Here is a comparison of a sample Richeditbox control and default notepad app:

Notice how the pointer transitions when scroll bar focused in notepad.

@soumyamahunt thanks for the visual, that's super helpful! Based on your original description I was indeed trying something different from what you were describing. But after seeing that I've got this reproducing just fine, thank you! (I had been hosting it in a scroller, not just relying on RichEditBox's scroller, aka I was overcomplicating it :))
@ddalp Are you aware of any issues with how RichEditBox sets the cursor with regards to the scrolling?

@chrisglein This is an old OS bug we chose not to fix years ago. I remember the issue is that the caret type determined by TextBoxView part of the RichEditBox which is I-beam type. We should add logic to reset the cursor type by calling SetCursor when point exits the TextBoxView.

@chrisglein This is an old OS bug we chose not to fix years ago. I remember the issue is that the caret type determined by TextBoxView part of the RichEditBox which is I-beam type. We should add logic to reset the cursor type by calling SetCursor when point exits the TextBoxView.

I tried using ScrollViwer Extensions from Windows Community Toolkit to apply scroll with mouse middle click. But the pointer type doesn't change when pointer is over RichEditBox control. May be adding ability to change cursor type to anything would be better instead of restricting to I-beam.

Hi,
Is there a timeline when this issue is planned to be fixed?
This reduces the user experience for certain UWP text editors e.g. Notepads.
This issue exists in Windows 10 1909, Build 18363.836.

Adding to what @SuhasSrinivasan said. Will this bug be fixed any time soon? For end users, it's displeasing to have this visual glitch when using notepad-like apps.

F

Do not close

It's year 2023 now and this is still open? There must be some kind of workaround... At least share with the rest of us how does Notepad in W11 deal with this. Gimmicks like these don't look very good to people/companies looking to switch over from WPF.


offset function in the formula

I am wondering if the team has plan to develop offset function? What is the expecting timeline for this?

We don't have any plans for this, but open source contributions are welcome!

I'd be interested in support for this as well. I may take a look at implementing it if I can find the time in the next few weeks.

I wrote a lot of the code in this repository. I'm no longer actively working on this, but I'm still following the issues. Feel free to ask me about anything I've done that doesn't make sense. Good luck!

@null-a Thanks!
I haven't yet had time to think through how to implement w.r.t. this code base. If there has been any thoughts or discussions on how to support I'd be interested to hear. Otherwise, I'll be sure to ask if I run into any questions.

I'm not aware of any previous discussion. (And don't even recall what offset does off the top of my head!) Nevertheless, I'd be happy to discuss a general strategy at some point if that would be helpful.
As a starting point, here's a rough high-level sketch of how we go from the inputs of formula, dataset and description of custom priors we get from the user, to either Pyro/NumPyro code.
                DataFrame metadata --|
                                     |-> `ModelDescPre` --|
input string --parser--> `Formula` --|                    |-> `ModelDesc` --code gen--> code
                                                 priors --|

(The items in back-ticks denote Python classes.)
My guess would be that each stage of this pipeline would need to be updated to handle offsets. i.e. Update the parser to parse out offsets and represent them in Formula, update ModelDesc (which is something like an abstract description of the model) to also represent offsets, and update the code generators to output code that implements the appropriate functionality.


Ubuntu 16.04, Python 3.5 install failed with "wrong ELF class: ELFCLASS64"

May I get some help?
I attempted to follow the instructions online to install or-tools on my DigitalOcean server. The library has worked well on my Macbook. But I am unable to install it on my Ubuntu server.
Distribution version
petrochuk@wardrobe:/var/www/wardrobe.tips$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

Python Version
$ python3 -V
Python 3.5.2

Setup.py
$ sudo /usr/bin/python3 setup.py install --user
running install
running bdist_egg
running egg_info
writing ortools_examples.egg-info/PKG-INFO
writing dependency_links to ortools_examples.egg-info/dependency_links.txt
writing requirements to ortools_examples.egg-info/requires.txt
writing top-level names to ortools_examples.egg-info/top_level.txt
reading manifest file 'ortools_examples.egg-info/SOURCES.txt'
writing manifest file 'ortools_examples.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/EGG-INFO
copying ortools_examples.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying ortools_examples.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying ortools_examples.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying ortools_examples.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying ortools_examples.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/ortools_examples-5.0.3919-py3.5.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing ortools_examples-5.0.3919-py3.5.egg
Removing /home/petrochuk/.local/lib/python3.5/site-packages/ortools_examples-5.0.3919-py3.5.egg
Copying ortools_examples-5.0.3919-py3.5.egg to /home/petrochuk/.local/lib/python3.5/site-packages
ortools-examples 5.0.3919 is already the active version in easy-install.pth

Installed /home/petrochuk/.local/lib/python3.5/site-packages/ortools_examples-5.0.3919-py3.5.egg
Processing dependencies for ortools-examples==5.0.3919
Searching for py3-ortools==5.1.4041
Best match: py3-ortools 5.1.4041
Processing py3_ortools-5.1.4041-py3.5-linux-i686.egg
py3-ortools 5.1.4041 is already the active version in easy-install.pth

Using /home/petrochuk/.local/lib/python3.5/site-packages/py3_ortools-5.1.4041-py3.5-linux-i686.egg
Searching for protobuf==3.0.0
Best match: protobuf 3.0.0
protobuf 3.0.0 is already the active version in easy-install.pth

Using /usr/local/lib/python3.5/dist-packages
Searching for setuptools==20.7.0
Best match: setuptools 20.7.0
setuptools 20.7.0 is already the active version in easy-install.pth
Installing easy_install script to /home/petrochuk/.local/bin

Using /usr/lib/python3/dist-packages
Searching for six==1.10.0
Best match: six 1.10.0
six 1.10.0 is already the active version in easy-install.pth

Using /usr/lib/python3/dist-packages
Finished processing dependencies for ortools-examples==5.0.3919

Check Python Deps
$ python3 check_python_deps.py
INFO:root:Python path : /usr/bin/python3
INFO:root:Python version : 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609]

INFO:root:or-tools version : 5.1.4041
INFO:root:/home/petrochuk/.local/lib/python3.5/site-packages/py3_ortools-5.1.4041-py3.5-linux-i686.egg/ortools/__init__.py

INFO:root:protobuf version : 3.0.0
INFO:root:/usr/local/lib/python3.5/dist-packages/google/protobuf/__init__.py

Error
    File "/usr/local/lib/python3.5/dist-packages/ortools/graph/pywrapgraph.py", line 18, in swig_import_helper
      return importlib.import_module(mname)
    File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 986, in _gcd_import
    File "<frozen importlib._bootstrap>", line 969, in _find_and_load
    File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
    File "<frozen importlib._bootstrap>", line 577, in module_from_spec
    File "<frozen importlib._bootstrap_external>", line 906, in create_module
    File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  ImportError: /usr/local/lib/python3.5/dist-packages/ortools/graph/_pywrapgraph.so: wrong ELF class: ELFCLASS64

On my other issue, it was noted that ortools does not support 32 bit systems. That may be the root cause here.
But on the other issue, setup.py was able to identify that before I was able to progress this far into the installation.

Hello,
Indeed, 32-bit systems are not supported by or-tools. You are right about what you said : a system check needs to be performed before going further. We will implement it ASAP.
Thank you.

Hi,
We won't support 32 bit system so I'll close this issue.
Sorry for the inconvenience.


use native ‘Save’ command under 'File' menu to save Voyager

Currently, the changes in voyager are saved through newly designed 'Save Voyager' button in 'Voyager' menu or toolbar, it kind of conflicts with JupyterLab user's operation habit:
since under 'File' menu, Jupyterlab already provided 'Save', 'Save As', 'Save All' commands for users to save work to local files. So, for Voyager, we should follow this design, use those native 'Save' buttons to save the current Voyager status (vl.json form by default) to local files.
Those 'Save' commands rely on each widget's context() function to get the contents. I modified VoyagerPanel's context() function, now the original 'Save' button under File menu can save the changes inside voyager to local vl.json file.
But for other file types like csv, this action will put vl.json content into csv file and therefore destroy the original data. So, right now I added another logic in context() function to determine if a file is vl.json, if it's not, then the 'Save' command will not actually do anything.
My current solution is not ideal, any suggestions?
@ellisonbg

@zzhangjii @tgeorgeux
I think we should step back and study how other applications handle these types of situations where there are two files involved (the "document" and the "data"). Tableau is a great example of such an app we could study. What are others?

I think of outputting files from Figma/Sketch, save as .fig or Export into various file types. Microsoft Office/GSuite both have separate save and export features as well. I think it's safe to say 'export' is a good option, and possibly give options for how to export.


made SalvageSystem configurable

About the PR
I've made SalvageSystem configurable.
Following CCVars added:
salvage.hold_time - Salvage hold phase time, in seconds. Set to zero to hold indefinitely.
salvage.attaching_time - Salvage attaching phase time, in seconds. Set to zero to skip to next phase immediately.
salvage.detaching_time - Salvage detaching phase time, in seconds. Set to zero to skip to next phase immediately.
salvage.cooldown_time - Salvage cooldown phase time, in seconds. Set to zero to skip to next phase immediately.
Screenshots
Changelog
:cl:

add: SalvageSystem now configurable using CVars
tweak: you can click salvage magnet again to let go of a debris before timer runs out

Being able to let go early is an intentional omission, make the most of what you get.
This shouldn't use cvars, this should just be fields on the magnet.

Oh, and tests in master are broken for at least 3 days now...

Are you coming back to this?


fixed: string concatenation did not work with SQLite

fixes #28
record-macros was attempting to use the MySQL CONCAT function for string concatenation, which is not supported in SQLite, resulting in sql errors.
This change switches to using the slightly more standard string concat pipe operator (||) which is supported on both platforms. However, in order to use this feature in MySQL the PIPES_AS_CONCAT sql_mode must be enabled, thus this is done automatically in sys.db.Manager.set_cnx upon MySQL assignment.
This does mean we're altering the sys.db.Connection upon assignment. Alternatively we could just use differing syntax depending on connection type, but I'm not sure the best way of performing this check within RecordMacros, as we're in compiletime land, there.

Thank you.


Put more emphasis on keyboard selected items

I really like the work on the new context menu!
I think here the contrast for the active element could be increased though:

Maybe some background color?
Maybe the full blue background one should be swapped with the keyboard selected one?

This actually got fixed in a PR yesterday where the colors are swapped and the main highlight stays on keybinding until the cursor moves again.


0.13.3 is not available on crates.io

Hey, do you mind publishing 0.13.3 on crates.io which supports Ratatui 0.29.0? Thanks :)

renamed to 0.14.0


Add Price for Lepton AI Models

https://www.lepton.ai/playground
bunch of models provided : llama7b,13b,70b, codellama 7b,13b,34b, mixtral-8*7b, etc...
For pricing:  https://www.lepton.ai/pricing

https://www.lepton.ai/playground
bunch of models provided : llama7b,13b,70b, codellama 7b,13b,34b, mixtral-8*7b, etc...
For pricing: https://www.lepton.ai/pricing

I'm assuming these are the prices:

Model
Price

Llama2 7b
$0.1 / million tokens

Llama2 13b
$0.3 / million tokens

Llama2 70b
$0.8 / million tokens

Code Llama 7b
$0.1 / million tokens

Code Llama 13b
$0.3 / million tokens

Code Llama 34b
$0.8 / million tokens

AIQR
$0.00015 / step

Stable Diffusion XL
$0.00015 / step

Super Resolution
$0.00015 / image

WhisperX
$0.00007 / second

Do these models have canonical names? i.e. "gpt-3.5-turbo" = GPT-3.5. Looks like a simple thing to add

yep, llama2-7b, llama2-13b, llama2-70b, mixtral-8x7b, codellama-7b, codellama-13b, codellama-34b

and they are open AI compatible, eg. for mixtral-8*7b https://www.lepton.ai/playground/chat?model=mixtral-8x7b

and they are open AI compatible, eg. for mixtral-8*7b https://www.lepton.ai/playground/chat?model=mixtral-8x7b

Sounds good. I can add these, but if you'd prefer, raise a PR and I'll approve.

https://github.com/AgentOps-AI/tokencost/blob/main/tokencost/constants.py

I'm assuming the structure of this file needs to be altered a bit. maybe add a provider attribute to each model? and default provider to openAI? or have a list of providers as the price do vary among these providers.

This pattern from LiteLLM might work. Simply adding slashes:
https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json

@bobmayuze I've created a new cost dictionary file: https://github.com/AgentOps-AI/tokencost/blob/main/model_prices.yaml
Feel free to add your models in there. Additionally, you can update the table in the README to include those models.


bleach.clean() is too aggressively sanitizing

Tokens like new, for, and, and , are all being stripped out. This is my new theory of the weird short-input-contexts features.

Tried moving back to html.escape(), for now. Let's see if this works reliably.


Multiple Source Directories?

We have a project that contains both generated sources and hand written sources.
It looks like this plugin only supports one source directory. Is this correct?
https://github.com/linkedin/pygradle/blob/master/pygradle-plugin/src/main/groovy/com/linkedin/gradle/python/PythonExtension.groovy#L51

@JLLeitschuh Can you please explain more about your project structure?
Can the two directories be considered two different Python projects where one consumes another?
In that case they could be two pygradle projects (directories) and produce two artifacts. The build.gradle of one of them would contain a reference to another as a dependency.
Otherwise, can both of these be under the src directory (and perhaps a namespace package under it)? Notice that setup.py generated by our GenerateSetupPyTask will use setuptools to find all the Python packages under src correctly. You can use Gradle to enforce the task order, so that build does not start until your generated code is in place.
Finally, you could use approach where a generated code is always a separate project and a separate artifact. For example, http://rest.li clients are automatically generated from Pegasus data schema (models) for many languages including Python. The generated code and artifact for Python package are then consumed as a dependency of the Python app (package) that needs to use such a client.
I tried to cover several possible options above. Please, let me know which one suits best your workflow and can we help further.

The solution I came to was to copy the generated sources and the source directory into the same directory in the build directory and use that as the directory to create the egg.


Setup gh-scoped-creds for LEAP hub

Ref https://github.com/rabernat/2i2c-docs/pull/1#discussion_r854154655
Follows the docs in https://github.com/2i2c-org/infrastructure/pull/1219

@damianavila not sure either! I rebased on latest master and that fixed it.


fatal error

Its the newest appimage for debian 12:
08:12:51 PM: Fatal error encountered:
08:12:51 PM:
08:12:51 PM: Traceback (most recent call last):
08:12:51 PM:   File "/tmp/.mount_TwitchXpz8nH/usr/src/main.py", line 155, in main
08:12:51 PM:     await client.run()
08:12:51 PM:   File "/tmp/.mount_TwitchXpz8nH/usr/src/twitch.py", line 587, in run
08:12:51 PM:     await self._run()
08:12:51 PM:   File "/tmp/.mount_TwitchXpz8nH/usr/src/twitch.py", line 747, in _run
08:12:51 PM:     await self.bulk_check_online(acl_channels)
08:12:51 PM:   File "/tmp/.mount_TwitchXpz8nH/usr/src/twitch.py", line 1657, in bulk_check_online
08:12:51 PM:     response_list = await coro
08:12:51 PM:   File "/tmp/.mount_TwitchXpz8nH/usr/lib/python3.10/asyncio/tasks.py", line 571, in _wait_for_one
08:12:51 PM:     return f.result()  # May raise f.exception().
08:12:51 PM:   File "/tmp/.mount_TwitchXpz8nH/usr/src/twitch.py", line 1387, in gql_request
08:12:51 PM:     raise GQLException(response_json['errors'])
08:12:51 PM: exceptions.GQLException: [{'message': 'service error', 'path': ['channel', 'viewerDropCampaigns']}]
08:12:51 PM:
08:12:51 PM: Exiting...
08:12:51 PM:
08:12:51 PM: Application Terminated.
08:12:51 PM: Close the window to exit the application.

Duplicate of #590.


Compatibility with in-roof ducted reverse cycle models (heat pump)

Hello!
I've been looking at adding some smarts to my existing in-roof ducted panasonic AC system and came across this library.
I'm wondering whether or not it would be compatible with my unit?
My in-roof unit is the S-71PE1R5A which is presently controlled by the CZ-RTC4.  All of the panasonic marketing materials do not mention the ability to add one of their wifi modules as the unit is from ~2016 and seems to pre-date the wifi products.  I've been up in the roof and taken some pictures of the PCB to see if I could identify whether the right connectors exist but I'm not certain - could someone more knowledgeable than I please have a look?
I can see that there is a T10 connector, but according to the manual, this seems to only be used for switching... does that mean its not the same as the T10 that is required for this library to work?  It also seems to be a 6-pin connector, when from what I've seen, split systems have a 5-pin?
See page 23 (brochure page 45) https://www.panasonic.com/content/dam/Panasonic/support_manual/Air_Conditioner/English/FY2015_PAC_BROCHURE.pdf

In the service manual the only reference to T10 I can see is:

I'm not able to find any references to CN-CNT
Thank you in advance!
p.s. here is an overview of the whole board:

If there's no CN-CNT or CN-WLAN connector on your indoor unit there is unfortunately no way to get this library to work.

Thanks @DomiStyle.  Another google brings up no references to CN-CNT on this board, so I guess I'm out of luck.
Thank you, and best of luck with the project 😄


Multiple percentile values processing

Adds the option to calculate multiple percentiles in a single PERCENTILE aggregator call. For example:
result = cube.collapsed('time', iris.analysis.PERCENTILE, percent=[50, 75])

The updated percentile aggregator works for cube.collapsed, cube.aggregated_by and cube.rolling_window.
The improvements are gained simply by changing the underlying function call from scipy.stats.mstats.scoreatpercentile to scipy.stats.mstats.mquantiles, which accepts multiple input percentiles without raising an error.
This adds the obvious functionality of being able to calculate multiple percentiles in a single cube method call but also provides efficiency gains as the setup and ordering processing necessary need only be done once for all percentile calculations, rather than once per percentile as would be the case if each percentile calculation were carried out in its own collapsed call.

Thanks for the extension @dkillick :smile: It should be a lot faster.
The occurrences of  if 'percentile' ... suggest a change is needed in the aggregator API though. We don't want to have special case code relating to percentile calculation outside of the PERCENTILE object.

A test would be nice too. :smile:

suggest a change is needed in the aggregator API though

Agreed; I was thinking along those lines as I made these changes. I think part of the problem is that this change means that PERCENTILE isn't really a typical aggregator any more - it doesn't produce a cell method now - so doesn't as well fit into the aggregator API.
However, an API change is quite a lot of work, so hopefully this change has some value as a small step and/or a proof of concept on the way to the bigger change.

A test would be nice too

A percentile-specific aggregator for each of the bits where if 'percentile' occurs, you mean?

Moved to #1569.


Potential .m5o file parsing bugs

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1529
Originally created by @derek-knox on 2020-01-06 15:25:54

Regarding a user's custom extractor setup, a comment of:

I think I found some bugs in the m5o file parsing, esp around parsing date dimensions, but the docs are super light so I’m not sure if it’s intentional or a bug (but I think a bug). I worked around it.

Suggests we may have a bug. Hoping for added context from @emilie before we do/don't queue this.

View 13 previous comments from the original issue on GitLab


[Bug]: The Execute access doesn't get check for the API's  when parent get the Execute access

Is there an existing issue for this?

[X] I have searched the existing issues

Description
The Execute access doesn't get check for the API's  when parent get the Execute access

Steps To Reproduce

Create a app
In page 1 add an api bind it to table
add a crud page
Now go to admin setting page
Create a new role
go to datasource and queries page
expand all the databases and queries
click on execute permission from workspace level
all the checkboxes will be checked instead of API's

Public Sample App
No response
Issue video log
No response
Version
localhost

Actions are not children of data sources, this is quite expected.


Creating a new module - Service Provider not found

Hi,
currently I'm working on a new project.
I'm using Laravel5 here instead of laravel4.
Currently my Composer files looks like this:
{
....
	"require": {
		"laravel/framework": "5.0.*",
		"laravel/cashier": "~3.0",
		"kodeine/laravel-acl" : "dev-master",
		"pingpong/modules": "2.0.*@dev"
	},
....
	"autoload": {
		"classmap": [
			"database"
		],
		"psr-4": {
			"<CUSTOM_NAME>\\": "app/",
			"Modules\\": "Modules"
		}
	},
}

As you can see, I have changed the app name via
php artisan app:name <CUSTOM_NAME>

Now i have tried to generate two modules

Users
Subscription

The Users module has been created successfully.
Now if I try to generate the second module, I will see only the following error message:
  [Symfony\Component\Debug\Exception\FatalErrorException]
  Class 'Modules\Users\Providers\UsersServiceProvider' not found

Any ideas? Is the custom app name not supported and the modules package requires "App"?
Thanks!
Greets,
Marcus

closed :)
Forgot to ran composer dump-autoload


Added more info about volumes

Resolves #344
https://docs.docker.com/engine/tutorials/dockervolumes/

Proposed changes

Unreleased project version (optional)

Related issues (optional)

LGTM, it looks like @mstanleyjones  comments are addressed, merging


CB-11778 Fix NullPointer for RetryableFreeIpaClientException#toString

When exceptionForRestApi is not set toString could cause exception. This is fixed by handling null gracefully.
Also FreeIpaClientExceptionWrapper contructor has been edited to include the message, so it won't call toString on the wrapped exception.
See detailed description in the commit message.

this must go as a hotfix when we will update production.


Error when field has number on name

I'm trying to insert some data on my table.
That table has a field called MED_PLA17
But BookShelf dont recognize when I try to set this field
const record = {
   medAbc: resource.ID_PRODUTO,
   medCtr: resource.NOME_FABRICANTE,
   medCap: resource.CAP,
   medTarja: resource.ID_TARJA,
   medAbc: resource.ID_PRODUTO,
   labNom: resource.NOME_FABRICANTE,
   medTipmed: resource.DESCRICAO_TIPO_PRODUTO,
   medDes: resource.NOME,
   medApr: resource.DESCRICAO,
   medPrinci: resource.COMPOSICAO,
   medBarra: resource.EAN,
   medLab: resource.ID_FABRICANTE,
   medNegpos: resource.ID_LCCT,
   medPla17: resource.MED_PLA17
   // medPLA175: resource.PF_17_5,
   // medPLA18: resource.PF_18,
   // medPla_12: resource.PF_12,
   // medPla20: resource.PF_20

 };

 console.log(`${JSON.stringify(record)}`);

 return new Resource(record).save().then(resource => resource.refresh());

{"medAbc":"240402","medCtr":"AUROBINDO PHARMA","medCap":"0","medTarja":"TV","labNom":"AUROBINDO PHARMA","medTipmed":"GENERICO","medDes":"AMPICILINA SODICA","medApr":"500mg po sol inj x 50fa emb hosp","medPrinci":"AMPICILINA SODICA","medBarra":"7898361884611","medLab":"435","medNegpos":"+","medPla17":"125.64"}
2018-04-11T19:19:51.279Z - error:  Error: ER_BAD_FIELD_ERROR: Unknown column 'med_pla_17' in 'field list'

Looks like you're probably using format to the model's attributes to snake case before saving. The attribute in question is being converted to med_pla_17 which obviously is not the same as MED_PLA17, so the problem is in your format method.

That is my model

import bookshelfGestao from '../../db_gestao';

const TABLE_NAME = 'medicamento_temp_abcfarma';

/**
 * medicamento_temp_abcfarma model.
 */
class Rede extends bookshelfGestao.Model {

  get idAttribute() {
    return 'MED_ABC';
  }

  get tableName() {
    return TABLE_NAME;
  }

}

export default Rede;

@ricardograca how can I force the format name in that case / model  ? I need to insert data with that field.

That can't be the whole thing. You're missing the format method. Maybe it's in the bookshelfGestao.Model base model?
I don't know what kind of format method you're using but just make sure that field is transformed correctly in that method.

Closing this due to lack of response.


Desktop - Search - Hmm...it's not here when resizing the app window

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v9.0.70-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team
Action Performed:

Open the app
Navigate to the Search page by clicking the search icon with a bill in the bottom navigation bar
Resize the app window

Expected Result:
All parts of the page are displayed correctly, despite changes in the window size
Actual Result:
After resizing the app window, Hmm...it's not here is displayed on the left part of the page.
Workaround:
Unknown
Platforms:

[ ] Android: Standalone
[ ] Android: HybridApp
[ ] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/0a68a5c5-5044-4023-9e46-71d0046db9e1

View all open jobs on GitHub

Easy to reproduce! Added to Quality as I believe this is something that sometimes works and should work consistently

Hi! I can take a look

Hey, @mountiny I started an investigation and realized that this issue should be fixed on the branch for the new bottom tabs. I don't see any obvious solution that could be transferred, so I wonder if we could put this on hold until the new bottom tabs.


Want to access to icloud photo

Hey Admin.
just want to thanks you for providing us the best plugin.
btw, I have question: How to access to cloud photo to select those photos.
I used the standard select photo of cordova before. and It worked. but it was not possible to select mutiple photos.
thanks so much if you can update it, or let me know How can i customize your code.

You can try to use update library with Photos library update for iOS 8 onwards with iCloud sync.
At https://github.com/amitbobade2007/ELCImagePickerController.
Forked from latest master branch and update for support.

This should be re-opened. This is still a problem right now, if photos are stored on icloud then they will not show up in this image picker, but they do show up in the ios native picker.
Related to: https://stackoverflow.com/questions/42604437/ioinc2-cordova-image-picker-not-listing-icloud-synched-photos-on-ios10-2-ip
And: https://github.com/Telerik-Verified-Plugins/ImagePicker/issues/40
Seems like @mrdevnet solved this last year.
Going to do some investigation with the fork he mentions of ELCImagePickerController

@Duder-onomy Did you manage to solve this? A customer reported this problem to me and the issue is also still not fixed in Telerik-Verified-Plugins#40. I am using Ionic, so were you able to use the ELCImagePickerController with Ionic?

@martijnlutgens I did not figure it out. We ended up re-platforming with react native. Sorry, hope you figure it out!


Remove lifted and backends that use it

In order to move faster on other parts of the language I am deleting lifted and all backends that use it.
This is a conscious decision with the drawbacks that:

we cannot demonstrate the compilation pipeline presented in our OOPSLA 2023 paper nicely
MLton was our fastest backend (by far)
it will make it difficult to benchmark against the deleted backends
we cannot show lifted core in the editor and on the website anymore

Especially due to the last point we also need to update the website and vscode plugin.

I think it would be worth it to write some page on the website for researchers that:

relates the papers to the actual language (changes since paper XYZ?)
tells you how to benchmark things long gone (like "in order to benchmark the MLton backend from the paper XYZ, use version A.B.C of Effekt available from <link>")

Also, here's a link for showing lifted core on the website on the Internet Archive: http://web.archive.org/web/20240823062750/https://effekt-lang.org/docs/implementation/lift-inference
(that could be on the page outlined above)


Build: Fails when there is a space in the path

Building fails on an M1 Mac when there is a space in the path.
The directory I'm building in is /Applications/Games/Emulators/Playstation 4/obliteration. You can see from the excerpts below that the path is getting split between /Applications/Games/Emulators/Playstation and 4/obliteration
It builds successfully when I change the name of the folder to Playstation4
   Compiling pfs v0.1.0 (/Applications/Games/Emulators/Playstation 4/obliteration/src/pfs)
The following warnings were emitted during compilation:

warning: clang: error: no such file or directory: '4/obliteration/lib/llvm/include'

error: failed to run custom build command for `llvm-sys v170.0.1`

  running: env -u IPHONEOS_DEPLOYMENT_TARGET "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-I/Applications/Games/Emulators/Playstation" "4/obliteration/lib/llvm/include" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-o" "/Applications/Games/Emulators/Playstation 4/obliteration/src/target/release/build/llvm-sys-dab67cb73b2d00cc/out/wrappers/target.o" "-c" "wrappers/target.c"
  cargo:warning=clang: error: no such file or directory: '4/obliteration/lib/llvm/include'

  exit status: 1

  --- stderr

  error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-arch" "arm64" "-I/Applications/Games/Emulators/Playstation" "4/obliteration/lib/llvm/include" "-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D__STDC_LIMIT_MACROS" "-o" "/Applications/Games/Emulators/Playstation 4/obliteration/src/target/release/build/llvm-sys-dab67cb73b2d00cc/out/wrappers/target.o" "-c" "wrappers/target.c" with args "cc" did not execute successfully (status code exit status: 1).

I don't know if pfs v0.1.0 is the culprit, but there have been many releases of pfs. (It's up to v0.7.0 now).
Full log is here:
Obliteration Output.txt

Actually it is a bug of llvm-sys. We may need to find an alternative solution for this.

@shinra-electric could you try the following methods?

Install llvm@17 from Brew.
Set environment variable LLVM_SYS_170_PREFIX to the prefix of LLVM installation.
Run cmake -DOB_BUILD_LLVM:BOOL=OFF --preset PRESET . instead of cmake --preset PRESET ..
Build as usual.

Skipping the llvm compile not only fixes the issue, but compilation is now much faster.
Building still failed for an unrelated reason (type mismatch), but I'll open a separate issue for that.
For reference, these are the steps I used:
# Install dependancies
brew install qt@6 cmake rust llvm@17

# Download repository
git clone https://github.com/obhq/obliteration
cd obliteration

# Set variables
export LLVM_SYS_170_PREFIX=$(brew --prefix)/opt/llvm

# Configure build system
cmake -DOB_BUILD_LLVM:BOOL=OFF --preset mac-release .

# Amount of available cores:
CORES=$(sysctl -n hw.ncpu)

# Build
cmake --build build -j${CORES}


Ladder

Starting a draft pull request updating the career ladder.
Please feel free to comment extensively, this is work in progress and it'll take a while to converge to something we're happy with.
Adding all EMs as reviewers.

Oh gah, this review comment got lost:
Overall, this seems like a great improvement!
Meta-comment (feel free to ignore for this PR), but given you've already broken this into sections, I wonder if a matrix would be a better way of visualizing this breakdown. It could also give us some flexibility while reducing ambiguity-- do we expect everyone at each level to be stellar at everything? Or is there room to invest in certain areas more than others?
For instance, a more specific capability like "Business understanding" could have multiple levels which go from "guided by project objectives" to "understands the Artsy business and makes decisions based on its direction". If we have more vectors, advancing from one level to another could be about meeting exact levels on certain capabilities.

@sweir27 good idea about the matrix. From what I've gathered speaking with Gray (who is working with different teams at Artsy to develop their own ladders), using a matrix is pretty typical at Artsy. Not that we need to follow suit, but that's what they do.

I didn't realise this was assigned to me, sorry about that 🙈
@dleve123 I’m unsure of the status from your pov, as you’ve approved it but left some more comments that ask for clarification. Are those things you feel we can iterate on in potential follow-up PRs?

Yes - I do think those are things that can we clarified in follow up PRs.
On Wed, Jun 5, 2019 at 6:56 AM Eloy Durán<EMAIL_ADDRESS>wrote:

I didn't realise this was assigned to me, sorry about that 🙈
@dleve123 https://github.com/dleve123 I’m unsure of the status from
your pov, as you’ve approved it but left some more comments that ask for
clarification. Are those things you feel we can iterate on in potential
follow-up PRs?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/artsy/README/pull/188?email_source=notifications&email_token=AAL5HSWCNW3KX7UBIR4RWFTPY6LWLA5CNFSM4HHZSUIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW7LFJI#issuecomment-499036837,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAL5HSWGDBEOT55PETGKFX3PY6LWLANCNFSM4HHZSUIA
.

@dleve123 Thanks 👍
@SamRozen Do you feel like this is good to go, as-is?

Merging this in per our discussion this morning!

Thanks @sweir27 for merging!
@alloy sorry I got behind on this.
@dleve123 you left a lot of very good comments, might be more effective to create a PR yourself with the suggested changes so that I can get out of the critical paths 😺


Adding/removing advocate profiles

Tania, Sarah, Alvaro, Sonia

Docs Build status updates of commit 4492c89:
:clock10: Pending: waiting for processors (6 builds ahead of you)
:warning: Docs Build is busy, currently there are 6 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 4492c89:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

advocates/alvaro-videla.yml
:white_check_mark:Succeeded
View

advocates/index.html.yml
:white_check_mark:Succeeded
View

advocates/map.yml
:white_check_mark:Succeeded
View

advocates/media/profiles/alvaro-videla.png
:white_check_mark:Succeeded
View

advocates/media/profiles/sarah-drasner.png
:white_check_mark:Succeeded

advocates/media/profiles/sonia-cuff.png
:white_check_mark:Succeeded
View

advocates/media/profiles/tania-allard.jpg
:white_check_mark:Succeeded
View

advocates/sarah-drasner.yml
:white_check_mark:Succeeded

advocates/sonia-cuff.yml
:white_check_mark:Succeeded
View

advocates/tania-allard.yml
:white_check_mark:Succeeded
View

advocates/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Trigger waypoint just before entering to the element

Hi,
How can i trigger waypoint on an element before it appears in the viewport?

Use offset. Example:
$('elementWithWaypoint').waypoint(function()
            {
                $(".textToChange").fadeOut();
            },
            {
                offset: '30px'
            }
        );

This will make the waypoint trigger 30px before elementWithWaypoint enters the viewport.

What @NiekPas said is not entirely accurate, but on the right track. @farukham, you should use offset, but "30px" (or just 30) will make the element fire when the top of the element is 30 pixels from the top of the viewport. The way I've read your issue, you want to waypoint to trigger when the element just barely begins entering the viewport? If that's correct, the offset should be "100%".


Stream from disk

I would like to implement disk streaming capability to allow loading large instruments. Any guidance here would be very welcome to make this fit better into the existing code.
For SF2 files (to get started):
Loading an instrument:
SF2Reader::readSamples() - limit loading to first blocksize number of samples
Playing an instrument:
Something needs to trigger the reading of the full sample. I suppose this should be in sfzero::Synth::noteOn() where we could submit an asynchronous loading of the full sample into a temporary buffer. Then when sfzero::Voice::renderNextBlock() (where I understand the bulk of the rendering is done) reaches the end of it's pre-cached block, it could look at the temporary full-sample buffer.
Does this sound the best way?

Opened the same issue in altalogix/SFZeroModule - probably the more appropriate place for a juce project?

Stay away from the altalogix fork (they did unspeakable things to the code style).  The schellingb and jamiebullock forks are fine.
Your basic idea sounds good.  A couple of notes:

I'd get started with SFZ files rather than SF2.  SFZero is fundamentally an SFZ player, with the SF2 support bolted on later.  Also, do SF2 instruments in the wild really get so big that streaming is helpful for them?  SFZSample::Load() is where the sample loading happens for SFZ files.

There isn't currently an appropriate thread to do the background reading; you'll have to add one.  noteOn() would send it a message of some kind to initiate the loading.  Once the thread has read it, it would install it in the SFZSound (with appropriate mutex locking).

There are two advantages to streaming: quicker plug-in startup, and reduced memory use.  For the latter, you'd also have to have a mechanism to eject the buffers after they're no longer needed.  That means tracking which buffers are still in use.

Thanks for the reply Steve (and your excellent library!) and the heads-up on the different forks. It seems the schellingb fork is pulling updates from the jamiebullock fork so may be the best place to start. I had planned on implementing SF2 first because I have a 2GB SF2 I want to get working on the iPad and are more familiar with the file format, but I see Polyphone can convert to SFZ so will look at SFZ first. I can use my experience of implementing disk streaming in an old sample player "VSamp" I wrote for the mac in the 90s, but will hopefully avoid doing 'unspeakable things' to your code style.

Okay, so SF2 does have a real-world use case.  I have VSamp!  I used to use it live ca. 2010.

https://github.com/christophhart/streaming_sampler

I've implemented my own in the SFZero framework, including support for iOS AUv3. It's currently hard-coded to always operate for SFZ files (only - not implemented for SF2) and preload the first 44100 samples of each sample and then stay at least 22050 samples ahead of the audio stream:
https://github.com/imprompt/SFZero/blob/DIsk-Streaming/README.md
All working OK, but I'll tidy it hub further.

Maybe I'm missing something but I can't seem to find the disk streaming changes in the code.

Sorry I hadn't published the module changes. It's there now:
https://github.com/imprompt/SFZeroModule/tree/Disk-Streaming

Thanks.
It works great.
I think I'll fork it for a Linux version.

That's great. I'll tidy up the code further and submit a pull request to Steve's original code, although I used the altalogix branch as a starting point as this had a working OSX AU plugin. I'm undecided yet as to whether I should get the disk streaming going with sf2. I agree with Steve's comment above that SF2 appear's to have been bolted on and it was easier to begin with SFZ.


Add homepage attribute to podspec

Receiving the following error on pod install:
Fetching podspec for RnTestExceptionHandler from ../node_modules/rn-test-exception-handler/ios
[!] The RnTestExceptionHandler pod failed to validate due to 1 error:
- ERROR | attributes: Missing required attribute homepage.
- WARN  | source: The version should be included in the Git tag.
- WARN  | description: The description is equal to the summary.

Thanks @jenskuhrjorgensen  Merging and releasing

v1.3.2 has your fix


Add Parquet coverage to adapters CircleCI run

I confirmed that Parquet tests are now covered
https://circleci.com/api/v1.1/project/github/facebookincubator/velox/16573/output/109/0?file=true&allocation-id=61bb7158b0f900312b0866b4-0-build%2F1D973EFC


Q: upgrade of WeKan data?

Hello,
Simple question: is there any feature on the roadmap to support a smooth upgrade from an existing WeKan instance? I think in particular of the data, some export/import capability.

@romu70
All Wekan data is at MongoDB:
https://github.com/wekan/wekan/wiki/Export-Docker-Mongo-Data
Tell me if something does not work after changing to Wefork newest version:
https://github.com/wefork/wekan/wiki/Install-from-source
Then I could look if some migration scripts is needed.
Please try on separate non-production system copy first.

To be honest, I don't run Wekan for the moment, and I'm looking at the best way to run it on my Synology nas. I thought I could run the SPK provided by the old project, but it targets an old version of the DSM, so it's dead. But the "install from source" is great, I can try to build a Docker image to run it. Thanks.

@romu70
Problem with Synology nas ARM is that AFAIK Meteor is available only for x86_64 (and probably x86) so in those instructions if you don't have appropriate Node.js version you would use nvm instead of n to compile nodejs, and also with Meteor it could need a lot of recompiling. You could try to do Google search if somebody has managed to get Meteor working on ARM.

@romu70
Also Sandstorm currently is x86_64 only, it's not available for ARM.

That's why I bought a x86_64 Syno. It's just a PC with some nice nas features around.

@romu70
Nice :) Ok try to install it and tell me how it goes.
Yesterday on original Wekan Gitter chat @weaktyper also was in progress to create new Dockerfile, it relates to https://github.com/wefork/wekan/issues/33 and I presume it will be contributed to Wefork replacing original Dockerfile if one pull request is accepted to some Docker base image of Meteor.

If you have an existing Sandstorm grain backup for Wekan, it will work when restored to another Sandstorm server with Wekan installed. Sandstorm recognizes both as the same app.
But I'm a bit confused about your mention of the Wekan SPK (which is a Sandstorm app package) targeting "the DSM", because AFAIK, Wekan SPKs "just work" with Sandstorm, and generally don't work with anything else.
I recall the Sandstorm team wanting to support the Synology, but at the time, I think there was an issue with kernel features. (Though Sandstorm works on more kernels now, and they mentioned it should work better with the Synology now.) I think the best thing to do would be to tag some Sandstorm people here. @kentonv @paulproteus

@dwrensha has made Sandstorm-specific updates to Wefork, although I have not looked does Sandstorm use only Wefork now. Sandstorm may have additional requirements of kernel etc. For Sandstorm version multiboard features etc are not in use as environment variable option, as there's just one board object at a time that is set as public, and because Sandstorm handles authentication, sandboxing in grains etc.
Those install from source instructions are for standalone Wekan, without Sandstorm. Standalone version requires just Node.js, MongoDB and Meteor.

@xet7 The newest version of Wekan on the Sandstorm App Market is based on Wefork. Sandstorm has an entry that tells it the app key David used for Wefork is a suitable replacement for the Wekan key held by Maxime, so people can easily upgrade from Wekan to Wefork.
If @romu70 wants to use Sandstorm on his device, and it isn't working, he can file an issue at github.com/sandstorm-io/sandstorm which may be a better place for that chat. But I am unsure exactly what we're trying to do.
@romu70 Do you have any current Wekan data you need to migrate? Is it from standalone Wekan or a Wekan grain backup from Sandstorm? And then are you looking to use standalone Wekan, or Wekan on Sandstorm on your Synology?

@romu70
What kernel version does that Synology run? Are you able to upgrade kernel? I'm just thinking because Docker and Sandstorm both probably use same recent enough kernel features for sandboxing.

Sandstorm's current kernel requirement, FWIW, is 3.10, and it no longer requires userns: https://sandstorm.io/news/2016-11-10-rhel-centos-arch-support
Meteor, on the other hand, pretty much runs on anything x86_64.

What is the distinction between meteor and node when serving the app? Is is just node that does all that and does meteor have anything to do with it any longer (once the app is build)?

@weaktyper
Node serves that app. Meteor is the framework of Javascript etc code.

Possible point of confusion: Synology packages are also called "SPK"s. These have nothing to do with Sandstorm. :/

@kentonv Wow. That explains so much.

Point to @kentonv. The confusion is all mine, sorry if I introduced some doubts in there. Yes, I thought the official Wekan SPK was a package for Synology, I didn't know Sandstorm uses the same extension.
Finally this is good, I just have to focus on the Docker image.

@romu70
You can follow https://github.com/wefork/wekan/issues/33 about progress of self-created and official Docker image.

I'm on it, thanks.

This issue was moved to wekan/wekan#795


MC: Bump rmc version in aggregator

Looks good, does it work? Also, is aggregator being compiled and tested as part of the pipeline currently?

let me double check it, it should be as as it is part of the workspace

Looks good, does it work? Also, is aggregator being compiled and tested as part of the pipeline currently?

let me double check it, it should be as as it is part of the workspace

yep it is compiled and tested in pipelines


Create new rails API app

Hello @Sanja969
Thanks for reviewing this PR
In this milestone @yohannesdagnachew and I , have managed to build This rails API app that's responsible for users authentication using JSON Web Token, we have followed these steps in the process of development :

Created rails API app with it's necessary dependencies
Defined routes for users using resources
Wrote JWT related logic ( controllers, actions)
Modified users table

@Sanja969  Thanks for reviewing our project.


Convert from scons to autotools

Using a more standard build system should help with the eventual goal of making update_engine easier to hack on as a stand-alone project.

lgtm after a skim


Update docs to prefer secrets over sourceSecret

Coverage remained the same at 88.372% when pulling d7be8bcaacec4a9bd6d1a38d327087a4335fc2b6 on legacy-openshift into 0fa991e251a051e4f75eed33c12749fe9e9a2b15 on master.

We should also remove cli/secret.py.

Isn't that still relevant for newer versions of OpenShift?
cli/secret.py provides pulpsecret-gen which seems to still be useful in creating Secret objects in OpenShift (although it could be updated to use apiVersion 'v1' instead of 'v1beta3').

It doesn't do anything oc secrets new can't do.

Coverage increased (+0.8%) to 89.148% when pulling 61492c684bc6558a0d41019edf4b0b30b5d9c602 on legacy-openshift into 0fa991e251a051e4f75eed33c12749fe9e9a2b15 on master.


Use Cargo instead of Tomcat 7 plugin for web-module

Using the Cargo Maven plugin instead of the Tomcat 7 Maven plugin will allow other containers to be used.

Closed, the PR has been merged.
Many Thanks @ajs6f

Glad to pitch in!


catching async uncaught errors

this might be more of a api question (than skpm), but is it possible to catch all errors? i.e.
  try {
    setTimeout(function () {
      throw new Error('bye bye');
    }, 50);
  } catch (e) {
    log('oh dear :/');
  }

The bye bye gets printed (so there must be some global handler), but doesn't get caught

Because you don’t catch the error in the timeout? I’m not sure I understand the question

ah OK, I'm asking about the equivalent of window.onerror and process.on('uncaughtException') - a global handler for catching errors - in the sketch plugin env

There is no equivalent because any async work gets a bit tricky. It would require some changes in CocoaScript. I actually have an issue open on the Sketch repo to look at it. I'll this one because there is no actionable on skpm

ok thanks :) I tried playing with NSSetUncaughtExceptionHandler to no avail


Define Model schema (Body Mapping Templates) via SAM

I need to create mapping for my JSON payload that I get in my POST request.
Could I create Model / Body Mapping Templates and link it to my Lambda's Gateway in AWS SAM template file? ( https://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-lambda.html#api-as-lambda-proxy-expose-post-method-with-json-body-to-call-lambda-function )
If yes, so how can I do this?

Came across the need for this and found an alternative solution. Depending on your language, you might have a way to just get the POST body and parse it. Using Go and aws-lambda-go library I set up my handler to accept events.APIGatewayProxyRequest and the POST body was in the proxy body. Seems much easier if you aren't already familiar with swagger.


Distribute demo data attendance events evenly across school years

Right now absences & tardies only occur with in the last 100 days:
attendance_event.occurred_at = Time.new - (rand * 100).to_i.days

This makes stuff a little difficult to test in the UI. We should evenly distribute them over all school years.

@kevinrobinson @alexsoble Is it easy to get the real distribution on absences/tardies? Is the current:

realistic? (Thought I might fix that if I'm fixing attendance events anyway).

@erose Here are the real distributions as of today.  Keep in mind this is quite dependent on the time of the year since it's cumulative from the beginning of the year:

Also, I'm all for improving this but fully modeling this can be quite complex, so my suggestion would be to focus these improvements on places where it significantly interferes.

Ah, I didn't realize these were cumulative from the beginning of the year. Okay, that does seem complicated to model. New PR generates them both according to the Absences distribution you gave but makes no attempt to model the change-over-the-school-year.

Assuming that each school year has an ID can’t you just create a belongs to / has many between the school year and the absence?

On May 2, 2016, at 11:45 AM, Eli Rose<EMAIL_ADDRESS>wrote:
Ah, I didn't realize these were cumulative from the beginning of the year. Okay, that does seem complicated to model. New PR generates them both according to the Absences distribution you gave but makes no attempt to model the change-over-the-school-year.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/studentinsights/studentinsights/issues/227#issuecomment-216324564

@erose 👍

@jemagee hi!  I'm not sure I follow what you mean, but the question here is more about what the distributions should be than the relational modeling.


Portfolio - mobile menu

Portfolio - mobile menu
This is a continuation of portfolio project #12. In this particular milestone, we have implemented the following features in the mobile view based on the Figma template 3 design and the project requirements:

When the user clicks (or taps) the hamburger button, the mobile menu appears.
When the user clicks (or taps) the close (X) button, the mobile menu disappears.
When the user clicks (or taps) any of the mobile menu options, the mobile menu disappears.
When the user clicks (or taps) any of the mobile menu options, a correct part of the page is displayed.

Live Link deployed from the mobileMenu branch for review purposes

Status: Approved 💯 ✔
Hi @fmanimashaun,
Your project is complete! There is nothing else to say other than... it's time to merge it :shipit: Congratulations! 🎉
Kindly check an optional comment I left under the review 🙏
Highlights

No linter errors. ✔
Correct GitHub Flow. ✔
Meaningful commit messages. ✔
Good README file. ✔

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear. Please, remember to tag me in your question so I can receive the notification.
As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

[OPTIONAL] I would recommend you to increase the space between each of the menu items. In order to produce a close replica of the guiding template. Below are the screenshots of the two designs.

Your Desgn

Figma Design

@Qoosim Thanks for the kind feedback. The suggestion has been implemented as recommended. See below:

Nice one. :+1:


Conditions Type is not being removed when I update the original config

Hi,
When I add a new node condition in for example kernel-monitor.json then i remove it it does not getting removed/cleared from describe output. tried to reboot the node but still no luck.
Any idea how to reset, clear the node condition types? or maybe a workaround ?
Thanks

I found the fix, you can remove old Node Condition types by updating the key in etcd:
Key --->  /kubernetes.io/minions/
etcdctl get /kubernetes.io/minions/
Keep in mind that api sends to it binary proto, so i used "grep -a" to decode the binary.


[jvm-packages] macOS builds of 1.0.0 - 1.3.1 don't include OpenMP

We're upgrading Tribuo to XGBoost4J 1.3.1, and one of our users noticed that the multithreading doesn't seem to work on macOS (https://github.com/oracle/tribuo/pull/107#issuecomment-802192684). I checked the binaries for 1.0.0 and 1.3.1 on Maven Central and neither of them are linked against libomp. The python wheel for 1.3.3 on pypi does appear to be linked against libomp.
Would it help if I added a CI pipeline using Github actions that built the JVM package using OpenMP? There's already a note in the release notes for 1.3.0 saying that macOS requires a specific version due to OpenMP support, so I'd guess this is supposed to be enabled in all the releases.

Is it reasonable to expect users to have libomp installed on their MacOS machine? It has to be installed from Homebrew.

The installation docs for Python and R tell users to install it - https://xgboost.readthedocs.io/en/latest/build.html#install-with-pip-simple-method, so we could do the same for Java. I guess the loader could catch the unsatisfied link exception and print a note to macOS users suggesting they install it if you want to make it clear what to do.

But it's up to you, I notice that there are people on stack overflow who've had issues with xgboost not loading in python due to a lack of libomp so this would increase the number of such people. If you don't want to, then can we update the docs to note that users need to recompile XGBoost4J to get multithreading support on macOS?

@CodingCat @wbo4958 What's your take on this? Do you think it's a good idea to link libxgboost4j.so with libomp?

@Craigacp Hello, for the upcoming release (1.4.0), we probably won't be able to provide XGBoost4J release with OpenMP enabled. I will instead put up instructions on how to build XGBoost4J from the source. I will also add an entry in the "Known Issues" section in the release note.
Let us also re-visit this issue after 1.4.0 release.

Sure, that's fine by me. Provided it's documented behaviour then I can link to that from my docs and tell people to recompile if they need multithreading on macOS. I would like it to have OpenMP support for macOS in Java, but if you've not planned for it then it's not something to turn on just before the release.

We will need to also think about how to display a user-friendly message when libxgboost4j.so fails to load due to missing libomp. (Currently, Python and R packages have this.)

https://github.paypal.com/SG-PPIL-RnD/xgboost/blob/bcc02773380fb840792bb662e24ffcf8bc367503/jvm-packages/create_jni.py#L81
Seems macOS is by design not using OpenMP.

Actually we are facing issues for jvm-packages on Linux hosts. Since we cannot install packages on our production boxes, we have to remove dependency on libgomp1

@Craigacp Interesting, would you like to open a PR for the customized error message?

Sure. This would be for after 1.4.0 right?

Fixes in #6926


✨ Make the binding controller respect the create-only bit

Summary
This PR updates the binding controller to respect the create-only bit.
Related issue(s)
This is part of #2336

/lgtm

/approve


Failed to download 3.root.json

Description
Install cosign failed, https://github.com/karmada-io/karmada/actions/runs/5287357476/jobs/9568154587
Rerun github action and it's working,
Not sure it is a github action network problemm or installer problem.
...
      - name: Install Cosign
        uses<EMAIL_ADDRESS>        with:
          cosign-release: 'v1.13.1'
...

https://github.com/karmada-io/karmada/blob/5e14c5a3145c1089a0b56f4259477f6ee9cdf444/.github/workflows/dockerhub-latest-image.yml#L42-L45
INFO: Downloading bootstrap version 'v2.0.2' of cosign to verify version to be installed...
      https://github.com/sigstore/cosign/releases/download/v2.0.2/cosign-linux-amd64
INFO: Custom cosign version 'v1.13.1' requested
INFO: Downloading platform-specific version 'v1.13.1' of cosign...
      https://github.com/sigstore/cosign/releases/download/v1.13.1/cosign-linux-amd64
INFO: Downloading detached signature for platform-specific 'v1.13.1' of cosign...
      https://github.com/sigstore/cosign/releases/download/v1.13.1/cosign-linux-amd64.sig
INFO: Downloading cosign public key 'v1.13.1' of cosign...
    https://raw.githubusercontent.com/sigstore/cosign/v1.13.1/release/release-cosign.pub
WARNING: Skipping tlog verification is an insecure practice that lacks of transparency and auditability verification for the blob.
INFO: Using bootstrap cosign to verify signature of desired cosign version
Error: getting ctlog public keys: updating local metadata and targets: error updating to TUF remote mirror: tuf: failed to download 3.root.json: Get "https://tuf-repo-cdn.sigstore.dev/3.root.json": dial tcp: lookup tuf-repo-cdn.sigstore.dev on <IP_ADDRESS>:53: read udp <IP_ADDRESS>:42557-><IP_ADDRESS>:53: i/o timeout
remote status:{
	"mirror": "https://tuf-repo-cdn.sigstore.dev/",
	"metadata": {
		"root.json": {
			"version": 7,
			"len": 5404,
			"expiration": "04 Oct 23 13:08 UTC",
			"error": ""
		},
		"snapshot.json": {
			"version": 90,
			"len": 2303,
			"expiration": "03 Jul 23 16:03 UTC",
			"error": ""
		},
		"targets.json": {
			"version": 7,
			"len": 5[252](https://github.com/karmada-io/karmada/actions/runs/5287357476/jobs/9568154587#step:4:254),
			"expiration": "04 Oct 23 13:26 UTC",
			"error": ""
		},
		"timestamp.json": {
			"version": 90,
			"len": 721,
			"expiration": "26 Jun 23 16:03 UTC",
			"error": ""
		}
	}
}
main.go:74: error during command execution: getting ctlog public keys: updating local metadata and targets: error updating to TUF remote mirror: tuf: failed to download 3.root.json: Get "https://tuf-repo-cdn.sigstore.dev/3.root.json": dial tcp: lookup tuf-repo-cdn.sigstore.dev on <IP_ADDRESS>:53: read udp <IP_ADDRESS>:4[255](https://github.com/karmada-io/karmada/actions/runs/5287357476/jobs/9568154587#step:4:257)7-><IP_ADDRESS>:53: i/o timeout
remote status:{
	"mirror": "https://tuf-repo-cdn.sigstore.dev/",
	"metadata": {
		"root.json": {
			"version": 7,
			"len": 5404,
			"expiration": "04 Oct 23 13:08 UTC",
			"error": ""
		},
		"snapshot.json": {
			"version": 90,
			"len": 2[303](https://github.com/karmada-io/karmada/actions/runs/5287357476/jobs/9568154587#step:4:305),
			"expiration": "03 Jul 23 16:03 UTC",
			"error": ""
		},
		"targets.json": {
			"version": 7,
			"len": 5252,
			"expiration": "04 Oct 23 13:26 UTC",
			"error": ""
		},
		"timestamp.json": {
			"version": 90,
			"len": 721,
			"expiration": "26 Jun 23 16:03 UTC",
			"error": ""
		}
	}
}
Error: Process completed with exit code 1.

This is a temporary error and should self resolve.
I would also recommend removing the specified ”cosign-release” version to make sure you’re using the latest.

This is a temporary error and should self resolve.

Thanks, It's working if rerun github action.

I would also recommend removing the specified ”cosign-release” version to make sure you’re using the latest.

Specified version for stable, i will suggest to do not use the latest.


path() method has no effect?

I have jquery located at /js/lib/jquery.js.
This is my code:
$script.path('/js/');
$script('lib/jquery.js', 'jquery', jQueryLoaded);

The jQueryLoaded function never gets called, and Chrome Developer Tools says that the request was for /lib/jquery, not /js/lib/jquery. Any ideas?

Er, looking through the code, it appears the documentation is outdated, and in order for the path method to apply, all of the JS files need to NOT have '.js' as part of the call?

I have the somme problem!! =(
https://github.com/ded/script.js#scriptpath
<!-- your app's js -->
    <script src="App/Script.js"></script>
    <script type="text/javascript">
        $script('lib/angular-route/angular-route.min.js');
        $script([
            'App/App.js', 'App/Controller.js'
        ], function() {
            angular.bootstrap(document, ['starter']);
        });
        $script.path('Controllers/', function(err) {
            console.log(err);
        });
    </script>

Console error:
Error: [ng:areq] Argument 'HomeCtrl' is not a function, got undefined
http://errors.angularjs.org/1.3.13/ng/areq?p0=HomeCtrl&p1=not%20aNaNunction%2C%20got%20undefined

Please, help me with this problem!

remove .js from the extension...

@ded this version v2 is running on! :)
https://github.com/ded/script.js/blob/v2/src/script.js


pysat testing improvement

The simple satellite simulations (instruments/pysat_testing.py) repeatedly use a np.mod function to create simple periodic signals (local time, longitude, etc.). These calls should be replaced with a function in the same file.

Some of this may have been addressed in the 'models' branch.

Closing with merge of #203.


Restore testing with stack / nix-shell

TODO

[x] Update Nix config to restore building
[x] Debug stack / nix-shell test failures (related)
[ ] Debug nix-build test failures

Motivation
To further the move to Nix, this PR restores the ability to build and test with the various Nix tools.

Current test scores:
| Machine | ~stack test~ | ~nix-shell~ | ~nix-build~ |
|---------+--------------+-------------+-------------|
| Linux   | 6/10         | 8/10        | 0/3         |
| Mac     | 0/0          | 0/0         | 0/0         |

stack and nix-shell have the same type of failure, but it doesn't always happen. They look like:
  tests/PactContinuationSpec.hs:323:
  1) PactContinuation, pacts in dev server, testPactYield, when previous step yields value, resumes value
       uncaught exception: HttpException (HttpExceptionRequest Request {
         host                 = "localhost"
         port                 = 8080
         secure               = False
         requestHeaders       = [("Content-Type","application/json"),("User-Agent","haskell wreq-<IP_ADDRESS>")]
         path                 = "/api/v1/send"
         queryString          = ""
         method               = "POST"
         proxy                = Nothing
         rawBody              = False
         redirectCount        = 10
         responseTimeout      = ResponseTimeoutDefault
         requestVersion       = HTTP/1.1
       }
        (ConnectionFailure Network.Socket.connect: <socket: 30>: does not exist (Connection refused)))

but occur on different tests every time.

Mac failure, using nix-build:
  tests/PactContinuationSpec.hs:437:
  17) PactContinuation, pacts in dev server, testTwoPartyEscrow, throws error when final price negotiated up
       uncaught exception: ErrorCall (Received empty poll. Timeout in retrying.
       CallStack (from HasCallStack):
         error, called at tests/Utils/TestRunner.hs:96:40 in main:Utils.TestRunner)

  tests/PactContinuationSpec.hs:441:
  18) PactContinuation, pacts in dev server, testTwoPartyEscrow, when both debtor and creditor finish together, finishes escrow if final price stays the same or negotiated down
       uncaught exception: HttpException (HttpExceptionRequest Request {
         host                 = "localhost"
         port                 = 8080
         secure               = False
         requestHeaders       = [("Content-Type","application/json"),("User-Agent","haskell wreq-<IP_ADDRESS>")]
         path                 = "/api/v1/send"
         queryString          = ""
         method               = "POST"
         proxy                = Nothing
         rawBody              = False
         redirectCount        = 10
         responseTimeout      = ResponseTimeoutDefault
         requestVersion       = HTTP/1.1
       }
        (InternalException Network.Socket.recvBuf: resource vanished (Connection reset by peer)))

  tests/PactContinuationSpec.hs:33:
  19) PactContinuation, pacts in dev server, testNestedPacts, throws error when multiple defpact executions occur in same transaction
       uncaught exception: ErrorCall (Received empty poll. Timeout in retrying.
       CallStack (from HasCallStack):
         error, called at tests/Utils/TestRunner.hs:96:40 in main:Utils.TestRunner)

There were 19 failures in total, these 3 are just a sample.

The MVar messages no longer appear, but nix-build still fails in the same way it has been.

leftpad.repl expects whatever it's authenticating to have a fixed hash. However, with every run of run-build, the real hash is random:
a05257f2ff7f0000a80395f0ff7f000069a80b004200000040aa0b0042000000280595f0ff7f000031aa0b004200000040aa0b0042000000100ea0cfff7f0000
a05257f2ff7f0000a80395f0ff7f000069080c0042000000400a0c0042000000280595f0ff7f0000310a0c0042000000400a0c0042000000100ea0cfff7f0000

2e19bef0ff7f0000f91fbef0ff7f0000d087da0042000000f91bbef0ff7f0000e887da0042000000a11bbef0ff7f0000a919bef0ff7f00005088da0042000000
2e19bef0ff7f0000f91fbef0ff7f000010259c0042000000f91bbef0ff7f000028259c0042000000a11bbef0ff7f0000a919bef0ff7f000090259c0042000000
2e19bef0ff7f0000f91fbef0ff7f000060cfca0042000000f91bbef0ff7f000078cfca0042000000a11bbef0ff7f0000a919bef0ff7f00000070ca0042000000

a951150042000000580195f0ff7f00000054150042000000100ea0cfff7f00000200000006000000d819bef0ff7f0000d828c400420000000129c40042000000
a9f1060042000000580195f0ff7f000000f4060042000000100ea0cfff7f00000200000006000000d819bef0ff7f0000609f950042000000899f950042000000

1868a0cfff7f0000b8a80800420000004019bef0ff7f00002e19bef0ff7f0000f91fbef0ff7f000008c29b0042000000f91bbef0ff7f000020c29b0042000000

d01f9a0042000000381e95f0ff7f0000dc1e9a0042000000f914bef0ff7f00000fa43c0042000000782095f0ff7f000092a33c004200000079a33c0042000000

b1d35a0042000000f0d35a0042000000280595f0ff7f000052d35a0042000000f0d35a0042000000100ea0cfff7f000004000000030000001f1fbef0ff7f0000

Removing leftpad.repl from the tests directory (thereby disabling it as a test), we successfully proceed to the next stage of tests. However, every following test that relies on hashing also fails, all citing hash mismatches.

@fosskers Hmmm, any chance you can dig into the code to see what's the source of the non-determinism?

That's the plan.

The following REPL tests fail:
(expect "repl starts with empty hash" (hash "") (tx-hash))
(env-hash (hash "hello"))
(expect "hash roundtrip" (hash "hello") (tx-hash))

This is very telling. It's essentially:

"The repl should start with an empty hash". Sorry, I don't.
"Okay, I'm overriding the REPL's 'transaction hash' to be the hash of 'hello'" Gotcha.
"Alright, (hash "hello") should be equal to what I just set it to..." Sorry, it's not.

 Forcing it to use the version provided by blake2 will fail as seen so far.

Pinging @slpopejoy @mightybyte to solicit feedback.
As reported in the comment above, the blake2 library loses consistent hashing behaviour within our test suites, but only when done inside nix-build. Things work just fine with stack / nix-shell.
The way @emilypi and I see it, we could:

dive into blake2's custom C code + the corresponding FFI code to debug, or;
test other pure-Haskell (no C-bits!) implementations for correctness / performance vs both blake2 and Stu's port, say as found in cryptonite.

The blake2 library doesn't declare any non-Haskell deps, nor does its Nix derivation (grep for it). However, it's actual C files do have some CPP'd conditional imports, so that's a possible avenue of exploration.
Question for @slpopejoy : do we have a hard-requirement on the blake2 haskell library? I see that its last upload was 2 years ago.

@fosskers We just discussed this with @slpopejoy.  The official word is that we have a hard requirement to call out to a low-level C library.  The blake2 package is our first choice due to it being very lightweight.

Ok cool. Relative to blake2, cryptonite does pull in foundation, but otherwise it seems like a fairly small addition to our dep graph. lens, as always, is a tank:

For now I'm going to alter this PR to address only the issues surrounding the concurrency flags used in the test suites. A subsequent PR will be called something like "Explore Cryptonite" with the specific purpose of replacing blake2 and benchmarking everything.

Sounds good @fosskers 😄

Rebased.

Rebased onto master to fix Travis.

Rebased to fix merge conflicts.

Some observations:

The hash test failure has nothing to do with reflex-platform or our specific fork of Nixpkgs; I was able to reproduce both the test failure and the expected successful build in a nix-shell after switching to a recent revision of Nixpkgs 18.03 (this is available in the rip-out-reflex-platform branch)

I wrote a HashSpec which just hashes the empty string and "hello" twice and compares the computed hashes. This test passes.

We overrode the checkPhase and installPhase to produce a successful build despite the failing tests, and we observed that the mismatched hashes are extremely odd.  There are a couple of strange things here: Why is the expected hash for "hello" different between tests, and why do none of the hashes for the empty string match the actual hash of the empty string provided by the pact REPL?
pact> (hash "")
"786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce"

I tried to reproduce this failure with just blake2 in a fresh project, and I didn't run into any issues.

I've ruled out the cached copy of blake2 by building a fresh copy with callCabal2nix "blake2" (fetchFromGitHub {...}) and that exhibits the same issue.

Ryan and I spent some time yesterday tweaking the configureFlags and building manually with Cabal and we didn't find a combination of them that didn't trigger the test failure, so we've ruled out the nix-build process and the generic-builder.nix as the source of the problem.

Currently I'm trying to cut down the pact repo to a more manageable size to reduce cycle time and see if I can make the issue easier to see.

I have good news and bad news.
Good news: This issue is now easily reproducible in a nix-shell:
$ git clone https://github.com/kadena-io/pact
$ cd pact
$ cat > tests/HashSpec.hs << EOF
{-# LANGUAGE OverloadedStrings #-}
module HashSpec (spec) where

import Test.Hspec

import Pact.Types.Hash (hash)

spec :: Spec
spec = do
  describe "hashing" $ do
    it "hashes the empty string correctly" $ do
      let foo = hash ""
      let bar = hash ""
      foo `shouldBe` bar
    it "hashes \"hello\" correctly" $ do
      let foo = hash "hello"
      let bar = hash "hello"
      foo `shouldBe` bar
EOF

$ nix-shell -A shells.ghc
[nix-shell]$ runhaskell Setup.hs configure --enable-tests
<...>
[nix-shell]$ runhaskell Setup.hs build
<...>
[nix-shell]$ runhaskell Setup.hs test

Bad news: I tried reproducing the failure with Stack but all tests pass, even with this change.

@fosskers after making the change to HashSpec.hs:  that test itself passes, but its existence causes other tests to start failing, which points to something wonky happening with memory.

Two more interesting observations:

I can 100% rule Nix out as the cause of this test failure: I am able to reproduce it with only cabal new-test as follows:

$ git clone --recursive -b minimal-failure-repro https://github.com/vaibhavsagar/pact.git
$ nix-shell -p 'haskellPackages.ghcWithPackages (p: [ p.cabal-install ])'
$ LIBRARY_PATH=$(nix-build --no-out-link -E '(import <nixpkgs> {}).zlib')/lib:$LIBRARY_PATH C_INCLUDE_PATH=$(nix-build --no-out-link -E '(import <nixpkgs> {}).zlib.dev')/include:$C_INCLUDE_PATH cabal new-test

The Nix commands are only used because I was running this on NixOS, but I imagine it would work the same on another Linux distro.

Removing wreq from the dependencies of the test suite makes it pass. We compared the output of ghc-pkg list between the cabal sandboxes and this was the output:

--- with-wreq.txt       2018-09-17 13:51:04.332798448 -0400
+++ without-wreq.txt    2018-09-17 13:50:55.161773745 -0400
@@ -1,4 +1,4 @@
-/nix/store/5c0agliyi3dmkaj4cp3ab66dfzcaf538-ghc-8.2.2-with-packages/lib/ghc-8.2.2/package.conf.d
+/nix/store/b5s9br6i4zv2s0z4x2z0nkbgrlmprl51-ghc-8.2.2-with-packages/lib/ghc-8.2.2/package.conf.d
     Boolean-0.2.4
     Cabal-<IP_ADDRESS>
     Decimal-0.4.2
@@ -8,8 +8,6 @@
     NumInstances-1.4
     Only-0.1
     QuickCheck-2.10.1
-    RSA-2.3.0
-    SHA-<IP_ADDRESS>
     StateVar-<IP_ADDRESS>
     abstract-deque-0.3
     abstract-par-0.3.3
@@ -18,20 +16,14 @@
     ansi-terminal-<IP_ADDRESS>
     ansi-wl-pprint-<IP_ADDRESS>
     array-<IP_ADDRESS>
-    asn1-encoding-0.9.5
-    asn1-parse-0.9.4
-    asn1-types-0.3.2
     async-<IP_ADDRESS>
     attoparsec-<IP_ADDRESS>
-    authenticate-oauth-1.6
     auto-update-0.1.4
     base-<IP_ADDRESS>
     base-compat-0.9.3
     base-orphans-0.6
     base-prelude-<IP_ADDRESS>
     base16-bytestring-<IP_ADDRESS>
-    base64-bytestring-<IP_ADDRESS>
-    basement-0.0.4
     bifunctors-5.5.2
     binary-<IP_ADDRESS>
     blake2-0.2.0
@@ -39,7 +31,6 @@
     blaze-html-<IP_ADDRESS>
     blaze-markup-<IP_ADDRESS>
     bound-2.0.1
-    byteable-0.1.1
     bytes-0.15.3
     bytestring-<IP_ADDRESS>
     call-stack-0.1.0
@@ -51,15 +42,10 @@
     colour-2.3.4
     comonad-5.0.3
     conduit-<IP_ADDRESS>
-    connection-0.2.8
     containers-<IP_ADDRESS>
     contravariant-1.4.1
-    cookie-0.4.3
     criterion-<IP_ADDRESS>
     crypto-api-0.13.3
-    crypto-pubkey-types-0.4.3
-    cryptohash-0.11.9
-    cryptonite-0.24
     data-default-<IP_ADDRESS>
     data-default-class-<IP_ADDRESS>
     data-default-instances-containers-0.0.1
@@ -79,7 +65,6 @@
     fast-logger-2.4.11
     filepath-<IP_ADDRESS>
     fingertree-<IP_ADDRESS>
-    foundation-0.0.17
     free-4.12.4
     (ghc-8.2.2)
     ghc-boot-8.2.2
@@ -90,15 +75,11 @@
     hashable-<IP_ADDRESS>
     haskeline-<IP_ADDRESS>
     hoopl-<IP_ADDRESS>
-    hourglass-0.2.11
     hpc-<IP_ADDRESS>
     hspec-2.4.4
     hspec-core-2.4.4
     (hspec-discover-2.4.4)
     hspec-expectations-0.8.2
-    http-client-0.5.10
-    http-client-tls-<IP_ADDRESS>
-    http-types-0.9.1
     integer-gmp-<IP_ADDRESS>
     integer-logarithms-1.0.2
     js-flot-0.8.3
@@ -109,9 +90,7 @@
     lifted-base-<IP_ADDRESS>
     math-functions-<IP_ADDRESS>
     megaparsec-6.5.0
-    memory-0.14.11
     microstache-<IP_ADDRESS>
-    mime-types-<IP_ADDRESS>
     mmorph-1.1.1
     monad-control-<IP_ADDRESS>
     monad-par-<IP_ADDRESS>
@@ -119,8 +98,6 @@
     mtl-2.2.2
     mwc-random-<IP_ADDRESS>
     neat-interpolation-<IP_ADDRESS>
-    network-<IP_ADDRESS>
-    network-uri-<IP_ADDRESS>
     newtype-generics-<IP_ADDRESS>
     old-locale-<IP_ADDRESS>
     old-time-<IP_ADDRESS>
@@ -129,13 +106,11 @@
     parsec-<IP_ADDRESS>
     parser-combinators-0.4.0
     parsers-0.12.8
-    pem-0.2.4
     prelude-extras-<IP_ADDRESS>
     pretty-<IP_ADDRESS>
     primitive-<IP_ADDRESS>
     process-<IP_ADDRESS>
     profunctors-5.2.2
-    psqueues-<IP_ADDRESS>
     quickcheck-io-0.2.0
     random-1.1
     reducers-3.12.2
@@ -148,10 +123,8 @@
     semigroupoids-5.2.1
     semigroups-0.18.4
     setenv-<IP_ADDRESS>
-    socks-0.5.6
     statistics-<IP_ADDRESS>
     stm-<IP_ADDRESS>
-    streaming-commons-0.1.19
     tagged-0.8.5
     template-haskell-<IP_ADDRESS>
     terminfo-<IP_ADDRESS>
@@ -162,7 +135,6 @@
     thyme-<IP_ADDRESS>
     time-<IP_ADDRESS>
     time-locale-compat-<IP_ADDRESS>
-    tls-1.4.1
     transformers-<IP_ADDRESS>
     transformers-base-0.4.4
     transformers-compat-<IP_ADDRESS>
@@ -179,12 +151,6 @@
     vector-space-0.12
     vector-th-unbox-<IP_ADDRESS>
     void-0.7.2
-    wreq-<IP_ADDRESS>
-    x509-1.7.3
-    x509-store-1.6.6
-    x509-system-1.6.6
-    x509-validation-1.6.10
     xhtml-3000.2.2
     yaml-0.8.28
-    zlib-<IP_ADDRESS>

We suspected that the inclusion of cryptonite or cryptohash might be causing the failures, but we added each of those as dependencies and the test suite still passed so something else must be going on.

@vaibhavsagar re: your blake2 PR. Does that mean that nix is invoking different GHC optimization / inlining behaviour?

No, this failure can be reproduced with Stack as well: https://github.com/haskell/cabal/issues/5583#issuecomment-422956501. I think it's interesting that nix-build seems to trigger this failure consistently, but I think in this case that has turned out to be a good thing.

Closing.  These changes were superseded by other changes and the build is working now.


airplay support

is there any way that youtubecenter can support airplay?

Airplay? What is this?

The ability to send the video to Apple TV.

Oh, okay.


Visibility modifiers on container members

Eg. these
struct {
    pub x: i32
    pub fn f() {}
    pub const v: i32 = 0;
}

which seem to do nothing (you can call private methods from anywhere AFAICT). Basically, I wanted to know if these are just unimplemented and what they're supposed to do.

The stated grammar doesn't actually allow visibility modifiers on container members at all. Most of the docs use pub on struct methods though and the parser allows them in all the places above.
If they were working, what's the intended unit of visibility? (I mean, where would you be allowed to access private members from?) The container, like in C++, or the file, like in Rust?
The export modifier in particular seems pretty meaningless on fields.

Good call, I need to address this.
(3) should be solved with #462

If possible, tests (but not examples) should be able to invoke private methods and access private members.
The usual advice for such situations is to restructure the code so that privates could be tested through public interface, or to extract private code out, but this leads to unneeded increase of complexity.

For fields: pub will become invalid syntax with the accepted proposal #2059.
Functions are planned to become the same as variable declarations with #1717.
pub on a declaration means that it can be accessed from any scope. Without pub, declarations can be accessed from any scope in the same file.


Add Widen type class

Fixes https://github.com/milessabin/shapeless/issues/432.
Note that, as a peculiarity, there's no Widen instance available for types of singleton objects (like case object O), as these can't really be widen to another super type. This might be changed, but I'm fearing this would be inconvenient when using this to derive type classes for them (as type classes both as a singleton and as an empty case class through Generic would be available).

Many thanks ... merging :-)


How to apply a pipeline to each of the partitions before merging them together?

Hi, thank you for this great framework! I'm new to kedro but I found it really intuitive and easy to use.  And sorry for raising the question here. Is there a room/channel on gitter, telegram or any other place that allows users to ask about the usage of kedro? I didn't find one. If there is one, please let me know. It would be great to communicate with others.
I have read the document and found the PartitionedDataSet. But I didn't find a way to apply an existing pipeline to each of the partitions (hundreds of CSV files in the same directory) before concatenating them together. Is there a way to accomplish this?

Hi @et2010! Thanks very much for your question. PartitionedDataSet does not support your particular scenario at the moment since it behaves as a regular dataset from the pipeline execution perspective. You can, however, pass a dictionary that maps partition id to the data from one node to another. So for example, PartitionedDataSet -> node1 -> dict (using MemoryDataSet) -> node2 -> ...
Your use case, however, is quite interesting and may benefit others too, so we will consider this as the future extension of PartitionedDataSet functionality.
Re official channel - you can ask such questions here, however since we are trying to grow our StackOverflow community, SO is probably a better place for questions like that.

@tsanikgr

thanks for pinging me @Pet3ris , will raise again with the team :)

Hey @Pet3ris and @et2010! Happy new year to you both. We're working on alternative channels for discussing kedro issues because we realise that Stack Overflow is not enough. We'll keep you updated on developments here. At the moment we're currently facing internal risk assessment for this.