input_type for schedule_select not recognized

I'm using rails default form helper along with date_picker. This is my usage of schedulable.
<%= f.schedule_select :schedule,input_types: {date: :date_picker, time: :time_picker, datetime: :datetime_picker}, style: :bootstrap, until: true, count: true%>
I'm still getting the default date and time pickers instead of bootstrap's date and time pickers. What am I doing wrong?

@sureshprasanna70 Did you ever figure this out? Is using SimpleForm a requirement for the datepicker?

@sureshprasanna70 Did you ever figure this out? Is using SimpleForm a requirement for the datepicker?

@andreibondarev I wasn't able to figure it out.

@sureshprasanna70 So some of the different style types work and some others do not. I was able to get it working as a flatpicr. I also had to use the master branch, I think the latest release is at least a year behind master:
gem 'schedulable', branch: 'master', git: 'git://github.com/benignware/schedulable.git'


Automatic deployment

We start with manual deployment but we should have an automatic deployment. (CICD, deploy button, something)

@all-contributors add @FBoucher for doc, code, ideas

@all-contributors add @Mark-Phillipson for code, review


Fractal dimension index

Please review the code and test it using the test file

1- based on the website you wrote in the code: hig_max and low_max must be the highest and lowest values of CLOSE and not HIGH and LOW, but...
2- based on the mt4 code, there is an option to choose among Open, High, Low, Close, please also add this option. Similar to SMA and EMA
3- it returns a numpy array but we need a panda series correct index so we could concatenate these values in the future

I forgot sth else
See if you can use rolling instead of for i in range (self......
I think this code should be too slow. Rolling is a game-changing method

 Volume - Fractal Dimension

 Volume - Fractal Dimension

I have addressed the comments. Please review the code again. Thanks


added hello world by ansen

What the program do ?
---- prints "Hello World" on the screen.
In what programming language it is written?
C.

This pull request exceeds the max deletion limit. Please fix it and reopen


ValueError: Cannot index with multidimensional key

Hi Jakub,
Thanks for providing your KNN implementation using faiss. I'm working with a large dataset (566602 rows × 20 columns) and KNeighborsClassifier took way too long, so I was hoping your implementation would help.
The problem is, I'm applying one-hot encoding to my categorical features and this seems to be causing the following error in the predict method of the classifier:
ValueError: Cannot index with multidimensional key
To demonstrate this, here's a code sample that results in the same error on a different dataset:
import numpy as np
from sklearn.compose import ColumnTransformer
from sklearn.datasets import fetch_openml
from sklearn.pipeline import Pipeline
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from sklearn.model_selection import train_test_split

X, y = fetch_openml("titanic", version=1, as_frame=True, return_X_y=True)

numeric_features = ['age', 'fare']
numeric_transformer = Pipeline(steps=[
    ('imputer', SimpleImputer(strategy='median')),
    ('scaler', StandardScaler())])

categorical_features = ['embarked', 'sex', 'pclass']
categorical_transformer = Pipeline(steps=[
    ('imputer', SimpleImputer(strategy='constant', fill_value='missing')),
    ('onehot', OneHotEncoder(handle_unknown='ignore'))])

preprocessor = ColumnTransformer(
    transformers=[
        ('num', numeric_transformer, numeric_features),
        ('cat', categorical_transformer, categorical_features)])

clf = Pipeline(steps=[('preprocessor', preprocessor),
                      ('classifier', FaissKNeighbors())])

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)

clf.fit(X_train, y_train)
clf.predict(X_test)

Here is the full stack trace:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-35-373ecdcebcf0> in <module>()
     29
     30 clf.fit(X_train, y_train)
---> 31 clf.predict(X_test)

6 frames
/usr/local/lib/python3.6/dist-packages/sklearn/utils/metaestimators.py in <lambda>(*args, **kwargs)
    114
    115         # lambda, but not partial, allows help() to work with update_wrapper
--> 116         out = lambda *args, **kwargs: self.fn(obj, *args, **kwargs)
    117         # update the docstring of the returned function
    118         update_wrapper(out, self.fn)

/usr/local/lib/python3.6/dist-packages/sklearn/pipeline.py in predict(self, X, **predict_params)
    418         for _, name, transform in self._iter(with_final=False):
    419             Xt = transform.transform(Xt)
--> 420         return self.steps[-1][-1].predict(Xt, **predict_params)
    421
    422     @if_delegate_has_method(delegate='_final_estimator')

<ipython-input-24-c1e7d3808324> in predict(self, X)
     15     def predict(self, X):
     16         distances, indices = self.index.search(X.astype(np.float32), k=self.k)
---> 17         votes = self.y[indices]
     18         predictions = np.array([np.argmax(np.bincount(x)) for x in votes])
     19         return predictions

/usr/local/lib/python3.6/dist-packages/pandas/core/series.py in __getitem__(self, key)
    908             key = check_bool_indexer(self.index, key)
    909
--> 910         return self._get_with(key)
    911
    912     def _get_with(self, key):

/usr/local/lib/python3.6/dist-packages/pandas/core/series.py in _get_with(self, key)
    941         if key_type == "integer":
    942             if self.index.is_integer() or self.index.is_floating():
--> 943                 return self.loc[key]
    944             else:
    945                 return self._get_values(key)

/usr/local/lib/python3.6/dist-packages/pandas/core/indexing.py in __getitem__(self, key)
   1766
   1767             maybe_callable = com.apply_if_callable(key, self.obj)
-> 1768             return self._getitem_axis(maybe_callable, axis=axis)
   1769
   1770     def _is_scalar_access(self, key: Tuple):

/usr/local/lib/python3.6/dist-packages/pandas/core/indexing.py in _getitem_axis(self, key, axis)
   1950
   1951                 if hasattr(key, "ndim") and key.ndim > 1:
-> 1952                     raise ValueError("Cannot index with multidimensional key")
   1953
   1954                 return self._getitem_iterable(key, axis=axis)

ValueError: Cannot index with multidimensional key

As you can see, the error is happening on line 17 at votes = self.y[indices]. I have tested the implementation on the Iris dataset without any preprocessing and it works fine, so I believe it's related to the one-hot encoding. Please let me know if you have a fix or if one-hot encoding is not necessary for this implementation. Thanks again!

Hi!
Judging from the stack trace, the error that you're getting is the indexing error in Pandas. One of the arrays probably has too many dimensions. Can you try to print: shape of self.y, few first lines of self.y, few first lines of indices, types of self.y and indices?

I've found the error. The problem is that self.y is a Pandas Series object and does not support the Numpy-style indexing with self.y[indices].
The easiest way to fix this is to change the .fit() method like this:
        self.y = np.array(self.y, dtype=np.int)

This way we get the y as a Numpy array and the error is no more. This way the additional data the Series object is carrying is lost though. If you care about it, you can convert it every time in the .predict() method:
        tmp_y = np.array(self.y, dtype=np.int)
        votes = tmp_y[indices]

Beware that this is inefficient though. The best option is a space-time tradeoff, where we keep 2 copies of y - one as a Numpy array for internal use and one as a original Pandas Series. The full code for it:
class FaissKNeighbors:
    def __init__(self, k=5):
        self.index = None
        self.y = None
        self._y_np = None
        self.k = k

    def fit(self, X, y):
        self.index = faiss.IndexFlatL2(X.shape[1])
        self.index.add(X.astype(np.float32))
        self.y = y
        self._y_np = np.array(y, dtype=np.int)

    def predict(self, X):
        distances, indices = self.index.search(X.astype(np.float32), k=self.k)
        votes = self._y_np[indices]
        predictions = np.array([np.argmax(np.bincount(x)) for x in votes])
        return predictions

Thanks Jakub! That indeed fixed the issue and I was able to run the code sample posted above successfully.
Unfortunately, this didn't translate well to my actual dataset and I got an issue in fit: AssertionError: assert x.flags.contiguous. I first tried to solve this with np.ascontiguousarray as suggested here: https://github.com/facebookresearch/faiss/issues/459. That didn't work so I printed X and realized that the one-hot encoder was outputting a sparse matrix of type csr_matrix rather than a ndarray. After setting OneHotEncoder(sparse=False), I was able to fit and predict on my dataset without issue.
The one thing I'm still unable to figure out is why it doesn't work with cross_validate, but that's most likely due to incompatible data types between the y_test and y_pred arrays. I'll let you know if I find any other issues or possible enhancements. Thanks!


Add "schemaName" to each of the SchemaTypes

Hi,
We are currently using your awesome library in a project, and we use another library to convert models into JsonSchemas.
I've seen that this library lacks of the schemaName of each SchemaType, which is required for conversion.
In fact, you can see that mongoose schemas implement this property string.js, date.js
I'll be doing a pull request in some minutes, and if you like it, I would really appreciate a merge :)
Thanks!

Closed and merged PR.


Severed display corruption on Intel 620

installed Stepmania 5.3 Alpha 4.6 RC3 and this is the result when it runs:-

Please let me know if there is any more information I can provide that would be helpful.

log.txt in Logs/log.txt if possible.

Indeed, we need to know your pc specifics and the logs so we can help identify your problem

log.txt
Please see the log file attached. System information follows.
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19041 N/A Build 19041
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
System Manufacturer:       LENOVO
System Model:              20LES0GT00
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 142 Stepping 10 GenuineIntel ~1910 Mhz
BIOS Version:              LENOVO N25ET54W (1.40 ), 01/07/2020
Total Physical Memory:     16,222 MB
Available Physical Memory: 10,324 MB
Virtual Memory: Max Size:  18,654 MB
Virtual Memory: Available: 11,729 MB
Virtual Memory: In Use:    6,925 MB
Hotfix(s):                 7 Hotfix(s) Installed.
                           [01]: KB4565627
                           [02]: KB4537759
                           [03]: KB4557968
                           [04]: KB4560366
                           [05]: KB4561600
                           [06]: KB4566785
                           [07]: KB4565503

are you using a usb video device to display the game on?
I have not seen a log with a 'displaylink usb device' before, can you elaborate on the use of that for me?
cheers!

My monitor is connected to a Lenovo dock connected by USB as my laptop does not have a native graphics ouput port. Thanks!

Hello @Chaz6
Project Moondance Discord Moderator here, a while ago we created a bug hunter system, users who make issue on this repository gain points and can be rewarded in our discord, so I'm here to ask, are you in Project Moondance discord?
If not, you can join using this link: https://discord.gg/3DgsbSg
If you don't wish to join, that's okay. Please be sure to contact any moderator if you join.

This was a confirmed issue with the intel driver - 8356-8522, and it's not helping with the way microsoft are forcing users onto the DCH based drivers. We sadly cannot fix it as it's a driver issue.

Just to update if anyone is searching and finding this issue:
If you have a 4th generation Intel CPU to 6th Generation CPU: drivers prior to 8220 work fine, and greater than 8600 seem to work fine.
if you have a 7th generation Intel CPU to 8th Generation CPU(HD 500/HD 600/UHD 600 series): drivers around 8429 work, and greater than 8700 work fine.
If you have a 9th+ generation Intel CPU (UHD 620 etc) higher than 8600 work fine.

The Iris Pro require 8800+or less than 8200 in version. Remember this is for windows only, linux/mac are not affected by this driver issue.

Thank you for the useful information!


Aider possibly committed a different file than it edited?

Issue

Aider just had a bad error where it committed changes to public/css/homemenu.css instead of public/mobile/css/homemenu.css causing irreversible damage to the code that /undo failed to reverse because "public/mobile/css/homemenu.css" was marked as the changed file but infact it was the other one.
Applied edit to public/mobile/css/homemenu.css but the only file affected was public/css/homemenu.css
And now I cant get the old correct version of public/css/homemenu.css because Aider doesn't even know that the file was apart of that commit somehow.

https://discord.com/channels/1131200896827654144/1296554646789161132/1296554646789161132
Version and model info
No response

I think I mentioned when I saw that on discord, but I have had aider work on a file and be fine and then later commit it back in a new location (IIR it was a test_xxx and it got moved from the root, to a duplicate file that aider added under tests/test_xxx

Not sure if this related, but I just caught the AI/Aider editing the wrong file:
I had given it failing test results, run a debug prompt on it and it only had the code file (debug_ic_refactor.py) in the chat.  It seems like it went "meh, close enough, we'll edit that one":
Recommendations:
1. Modify the test to ensure the temporary configuration file is created and accessible.
2. Update the test to properly add and check for the "This should appear" log message.
3. Improve error handling in the CustomLogger class when loading configurations.
4. Review and update the thread management in the CustomLogger class to prevent shutdown issues.
</analysis>

<code_updates>
Let's implement these changes:

1. Update the test_configuration_reload method in test_debug_ic_refactor_quick.py:

debug_ic_refactor.py
<source>python
<<<<<<< SEARCH
    def reload_configuration(self):

The only files in the chat were two read only conventions .md files, and the main code:
../prompts/coding/code-terse.md ../prompts/coding/dee/output/debug-terse.md debug_ic_refactor.py
Perhaps some way of confirming that the file the AI thinks it is editing compared to the one it actually edits would help here?
Aider v0.59.1
Main model: claude-3-5-sonnet-20240620 with diff edit format, prompt cache, infinite output
Weak model: claude-3-haiku-20240307
Git repo: .git with 38 files
Repo-map: using 1024 tokens, files refresh


The Sample is not filtering after updating the sample from Microsoft.Graph.Auth to Azure.Identity

[Enter feedback here]
After updating the sample from Microsoft.Graph.Auth to Azure.Identity, the .Select() function is not filtering results and is displaying approximately 175 attributes., many of which are null. For example:
"Planner": null,
"Insights": null,
"Settings": null,
"Onenote": null,
"Photo": null,
"Photos": null,
"PhotosNextLink": null,
"Activities": null,
"ActivitiesNextLink": null,
"OnlineMeetings": null,
"OnlineMeetingsNextLink": null,
"Presence": null,
"Authentication": null,
"Chats": null,
"ChatsNextLink": null,
"JoinedTeams": null,
"JoinedTeamsNextLink": null,
"Teamwork": null,
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b4587f33-8cb3-146b-58ee-6725cd484f7d
Version Independent ID: 76e9cf47-608d-0065-6e7c-466b96068c2d
Content: Manage resources with Microsoft Graph - Azure AD B2C
Content Source: articles/active-directory-b2c/microsoft-graph-operations.md
Service: active-directory
Sub-service: b2c
GitHub Login: @kengaderdus
Microsoft Alias: kengaderdus

@thesheebs
Thanks for your feedback! We will investigate and update as appropriate.

@thesheebs
Would you be able to share some more info so I can gain a better understanding?

Did you change the Code discussion sample from Microsoft.Graph.Auth to Azure.Identity, which caused the issue?
Does an existing sample within the doc have issues?
Are you recommending that we update our sample?

Any additional information would be greatly appreciated.
Thank you for your time and patience throughout this issue.

@thesheebs
I just wanted to check in and see if you had a chance to review my previous comment?

I did not change the code. The GitHub repo contains the updated version using Azure.Identity. The article still shows Microsoft.Graph.Auth code. Using either method is not filtering out attributes with .Select() and is returning almost 200 attributes where it should only be fetching the attributes listed in the .Select()
Have a great day!
Amy :)
Sent from iPad

On Nov 30, 2021, at 3:00 PM, James Tran-MSFT @.***> wrote:

@thesheebs
Would you be able to share some more info so I can gain a better understanding?
Did you change the Code discussion sample from Microsoft.Graph.Auth to Azure.Identity, which caused the issue?
Does an existing sample within the doc have issues?
Are you recommending that we update our sample?
Any additional information would be greatly appreciated.
Thank you for your time and patience throughout this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

@thesheebs
Thank you for the clarification on this! I've assigned this issue to the author who will investigate and update as appropriate.

Dear @thesheebs
Thank you for your feedback and patience. We're updating the code snippet in the article. Meanwhile, you can use the updated code in Account management sample. Please note that this issue may be closed automatically before the changes go live.
Thanks.


Add writing permission to the repo

@jsiegle Could you add Alex, @XX-Yin and me to this repo with writing permissions since we're going to develop it together? Please also make sure that the main branch is protected. Thanks!

What is Alex's GitHub username?

I'm @alexpiet

Ok, added both of you and the main branch now requires pull requests!


New Project Failed to Compile Error

Failed to compile
./src/index.re
File "/Users//Desktop/Code/giphy-app/node_modules/reason-react/src/ReactEventRe.re", line 52, characters 4-5:
Error: 2180:
File "/Users//Desktop/Code/giphy-app/node_modules/reason-react/src/ReactEventRe.re", line 1:
Error: Error while running external preprocessor
Command line: /usr/local/lib/node_modules/bs-platform/bin/refmt3.exe --print binary '/Users/*****/Desktop/Code/giphy-app/node_modules/reason-react/src/ReactEventRe.re' > /var/folders/t6/chlvzpdx0nb_98w5m29x90s80000gn/T/ocamlppe9088a
This error occurred during the build time and cannot be dismissed.

I tried to build with yarn start

I also tried reinstalling a global bs-platform. then it started spitting out a new error
./src/index.re
Module build failed: Error: [0/18] Building src/ReactEvent.mliast[0/18] Building src/ReactEvent.mlast[0/18] Building src/ReasonReact.mliast[0/18] Building src/ReasonReact.mlast[0/18] Building src/ReactEventRe.mliast[0/18] Building src/ReactEventRe.mlast[0/18] Building src/ReactDOMServerRe.mlast[0/18] Building src/ReasonReactOptimizedCreateClass.mlast[0/18] Building src/ReactDOMRe.mlast[1/18] Building src/ReasonReact.mliast[1/18] Building src/ReasonReact.mliast.d[2/18] Building src/ReactDOMServerRe.mlast[2/18] Building src/ReactDOMServerRe.mlast.d[3/18] Building src/ReasonReactOptimizedCreateClass.mlast[3/18] Building src/ReasonReactOptimizedCreateClass.mlast.d[4/18] Building src/ReactEvent.mliast[4/18] Building src/ReactEvent.mliast.d[5/18] Building src/ReactEvent.mlast[5/18] Building src/ReactEvent.mlast.d[6/18] Building src/ReactEventRe.mlast[6/18] Building src/ReactEventRe.mlast.d[7/18] Building src/ReasonReact.mlast[7/18] Building src/ReasonReact.mlast.d[8/18] Building src/ReactEventRe.mliast[8/18] Building src/ReactEventRe.mliast.d[9/18] Building src/ReasonReact.mliast.d[10/18] Building src/ReactDOMServerRe.mlast.d[11/18] Building src/ReactEvent.mliast.d[12/18] Building src/ReasonReact.mlast.d[13/18] Building src/ReactEventRe.mlast.d[14/18] Building src/ReasonReactOptimizedCreateClass.mlast.d[15/18] Building src/ReactEvent.mlast.d[16/18] Building src/ReactEventRe.mliast.d[17/18] Building src/ReactDOMRe.mlast[17/18] Building src/ReactDOMRe.mlast.d[18/18] Building src/ReactDOMRe.mlast.d
[0/9] Building src/ReactEvent.cmi[0/9] Building src/ReasonReact.cmi[0/9] Building src/ReasonReactOptimizedCreateClass.cmj[1/9] Building src/ReasonReactOptimizedCreateClass.cmj[2/9] Building src/ReasonReact.cmi[2/9] Building src/ReasonReact.cmj[3/9] Building src/ReactEvent.cmi[3/9] Building src/ReactEvent.cmj[3/9] Building src/ReactEventRe.cmi[4/9] Building src/ReactEvent.cmj[5/9] Building src/ReactEventRe.cmi[5/9] Building src/ReactEventRe.cmj[6/9] Building src/ReasonReact.cmj[6/9] Building src/ReactDOMRe.cmj[6/9] Building src/ReactDOMServerRe.cmj[7/9] Building src/ReactDOMServerRe.cmj[8/9] Building src/ReactEventRe.cmj[9/9] Building src/ReactDOMRe.cmj
[0/4] Building src/jest.mliast[0/4] Building src/jest.mlast[1/4] Building src/jest.mliast[1/4] Building src/jest.mliast.d[2/4] Building src/jest.mlast[2/4] Building src/jest.mlast.d[3/4] Building src/jest.mliast.d[4/4] Building src/jest.mlast.d
[0/2] Building src/jest.cmi[1/2] Building src/jest.cmi[1/2] Building src/jest.cmj[2/2] Building src/jest.cmj
[0/6] Building src/App.mlast[0/6] Building src/index.mlast[0/6] Building src/App_test.mlast[1/6] Building src/App.mlast[1/6] Building src/App.mlast.d[2/6] Building src/index.mlast[2/6] Building src/index.mlast.d[3/6] Building src/App_test.mlast[3/6] Building src/App_test.mlast.d[4/6] Building src/index.mlast.d[5/6] Building src/App.mlast.d[6/6] Building src/App_test.mlast.d
[0/3] Building src/App.cmj[0/3] Building src/App_test.cmj[1/3] Building src/App.cmj
/usr/local/lib/node_modules/bs-platform/lib/bsc.exe: don't know what to do with Stuff/giphy-app/node_modules/reason-react/lib/ocaml.
Usage: bsc
Options are:
-bs-super-errors  Better error message combined with other tools
-bs-re-out  Print compiler output in Reason syntax
-bs-suffix  Set suffix to .bs.js
-bs-no-implicit-include  Don't include current dir implicitly
-bs-assume-has-mli  (internal) Assume mli always exist
-bs-assume-no-mli  (internal) Don't lookup whether mli exist or not
-bs-D  Define conditional variable e.g, -D DEBUG=true
-bs-list-conditionals  List existing conditional variables
-bs-binary-ast  Generate binary .mli_ast and ml_ast
-bs-syntax-only  only check syntax
-bs-no-bin-annot  disable binary annotations (by default on)
-bs-eval  (experimental) Set the string to be evaluated, note this flag will be conflicted with -bs-main
-bs-g  debug mode
-bs-sort-imports  Sort the imports by lexical order so the output will be more stable (default false)
-bs-no-sort-imports  No sort (see -bs-sort-imports)
-bs-package-name  set package name, useful when you want to produce npm packages
-bs-package-map  set package map, not only set package name but also use it as a namespace
-bs-no-version-header  Don't print version header
-bs-package-output  set npm-output-path: [opt_module]:path, for example: 'lib/cjs', 'amdjs:lib/amdjs', 'es6:lib/es6'
-bs-no-warn-unimplemented-external  disable warnings on unimplmented c externals
-bs-no-builtin-ppx-ml disable built-in ppx for ml files (internal use)
-bs-no-builtin-ppx-mli disable built-in ppx for mli files (internal use)
-bs-cross-module-opt enable cross module inlining(experimental), default(false)
-bs-diagnose  More verbose output
-bs-no-check-div-by-zero  unsafe mode, don't check div by zero and mod by zero
-bs-noassertfalse  no code for assert false
-bs-main  set the Main entry module in script mode, for example -bs-main Main
-bs-I  add source dir search path in script mode
-bs-files  Provide batch of files, the compiler will sort it before compiling
-impl   Compile  as a .ml file
-intf   Compile  as a .mli file

  Treat  as a file name (even if it starts with `-')
-absname  Show absolute filenames in error messages
-annot  Save information in .annot
-bin-annot  Save typedtree in .cmt
-c  Compile only (do not link)
-config  Print configuration values and exit
-g  Save debugging information
-i  Print inferred interface
-I   Add  to the list of include directories
-color {auto|always|never}  Enable or disable colors in compiler messages
The following settings are supported:
auto    use heuristics to enable colors only if supported
always  enable colors
never   disable colors
The default setting is 'auto', and the current heuristic
checks that the TERM environment variable exists and is
not empty or "dumb", and that isatty(stderr) holds.
-intf-suffix   Suffix for interface files (default: .mli)
-keep-docs  Keep documentation strings in .cmi files
-keep-locs  Keep locations in .cmi files
-labels  Use commuting label mode
-no-alias-deps  Do not record dependencies for module aliases
-no-app-funct  Deactivate applicative functors
-noassert  Do not compile assertion checks
-nolabels  Ignore non-optional labels in types
-nostdlib  Do not add default directory to the list of include directories
-o   Set output file name to
-open   Opens the module  before typing
-pp   Pipe sources through preprocessor
-ppx   Pipe abstract syntax trees through preprocessor
-principal  Check principality of type inference
-rectypes  Allow arbitrary recursive types
-safe-string  Make strings immutable
-short-paths  Shorten paths in types
-strict-sequence  Left-hand part of a sequence must have type unit
-strict-formats  Reject invalid formats accepted by legacy implementations
(Warning: Invalid formats may behave differently from
previous OCaml versions, and will become always-rejected
in future OCaml versions. You should use this flag
to detect and fix invalid formats.)
-unsafe  Do not compile bounds checking on array and string access
-v  Print compiler version and location of standard library and exit
-verbose  Print calls to external commands
-version  Print version and exit
-vnum  Print version number and exit
-w   Enable or disable warnings according to :
+   enable warnings in
-   disable warnings in
@   enable warnings in  and treat them as errors
 can be:
             a single warning number
..    a range of consecutive warning numbers
          a predefined set
default setting is "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102"
-warn-error   Enable or disable error status for warnings according
to .  See option -w for the syntax of .
Default setting is "-a"
-warn-help  Show description of warning numbers
-where  Print location of standard library and exit
-color {auto|always|never}  Enable or disable colors in compiler messages
The following settings are supported:
auto    use heuristics to enable colors only if supported
always  enable colors
never   disable colors
The default setting is 'auto', and the current heuristic
checks that the TERM environment variable exists and is
not empty or "dumb", and that isatty(stderr) holds.
-nopervasives  (undocumented)
-dsource  (undocumented)
-dparsetree  (undocumented)
-dtypedtree  (undocumented)
-drawlambda  (undocumented)
-dlambda  (undocumented)
-help  Display this list of options
--help  Display this list of options
[2/3] Building src/App_test.cmj
/usr/local/lib/node_modules/bs-platform/lib/bsc.exe: don't know what to do with Stuff/giphy-app/node_modules/reason-react/lib/ocaml.
Usage: bsc
Options are:
-bs-super-errors  Better error message combined with other tools
-bs-re-out  Print compiler output in Reason syntax
-bs-suffix  Set suffix to .bs.js
-bs-no-implicit-include  Don't include current dir implicitly
-bs-assume-has-mli  (internal) Assume mli always exist
-bs-assume-no-mli  (internal) Don't lookup whether mli exist or not
-bs-D  Define conditional variable e.g, -D DEBUG=true
-bs-list-conditionals  List existing conditional variables
-bs-binary-ast  Generate binary .mli_ast and ml_ast
-bs-syntax-only  only check syntax
-bs-no-bin-annot  disable binary annotations (by default on)
-bs-eval  (experimental) Set the string to be evaluated, note this flag will be conflicted with -bs-main
-bs-g  debug mode
-bs-sort-imports  Sort the imports by lexical order so the output will be more stable (default false)
-bs-no-sort-imports  No sort (see -bs-sort-imports)
-bs-package-name  set package name, useful when you want to produce npm packages
-bs-package-map  set package map, not only set package name but also use it as a namespace
-bs-no-version-header  Don't print version header
-bs-package-output  set npm-output-path: [opt_module]:path, for example: 'lib/cjs', 'amdjs:lib/amdjs', 'es6:lib/es6'
-bs-no-warn-unimplemented-external  disable warnings on unimplmented c externals
-bs-no-builtin-ppx-ml disable built-in ppx for ml files (internal use)
-bs-no-builtin-ppx-mli disable built-in ppx for mli files (internal use)
-bs-cross-module-opt enable cross module inlining(experimental), default(false)
-bs-diagnose  More verbose output
-bs-no-check-div-by-zero  unsafe mode, don't check div by zero and mod by zero
-bs-noassertfalse  no code for assert false
-bs-main  set the Main entry module in script mode, for example -bs-main Main
-bs-I  add source dir search path in script mode
-bs-files  Provide batch of files, the compiler will sort it before compiling
-impl   Compile  as a .ml file
-intf   Compile  as a .mli file
  Treat  as a file name (even if it starts with `-')
-absname  Show absolute filenames in error messages
-annot  Save information in .annot
-bin-annot  Save typedtree in .cmt
-c  Compile only (do not link)
-config  Print configuration values and exit
-g  Save debugging information
-i  Print inferred interface
-I   Add  to the list of include directories
-color {auto|always|never}  Enable or disable colors in compiler messages
The following settings are supported:
auto    use heuristics to enable colors only if supported
always  enable colors
never   disable colors
The default setting is 'auto', and the current heuristic
checks that the TERM environment variable exists and is
not empty or "dumb", and that isatty(stderr) holds.
-intf-suffix   Suffix for interface files (default: .mli)
-keep-docs  Keep documentation strings in .cmi files
-keep-locs  Keep locations in .cmi files
-labels  Use commuting label mode
-no-alias-deps  Do not record dependencies for module aliases
-no-app-funct  Deactivate applicative functors
-noassert  Do not compile assertion checks
-nolabels  Ignore non-optional labels in types
-nostdlib  Do not add default directory to the list of include directories
-o   Set output file name to
-open   Opens the module  before typing
-pp   Pipe sources through preprocessor
-ppx   Pipe abstract syntax trees through preprocessor
-principal  Check principality of type inference
-rectypes  Allow arbitrary recursive types
-safe-string  Make strings immutable
-short-paths  Shorten paths in types
-strict-sequence  Left-hand part of a sequence must have type unit
-strict-formats  Reject invalid formats accepted by legacy implementations
(Warning: Invalid formats may behave differently from
previous OCaml versions, and will become always-rejected
in future OCaml versions. You should use this flag
to detect and fix invalid formats.)
-unsafe  Do not compile bounds checking on array and string access
-v  Print compiler version and location of standard library and exit
-verbose  Print calls to external commands
-version  Print version and exit
-vnum  Print version number and exit
-w   Enable or disable warnings according to :
+   enable warnings in
-   disable warnings in
@   enable warnings in  and treat them as errors
 can be:
             a single warning number
..    a range of consecutive warning numbers
          a predefined set
default setting is "+a-4-6-7-9-27-29-32..39-41..42-44-45-48-50-102"
-warn-error   Enable or disable error status for warnings according
to .  See option -w for the syntax of .
Default setting is "-a"
-warn-help  Show description of warning numbers
-where  Print location of standard library and exit
-color {auto|always|never}  Enable or disable colors in compiler messages
The following settings are supported:
auto    use heuristics to enable colors only if supported
always  enable colors
never   disable colors
The default setting is 'auto', and the current heuristic
checks that the TERM environment variable exists and is
not empty or "dumb", and that isatty(stderr) holds.
-nopervasives  (undocumented)
-dsource  (undocumented)
-dparsetree  (undocumented)
-dtypedtree  (undocumented)
-drawlambda  (undocumented)
-dlambda  (undocumented)
-help  Display this list of options
--help  Display this list of options    at Array.map ()

I've also tried the @next branch and that didn't work either

@hsavit1 try using Parcel and Reason. reason-scripts isn’t supported anymore.


Update survey_sec_bugs.html

This removes the time specification in report e-mail.
With this change and the existing behavior of setting a whiteboard tag being a survey is request is added, I think we can comfortably increase the frequency of this rule.
@calixteman, can you change the cronjbo to run this weekly? We'll ideally increase to every 48hrs in the future. I'll follow up with another pull request that adds more possible survey recipients.

CCing @tomrittervg

Coverage remained the same at 24.995% when pulling 958103534a22486bf64d38463ff0d42ea7a174ab on mozfreddyb:patch-1 into 81a30e69ea7e47e7de8b8af33a2eca822fef4d35 on mozilla:master.

I changed the cron to: every WED at 5pm (utc), is it ok for you ?

perfect, thank you! :ok_hand:


How to generate {train, valid}.km files?

Hi everyone, congratulations on working on this model! I'm getting ready to train the contentvec model on a larger dataset. I've already made a script to generate the spk2info.dict file, which I intend to share. Do you have any tips on how to generate the {train, valid}.km, dict.km.txt files? I'm studying the code in contentvec_dataset.py but it's really hard to understand that part.

Please refer to this https://github.com/facebookresearch/fairseq/tree/main/examples/hubert/simple_kmeans

@auspicious3000 thanks a lot for the help! One last question: are there appropriate values for the parameters ${nshard} ${rank} and ${n_clusters}, or can I choose arbitrarily?

${nshard} ${rank} are not the model's parameters. ${n_clusters} is an important parameter of the model. Reading the original hubert paper would be helpful to understand its importance.

Thank you very much @auspicious3000 !

Could you tell me how to generate the spk2info.dict file? I had generated {train, valid}.km files,but I don't know how to get it. I cannot train a new model because of the wrong spk2info.dict file.


Listing on Terraform's site?

Is there a reason this is not listed on https://www.terraform.io/docs/providers/index.html ?

This project is not mature enough and sadly I don't have the time to maintain it. Better find someone to take over it.

Most likely it will stay under the terra-farm umbrella - I am not sure are there any commercial users of the provider, and most likely it will be always community supported (if at all). The best we can hope for is ability to pull third party providers though terraform registry, as outlined in https://github.com/hashicorp/terraform/issues/15252, and that would make me personally happy. I will close this issue as there is nothing we can do about it, and as @ccll said 2.5 years ago, this project is not mature enough, but we are trying!


JavaScript warnings from vanilla vendor.min.js

When using the vanilla vendor.min.js from the 3.0.0 download, warnings appear in the console:
On Firefox 53:
Ein Aufruf von document.write() durch ein asynchron geladenes externes Skript wurde ignoriert.  vendors.min.js:8:2661
getPreventDefault() sollte nicht mehr verwendet werden. Verwenden Sie stattdessen defaultPrevented.  vendors.min.js:2:26643

On Chrome 58:
Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.   vendors.min.js:8

Warnings don't appear in Internet Explorer 11.
Functionality doesn't seem to be impaired.
(On a related note: There doesn't seem to be any documentation what's inside of vendor.min.js outside of the Gulp-file.)

When I check the console without adding any new external libraries this error does not appear. I think this is a vanilla.js or another third party library issue of your project. This Error just occurs in the vendor.mini.js file because most of the library sources are there included (including your vanilla.js). In the gulpfile.js > "Build vendors dependencies" section you can check which libraries are included for your project.
@almeidap could you please look at this issue?


Dragonfly: expose __errno_location() rather than define __error().

This takes advantage of a recent addition to DragonFly that makes it possible to access errno (which is thread-local) without any dependence on the thread_local Rust feature. I tested it out by using it in the Nix crate. Nix had a C language shim, which I removed and replaced by using this modified version of libc.

I think this will break the backward compatibility, right? Then I'd like to avoid just removing it but add a deprecation note for a while then drop it.

Good point. I suspect not many people use it, but no easy way to tell. I added the errno module back, along with its reference. The function has a deprecation warning now.

Do these changes look acceptable?

awesome thanks!


Add support for min/max dimensions on OSX

Currently, this is not supported on OSX, see https://github.com/tomaka/glutin/blob/master/src/api/cocoa/mod.rs#L283-L284

Closing for https://github.com/tomaka/winit/issues/80

I have a winit branch with this implemented. Will open a PR soon.

PR opened: https://github.com/tomaka/winit/pull/89.


Fix IDR currency decimal and thousand format

Currently the IDR currency format is coming as 1,222,222.50 where as it should be 1.222.222,50

@Rhymond , Please review

@Rhymond , any update on the review


Added functionality to undo and redo using the keyboard in the Paint Activity

Added the functionality to undo by pressing ctrl and 'z' on the keyboard and redo pressing ctrl and 'y'. I believe this can be done for all the activites supporting undo and redo buttons as it an intuitive way to do these actions and is common everywhere.
What do you think @llaske ?
screen-capture (2).webm

Shortcut are too complex for children. Plus, most f the time Sugarizer is use on tablets.
Do not send a PR before an issue was created and there is comment on it.

Shortcut are too complex for children. Plus, most f the time Sugarizer is use on tablets.
Do not send a PR before an issue was created and there is comment on it.

Okay I'll close this one


FR: Add device group management support to the node admin SDK

Looks like the Admin NodeJS SDK only allows sending messages to device, group and topics. Device group management is not included though. so developers would need to use the the android APIs to do this (https://firebase.google.com/docs/cloud-messaging/android/device-group#managing-device-groups-on-the-app-server). It seems a bit fragmented, so it would be nice if the Admin SDK supports both areas and neatly hides the details.

+1 This would also allow users to drop the legacy server API altogether (and long-lived auth keys).

Is device group management even supported by the new v1 protocol? I can't find any references to it.

"Basic management of device groups [...] is usually performed via the app server. See the legacy HTTP protocol reference for a list of supported keys." source
"Using the FCM app server protocols, you can build message requests and send them to these types of targets: [...] - Device group name (legacy protocols only)" source

@sampson-chen PTAL.

Feature parity here for device group management would be nice, I agree. However, it's not on the immediate roadmap. There's an ongoing discussion within the team, and I'll provide an update when available.
In the mean time, does the FCM Topics feature provide sufficient equivalent functionality for your use cases?

In the mean time, does the FCM Topics feature provide sufficient equivalent functionality for your use cases?

For reference, here's some of the features and limitations of Topics:

Unlimited topics and subscriptions
"Optimized for throughput rather than latency. For fast, secure delivery to single devices or small groups of devices, target messages to registration tokens, not topics."
Public. Can't prevent users from subscribing.

The last two points may pose a problem.

This sentence in the documentation is misleading:
Device group

You can use device group messaging with the Admin SDKs, or by implementing the XMPP or HTTP protocols on your app server. The maximum number of members allowed for a notification key is 20.

Admin SDKs is only for sending to device group, not adding and removing a device in a group. So if I don't want to use both solution (Admin SDK to send and HTTP v1 API to manage device in group) my only solution is to not use device group messaging and "simply" loop for all tokens for an user when I need to send a notification?
Thanks

@hiranya911 any hints?

@patricksebastien your suggested approach will work for a small number of device tokens. But it won't scale for large groups, as you will start bumping into FCM request quotas after a while. You should consider topics as an alternative. You can both send to topics and manage topic subscriptions from the Admin SDK. There's also some ongoing work by the FCM team to handle this type of use cases more elegantly.

Any updates on this?
I'm worried I'll run into the quota problem as described by @hiranya911

We have a proposal under consideration for implementing a new multicast/batch send API. I've already prototyped it for Java. Once the proposal is approved, it will be implemented here as well.

This would be a duplicated issue, see firebase/firebase-admin-java#187
The FCM team is working on providing a group-equivalent feature and address the problem for topics mentioned in point 3 in the comment above: #173 (comment)

@chong-shao any news on the progress of private topics?

There's no new updates I can share for now. Please stay tuned :)

+1

Is this still something being worked on or has it died? I'm hoping the former but it's been almost 5 years since this issue was opened, so... that's not ideal.
We want to use the Admin SDK to send messages to the group of devices belonging to a single user. Ideally device groups should have better latency than topics since they are limited in size, and we want to prevent users from adding/removing themselves to groups on the client as they can with topics.
We can use the multicasting feature as a workaround to target an array of registration tokens directly but it sure would be more convenient and efficient to have private device groups as part of the Admin SDK.

My takeaway from these and similar issues in other language SDKs is device groups was supposed to be replaced by private topics, but that feature was never completed, yet device groups were also never fully supported either.
The official documentation for FCM still mentions using device groups instead of topics when security is needed, yet there is little documentation for actually using device groups. It is in the V1 HTTP API though, so I am hoping it will continue to be supported until a replacement is implemented.


Broadcast Receiver May Manually Have to Be Added

Report
Plugin Version
1.4.7
On what Platform are you having the issue?
Android
What did you do?
Install the integration and run the non-organic install integration test
What did you expect to happen?
The test would just work
What happened instead?
We succeeded, but got a warning message along the lines of 'we couldn't track where the install came from. Please make sure you have Broadcast Receiver in AndroidManifest.xml'.
Then, we manually added the following:
    <receiver android:name="com.appsflyer.SingleInstallBroadcastReceiver" android:exported="true">
      <intent-filter>
      <action android:name="com.android.vending.INSTALL_REFERRER" />
      </intent-filter>
      </receiver>

And tried the integration test again, and this time it worked with no warning message.
Please provide any other relevant information.
We're on RN 0.61.3. We used autolinking.

Historically there are two ways to collect the install_referer from google:
Using a broadcast receiver.
Using the new google play install referer library.
Only one of these methods needs to be implemented to get the install referrer from google.
Google is deprecating method (1).
For the last 2 years, AppsFlyer SDK is using method (2)
See - https://github.com/AppsFlyerSDK/react-native-appsflyer/blob/master/android/build.gradle#L32
So as long as you have the latest version of the plugin there is no action required.
For more info see:
https://developer.android.com/google/play/installreferrer/library (new)
https://developers.google.com/android/reference/com/google/android/gms/tagmanager/InstallReferrerReceiver (old)

Regarding the test app, the broadcast receiver is being deprecated by google in 3 months, so the app will be removed from the store soon.
So please use the dashboard test, which can be found under SDK integration tests in the AppsFlyer dashboard.


Lodash _.flatten function work differently from v3.0.0

Hi, I wrote a small piece of code for test _.flatten. the code is as below
objects = [{ 'a': [1] }, { 'a': [2, 3] }];
console.log(_.flatten(objects, 'a'));

version<=2.4.2  the result is [ 1, 2, 3 ]
but while I use version>=3.0.0  result is [ { a: [ 1 ] }, { a: [ 2, 3 ] } ]
I got some confused here, is there any definition change for this function?

lodash has _.flattenDeep that follows the v2 behavior.
PS. this is the Backbone.js repo, not lodash.


Avoid creating duplicate deploy keys

Short description
As a wego user I would like to avoid a buildup of deploy keys within a repository if I perform multiple app adds in a single repository
Acceptance criteria
Given a cluster with wego installed
When I wego app add more than one application within a single repository
Then I would like to only have one wego deploy key associated with the repository

Name is unique already.


anyOf Warning

Hello,  I would first like to thank you all for the hard work you've put into this project, and add the disclaimer that this could very well be user error, but my schema validates with other validators, and previous versions, but I get a warning with v5.2.1.
Stripped down to what is causing the error:
Base schema:
{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"type": "object",
	"properties": {
		"location": {
			"anyOf": [
				{
					"$ref": "./postalList.json"
				},
				{
					"$ref": "./area.json"
				}
			]
		}
	},
	"additionalProperties": false,
	"required": [
		"location"
	]
}

postalList.json:
{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"type": "object",
	"properties": {
		"countryLimit": {
			"type": "string"
		},
		"type": {
			"enum": ["postalList"]
		},
		"data": {
			"type": "array",
			"items": {
				"type": "string",
				"minLength": 2
			},
			"minItems": 1,
			"uniqueItems": true
		}
	},
	"additionalItems": false
}

area.json:
{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"type": "object",
	"properties": {
		"type": {
			"enum": ["area"]
		},
		"data": {
			"type": "array",
			"items": {
				"$ref": "./areas.json"
			},
			"minItems":1,
			"uniqueItems": true
		}
	},
	"additionalProperties": false
}

areas.json:
{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"type": "object",
	"properties": {
		"id": {
			"type": "number",
			"minimum": 0
		},
		"name": {
			"type": "string",
			"minLength": 1
		},
		"abbr": {
			"type": "string",
			"pattern": "[A-Z]+",
			"minLength": 1
		}
	},
	"required": ["id", "name", "abbr"]
}

Test Code:
$validator = new \JsonSchema\Validator();
$value = json_encode(
    ["location" => ["type" => "area", "data" => [["id" => 1, "name" => "area name", "abbr" => "AB"]]]]
);

$result = $validator->validate(json_decode($value), (object)['$ref' => 'file://' . realpath('./test.json')]);

This gives me the follow error repeated twice:
PHP Warning:  mb_detect_encoding() expects parameter 1 to be string, object given in /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php on line 54$
PHP Stack trace:$
PHP   1. {main}() /usr/local/src/placelocal/public_html/test.php:0$
PHP   2. JsonSchema\\Validator->validate() /usr/local/src/placelocal/public_html/test.php:105$
PHP   3. JsonSchema\\Constraints\\SchemaConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php:63$
PHP   4. JsonSchema\\Constraints\\Constraint->checkUndefined() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php:93$
PHP   5. JsonSchema\\Constraints\\UndefinedConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:121$
PHP   6. JsonSchema\\Constraints\\UndefinedConstraint->validateTypes() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:51$
PHP   7. JsonSchema\\Constraints\\Constraint->checkObject() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:81$
PHP   8. JsonSchema\\Constraints\\ObjectConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:88$
PHP   9. JsonSchema\\Constraints\\ObjectConstraint->validateProperties() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:47$
PHP  10. JsonSchema\\Constraints\\Constraint->checkUndefined() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:145$
PHP  11. JsonSchema\\Constraints\\UndefinedConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:121$
PHP  12. JsonSchema\\Constraints\\UndefinedConstraint->validateOfProperties() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:48$
PHP  13. JsonSchema\\Constraints\\Constraint->checkUndefined() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:319$
PHP  14. JsonSchema\\Constraints\\UndefinedConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:121$
PHP  15. JsonSchema\\Constraints\\UndefinedConstraint->validateTypes() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:51$
PHP  16. JsonSchema\\Constraints\\Constraint->checkObject() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:81$
PHP  17. JsonSchema\\Constraints\\ObjectConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:88$
PHP  18. JsonSchema\\Constraints\\ObjectConstraint->validateProperties() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:47$
PHP  19. JsonSchema\\Constraints\\Constraint->checkUndefined() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.php:145$
PHP  20. JsonSchema\\Constraints\\UndefinedConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:121$
PHP  21. JsonSchema\\Constraints\\UndefinedConstraint->validateTypes() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:51$
PHP  22. JsonSchema\\Constraints\\Constraint->checkArray() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:66$
PHP  23. JsonSchema\\Constraints\\CollectionConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:69$
PHP  24. JsonSchema\\Constraints\\CollectionConstraint->validateItems() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php:52$
PHP  25. JsonSchema\\Constraints\\StringConstraint->check() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php:86$
PHP  26. JsonSchema\\Constraints\\StringConstraint->strlen() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php:35$
PHP  27. mb_detect_encoding() /usr/local/src/placelocal/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php:54$

Seems like anyOf behavior is being too greedy when evaluating the included schemas.  Note that if you swap the order of postalList.json and area.json, the warning no longer appears.

Thanks for reporting this. I saw it the day you posted it, and just wanted to let you know that I haven't lost sight of it - I've just been insanely busy with other things (i.e. work that pays the bills), and haven't yet had time to look into the problem in any detail.
I will investigate and resolve this, but it might take me another couple of weeks to get to sorry. If someone else feels like sorting it out before then, feel free - pull requests against 6.0.0-dev are welcome :-).

Definitely understandable, people like you who make time to contribute to projects in addition to work are admirable!  Thank you for looking at this.

I encountered, what I think is, the same error. A simpler example:
test-schema.json is
{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "Test validation of additionalProperties defined inside oneOf",

	"type": "object",
	"properties": {
		"op": { "enum": [ "a", "b" ] },
		"oneOf": [
			{
				"op": { "enum": [ "a" ] },
				"data": {}
			},
			{
				"op": { "enum": [ "b" ] },
				"data": {}
			}
		]
	},
	"additionalProperties": false
}

and the following JSON data
{"op":"a","data":{}}

fails on this with error [] The property data is not defined and the definition does not allow additional properties.

@eldering Your example has nothing to do with the bug reported in this issue, and is actually user error - your schema does doesn't mean what you think it means. Your schema does not define the properties data or op at all. It defines the property oneOf, and then tries to use data and op as keywords, and as those aren't valid keywords, they are ignored.
The error message you're receiving is correct, as intended, and matches how the spec says this should work.
@allentsai - what you have reported is definitely a bug; I'd just lost sight of this one sorry. I will fix it.

@allentsai This is fixed in #498. I will backport this change for v5.2.8 once the PR is merged.


How to handle arrays as records for INSERTS and UPDATES

How would I best use pg-format to handle the insertion of arrays into columns with an array type.
Imagine a table with a column 'roles' of type text[].
To insert into that table the statement would look something like
INSERT INTO table (name, roles) VALUES ("Josh", ARRAY["role1", "role2"])
or
INSERT INTO table(name, roles) VALUES ("Josh", {"role1", "role2"})
However, when pg-format encounters an array it formats as a literal like this:
INSERT INTO table(name, roles) VALUES ("Josh", ("role1", "role2")) which is invalid. That format ("role1", "role2") works great for IN statements so clearly is the correct handling for arrays in some circumstances.
Recommendations for UPDATES and INSERTS where the value being written is an Array?

Arrays are expanded without any surrounding parentheses so that you can use IN(%L) or ARRAY[%L].
const format = require('pg-format');
var sql = format('INSERT INTO my_table (a, b) VALUES (%L, ARRAY[%L])', 'abc', [ 1, 2, 3 ]);
console.log(sql); // INSERT INTO my_table (a, b) VALUES ('abc', ARRAY['1','2','3'])'

I'm currently using this form
const format = require('pg-format');
const sql = format("INSERT INTO my_table %I VALUES (%L)", ['array', 'of', 'keys'], ['array', 'values', [1,2,3]]);
It's a dynamic data situation so I don't know the number of columns before runtime. I suspect the best solution is to dynamically generate a format string like this based on the number of properties and if a value has an array datatype?
INSERT INTO my_table %I, %I, %I VALUES (%L, %L, ARR[%L])
Thanks for prompt reply.

How would you handle this for multirow inserts though? I need to insert multiple rows with one insert statement (like the example in this article (https://www.wlaurance.com/2018/09/node-postgres-insert-multiple-rows) but I have the same issue as the original poster where my arrays get formatted as literals but one of the values needs to be of type array (text[]).
My data structure looks like this:
valuesToInsert:  [
  [ [ 'hello', 'english greeting' ], 169 ],
  [ [ 'what', 'english question' ], 169 ],
  [ [ 'thing', 'english object' ], 169 ]
]

where each item in the outermost array is a VALUES row and the innermost array is a text[] type column in the row, with the number being a foreign key. Currently if I set up my formatted query to look like this:
const formattedQuery = format(
    `INSERT INTO "public"."vocab_card" (sides, vocab_id) VALUES %L RETURNING *`,
    valuesToInsert
  );

it gives me this:
INSERT INTO "public"."vocab_card" (sides, vocab_id) VALUES ('hello','english greeting', '170'), ('what','english question', '170'), ('thing','english object', '170') RETURNING *

but I need it to look more like this:
INSERT INTO "public"."vocab_card" (sides, vocab_id) VALUES (ARRAY['hello','english greeting'], '170'), (ARRAY['what','english question'], '170'), (ARRAY['thing','english object'], '170') RETURNING *

but I can't for the life of me figure out how to get it to work.

I have same characteristic problem if we doing batch insert.
My objective on my query :
INSERT INTO vitamin(name,composition ) VALUES ('Multi Vitamin', [{"option":"vitamin A", "miligram":8mg},{"option":"vitamin B", "miligram":8mg}, {"option":"vitamin D", "miligram":10mg}]), ('Fibre Blend', [{"option":"Protein", "miligram":8mg},{"option":"Fat", "miligram":8mg}, {"option":"insoluble fibre", "miligram":10mg}]);

The solution from comment above cannot applied on batch insert like my objective query.
If I do looping the code , like this
const format = require('pg-format');

var dataVitamin = []

for(let data of vitaminList)
{
       var name = data.name;
       var nutritions = data.nutritions
       var params = [name, nutritions];
       dataVitamin.push(params);
}

const query = format('INSERT INTO vitamin(name, composition) VALUES %L', dataVitamin);
console.log(query);

The console.log result :
INSERT INTO vitamin(name,composition ) VALUES
('Multi Vitamin', {"option":"vitamin A", "miligram":8mg}::jsonb,{"option":"vitamin B", "miligram":8mg}::jsonb, {"option":"vitamin D", "miligram":10mg}::jsonb),
('Fibre Blend', {"option":"Protein", "miligram":8mg}::jsonb,{"option":"Fat", "miligram":8mg}::jsonb, {"option":"insoluble fibre", "miligram":10mg}::jsonb)

when we run the query on my code,  error come up :   ERROR : VALUES list must have same length
if i convert my code above become like this
const format = require('pg-format');

// this type of code, get my objective
for(let data of vitaminList)
{
       var name = data.name;
       var nutritions = data.nutritions
       const query = format('INSERT INTO vitamin(name, composition) VALUES (%L, ARRAY[%L])', name, nutritions);
       console.log(query);
}

the converted code serve the purpose of the objective , but if we do loop for 10.000 rows data on single run.
sometimes error just show up too many request on connections
Any solution for this issue ?
Thank you

I have same characteristic problem if we doing batch insert.
My objective on my query :
INSERT INTO vitamin(name,composition ) VALUES ('Multi Vitamin', [{"option":"vitamin A", "miligram":8mg},{"option":"vitamin B", "miligram":8mg}, {"option":"vitamin D", "miligram":10mg}]), ('Fibre Blend', [{"option":"Protein", "miligram":8mg},{"option":"Fat", "miligram":8mg}, {"option":"insoluble fibre", "miligram":10mg}]);

The solution from comment above cannot applied on batch insert like my objective query.
If I do looping the code , like this
const format = require('pg-format');

var dataVitamin = []

for(let data of vitaminList)
{
       var name = data.name;
       var nutritions = data.nutritions
       var params = [name, nutritions];
       dataVitamin.push(params);
}

const query = format('INSERT INTO vitamin(name, composition) VALUES %L', dataVitamin);
console.log(query);

The console.log result :
INSERT INTO vitamin(name,composition ) VALUES
('Multi Vitamin', {"option":"vitamin A", "miligram":8mg}::jsonb,{"option":"vitamin B", "miligram":8mg}::jsonb, {"option":"vitamin D", "miligram":10mg}::jsonb),
('Fibre Blend', {"option":"Protein", "miligram":8mg}::jsonb,{"option":"Fat", "miligram":8mg}::jsonb, {"option":"insoluble fibre", "miligram":10mg}::jsonb)

when we run the query on my code,  error come up :   ERROR : VALUES list must have same length
if i convert my code above become like this
const format = require('pg-format');

// this type of code, get my objective
for(let data of vitaminList)
{
       var name = data.name;
       var nutritions = data.nutritions
       const query = format('INSERT INTO vitamin(name, composition) VALUES (%L, ARRAY[%L])', name, nutritions);
       console.log(query);
}

the converted code serve the purpose of the objective , but if we do loop for 10.000 rows data on single run.
sometimes error just show up too many request on connections
Any solution for this issue ?
Thank you

It's a dynamic data situation so I don't know the number of columns before runtime. I suspect the best solution is to dynamically generate a format string like this based on the number of properties and if a value has an array datatype?
INSERT INTO my_table %I, %I, %I VALUES (%L, %L, ARR[%L])
Thanks for prompt reply.

This is my exact issue. Were you able to find a good solution to this?

@KarmitoHerry , Facing the same, can anyone help?
Thank you!

In cases where format() cannot do what you need out of the box, I recommend composing pieces into the final query using %s. And you can use the built-in JS type checking functions/syntax if you need to dynamically handle an array vs non-array.
let piece1 = format('%L', [1, 2, 3]);
let piece2 = format('%L, %L, ARRAY[%s]', 'a', 'b', piece1);
let query = format('insert into a, b, c values (%s)', piece2);


KAFKA-17392: Remove whitelist option in ConsoleConsumerOptions

As title. Additionally, I found some code related to whitelist in ReplicaVerificationTool. However, since the tool will be removed in 5.0 [1], I won't make any changes to the tool.
[1] [KAFKA-17074] Remove ReplicaVerificationTool
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@mingyen066, Thanks for your PR, There are some test is error in ConsoleConsumerOptionsTest with --whitelist argument, You should check these fail test

thanks @m1a2st. I accidentally used test ConsoleConsumerTest incorrectly.

@mingyen066, Thanks for your PR, There are some test is error in ConsoleConsumerOptionsTest with --whitelist argument, You should check these fail test

The code related to whitelist is removed,

@mingyen066 thanks for this patch. Could you please add docs to https://github.com/apache/kafka/blob/trunk/docs/upgrade.html#L35

@chia7712 Thanks for reviewing PR. The information about the removal of the --whitelist option has already been added to the docs.


Add Support for TS0505A RGB+CCT light controller

Device description
TS0505A | RGB+CCT light controller
Light bulb from Silvercrest Lidl
Zigbee2mqtt page
https://www.zigbee2mqtt.io/devices/TS0505A.html
MQTT message with device information
{"dateCode":"","description":"RGB+CCT light controller","friendly_name":"0x842e14fffe2a3615","hardwareVersion":1,"ieeeAddr":"0x842e14fffe2a3615","lastSeen":1606561142422,"manufacturerID":4098,"manufacturerName":"_TZ3000_dbou1ap4","model":"TS0505A","modelID":"TS0505A","networkAddress":60502,"powerSource":"Mains (single phase)","type":"Router","vendor":"TuYa"},
{"dateCode":"","description":"RGB+CCT light controller","friendly_name":"0x588e81fffed401ed","hardwareVersion":1,"ieeeAddr":"0x588e81fffed401ed","lastSeen":1606562112755,"manufacturerID":4098,"manufacturerName":"_TZ3000_dbou1ap4","model":"TS0505A","modelID":"TS0505A","networkAddress":3964,"powerSource":"Mains (single phase)","type":"Router","vendor":"TuYa"}
MQTT messages from device
No messages seen from device
MQTT state change commands
Received MQTT message on 'zigbee2mqtt/0x588e81fffed401ed/set' with data '{"brightness": 100}'
MQTT publish: topic 'zigbee2mqtt/0x588e81fffed401ed', payload '{"brightness":100,"color":{"x":0.476993298233858,"y":0.413675289942435},"color_temp":400,"linkquality":7,"state":"ON"}'

nice one was just about to add it to the list

I added the device to my local installation and works fine. I'm new to Github. I'm now looking into adding support for the TS1001 remote which is part of the starter pack.

I added the device to my local installation and works fine. I'm new to Github. I'm now looking into adding support for the TS1001 remote which is part of the starter pack.

hey gerard hoe had je hem handmatig toegevoegd ?

I added the device to my local installation and works fine. I'm new to Github. I'm now looking into adding support for the TS1001 remote which is part of the starter pack.

hey gerard hoe had je hem handmatig toegevoegd ?

Ja, daar ben ik ook benieuwd naar. Ik kan nergens een Pull Request zien waarin dit wordt toegevoegd namelijk.
Heb wel handmatig al de state kunnen zetten maar nog niet verder kunnen inrichten.

Device description
TS0505A | RGB+CCT light controller
Light bulb from Silvercrest Lidl
Zigbee2mqtt page
https://www.zigbee2mqtt.io/devices/TS0505A.html
MQTT message with device information
{"dateCode":"","description":"RGB+CCT light controller","friendly_name":"0x842e14fffe2a3615","hardwareVersion":1,"ieeeAddr":"0x842e14fffe2a3615","lastSeen":1606561142422,"manufacturerID":4098,"manufacturerName":"_TZ3000_dbou1ap4","model":"TS0505A","modelID":"TS0505A","networkAddress":60502,"powerSource":"Mains (single phase)","type":"Router","vendor":"TuYa"},
{"dateCode":"","description":"RGB+CCT light controller","friendly_name":"0x588e81fffed401ed","hardwareVersion":1,"ieeeAddr":"0x588e81fffed401ed","lastSeen":1606562112755,"manufacturerID":4098,"manufacturerName":"_TZ3000_dbou1ap4","model":"TS0505A","modelID":"TS0505A","networkAddress":3964,"powerSource":"Mains (single phase)","type":"Router","vendor":"TuYa"}
MQTT messages from device
No messages seen from device
MQTT state change commands
Received MQTT message on 'zigbee2mqtt/0x588e81fffed401ed/set' with data '{"brightness": 100}'
MQTT publish: topic 'zigbee2mqtt/0x588e81fffed401ed', payload '{"brightness":100,"color":{"x":0.476993298233858,"y":0.413675289942435},"color_temp":400,"linkquality":7,"state":"ON"}'

These Lidl bulbs have different model names but their hardware is equal to TS0505A

Koenkk has made an entry in devices.js which distinguishes (only the E14, not yet the GU10 and E27) the bulb from TS0505A:
https://github.com/Koenkk/zigbee-herdsman-converters/commit/ea8bf9ba8866454dde46a3297efffc977d538602
Only he filled in Silvercrest as vendor but it is Livarno Lux (Lidl has other tuya products with vendor name Silvercrest, but not these bulbs. At least not according to the advertisement and manuals)
It is updated in the dev branch not yet in 1.16.2
So maybe for these devices the original model name should be used in the domoticz-zigbee2mqtt-plugin?
Although it cannot hurt to add TS0505A as well
I am going to reconfigure these devices in z2m

The Z2M team has decided that all Lidl smart home products which exists of 3 different vendor names get vendor name Lidl. A number of devices are recognized as existing Tuya models, but are now available under their own model name:
https://github.com/Koenkk/zigbee2mqtt/issues/5164

If I can help, this is my db info for the GU10 no-RGB light

Is it normal that the colors are not nearly as bright as the white light?

For the ones who still haven't any success. I did.
Follow these steps:

Go to /domoticz/plugins/zigbee2mqtt/adapters/tuya folder
Edit the file named 'init.py' and change it to these content:
`from adapters.on_off_switch_adapter import OnOffSwitchAdapter
from adapters.generic.blind_adapter import BlindAdapter
from adapters.generic.plug import PlugAdapter
from adapters.generic.temp_hum_sensor import TemperatureHumiditySensorAdapter
from adapters.tuya.TS0002 import TS0002
from adapters.tuya.TS0012 import TS0012
from adapters.tuya.TS0013 import TS0013
from adapters.tuya.TS0015 import TS0015
from adapters.tuya.TS0041 import TS0041
from adapters.tuya.TS0601 import TS0601
from adapters.rgb_adapter import RGBAdapter

tuya_adapters = {
'TS0121': OnOffSwitchAdapter,               # TuYa 10A UK or 16A EU smart plug
'TS0121_plug': PlugAdapter,                 # TuYa 10A UK or 16A EU smart plug
'TS0121_switch': OnOffSwitchAdapter,        # TuYa Smart light switch module (1 gang)
'TS0201': TemperatureHumiditySensorAdapter, # TuYa Temperature & humidity sensor with display
'TS0002': TS0002,                           # TuYa 2 gang switch
'TS0011': OnOffSwitchAdapter,               # TuYa Smart light switch - 1 gang without neutral wire
'TS0012': TS0012,                           # TuYa Smart light switch - 2 gang without neutral wire
'TS0013': TS0013,                           # TuYa Smart light switch - 3 gang without neutral wire
'TS0015': TS0015,                           # TuYa Multiprise with 4 AC outlets and 2 USB super charging ports (10A or 16A)
'TS0041': TS0041,                           # TuYa Wireless switch with 1 button
'TS0601_curtain': BlindAdapter,             # TuYa Curtain motor
'TS0601_thermostat': TS0601,                # TuYa Radiator valve with thermostat
'mcdj3aq': BlindAdapter,                    # TuYa Tubular motor
'TS011F': OnOffSwitchAdapter,               # Silvercrest LIDL Tuya OnOffSwitchAdapter
'TS0505A': RGBAdapter,                      # Silvercrest LIDL Tuya RGB light
}
`
I've added the On Off switch adapter and RGB light.
3. Save the file
4. Restart Domoticz
Both devices can be used now.
Do not forget, when updating the plugin after this, the changes will be gone. I will also add a pull request for these changes.

Now the light feature should be properly supported by the latest plugin version. Please post here #548 in case of any issues

Now the light feature should be properly supported by the latest plugin version. Please post here #548 in case of any issues


LEARNER-2526: Single What's New messages file for both platforms

Description
LEARNER-2526
Please refer to Jira story for the changes implemented in this story.
Common whats new file 'app-localizable-whatsNew' pushed on transifex:
https://www.transifex.com/open-edx/edx-mobile-apps/app-localizable-whatsNew/

Codecov Report

Merging #1010 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #1010      +/-   ##
============================================
- Coverage     16.64%   16.61%   -0.03%
  Complexity     1023     1023
============================================
  Files           481      482       +1
  Lines         20629    20664      +35
  Branches       2369     2376       +7
============================================
  Hits           3434     3434
- Misses        16801    16836      +35
  Partials        394      394

Impacted Files
Coverage Δ
Complexity Δ

...ile/src/main/java/org/edx/mobile/util/Version.java
79.06% <0%> (-3.86%)
18 <0> (ø)

...rc/main/java/org/edx/mobile/whatsnew/WhatsNew.java
0% <0%> (ø)
0 <0> (?)

...in/java/org/edx/mobile/whatsnew/WhatsNewModel.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...java/org/edx/mobile/whatsnew/WhatsNewFragment.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...a/org/edx/mobile/services/VideoDownloadHelper.java
2.81% <0%> (+0.03%)
1% <0%> (ø)
: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 47c3512...b8a165b. Read the comment docs.

@miankhalid
have added test cases, please review them.

@miankhalid PR addressed.

@miankhalid final pass maybe

Have added unit tests for WhatsNewItemModel and WhatsNewUtil.filterAndroidItems()
Our major focus in this PR was to write Json structure validity test cases. Also Verdan recommended in todays PR to not invest much time in it as we shall move to server based whats new later on. So we can skip them for now.

@saeedbashir ready for second pass.

Can you add more tests in WhatsNewItemModelTest with different combinations of title, message, image, platforms and see WhatsNewItemModel is behaving as per expectations. Like if the title is null for a whatsNew item then that item should be ignored and same will goes with other fields.
But if you think, required change is beyond the scope of this story then you can create a new story for that.

Cases looks good, I have created a following story for that.
https://openedx.atlassian.net/browse/LEARNER-2805

@saeedbashir i have addressed the queries.


 But it missed to add to 2.1.0 documentation.
Changes
Cherry-pick the documentation changes to version 2.1.0

rerun java tests

rerun java8 tests


WIP - Updated androidx and accompanist libraries

Description
Testing same change as the other PR, but from the main repo. This will help us see where the permissions issue exists for dependency diff
Check list

[ ] I have updated CHANGELOG.md if required.
[ ] I have updated documentation if required.

It looks like the diff is too large. I might need to tweak it so that it only shows the first couple of dependencies, and also truncates it if it gets too large


TC.3.1 Otherwise the move will be blocked and an error-message should be displayed

637f09692773a0d4433d5b637a75dbb3ba2e40e4
This was worked on in a coprogramming/codeWithMe setting


Empty screen

Hi, when I compile the app (go to app's folder, >meteor shell, >electrify), it runs normally on the first time (app/.electrify/.dist/Electrified-linux-x64/Electrified) but when I close it and run again, I get a white empty screen... the window's title also changes to "Electron" instead of "electrify"... if I do >meteor shell >electrify again, the proccess repeats and I can see the app again (only for the first time running)

same for me but always. A simpler app worked fine, however, my larger project just shows an empty screen.

Thanks for reporting, I'm gonna check into it.

@miri-am Which OS are you running on?

I was using:
Meteor 1.2-rc.10
OS X 10.9.5

Me too. OS X 10.10.5
Here's what happens when I use ./Electron in the folder.
[51679:0904/164025:WARNING:dns_config_service_posix.cc(150)] dns_config has unhandled options!
app ready
{ _events:
   { blur: [Function],
     focus: [Function],
     'devtools-opened': [Function] },
  _eventsCount: 3 }
{ boot: [Function], shutdown: [Function] }
elecrify:  starting mongo
elecrify:  [mongo::log] 2015-09-04T16:40:26.267-0400 [initandlisten] MongoDB starting : pid=51682 port=11235 dbpath=/Users/afrazer/Code/health-pillbot/app/.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app/db 64-bit host=Alexanders-MacBook-Pro.local
2015-09-04T16:40:26.267-0400 [initandlisten] db version v2.6.7
2015-09-04T16:40:26.267-0400 [initandlisten] git version: nogitversion

elecrify:  [mongo::log] 2015-09-04T16:40:26.267-0400 [initandlisten] OpenSSL version: OpenSSL 1.0.2 22 Jan 2015
2015-09-04T16:40:26.267-0400 [initandlisten] build info: Darwin meteor.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
2015-09-04T16:40:26.267-0400 [initandlisten] allocator: tcmalloc
2015-09-04T16:40:26.268-0400 [initandlisten] options: { net: { bindIp: "<IP_ADDRESS>", port: 11235 }, storage: { dbPath: "/Users/afrazer/Code/health-pillbot/app/.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app/db", smallFiles: true } }
2015-09-04T16:40:26.268-0400 [initandlisten] journal dir=/Users/afrazer/Code/health-pillbot/app/.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app/db/journal

elecrify:  [mongo::log] 2015-09-04T16:40:26.269-0400 [initandlisten] recover : no journal files present, no recovery needed

elecrify:  [mongo::log] 2015-09-04T16:40:26.278-0400 [initandlisten] allocating new ns file /Users/afrazer/Code/health-pillbot/app/.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app/db/local.ns, filling with zeroes...

elecrify:  [mongo::log] 2015-09-04T16:40:26.309-0400 [FileAllocator] allocating new datafile /Users/afrazer/Code/health-pillbot/app/.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app/db/local.0, filling with zeroes...
2015-09-04T16:40:26.309-0400 [FileAllocator] creating directory /Users/afrazer/Code/health-pillbot/app/.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app/db/_tmp

elecrify:  [mongo::log] 2015-09-04T16:40:26.329-0400 [FileAllocator] done allocating datafile /Users/afrazer/Code/health-pillbot/app/.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app/db/local.0, size: 16MB,  took 0.019 secs

elecrify:  [mongo::log] 2015-09-04T16:40:26.344-0400 [initandlisten] build index on: local.startup_log properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.startup_log" }

elecrify:  [mongo::log] 2015-09-04T16:40:26.345-0400 [initandlisten] 	 added index to empty collection

elecrify:  [mongo::log] 2015-09-04T16:40:26.345-0400 [initandlisten] waiting for connections on port 11235

elecrify:  mongo started
elecrify:  starting meteor { MONGO_URL: 'mongodb://localhost:11235/meteor',
  PORT: 11236,
  ROOT_URL: 'http://localhost' }

@AlexFrazer Yes, the meteor's startup process gets frozen, however no errors are raised. I'm gonna look into it this weekend.

Are you guys still having this problem? I cannot reproduce it anymore on my side, in any OS.
However I suspect I found something that might be causing blank screen, I'll release a patch so we can see how it goes.

Please update to last version:
meteor remove arboleya:electrify && meteor add arboleya:electrify

@shactdeveloper @AlexFrazer Can you guys please tell me if it's working fine now?
@miri-am Can you tell me if your larger project works fine now? I cannot see any relation between the project size and this blank-screen thing.

Still getting the same result, both using the meteor package and NPM. I am at release 1.1.2 on both.

@AlexFrazer This is very weird, besides I can't reproduce it anymore. What is your version of Meteor?
In case you want to dig deeper, I suggest you to:

Compile the app
Add and move a console.log line from up to bottom, at the file:

.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app/app/programs/server/boot.js

After each line move, open your app via Electron:

.electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/MacOS/Electron

This way, when the console.log stops appearing in the terminal, you'll get the exact point of the Meteor's boot process has stopped.
This can give us some idea.

@AlexFrazer One question, you did the upgrade on a existent project, or a new one?
Like meteor create --example leaderboard or something.

Confirmed that it does work on the leaderboard example, no problem there. I am trying it on my existing project.
elecrify:  [meteor::log] It is working at line 20
elecrify:  [meteor::log] It is working at line 29
elecrify:  [meteor::log] It is working at line 38
elecrify:  [meteor::log] It is working at line 72
It is working at line 80
elecrify:  [meteor::log] It is working at line 96
It is working at line 124

Seems to come from the fiber function therefore
elecrify:  [meteor::log] In fiber function (line 128)
In fiber function (line 172): What is NPM?
{ require: [Function] }
elecrify:  [meteor::log] In fiber function (line 208, after getAsset). Is getAsset working?
[Function]
elecrify:  [meteor::log] In fiber function (line 128)
In fiber function (line 172): What is NPM?
elecrify:  [meteor::log] { require: [Function] }
In fiber function (line 208, after getAsset). Is getAsset working?

It never does get outside of the _.each however, so I think that's where the infinite loop comes from

@AlexFrazer I don't think the net package have nothing to do with it, unless the error came from an net exception that however get lost and not shown. Like, for instance, trying opening a socket connection with a port that's already in use (with was exactly my last patch).
Anyway, I could not test the insightfil:galil because without one of these controllers it raises an error Host or port not specified and the process always exits with this error.
But lets move on in two steps:
1 - electrify version
One thing came to mind: Your Electron app may be not running the electrify package at version 1.1.2, even if you updated the Meteor package and you global/local NPM module to 1.1.2. Weird? Yes, I'll have to resolve this design.
But lets move on and re-check its version and force-update things if necessary. The 1.1.2 is is required for this.
Please:

Check the electrify version inside the .electrify/packages.json file
If it's older, update it to 1.1.2
Remove the .electrify/node_modules folder
Run cd .electrify/node_modules && npm install
Try packaging and running your app again

If it does not work, move to part #2.
2 - isolating electrify
Looking forward, one way of isolating the problem is by removing the electrify package from the equation.
Your Meteor app should work 100% without it, so let's double check it:
Please remove the .electrify/node_modules folder and package the app again, then open two terminal tabs and run the lines.
After mongodb and meteor is up, try accessing the app at http://localhost:3000.
With a little bit of luck, we're gonna trace the evil code spot.
Terminal 1
# enter app foder inside the packaged electron
cd .electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app

# start mongodb as Electrify does (port number may vary)
mkdir -p db && ./bin/mongod --dbpath ./db --port 3001 --bind_ip <IP_ADDRESS> --smallfiles

Terminal 2
# enter app foder inside the packaged electron
cd .electrify/.dist/Electrified-darwin-x64/Electrified.app/Contents/Resources/app

# start meteor
MONGO_URL=mongodb://localhost:3001/meteor PORT=3000 ROOT_URL=http://localhost ELECTRON_PRODUCTION=true ./bin/node ./app/main.js

@AlexFrazer Just saw you've edited your last post with more info about settings, I'm gonna look into it.
In your case, as I see it, you don't need the server running locally right? You're looking for just the client code connecting to a remote server, right?
Those remote settings could be used at build time also, to build the client side only, so you wouldn't have to alter your connection settings manually. Makes sense?

@AlexFrazer However, I've release 1.1.3 with a little fix regarding updates.

I do use a server locally, as well as a remote server (it's a pretty odd system, involves some TCP sockets to control a robot and a remote database for orders). Yeah I edited it a lot of times as I was going haha, I can get it compiled and running on both windows 8.1 and OS X now. Would be nice to have flags to add to the meteor build process, especially --settings for particular deployments

@AlexFrazer Can't believe man! haha
Now everything makes sense.

Electrify wasn't handling the settings

So the default was always Meteor.settings = {}

Your app was always crashing when trying to read Meteor.settings.public.remote

Since property public was null - Cannot read property 'public' of undefined

This error should have been raised and instead it went silently (gotta check that!), which made it much hard to find this bug. Appreciate all the help man. Great job!
Did some last minute improvements today, and --settings is now properly handled. Pls update again.
Let me know if it worked.
:beers:

@arboleya. Thanks for solving this! Works for me now :)

I'm still getting the problem of empty screen whenever I run the app for the second time =( using electrify 1.2.1

@shactdeveloper You're on linux right? Ubuntu? I'll do some further research through it.

@shactdeveloper I cannot reproduce this blank screen anymore, no matter what. Perhaps it was already fixed?
I need more information to keep digging it, if you could put a repo with instructions for me to reproduce the error, it could be a start.
I've already tested it with a simple leaderboard example:
meteor create --example leaderboard
cd leaderboard && meteor add arboleya:electrify && meteor

Then I've packaged the App
cd leaderboard
meteor shell
electrify

And was able to open/close it indefinitely..

Hello @shactdeveloper @AlexFrazer @miri-am
I've just released a complete revamp version of the project, now it has tests and I'm confident it's way more stable than before.
Can you please update and report back if you still are facing the problem you've mentioned?
Some notes on upgrading:
https://github.com/arboleya/electrify#upgrading
Thanks in advance.

Perfect timing; I am currently building it for windows, mac, and ubuntu, I'll let you know

Great.

@AlexFrazer Forgot to mention, there are some little breaking changes about packaging the app with the last release.
Check it out
https://github.com/arboleya/electrify/#packaging

@AlexFrazer There was a little problem on Windows that prevented the app from running after being packaged, fixed in last release.

Hello everybody, any news about this issue?
I guess it's working, can someone confirm if the bug was fixed?

I didn't have the initial issue, but tested just now with my app and it seems to be working, was able to load multiple times with no blank screen.
Nice update @arboleya !

This issue is inactive for more than 1 month now and I believe it is resolved, so I'm closing.
In case anyone faces this again, please open a new issue.


Incorrect reques.body content

event_info['body'] contains parsed structure for request with 'application/json' content type.
In such case we should serialize it back to JSON, not just convert into a string.

Coverage increased (+0.02%) to 96.552% when pulling 23bad7e0c7e55a55a924158b0a6fd7c49479b576 on mialinx:master into a62a1cc48548a8da1ae394d96af74538987486cf on Miserlou:master.

Ah, good. I think this is correct.

Pushed into 0.17.2 - good timing!


Max watchers supported by etcd2

The documentation is not there on the max number of watchers for etcd2 or how this is related to memory or the infrastructure or a relation between the number of keys and number of watchers.
I'm trying a solution for which I'll need a high number of keys and a watcher for each key. (Say a milliion)

Probably you need to test this out yourselves at the moment for v2. If you need 1m watchers on same key, you have to wait for our proxy for v3. broadcasting one million requests pre write will slow down or probably kill etcd cluster for sure.

here is some memory data on v3: https://github.com/coreos/etcd/blob/master/Documentation/benchmarks/etcd-3-watch-memory-benchmark.md

Thanks, v3 looks really amazing, but for v3 to be production ready with supported language implementations to talk to etcd, it will be a few months. I guess the solution I'm looking at has to wait till v3.
My use case is  1-to-1, I mean 1m watchers for 1m keys. Is it worth to try it out or etcd team is sure that v2 cannot support and I should wait for v3.

@raoofm What language are you expecting?

My use case is 1-to-1, I mean 1m watchers for 1m keys. Is it worth to try it out or etcd team is sure that v2 cannot support and I should wait for v3.

I am not sure. The only probably is memory I guess. You'd better give it a try.

@raoofm What language are you expecting?

java

I am not sure. The only probably is memory I guess. You'd better give it a try.

Ok, thanks though

fyi https://github.com/coreos/etcd/pull/5064

@raoofm Actually, do you have any interest working on the java binding for etcd3?

Yes

we use a v2 cluster with 5 machines, running for an year now, in house java client here in prod (we didn't knew Adohe and boon had v2 solutions as well :smile: ), but I can work towards v3.

you can close this thread. If I test a million wathchers and keys then I'll find this thread and update.

@raoofm Can you create a java client issue for v3? Then we can start to track that? I know there are other people that are interested in helping us with java client.

fyi https://github.com/coreos/etcd/issues/5067

@raoofm

we use a v2 cluster with 5 machines, running for an year now, i

Is is possible to add your case to this doc? https://github.com/coreos/etcd/blob/master/Documentation/production-users.md

@raoofm Any update?

Is is possible to add your case to this doc?

Added the use case https://github.com/coreos/etcd/pull/5226

@raoofm Any update?

@xiang90 Are you looking for the update on adding the useCase or java client or testing million watchers on v2?

ah. This: testing million watchers on v2.

We are still reviewing our considerations as we have both zookeeper and etcd in prod. We are already using kafka with zookeeper and are open to use hazelcast (which supports clustering, maps/queues with ttl and watch)
So instead of having >million watchers in etcdV2 which we are not sure of, we can use kafka with custom ttl logic which is proven to support millions of messages, or hazelcast, or mongo collections with ttl and listeners.
This is a future solution and I got dragged into something else, so didn't test this out with v2 but I've this on my todo list. I'll test it out at some point for sure. In case you wanna close this request feel free, I'll find it and update when i have results.

Thanks! I will close this for now. We will provide more information for etcd3 on watching side.


Confiscation: TypeError: Cannot read property 'owner' of undefined

https://sentry.io/throneteki/throneteki/issues/241341857/
TypeError: Cannot read property 'owner' of undefined
  File "/home/stu/throneteki/server/game/cards/plots/01/confiscation.js", line 12, in CardForcedInterrupt.handler
    attachment.owner.discardCard(attachment);
  File "/home/stu/throneteki/server/game/forcedtriggeredability.js", line 34, in CardForcedInterrupt.executeHandler
    if(this.handler(context) !== false && this.limit) {
  File "/home/stu/throneteki/server/game/gamesteps/abilityresolver.js", line 102, in AbilityResolver.executeHandler
    this.ability.executeHandler(this.context);
  File "/home/stu/throneteki/server/game/gamesteps/abilityresolver.js", line 20, in SimpleStep.AbilityResolver.pipeline.initialise.SimpleStep [as continueFunc]
    new SimpleStep(game, () => this.executeHandler())
  File "/home/stu/throneteki/server/game/gamesteps/simplestep.js", line 10, in SimpleStep.continue
    return this.continueFunc();
...
(17 additional frame(s) were not displayed)

TypeError: Cannot read property 'owner' of undefined

@ystros context.target was undefined in the handler for confiscation - do you know of cases where/why this might happen?

@cryogen I suspect it's similar to cases we've seen where a select card prompt resulted in a player selecting something that's not a card, but I've never been able to reproduce those cases.
It definitely isn't the case when the player clicks 'Done' without selecting an attachment. That cancels the resolution of Confiscation as expected / intended.

https://sentry.io/throneteki/throneteki/issues/260952297/

Fixed in 805909f8fcc0057c79bae956e8b12b722bb87f07


ctlptl: 0.8.22 -> 0.8.24

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/ctlptl/versions.
meta.description for ctlptl is: CLI for declaratively setting up local Kubernetes clusters
meta.homepage for ctlptl is: https://github.com/tilt-dev/ctlptl
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.8.24 with grep in /nix/store/i5a6cwpimyryyv1d8km7kkd128j0a4w1-ctlptl-0.8.24
found 0.8.24 in filename of file in /nix/store/i5a6cwpimyryyv1d8km7kkd128j0a4w1-ctlptl-0.8.24

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
ctlptl

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/658a6a9b9119206fd4c1a0d4db7b3e67d09cf024#ctlptl

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

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

1 package built:

ctlptl

Maintainer pings
cc @svrana for testing.

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

1 package built:

ctlptl

Ready to merge. Sanity test that it could create/destroy a kind cluster passed.


COCOA-cls dataset annotations

Hi, according to the link given by the author, the number of images in the training set in the COCOA-cls annotation I obtained is 2276, not 2476 as described in your paper? Which one is accurate? I am looking forward to get a reply from the author.

Hi, thank you for your interest in our work.
you're right, it should be 2276 as in the download link we provided in the readme.
actually, we follow this work (arxiv.org/pdf/2012.05598.pdf) to describe our dataset, and this work (https://github.com/YihongSun/Bayesian-Amodal) to download the dataset. and since the different is small, I did not recognize.
you could confirm with the author of the dataset<EMAIL_ADDRESS>for the confirmation.


index import blocking build for xcode 14

Trying to build our app from generated xcodeproj in Xcode 14 beta and saw that the index-import script is blocking at the end of build. It seems like the script is not running in background anymore (Could be a new change in Xcode 14)

Interesting, is background sub processes broken for you altogether in a post action? It seems like a FB/bug if Xcode waits for background jobs, but maybe intentional!
Also there’s an active issue to consider removing index-import, worst case we can background with another mechanism as a gap or just disable it as a stop gap..

I think this seems to be fixed with later Xcode 14 beta. It works for me with Xcode 14 beta 5

Cool @nanwng I'll close it for now, feel free to open a new issue if anything similar comes up!


Allow to pass schema to the JSONWebTokenTestCase

Right now we need to have GRAPHENE.SCHEMA defined to run the tests, could we be allowed to pass the schema to the client too?

Hi @martini97,
you can call the schema method and overwrite the default value GRAPHENE.SCHEMA.
from graphql_jwt.testcases import JSONWebTokenTestCase

class MySchemaTests(JSONWebTokenTestCase):

    class Query:
        ...

    def setUp(self):
        self.client.schema(query=self.Query)


[ink] Add chain extension section

As the chain extension feature has been implemented and proved to work well, maybe we could add a section on introducing how to use it?
ref: https://github.com/paritytech/ink/pull/645

https://ink.substrate.io/macros-attributes/chain-extension
https://paritytech.github.io/ink/ink_lang/attr.chain_extension.html#example-definition
https://decoded.polkadot.network/agenda/?date=2022-06-29&location=online&presentation=enable-http-requests-in-ink&tz=online