bug: cannot build Rust UDF

On current main (ef8c50f5f56c04374cda3c8b8204afc10ee6a88f), Rust UDF cannot be built.
dev=> CREATE FUNCTION sum_array(integer[]) RETURNS integer LANGUAGE rust AS $$
    fn sum_array(xs: &[i32]) -> i32 {
        xs.iter().sum()
    }
$$;

ERROR:  Failed to run the query

Caused by these errors (recent errors listed first):
  1: failed to build rust function
  2: failed to build wasm (exit status: 101)
--- stdout

--- stderr
    Updating crates.io index
     Locking 3 packages to latest compatible versions
      Adding arrow-udf v0.3.0 (latest: v0.4.0)
      Adding arrow-udf-macros v0.3.0 (latest: v0.4.0)
      Adding lazy_static v1.5.0
   Compiling arrow-array v52.2.0
warning: the `wasm32-wasi` target is being renamed to `wasm32-wasip1` and the `wasm32-wasi` target will be removed from nightly in October 2024 and removed from stable Rust in January 2025

   Compiling arrow-select v52.2.0
   Compiling arrow-arith v52.2.0
   Compiling arrow-cast v52.2.0
warning: `arrow-array` (lib) generated 1 warning
   Compiling arrow-ipc v52.2.0
   Compiling arrow-udf v0.3.0
warning: `arrow-udf` (lib) generated 1 warning (1 duplicate)
warning: `arrow-select` (lib) generated 1 warning (1 duplicate)
warning: `arrow-ipc` (lib) generated 1 warning (1 duplicate)
warning: `arrow-arith` (lib) generated 1 warning (1 duplicate)
warning: `arrow-cast` (lib) generated 1 warning (1 duplicate)
   Compiling udf v0.1.0 (/private/var/folders/7r/p0w75cw53gj176x6_sxj7r8m0000gn/T/risingwave-rust-udf)
error[E0599]: no method named `as_primitive` found for struct `Arc<dyn arrow_array::array::Array>` in the current scope
   --> src/lib.rs:2:1
    |
2   | #[function("sum_array(int32[])->int32")]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: /Users/richard/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-array-52.2.0/src/cast.rs:750:8
    |
750 |     fn as_primitive<T: ArrowPrimitiveType>(&self) -> &PrimitiveArray<T> {
    |        ------------ the method is available for `Arc<dyn arrow_array::array::Array>` here
    |
    = help: items from traits can only be used if the trait is in scope
    = note: this error originates in the attribute macro `function` (in Nightly builds, run with -Z macro-backtrace for more info)
help: trait `AsArray` which provides `as_primitive` is implemented but not in scope; perhaps you want to import it
    |
1   + use arrow_udf::codegen::arrow_array::cast::AsArray;
    |
help: there is a method `as_primitive_opt` with a similar name
    |
2   | as_primitive_opt
    |

warning: unused import: `types`
 --> src/lib.rs:1:27
  |
1 | use arrow_udf::{function, types::*};
  |                           ^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

For more information about this error, try `rustc --explain E0599`.
warning: `udf` (lib) generated 2 warnings (1 duplicate)
error: could not compile `udf` (lib) due to 1 previous error; 2 warnings emitted

This is possibly because of upgrading arrow-udf in some previous PR.

Don't we have any end-to-end tests covering such usage? 🥵

Don't we have any end-to-end tests covering such minimal usage? 🥵

Interesting... We do have e2e tests for embedded UDFs: https://github.com/risingwavelabs/risingwave/blob/b01906ec6fe3fe0d962cd02196c2c9c25583c13b/ci/scripts/run-e2e-test.sh#L129-L134. Not sure why they didn't fail.

Don't we have any end-to-end tests covering such minimal usage? 🥵

This only fails when there's array type in function arguments.


x/vgo: Include package versions in the built binary

Currently Go binaries only include the Go runtime version that was used at build time. The Go runtime version is accessible through the binary via the runtime.buildVersion symbol or at runtime via runtime.Version(). This information is often used to identify binaries that were built with an outdated or insecure Go runtime.
Could something similar be done for all the packages and their respective versions that go into a Go binary during 'vgo build'?

Just read that this is already planned. Thanks for considering it. :-)
Source: https://research.swtch.com/vgo-repro


[WIP] Launch fuzzers from docker containers

Summary of the Pull Request
closes #369

Codecov Report

Merging #3039 (6c378b2) into main (dc7d5ec) will increase coverage by 4.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3039      +/-   ##
==========================================
+ Coverage   29.06%   33.22%   +4.15%
==========================================
  Files         304      149     -155
  Lines       36361    17221   -19140
==========================================
- Hits        10570     5721    -4849
+ Misses      25791    11500   -14291

see 192 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Array properties with array items listed in enums does not validate properly

For example if we have array property:
{"data": ["a", "b"]}

And validation like:
{
    "type": "object",
    "properties": {
        "data": {
            "type": "array",
            "items": {
                "type": "string",
                "enum": ["b", "c"]
            }
        }
    }
}

Validation wrongly finished with success.
I will provide PR with test for that particular case.

Thanks - good catch! That should definitely not be passing validation.


Log warning: Constant ENERGY_KILO_WATT_HOUR will be depreciated

Hi. I just saw a warning messing in the logs that the constant ENERGY_KILO_WATT_HOUR needs to be updated some time this year. As I did not see a GitHub issue so far, I thought I'd let you now about this.
Thanks for taking care and have a nice week

name: homeassistant.const level: WARNING message: >- ENERGY_KILO_WATT_HOUR was used from chint_pm, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please report it to the author of the 'chint_pm' custom integration

Fixed in branch 0.0.5


VEGA-1961 use Chi URL param on payments route

Created new payments route which uses chi URL param. The route goes to the same page and behaves the same as the existing /payments?id={id} route.
VEGA-1961 #patch
Checklist
- [ ] I have updated the end-to-end tests to work with my changes
- [ ] I have added styling for Dark Mode
- [ ] I have checked that my UI changes meet accessibility standards

Codecov Report
Patch coverage: 72.72% and project coverage change: -0.02% :warning:

Comparison is base (a7dc562) 72.76% compared to head (5b62c73) 72.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #370      +/-   ##
==========================================
- Coverage   72.76%   72.74%   -0.02%
==========================================
  Files          96       96
  Lines        3701     3710       +9
==========================================
+ Hits         2693     2699       +6
- Misses        724      725       +1
- Partials      284      286       +2

Files Changed
Coverage Δ

internal/server/get_payments.go
92.50% <66.66%> (-3.34%)
:arrow_down:

internal/server/server.go
82.11% <100.00%> (+0.11%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Improve the out of the box experience a bit

Based on some feedback I spotted for users installing the project for the first time

Redirect user to settings if nothing has been configured yet
Show some alerts that no music and/or player provider has been set-up
Fix for showing the player name on the very first install run

@OzGav FYI


[QA] Testing - remove  node14, add node 20

Remove node 14 from testing and add node 20

Already done


Fix #2132, remove use of _C.set_grad_enable. Line endings were messed up too

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Support creating default namespace using the CRD

When we spin up a temporal cluster, we have to create namespaces using tctl or with custom code using the SDK.
It can be a great feature if the operator can create them.
For instance:
apiVersion: apps.alexandrevilain.dev/v1alpha1
kind: TemporalCluster
metadata:
  name: prod
  namespace: demo
spec:
  version: 1.17.0
  numHistoryShards: 1
  [...]
  namespaces:
    - default
    - accounting

The CRD has te be a little more complex has we need to provide (at least) the retention policy for the namespace.

How about dedicated CRD for namespaces?

@h7kanna Thanks for this idea! This seems to be a great idea!
You're right this has nothing to do in the cluster CRD.
I'm currently working on it in #81, I'll try your idea and see what it renders.

I do have an operator, it is different features and Specs. But have a Namespace CRD I can contribute if you like

Thanks! As I'm currenly working on it in #81 maybe you can help by reviewing once ready for review ?
Don't hesitate to create an issue or a PR if you find any missing feature :)

I do have an operator, it has different features and Specs. But have a Namespace CRD I can contribute if you like

You have another Temporal Operator ? A private one ?

Yes

That would be awesome if we can discuss about the differences between yours and this one :)

Your work is full featured. I am actually looking to you this operator.
I also started rewriting the one I had in Rust. Focusing more on workers and workflows

Thanks for your feedback 🙂
Don't hesitate to fill issue if you find any bug or missing feature!
Have fun rewriting your operator in Rust 😉


Argument 1 passed to GuzzleHttp\Client::__construct() must be of the type array, null given,

Hi, then i try to protect a resource with midleware 'auth' i get this ugly error:
Argument 1 passed to GuzzleHttp\Client::__construct() must be of the type array, null given, called in C:\wamp\www\advoca\vendor\furdarius\oidconnect-laravel\src\ServiceProvider.php on line 68
I have folowed all intructions. I use laravel 5.6 any ideas?

found problem it happens because opidconnect.php shall be located in app/config folder of application not in furdarius folder.

Good one. Might be very helpfull put It into readme.

i can't understand how to redirect user to provider for authentication. I have client id aand client secret.

do you have any idea?

There is a route file  in the opidconnect... It's the /protect who does the magic. After all tests done, you can change it in the laravel route file (routes.php or web.php depending on the version). The opidconnect been set Whit your provider address, secret, your client id and the URI to return, it should give back to you the $request var fullfiled in the token Class (can't remember right now the class name).

yes Thankyou. ) I found that. Now I need to specify somewhere atributes and state. I try to debug where is fylled default ones but can't find.  Do yoyu now how to do that?

If you're talking about attributes from the authenticated user... It's up to the provider... You should see it whith a dd($request) in the handle() function in tokenmiddleware.php. As far as I know, it's where the token from provider is parsed to all the attributes permitted from provider.

I guess the order is up to provider too, since all the information is coded in token, and it's a middleware that parse it.

request uri is build by Socialite laravel and I found out that is abstract  createUrl method which build uri and as parameters its get an array of provided elements. I will try to manipulate with order of elements in that array and will see what I will get. Will come with more details after then I will test this.

Great! I couldn't adapt this to my project. We end up using socialite custom drives to make it through.

Order does not matter! problem was that I not specified one parameter namely signicat.national_id. after adding this additional parameter everything worked). See what next errors will get).

Actually this package is build smart problem is that's uses a loooot of external libraries and classes where is wery easy to loose your self. But with patience and XDebug is possible to find out how its works


autotype panics with non-string column

Calling autotype on a spreadsheet with non-string columns panics:
$ rye -do 'spreadsheet { "name" "value" } [ "Joe" 523343434.0000 ] |autotype 0.95'
panic: interface conversion: interface {} is env.Decimal, not env.String

goroutine 1 [running]:
github.com/refaktor/rye/evaldo.AutoType(0x0?, 0xc000275598, 0x3fee666666666666)
        /home/cwarden/git/rye/evaldo/builtins_spreadsheet.go:1137 +0x805
github.com/refaktor/rye/evaldo.init.func390(0x0?, {0x95c5b0?, 0xc0002e1c80?}, {0x95c6a0?, 0xc0000144b8?}, {0x0?, 0x0?}, {0x0?, 0x0?}, {0x0, ...})
        /home/cwarden/git/rye/evaldo/builtins_spreadsheet.go:710 +0xb4
github.com/refaktor/rye/evaldo.CallBuiltin({0x8dbcc8, 0x2, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, ...}, ...)
        /home/cwarden/git/rye/evaldo/evaldo.go:1011 +0xcc3
github.com/refaktor/rye/evaldo.EvalObject(0xc0000bb790, {0x95cb50, 0xc000255700}, {0x95c5b0, 0xc0002e1c80}, 0x0, 0x0, 0x0, {0x0, 0x0})
        /home/cwarden/git/rye/evaldo/evaldo.go:531 +0x190
github.com/refaktor/rye/evaldo.EvalWord(0xc0000bb790, {0x95c510, 0xc0000144d0}, {0x95c5b0, 0xc0002e1c80}, 0x0, 0x0)
        /home/cwarden/git/rye/evaldo/evaldo.go:476 +0x3a6
github.com/refaktor/rye/evaldo.MaybeEvalOpwordOnRight({0x95cd80?, 0xc0000144c0?}, 0xc0000bb790, 0x0)
        /home/cwarden/git/rye/evaldo/evaldo.go:285 +0x605
github.com/refaktor/rye/evaldo.EvalExpressionInj(0xc0000bb790?, {0x0?, 0x0?}, 0x0)
        /home/cwarden/git/rye/evaldo/evaldo.go:196 +0xb2
github.com/refaktor/rye/evaldo.EvalBlockInj(0xc000038140?, {0x0, 0x0}, 0x90?)
        /home/cwarden/git/rye/evaldo/evaldo.go:81 +0x4f
github.com/refaktor/rye/evaldo.EvalBlock(...)
        /home/cwarden/git/rye/evaldo/evaldo.go:49
github.com/refaktor/rye/runner.main_rye_file({0x0, 0x0}, 0x0, 0x1, 0x0, {0x7ffce14e4952, 0x46}, 0x8daf30)
        /home/cwarden/git/rye/runner/runner.go:388 +0x54e
github.com/refaktor/rye/runner.DoMain(0x8daf30)
        /home/cwarden/git/rye/runner/runner.go:112 +0x2b5
main.main()
        /home/cwarden/git/rye/main.go:36 +0x1a

Thank you for finding this. Autotype was used to get types to spreasheet that was loaded from csv, where all columns were text (before autotype). But you are correct, it should work sensibly also in other cases (and never panic). It's fixed in https://github.com/refaktor/rye/pull/291
Thanks!


SERVER_NAME still implicitly changes routing behavior

Just like this old issue said, routing behavior changed even when subdomain_matching defaults to false, so take this repository as example, if you comment following lines,
@app.before_request
def start():
    """
    init globals and set the schema search path for the current request.
    """
    g.user = session.get('user', None)
    current_url = urlparse(request.url)
    subdomain = current_url.hostname.split('.')

    if subdomain.__len__() > 2:
        """
        redirect to home page
        """
        if current_url.path == "/":
            return redirect(url_for('index'))
        pass
    pass

then requests to user1.flask-subdomain.com won't route to index, default 404 as response. Or am I missing something, as a result have misunderstood it. Thanks very much.
@app.route('/')
def index():
    return render_template('index.html')

Environment

Python version: 3.6
Flask version: 1.1.1
Werkzeug version: 0.16.0

Hi can i take up this issue ?

I'm sorry, it looks like you're asking about code in another repository. As far as I can tell SERVER_NAME works as intended at this point.

#5634 in Flask 3.1 will further address this. SERVER_NAME no longer affects routing except to determine subdomains if subdomain_matching is enabled.


fix links to other patterns

before, the links pointed to a 404

btw, this issue seems to arise on multiple pages, this only fixes one


sbatch: error: Memory specification can not be satisfied. Found 1 host with 8 cores and 0 GB memory under Slurm control.

Environment:

AWS ParallelCluster / CfnCluster version [e.g. aws-parallelcluster-2.5.0]
OS: [ ubuntu1804]
Scheduler: [e.g. slurm 19.05.3-2]
Master instance type: [e.g. md5.2xlarge]
Compute instance type: [e.g. md5.2xlarge]

Hi
I tried modifying slurm.conf and added SelectType=select/cons_res
SelectTypeParameters=CR_CPU_Memory DefMemPerCPU=3000 but the same error persists either from the command line or script file.
from the script: sbatch: error: Memory specification can not be satisfied
sbatch: error: Batch job submission failed: Requested node configuration is not available
from the command line: Found   1 host with 8 cores and    0 GB memory under Slurm control.
$scontrol show partition
PartitionName=compute
AllowGroups=ALL AllowAccounts=ALL AllowQos=ALL
AllocNodes=ALL Default=YES QoS=N/A
DefaultTime=NONE DisableRootJobs=NO ExclusiveUser=NO GraceTime=0 Hidden=NO
MaxNodes=UNLIMITED MaxTime=UNLIMITED MinNodes=0 LLN=NO MaxCPUsPerNode=UNLIMITED
Nodes=dummy-compute[1-19],ip-172-31-83-72
PriorityJobFactor=1 PriorityTier=1 RootOnly=NO ReqResv=NO OverSubscribe=NO
OverTimeLimit=NONE PreemptMode=OFF
State=UP TotalCPUs=160 TotalNodes=20 SelectTypeParameters=NONE
JobDefaults=(null)
DefMemPerNode=UNLIMITED MaxMemPerNode=UNLIMITED
parallel cluster configuration file: pcluster_config.txt
slurm configuration file: slurm.conf.txt
slurm controller log: slurmctld.log
I am new to parallel cluster and slurm, any suggestion and help very much appreciated. if any other log or details required in order to understand the issue, I will provide.
pcluster_config.txt
slurm.conf.txt
slurmctld.log
thanks

Hi,
ParallelCluster is currently not configured to support scheduling with memory options with slurm.
With that said, here is how we could setup slurm manually to use memory options:

Since you are using ParallelCluster 2.5.0 with slurm 19.05, there is no need to change SelectType from select/cons_tres to select/cons_res.
Determine the RealMemory available in the compute instance. We can get this by logging into the compute and running /opt/slurm/sbin/slurmd -C, we should see something like RealMemory=491805.
Edit /opt/slurm/etc/slurm.conf and add NodeName=DEFAULT RealMemory=[RealMemory for compute nodes] BEFORE include slurm_parallelcluster_nodes.conf. Note that ideally we should just use the RealMemory we got from /opt/slurm/sbin/slurmd -C, but RealMemory might be different even for different instances of the same instance type. I would round down RealMemory slightly just to avoid any potential error when the cluster is scaling and launching new instances.
Restart slurmd on compute nodes and slurmctld on master node, and we should see that memory is configured in scontrol show nodes

Hope that helps! I will mark this issue as an enhancement. Thanks!

Hi, rexcsn
thank you so much for your help. I tried your suggestion and follow the steps you recommend and it's working now. issue fixed!
thanks

I am having this same issue, could you be more specific about how to login to the compute node? Are you changing the slurm.conf file in the master node or in each compute node?

I have been following the instructions in this thread successfully for the past month or so. To answer your specific questions:

Login to the compute node using "srun --pty bash". There is no mem specification, so this should give you an interactive session on the compute node.
slurm.conf is on the master node. I believe "/opt/slurm" is NFS mounted on the compute nodes, so the changes are visible there.

@gmoneyomics I don't know how I missed this thread. Thanks @rakarnik for providing the help!
Suggestion to use srun --pty bash to interact with compute node is super fancy!
I was just referring to something like running sinfo to get a compute node hostname and doing ssh ip-xx-xx-xxx to ssh into the compute and run /opt/slurm/sbin/slurmd -C, but either way works.
Yes /opt/slurm is exported from Master to Compute, so you can edit slurm.conf from any node, just make sure to do it as root.

Is there a way to implement this workaround as a custom bootstrap action?

Took me a long time to figure out but if you overestimate the RealMemory you will set the partition into drain with the error -
See /var/log/slurmctld.log
[2020-08-13T10:20:03.698] error: Node ip-10-2-1-120 has low real_memory size (63622 < 64000)
[2020-08-13T10:20:03.698] error: Setting node ip-10-2-1-120 state to DRAIN
[2020-08-13T10:20:03.698] drain_nodes: node ip-10-2-1-120 state set to DRAIN

Which then needs to be brought back up manually with:
sudo /opt/slurm/bin/scontrol update node=ip-10-2-1-218 state=RESUME

I think this can be brought into a post-install with:
#!/bin/bash

. "/etc/parallelcluster/cfnconfig"

# Security updates
yum update -y

case "${cfn_node_type}" in
    MasterServer)
        # Update slurm conf to expect memory capacity of ComputeFleet based on input
        # Should be 64 Gbs of real memory for a m5.4xlarge partition
        # However we lose around 800mb on average with overhead.


As a user, I want to be able to add CW's to the title of the thread I'm in

This is the narrowest functionality I can think of. I think it's best to not allow "complete title changes" in general because although most users are well-behaved, we don't necessarily want to dangle them a carrot.

Because we need threading functionality in discord.py, this issue will be put on hold #29


How can I change the button text ?

Instead of "Paypal" in would like to show Pay here or just "Pay"
Regards

Try this page here, scroll down and check all the styles.
The closest you will get with an unbranded button is to add this in your data() object:
buttonStyle: {
label: 'buynow',
size: 'large',
shape: 'rect',
color: 'gold'
},
Then this in your button:

I don't think Paypal will let you add anything else is not in the page I gave you. Unless someone else has a solution for it.
Hope this helps.

Thanks @FreddyCrugger
I changed the locale param and the text it's not bad at all.
Regards

Great it worked out!


unzip: fix 404'd patch url

Description of changes
Fixes dead link to a patch from #181574
This is only needed on master
Debian links always end up dead, FYI @shyim @Mindavi @trofi @SuperSandro2000
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Or maybe https://sources.debian.org/data/main/u/unzip/6.0-26%2Bdeb11u1/debian/patches/06-initialize-the-symlink-flag.patch?

Sure


ion-tabs lifecycle events not fire.

Ionic  3.9.2
Imagine that we have got 2 tabs inside ion-tabs
When you enter to one view with ion-tabs. First time events like ionViewWillEnter works fine but... when you navigate to "next" page (doing for example--> this.navCtrl.push('myNextRoute') ) and later go back to the ion-tabs view, the event ionViewWillEnter (for example) not fire in the selected tab.
If you switch between tabs, event will fire.
Only happen when go to next view and back.
One real example is if you come from next view to previous view and need to call one function to reload some data, you cannot do it automatically because event not fire.

Hello! Thank you for opening an issue with us! Would you be able to provide a sample application via GitHub that demonstrates the issue you are having? Thanks for using Ionic!


Question: how to import types from Urigo/graphql-scalars?

Hi,
I'm using types defined in graphql-scalars in my schema. For example, my schema has:
type User {
  id: ID!
  name: String!
  email: EmailAddress!
  verified: Boolean!
  type: UserType!
  userData: UserData
}

where EmailAddress is defined by graphql-scalars.  I've spent a lot of time trying to import the types, and it would be awesome if someone were able to help.
Right now it always fails with:
 Failed to load schema from src/schema.graphql:

        Type "EmailAddress" not found in document.
        Error: Type "EmailAddress" not found in document.

Here's my codegen.yml:
overwrite: true
schema: "src/schema.graphql"
documents: null
generates:
  src/gen/graphql.ts:
    preset: import-types
    presetConfig:
      typesPath: src/scalars.ts
    plugins:
      - "typescript"
      - "typescript-resolvers"
      - "typescript-document-nodes"
  ./graphql.schema.json:
    plugins:
      - "introspection"

and src/scalars.ts
export {
  EmailAddressResolver,
  EmailAddressTypeDefinition,
  URLResolver,
  URLTypeDefinition,
  DateTimeResolver,
  DateTimeTypeDefinition,
  PostalCodeResolver,
  PostalCodeTypeDefinition,
  PhoneNumberResolver,
  PhoneNumberTypeDefinition
} from 'graphql-scalars';

Thank you in advance - this tool is awesome!

You need to add type definitions to your schema like scalar EmailAddress, you don't need to do something else with resolvers.

Thank you


Dependencies in RC1

Project depends on spring-cloud-sleuth-dependencies version RC1, this library already has an official release, so no need to depends on RC.

@juan81 think this PR fixes all of that https://github.com/fabric8io/spring-cloud-kubernetes/pull/47
Waiting for a new build 0.15 that should address this.

Should be resolved in this release https://github.com/fabric8io/spring-cloud-kubernetes/releases/tag/v0.0.15


Status codes w/ express?

I don't see how I would send status codes with the buildRouter API -- help?

The route handlers retain their original express signature (req, res).
You can use the res object to send a custom status code. For instance: res.status(201).
Note that if you chose to use the res object, then you must send your response manually using the regular express api (res.send() or res.write(), etc...). rest.ts ignores the returned value as you can see here.
Here is an example of how to do this:
buildRouter(myCustomAPI, (builder) => builder
     .listPublications(async (req, res) => {
         res.status(404).send('Sorry, we cannot find that!');
     });

_Note that marking the function async is a good idea to make sure that res.send is invoked before the promise returned by the handler resolves.

But if I send it manually, I still have to return the value as well? That's what confused me.

No if you use the res object then you need to send the return value using the res object. The return value will be ignored.


Vue styles before the other CSS after saving in watch mode instead of after

Laravel Mix Version: 4.0.14
Node Version: 8.12.0
NPM Version: 6.8.0
OS: Win 10

Description:
When running npm run watch:

the first (initial) produced app.css has all SCSS and CSS styles first and the Vue extracted SCSS and CSS styles second (this is great 👍)
but after saving one of the SCSS or Vue files, the order of these is swapped (Vue styles first, others second) (not so great...)

Why is this? And how can I fix it?
Steps To Reproduce:

Take the default Laravel installation
Install postcss-calc (npm install postcss-calc --save-dev)
Add a Vue component file with a <style lang="scss"> block with some styles
Change mix/webpack set-up:

mix
    .js('resources/js/app.js', 'public/js')
    .sass('resources/sass/app.scss', 'public/css')
    .options({
        postCss: [
            require('autoprefixer'),
            require('postcss-calc'),
            require('cssnano')({
                discardComments: {
                    removeAll: true,
                },
            }),
        ],
        extractVueStyles: true, // either here or above the postCss doesn't change the outcome
    })
    .extract();

if (mix.inProduction()) {
    mix.version();
} else {
    mix
        .webpackConfig({
            devtool: 'source-map'
        })
        .sourceMaps();
}

Run npm run watch
View app.css
Save the Vue component file and/or SCSS file (with or without changes made)
Review the rebuilt app.css --> different order of content from 6.

I would really appreciate any help with this and a big 👍 to all contributors for the excellent Laravel system!

Is there any news on this issue?

Did anyone find a solution?

Any updates?


Neo4j is running in no-auth mode

Attempted toggling it back on but authentication failed. Need to investigate what the go is with it.

 bloodhound-utils

According to https://github.com/BloodHoundAD/BloodHound/issues/41#issuecomment-248484180 "The BloodHound password isn't valid for Linux, not sure why", which is probably what I was running into. Attempt at getting this working is in the branch features/auth branch

Fixed by https://github.com/0x6c7862/bloodhound-utils/issues/3


remove doubled code from calc derived props

Codecov Report
Attention: Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 28.73%. Comparing base (6cbe1b3) to head (db4aa62).
Report is 15 commits behind head on main.

Files
Patch %
Lines

src/scope/calc_quantities.py
50.00%
5 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
+ Coverage   28.43%   28.73%   +0.31%
==========================================
  Files          11       11
  Lines         795      797       +2
==========================================
+ Hits          226      229       +3
+ Misses        569      568       -1

Flag
Coverage Δ

unittests
28.73% <50.00%> (+0.31%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Mood2SpotifyRec Project

Tasklist:

[ ] #27
[ ] #21
[ ] #22
[ ] #23
[ ] #24
[ ] #25
[ ] #26
[ ] #28

Tasklist:

[ ] Spotify API stats analysis (analyze what stats there are and how we could use it for our mood matching)
[ ] Spotify API song + stats query
[ ] Gemini LLM output desired stats threshold
[ ] Stats matching algorithm + playlist generation
[ ] Streamlit frontend
[ ] Add generated playlist to spotify (sugar feature)

@menamerai https://developer.spotify.com/documentation/web-api/reference/get-audio-features

Looks like valence is our main guy, but we could also focus on energy, instrumentalness, ,loudness, tempo, and maybe other metrics too.

@polskiXO made a branch for this project. We should work from this branch and make a PR when we're done.


Use of 'Dynamic Channel Configuration' is either broken or unclear

Hi,
For reference I have little experience with Kafka Connect so this may be a simple issue.
I am using the connector using the .zip upload method to Confluent Cloud. All works well until wanting to use 'Dynamic Channel Configuration' and reference subvariables within the channel. i.e. "channel": "chat-#{value.userId}".
The readme reference the following:

Referencing data within a record key or value is only possible when making use of Kafka Connector Schema Support

After following the guide and using the most common methods it doesn't seem to be functional?
Here is the example configuration:
{
  "channel": "chat-#{value.teamId}",
  "client.id": "Ably-Kafka-Connector",
  "client.key": "Key",
  "group.id": "ably-connect-cluster",
  "message.name": "chat_message",
  "topics": "inbound-chat-messages-test",
  "key.converter": "org.apache.kafka.connect.converters.ByteArrayConverter",
  "value.converter":"io.confluent.connect.json.JsonSchemaConverter",
  "value.converter.schema.registry.url":"http://localhost:8081",
  "value.converter.schemas.enable": "false"
}

I am using the Confluent Schema Registry, and as such, I am not sending the Json Schema in with the message (value.converter.schemas.enable is false). This is seemingly recommended via the json connect documentation
this is the error message getting sent back:
	WorkerSinkTask{id=clcc-7pmz8j-0} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted
Tolerance exceeded in error handler

Hide stacktrace

org.apache.kafka.connect.errors.ConnectException: Tolerance exceeded in error handler
	at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndHandleError(RetryWithToleranceOperator.java:244)
	at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execute(RetryWithToleranceOperator.java:166)
	at org.apache.kafka.connect.runtime.WorkerSinkTask.convertAndTransformRecord(WorkerSinkTask.java:528)
	at org.apache.kafka.connect.runtime.WorkerSinkTask.convertMessages(WorkerSinkTask.java:503)
	at org.apache.kafka.connect.runtime.WorkerSinkTask.poll(WorkerSinkTask.java:339)
	at org.apache.kafka.connect.runtime.WorkerSinkTask.iteration(WorkerSinkTask.java:238)
	at org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:207)
	at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:227)
	at org.apache.kafka.connect.runtime.WorkerTask.run(WorkerTask.java:282)
	at org.apache.kafka.connect.runtime.isolation.Plugins.lambda$withClassLoader$1(Plugins.java:181)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.kafka.connect.errors.DataException: Converting byte[] to Kafka Connect data failed due to serialization error of topic inbound-chat-messages-test:
	at io.confluent.connect.json.JsonSchemaConverter.toConnectData(JsonSchemaConverter.java:133)
	at org.apache.kafka.connect.storage.Converter.toConnectData(Converter.java:88)
	at org.apache.kafka.connect.runtime.WorkerSinkTask.lambda$convertAndTransformRecord$5(WorkerSinkTask.java:528)
	at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndRetry(RetryWithToleranceOperator.java:190)
	at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndHandleError(RetryWithToleranceOperator.java:224)
	... 14 more
Caused by: org.apache.kafka.common.errors.SerializationException: Error deserializing JSON message for id -1
	at io.confluent.kafka.serializers.json.AbstractKafkaJsonSchemaDeserializer.deserialize(AbstractKafkaJsonSchemaDeserializer.java:192)
	at io.confluent.kafka.serializers.json.AbstractKafkaJsonSchemaDeserializer.deserializeWithSchemaAndVersion(AbstractKafkaJsonSchemaDeserializer.java:267)
	at io.confluent.connect.json.JsonSchemaConverter$Deserializer.deserialize(JsonSchemaConverter.java:179)
	at io.confluent.connect.json.JsonSchemaConverter.toConnectData(JsonSchemaConverter.java:116)
	... 18 more
Caused by: org.apache.kafka.common.errors.SerializationException: Unknown magic byte!
	at io.confluent.kafka.serializers.AbstractKafkaSchemaSerDe.getByteBuffer(AbstractKafkaSchemaSerDe.java:252)
	at io.confluent.kafka.serializers.json.AbstractKafkaJsonSchemaDeserializer.deserialize(AbstractKafkaJsonSchemaDeserializer.java:116)
	... 21 more

This occurs when sending this message:
{
    "title":"This is a title",
    "message":"This is a message",
    "image":"https://i.natgeofe.com/n/548467d8-c5f1-4551-9f58-6817a8d2c45e/NationalGeographic_2572187_square.jpg",
    "link":"https://www.bbc.co.uk/news/topics/cvjk7vv0w40t",
    "tenantId":"company1",
    "teamId":"team1"
}

with this Json Schema in attached to the topic with schema registry using confluent cloud:
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://example.com/myURI.schema.json",
  "title": "ChatMessage",
  "description": "Sample schema to help you get started.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "title": {
      "type": "string",
      "description": "The integer type is used for integral numbers."
    },
    "message": {
      "type": "string",
      "description": "The number type is used for any numeric type, either integers or floating point numbers."
    },
    "image": {
      "type": "string",
      "description": "The string type is used for strings of text."
    },
    "link": {
      "type": "string",
      "description": "The string type is used for strings of text."
    },
    "tenantId": {
      "type": "string",
      "description": "The string type is used for strings of text."
    },
    "teamId": {
      "type": "string",
      "description": "The string type is used for strings of text."
    }
  }
}

Any advice is much appreciated!
Cheers,
Matt

Hi @MattBabbage,
Apologies for the long delay, I haven't been working on this for a few months, I just happened to notice your message in my GH notifications. Wanted to drop you a quick message in case you're still stuck on this as I saw exactly the same error while testing.
If I remember correctly, the reason this was happening for me had nothing to do with the Ably Kafka Connector configuration, but actually the configuration of the client application sending the messages. That error suggests to me that the client application isn't configured to use a Kafka Connector value serialiser and is perhaps just packing raw JSON into the value payload? This is exactly what I was doing initially in the loadtest app in this repository. I fixed it by letting the Kafka client do JSON serialisation for me, which causes it to wrap the JSON payload in an envelope with some magic bytes at the beginning. That stack trace suggests the JSON Deserialiser you've (correctly) configured on the Ably Connector side isn't able to find the magic bytes it expects.
The changes I made in the Python loadtest app to fix this were:

Construct a value (or key, as needed) serializer that knows about your JSON schema, here
Set that serializer on the producer here

Have you got any other connectors in your deployment reading the values successfully? Note that I expect it'll just be components in the Kafka Connect ecosystem that require this, because they need values and keys to be serialized in some known way to construct datatypes in the common Kafka Connect format. If you're writing your own consumer code generally, it won't be a problem as you know how to unpack your own keys/values.
Hope that helps!

Hi @MattBabbage,
Is the issue still relevant? I can confirm what @jaley said, it looks like problem on the client that sending the message.

Hi @MattBabbage,
Unfortunately, we are unable to proceed with resolving it as there were no specific details provided. If you encounter this issue again or have additional details to share, please feel free to reopen this issue with the necessary information. We are here to help and will be happy to assist you further.


Uncaught TypeError: Cannot read property 'accountName' of undefined

Atom Version: 1.13.0
System: Mac OS X 10.12.2
Thrown From: imdone-atom package, v2.1.11
Stack Trace
Uncaught TypeError: Cannot read property 'accountName' of undefined
At /Users/joren/.atom/packages/imdone-atom/lib/plugins/plugin.coffee:49

TypeError: Cannot read property 'accountName' of undefined
    at ConnectorPlugin.module.exports.ConnectorPlugin.issuesUrlBase (/Users/joren/.atom/packages/imdone-atom/lib/plugins/plugin.coffee:49:38)
    at ConnectorPlugin.module.exports.ConnectorPlugin.projectButtons (/Users/joren/.atom/packages/imdone-atom/lib/plugins/plugin.coffee:93:22)
    at MenuView.module.exports.MenuView.addPluginProjectButtons (/Users/joren/.atom/packages/imdone-atom/lib/views/menu-view.coffee:102:45)
    at ImdoneAtomView.module.exports.ImdoneAtomView.addPluginProjectButtons (/Users/joren/.atom/packages/imdone-atom/lib/views/imdone-atom-view.coffee:317:41)
    at ImdoneAtomView.module.exports.ImdoneAtomView.addPluginButtons (/Users/joren/.atom/packages/imdone-atom/lib/views/imdone-atom-view.coffee:298:6)
    at ImdoneAtomView.module.exports.ImdoneAtomView.updateBoard (/Users/joren/.atom/packages/imdone-atom/lib/views/imdone-atom-view.coffee:610:6)
    at ImdoneAtomView.module.exports.ImdoneAtomView.onRepoUpdate (/Users/joren/.atom/packages/imdone-atom/lib/views/imdone-atom-view.coffee:411:6)
    at ImdoneAtomView.module.exports.ImdoneAtomView.initImdone (/Users/joren/.atom/packages/imdone-atom/lib/views/imdone-atom-view.coffee:391:8)
    at /Users/joren/.atom/packages/imdone-atom/lib/views/imdone-atom-view.coffee:64:10
    at /Users/joren/.atom/packages/imdone-atom/node_modules/imdone-core/lib/mixins/repo-fs-store.js:94:11
    at done (/Users/joren/.atom/packages/imdone-atom/node_modules/node-dir/lib/paths.js:27:13)
    at /Users/joren/.atom/packages/imdone-atom/node_modules/node-dir/lib/paths.js:53:37
    at done (/Users/joren/.atom/packages/imdone-atom/node_modules/node-dir/lib/paths.js:25:13)
    at /Users/joren/.atom/packages/imdone-atom/node_modules/node-dir/lib/paths.js:53:37
    at done (/Users/joren/.atom/packages/imdone-atom/node_modules/node-dir/lib/paths.js:25:13)
    at /Users/joren/.atom/packages/imdone-atom/node_modules/node-dir/lib/paths.js:60:33
    at FSReqWrap.oncomplete (fs.js:123:15)

Commands
     -9:57 tree-view:toggle (ol.ftptree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -9:46.6.0 tree-view:remove-project-folder (span.name.icon.icon-file-directory)
     -9:46.5.0 remote-ftp:disconnect (atom-workspace.workspace.scrollbars-visible-always.theme-spacegray-atom-dark-syntax.theme-one-dark-ui.find-visible)
     -9:46.5.0 remote-ftp:connect (atom-workspace.workspace.scrollbars-visible-always.theme-spacegray-atom-dark-syntax.theme-one-dark-ui.find-visible)
     -9:16.6.0 imdone-atom:tasks (input.hidden-input)
     -9:09.2.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -8:14.5.0 tree-view:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -7:49.1.0 find-and-replace:show (input.hidden-input)
  8x -7:47.2.0 core:confirm (input.hidden-input)
  3x -7:31.1.0 core:save (input.hidden-input)
     -2:20.9.0 imdone-atom:tasks (input.hidden-input)
     -2:12.4.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -0:00.1.0 imdone-atom:tasks (input.hidden-input)

Config
{
  "core": {
    "disabledPackages": [
      "linter-sass-lint",
      "linter-tidy",
      "linter-php",
      "console-panel"
    ],
    "excludeVcsIgnoredPaths": false,
    "telemetryConsent": "limited",
    "themes": [
      "one-dark-ui",
      "spacegray-atom-dark-syntax"
    ]
  }
}

Installed Packages
# User
atom-alignment, v0.12.1 (active)
atom-css-unit-converter, v1.1.1 (inactive)
atom-terminal, v0.8.0 (inactive)
code-peek, v1.4.14 (inactive)
console-panel, v0.2.1 (inactive)
dash, v1.7.0 (inactive)
emmet, v2.4.3 (active)
file-icons, v2.0.10 (active)
git-plus, v7.2.0 (active)
github-atom-dark-syntax, v0.3.2 (inactive)
highlight-selected, v0.12.0 (active)
imdone-atom, v2.1.11 (active)
linter, v1.11.21 (active)
linter-jshint, v3.0.2 (active)
linter-scss-lint, v3.0.4 (active)
minimap, v4.26.7 (active)
multi-cursor, v2.1.5 (inactive)
pigments, v0.38.0 (active)
project-manager, v3.3.3 (active)
quick-editor, v0.4.3 (inactive)
Remote-FTP, v0.10.3 (active)
section-comment-snippets, v2.4.1 (active)
snippet-generator, v0.3.2 (inactive)
spacegray-atom-dark-syntax, v1.3.1 (active)
spacegray-dark-neue-ui, v1.7.1 (inactive)
svg-preview, v0.11.0 (active)
sync-settings, v0.8.1 (active)
tasks, v2.6.4 (active)
tool-bar, v1.0.1 (active)
tool-bar-main, v0.0.10 (active)
turbo-javascript, v1.4.0 (inactive)
wordpress-api, v1.2.2 (active)
zentabs, v0.8.8 (active)
atom-dark-syntax, v0.28.0 (inactive)
atom-dark-ui, v0.53.0 (inactive)
atom-light-syntax, v0.29.0 (inactive)
atom-light-ui, v0.46.0 (inactive)
base16-tomorrow-dark-theme, v1.4.0 (inactive)
base16-tomorrow-light-theme, v1.4.0 (inactive)
one-dark-ui, v1.8.2 (active)
one-light-ui, v1.8.2 (inactive)
one-dark-syntax, v1.6.0 (inactive)
one-light-syntax, v1.6.0 (inactive)
solarized-dark-syntax, v1.1.1 (inactive)
solarized-light-syntax, v1.1.1 (inactive)
about, v1.7.2 (active)
archive-view, v0.62.0 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.14.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.33.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.29.0 (inactive)
autosave, v0.23.2 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.43.2 (active)
bracket-matcher, v0.85.1 (active)
command-palette, v0.39.1 (active)
deprecation-cop, v0.55.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.204.5 (active)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.2.0 (active)
go-to-line, v0.31.2 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.60.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.1 (active)
link, v0.31.2 (inactive)
markdown-preview, v0.159.1 (active)
metrics, v1.1.2 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.1 (inactive)
package-generator, v1.0.2 (inactive)
settings-view, v0.244.0 (active)
snippets, v1.0.4 (active)
spell-check, v0.68.5 (active)
status-bar, v1.6.0 (active)
styleguide, v0.48.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.103.1 (active)
timecop, v0.33.2 (active)
tree-view, v0.211.1 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.35.0 (active)
wrap-guide, v0.39.0 (active)
language-c, v0.54.0 (active)
language-clojure, v0.22.1 (active)
language-coffee-script, v0.48.1 (active)
language-csharp, v0.13.0 (active)
language-css, v0.40.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.43.0 (active)
language-html, v0.47.1 (active)
language-hyperlink, v0.16.1 (active)
language-java, v0.24.0 (active)
language-javascript, v0.122.0 (active)
language-json, v0.18.3 (active)
language-less, v0.29.6 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.37.0 (active)
language-php, v0.37.3 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.1 (active)
language-ruby, v0.70.2 (active)
language-ruby-on-rails, v0.25.1 (active)
language-sass, v0.57.0 (active)
language-shellscript, v0.23.0 (active)
language-source, v0.9.0 (active)
language-sql, v0.25.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.29.1 (active)
language-toml, v0.18.1 (active)
language-xml, v0.34.12 (active)
language-yaml, v0.27.1 (active)

# Dev
No dev packages

Already fixed it just removed my config folder

Haha! Thanks!


Will this eventually be on curseforge?

title

There's a bit of work I'd like to do before I publish it but yes that's the plan.


Version 1.12

Go 1.12 was just released, it would be useful to me to have that available on conda-forge.
I'm willing to help if needed, though I'm not sure what all would be involved - this is a more complicated build than I'm used to dealing with.

I'm willing to help if needed

I've been looking at this recipe today. I haven't built this package myself, but I think it would be a matter of just updating the version and the sha256 fields.  (Despite the complexity of the recipe, I don't think there's necessarily anything more to do, but I'm not sure.  @sodre could offer some guidance here, I think.)

this is a more complicated build than I'm used to dealing with.

While we're in the process of upgrading the go version, we should add some lengthy comments in meta.yaml to explain that this recipe is used to build different variants of the package (go-cgo and go-nocgo), explain what the go-cgo_linux-64, etc. packages are for, and why they aren't simply built into the main go-[no]cgo package, and also explain that gois a metapackage for go-nocgo and go-nocgo_<platform>.

I am happy to work on this together at AnacondaCon, if either of you are attending. In the meantime, let me try to do a quick update for 1.12.

the "quick" update took 5 months and the help of a lot of folks....
this should now be solved for Linux and OSX.

Thanks @sodre (and others) !

the "quick" update took 5 months and the help of a lot of folks....

1.13 was a mess, but hope 1.14 hits conda-forge!


Refactor limit option

Rename limit -> first
Support negative values of first:

For {1, 2, 3, 4, 5, 6} select w/ options {after = 5, first = -2} returns {3, 4} (XXX: how should it work for pairs?)
Deny to use negative first w/o after

This rename looks unnecessary. From external prospective (IMVHO) limiting resultset with limit is much more expected than first. Why do we want to rename it here?

This is needed to unify terminology with TDG

I have the same question -- "limit" is more recognizable in the outer world.

Let me settle this. It's a matter of preference, so we'll do "first" instead of "limit".


Separar rota de sign in/up com google

Separ em 2 rotas:

Sign In
Sign up

This feature was rethinked and we will keep it as it is.


Expose PUID/GUID options

Hi! is it possible to expose PUID/GUID options?

Hi @elmerfdz, I have plan to do this on this image soon. Already done for my nextcloud docker image if you want to take a look at the changes.

Great! looking forward to try it out.

Solved, see CHANGELOG.md for more info.

Thanks! works as expected.


Flutter Web Not Working On Chrome

When run flutter web on vs code I get error(Unable to connect to Chrome debug port: 56044
SocketException: OS Error: The remote computer refused the network connection.
, errno = 1225, address = localhost, port = 56051) and chrome tab appear empty no localhost and port in addres bar! please can you share any solution for this issue? or there is a way to change or set custom localhost and port ?
-But normally app is working on emulator as fine without error!
-flutter doctor does not detect any issue!
-no proxies and my device connect to the internet etc.
Thanks

So do I. have you upgrade to lastest flutter？ what's your flutter version？

Hi @Bruskyer
can you please provide your updated  flutter doctor -v
and your flutter run --verbose?
Also, to better address the issue, would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you

PS C:\TestMVC\mytest> flutter doctor -v
[√] Flutter (Channel master, v1.10.15-pre.404, on Microsoft Windows [Version 10.0.17763.379], locale en-US)
• Flutter version 1.10.15-pre.404 at C:\src\flutter
• Framework revision 9093cf15f6 (27 hours ago), 2019-11-04 22:30:16 -0500
• Engine revision 7b968ff95f
• Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at C:\Users\VEYSI.YIGIT\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.1
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 40.1.2
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.39.2)
• VS Code at C:\Users\VEYSI.YIGIT\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.6.0
[√] VS Code, 64-bit edition (version 1.38.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.6.0
[√] Connected device (2 available)
• Chrome     • chrome     • web-javascript • Google Chrome 78.0.3904.87
• Web Server • web-server • web-javascript • Flutter Tools
• No issues found!
PS C:\TestMVC\mytest> flutter run --verbose
[  +41 ms] executing: [C:\src\flutter] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +204 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +3 ms] 9093cf15f631b354c0fae4d726a8638b308a5e31
[        ] executing: [C:\src\flutter] git describe --match v*.. --first-parent --long --tags
[ +203 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags
[        ] v1.10.14-404-g9093cf15f6
[   +7 ms] executing: [C:\src\flutter] git rev-parse --abbrev-ref --symbolic @{u}
[ +163 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [C:\src\flutter] git ls-remote --get-url origin
[ +150 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +210 ms] executing: [C:\src\flutter] git rev-parse --abbrev-ref HEAD
[ +174 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[ +141 ms] executing: C:\Users\VEYSI.YIGIT\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +110 ms] Exit code 0 from: C:\Users\VEYSI.YIGIT\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[        ] List of devices attached
[  +12 ms] More than one device connected; please specify a device with the '-d ' flag, or use '-d all' to act on all devices.
[  +89 ms] Chrome     • chrome     • web-javascript • Google Chrome 78.0.3904.87
[   +2 ms] Web Server • web-server • web-javascript • Flutter Tools
[  +10 ms] "flutter run" took 539ms.
#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:287:7)

#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:532:11)

#3      FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:457:33)

#4      AppContext.run. (package:flutter_tools/src/base/context.dart:157:29)

#5      _rootRun (dart:async/zone.dart:1124:13)
#6      _CustomZone.run (dart:async/zone.dart:1021:19)
#7      _runZoned (dart:async/zone.dart:1516:10)
#8      runZoned (dart:async/zone.dart:1463:12)
#9      AppContext.run (package:flutter_tools/src/base/context.dart:156:18)

#10     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:446:20)
#11     CommandRunner.runCommand (package:args/command_runner.dart:197:27)

#12     FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:416:21)

#13     AppContext.run. (package:flutter_tools/src/base/context.dart:157:29)

#14     _rootRun (dart:async/zone.dart:1124:13)
#15     _CustomZone.run (dart:async/zone.dart:1021:19)
#16     _runZoned (dart:async/zone.dart:1516:10)
#17     runZoned (dart:async/zone.dart:1463:12)
#18     AppContext.run (package:flutter_tools/src/base/context.dart:156:18)

#19     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:367:19)

#20     CommandRunner.run. (package:args/command_runner.dart:112:25)
#21     new Future.sync (dart:async/future.dart:222:31)
#22     CommandRunner.run (package:args/command_runner.dart:112:14)
#23     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:251:18)
#24     run.. (package:flutter_tools/runner.dart:63:22)

#25     _rootRun (dart:async/zone.dart:1124:13)
#26     _CustomZone.run (dart:async/zone.dart:1021:19)
#27     _runZoned (dart:async/zone.dart:1516:10)
#28     runZoned (dart:async/zone.dart:1500:12)
#29     run. (package:flutter_tools/runner.dart:61:18)

#30     AppContext.run. (package:flutter_tools/src/base/context.dart:157:29)

#31     _rootRun (dart:async/zone.dart:1124:13)
#32     _CustomZone.run (dart:async/zone.dart:1021:19)
#33     _runZoned (dart:async/zone.dart:1516:10)
#34     runZoned (dart:async/zone.dart:1463:12)
#35     AppContext.run (package:flutter_tools/src/base/context.dart:156:18)

#36     runInContext (package:flutter_tools/src/context_runner.dart:64:24)

#37     run (package:flutter_tools/runner.dart:50:10)
#38     main (package:flutter_tools/executable.dart:65:9)

#39     main (file:///C:/src/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#40     _startIsolate. (dart:isolate-patch/isolate_patch.dart:303:32)
#41     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

thank you @Bruskyer for providing your logs

/cc @jonahwilliams

[  +12 ms] More than one device connected; please specify a device with the '-d ' flag,

You need to specify -d chrome.
The socketException might be firewall related. If you don't have the permissions to connect to a local webserver you won't be able to run Chrome, though I'm not sure what specifically would be causing it

ok  thanks alot for your replies.
there is forcepoint one endpoint and CheckPoint Endpoint Security on my pc!
is there any way to set proxy setting and connect to local server through these apps?
Thanks

The Flutter tools choose the port that the server is running on (typically between 50k-60k in my experience). You might be able to configure your security software to allow you to use a range of TCP ports.

You specify the port value with --web-port too

@jonahwilliams @johnpryan
I hope this will solve my issue.
Thanks a lot

try using
flutter run -d web
This has worked for me.


[iCubShenzen][iCubShenzen01][iCubGenova02,04,07][iCubChemnitz01][iCubMoscow01][iCubNancy01][experimentalSetups/iCubGenova02-VelCtrl] Update the configuration parameters in estimators/wholebodydynamics to be compatible with recent bug fix in robotology/whole-body-estimators

Background
Recently a critical bug in wholebodydynamics device was identified by @traversaro. This bug was related to hard-coded cut-off frequency parameters used for low-pass filtering the measurements being used by wholebodydynamics device. For more details on this issue, please see https://github.com/robotology/whole-body-estimators/issues/53.
A PR was opened https://github.com/robotology/whole-body-estimators/pull/63 to address this issue, which makes the cutoff frequency parameters as required parameters to be read from the configuration file for the opening of 'wholebodydynamics' device through the 'yarprobotinterface'.
Changes suggested in this PR
In this PR, we make the required changes in the configuration files to be compatible with those changes in https://github.com/robotology/whole-body-estimators/pull/63.
Mainly we introduce the following parameters (marked as required in the documentation, see here),

imuFilterCutoffInHz
forceTorqueFilterCutoffInHz
jointVelFilterCutoffInHz
jointAccFilterCutoffInHz

The parameters jointVelFilterCutoffInHz and jointAccFilterCutoffInHz are used if the parameters useJointVelocity and useJointAcceleration are set to true. The latter parameters are not required and by default set to true. However, in order to avoid any confusion, also these parameters are added to those configuration files in which they are missing.
@traversaro Please feel free to add information or make changes to this description, thank you!

I  would add that we can merge this modification without problems, because if this files are used by an old version of wholebodydynamics the new parameters are simply ignored.


feat: extend setrel to support variadic inputs

Extend setrel to support more than two inputs (now it's variadic). @ingomueller-net
please only review top commit (cce3619)

Addressed all your comments except the one about constraining on inputs, as I did not find a constraint in OpBase.td that does that. Tried to use CPred but had weird things happen:
ConfinedType<Variadic<Substrait_Relation>, CPred<"($_self.size()>2)">>: $inputs,
Will have another look at it tomorrow. :)

Hmm... I didn't find anything from my phone either. i think it can't be done as a type constraint. Maybe it works as an op constraint, where I think you can access the operand with $input. Don't try for too long, though: if it's not easy to do, it's probably also not easy to read, and that was the purpose...

I tried to figure out how to do it and unfortunately was not able to :( Maybe we can take a look together or I could do this in a subsequent PR? Should I add a TODO in this one?


GitHub releases

May GitHub releases please be used for this project?

Good input. Thank you!

Thank you. I do not see the releases in GitHub.
Here is what releases look like.

And FYI, if you use releases it allows people to subscribe for email updates. Which helps you meet the project goals.

Releases are accessible for this project, they are, for some reason, just not displayed in the sidebar
https://github.com/openai-php/client/releases
Is this on purpose @gehrisandro @nunomaduro ?


Config fetched from config server for profiles with a dash stopped working with spring-cloud-config 3.1.1

I upgraded the spring cloud config server from spring cloud to 2021.0.0 to 2021.0.1. With this spring-cloud-config is upgraded from 3.1.0 to 3.1.1.
With the upgrade config fetched from the configuration server for profiles with dashes stopped working.
My analysis is that this is caused by the path pattern matching change for fixing this bug:
https://github.com/spring-cloud/spring-cloud-config/issues/2020
And adjusting the EnvironmentController here:
https://github.com/spring-cloud/spring-cloud-config/pull/2031/commits/1913b2adc3e53bdc0d56ba76af7b30d21f412a30
The spring cloud configuration server is backed by a git repo and the property files are all in yaml.
I could reproduce this bug with integration testing. Using spring cloud 2021.0.0 profiles like "test-1" worked fine, with 2021.0.1 not anymore.
An examples used in test of endpoints used to get config for a specific profile with a dash:
/configuration/application-x/test-1
An example of the error we get in a spring boot application using this config server after upgrading:
.... SpringBootApp                      : The following 1 profile is active: "test-1"
o.s.b.context.config.ConfigDataLoader    : Fetching config from server at : https://config-server-url
o.s.b.context.config.ConfigDataLoader    : Could not locate PropertySource ([ConfigServerConfigDataResource@6127a7e uris = array<String>['https://config-server-url'], optional = true, profiles = list['test-1']]): None of labels [] found

Why I believe this to be a bug and should be supported, for reference the latest spring-framework docs where for example profiles "us-east" and "eu-central" are mentioned, both also containing dashes in the profile name.
https://docs.spring.io/spring-framework/docs/5.3.18/reference/html/core.html#beans-definition-profiles-java

Can you try 2021.0.2-SNAPSHOTS?  I believe we already fixed this issue.
https://github.com/spring-cloud/spring-cloud-config/issues/2058

@ryanjbaxter confirmed, this is fixed with 2021.0.2-SNAPSHOT version. All my tests succeed now. Thx!


Insert box of the correct size to handle HTML-CSS highlighting

This pull request modifies the css highlighter to insert a box of the correct size for the background for HTML-CSS output, since the HTML-CSS spans are not of the correct heights and depths, in general.

Still needs some linting (e.g., whitespace), but I can do that on my end, once merged.

I've just realised: This is for the HTML-CSS highlighter, right? Then it should go into the sre.HtmlHighlighter class: https://github.com/zorkow/speech-rule-engine/blob/accessibility_tool/src/highlighter/html_highlighter.js
It's a subclass of the sre.CssHighlighter that deals with all the peculiarities of HTML-CSS (e.g., detecting hitboxes, setting position to relative). I know the naming might be slightly confusing but  CssHighlighter is supposed to be the one that can work purely with setting CSS attributes.
How do you want to play this? Do you want to move the code yourself, or should I integrate your code in the other class and drop the PR?

How do you want to play this? Do you want to move the code yourself, or should I integrate your code in the other class and drop the PR?

I'll make a new pull request. and close this one.


refactor(notebooks): rename scaling to scaling-sampler

Summary
As we expect a new scaling demo to be ready in the next weeks (#28) using EstimatorV2 directly instead of SamplerV2, this PR renames the original scaling path to scaling-sampler and adds symlinks for support of the old names.
Details and comments

scaling directory renamed to scaling-sampler
scaling symlink created pointing to new scaling-sampler directory
scaling.ipynb renamed to scaling-sampler.ipynb
scaling.ipynb symlink created pointing to new scaling-sampler.ipynb

Symlinks do not seem to work in GitHub, or redirect the URLs. They will only be helpful for navigating the repo locally after cloning it. Under this circumstance, maybe we can just do without them altogether.
Thoughts @ashsaki?

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
290

Relevant Lines:
290

💛  - Coveralls


Fix RelativePtr ptrauth in swift_getAssociatedConformanceWitnessSlowImpl to sign then cast

For running under with function pointer type diversity, relative-pointer based ptrauth code needs to first sign and then cast, otherwise the cast fails.

@swift-ci please test


RBXPRR-8: Add Universal Analytics for GA

https://mfdlabs.atlassian.net/browse/RBXPRR-8

Irrelevant as of now, GAUA is going in 7 months


Fix restriction_qos role associations

Some how our users and accounts in Slurm have been configured with the restricted_qos role when they should not have it. Another problem this has caused is that new users and accounts that we onboard have the restricted_qos role granted to them as well.
Remove the restricted_qos role from all users and accounts that shouldn't have the role.

Verified that the restricted_qos role only needs to get added the specific user that we want to have the role.
What I did to test this:
I was able to verify that the qos will work for a user without having to specify the qos at the account level. I created two qos roles on the dev cluster; default_qos and restricted_qos. I set default_qos as the default qos for the cluster including a test user. The default_qos was configured with a max wall of 2 minutes. I tested the qos with an sbatch script. The sbatch was cancelled after 2 minutes. I then added the restricted_qos to the test user and in an sbatch file I specified which qos I wanted to use with #SBATCH --qos=restricted_qos.  The restricted_qos was configured with max wall of 3 minutes. Tested with the updated sbatch and the job was cancelled after three minutes this time. The restricted_qos was not added to any other user or account besides the specific user we want to have the qos. This means we can safely remove the restricted_qos from all users and accounts besides Andy and Zifan.
Prod changes:
In prod I will run the following commands to remove the restricted_qos from slurm users and accounts.
# for users
sudo sacctmgr modify user where user={user} set qos=default_qos

# for accounts
sudo sacctmgr modify account where account={account} set qos=default_qos


Debugging help

Not sure if it is possible, but a nice debugging feature would be to have hooks that can be used with Lua.
For example, before writing some memory, a byte MemoryWrite(address, value) function will be called if exist.
A Lua script might then do for example tracing of certain addresses or even modify the value to be written.
Same for examp,e nextInstruction(address).
Can be used to implement custom break and watch points.

That's the very reason for embedding lua interpreter. I wan't to have such features, I'm just not there yet.
I think that your proposed approach, though generic, would be too slow to be practical - going to lua each CPU cycle would be certainly a performace killer.
I have few ideas, I'm not sure what would be the best, but the simple one that can be done in reasonable time-frame is such that every memory location could be 32-bit long. 8 bit of data and 24 bit of attributes. These 3 bytes woule be three separate attributes for reading, writing and executing. Each memory access I could check corresponding attribute and if it's non-zero I would treat it as an index to a lua-function table to be called. So there would be a possibility to install in lua script up to 255 hooks for R/W/X separately and install any hook in any memory location.

If you want to catch Suzy writes, than yes we need to differ between Suzy/CPU. But I think this would be "Sprite debugging" and for this there are maybe better ways.
What is not clear to me is the 4th, the data byte. What data should it contain? The other part sounds great. Makes it easy to place any type of watchpoint or breakpoint.
But it would be great if the hook can manipulate the system, means changing any memory or register.

@42Bastian I've added global RAM pointer. Hopefully to be obsoleted by lua facilities.

@42Bastian: Added preliminary Script debugger

Breaking change
Now lua scripts must not specify image file and can't be run by emulator, but must be named as image file but with .lua extension suffix and are loaded automatically if present. For example with file test.lnx there can be associated a file test.lnx.lua with lua code, trap functions etc. The image variable is not used.

Duplicate of #91


v2 client isn't working with server v1.3.0

The code is from the basic usage code in the readme.
The client version is v2.0.1.
I'm running the server inside a docker container from the get started guide on the liftbridge page:
docker run -d --name=liftbridge-main -p 4222:4222 -p 9292:9292 -p 8222:8222 -p 6222:6222 liftbridge/standalone-dev:v1.3.0
If I change the version to v1.2.0 everything seems to be working.
❯ go run main.go
panic: rpc error: code = Unavailable desc = connection closed

goroutine 1 [running]:
main.main()
        /home/taosx/project/lbex/main.go:17 +0x413
exit status 2

The server doesn't show anything in the logs.

Thanks, will take a look and see if I can reproduce.

It looks like this is specific to the standalone image since the v1.3.0 binary works outside of Docker. Still investigating...

I've tracked the issue down to this PR, which changed the default host to localhost. Changing this to <IP_ADDRESS> fixes it. I'll create a PR with this fix.

This has been fixed in https://github.com/liftbridge-io/liftbridge/pull/287. The fix is available in the latest images:
docker pull liftbridge/standalone-dev:latest
docker run -d --name=liftbridge-main -p 4222:4222 -p 9292:9292 -p 8222:8222 -p 6222:6222 liftbridge/standalone-dev:latest

Alternatively, you can use the existing v1.3.0 image and just override the host:
docker run -d --name=liftbridge-main -p 4222:4222 -p 9292:9292 -p 8222:8222 -p 6222:6222 -eLIFTBRIDGE_HOST=<IP_ADDRESS> liftbridge/standalone-dev:v1.3.0


Entity Field Type Validation

Is your feature request related to a problem? Please describe.
Currently, if I have an entity that looks like this:
@Entity('tasks', { allowApiCrud: true })
export class Task {
  @Fields.autoIncrement()
  id = 0

  @Fields.string()
  title = ''

  @Fields.boolean()
  completed = false

  @Fields.string()
  shouldBeString = ''
}

and make a POST request to the API with a body like this:
{
    "title": "test insert",
    "completed": false,
    "shouldBeString": 89
}

the number 89 is successfully stored in the field that should be a string, at least with the default JSON file provider and the MongoDB data provider (and maybe others that I haven't tried.) This can wreak havoc if the object is then retrieved and something like toLowerCase() is called on the field that should be a string but is in fact a number. This means this code is vulnerable to anyone who knows how to manually make a POST request.
Describe the solution you'd like
I can work around this by creating new field types with built-in validation. This is my current working solution for strings:
function checkedString(options?: FieldOptions) {
  return Fields.string({
    ...options,
    validate(entity, fieldRef) {
      if (typeof fieldRef.value !== 'string') {
        throw fieldRef.metadata.key + ' should be a string'
      }
      if (options) {
        if (Array.isArray(options.validate)) {
          for (const v of options.validate) {
            v(entity, fieldRef)
          }
        } else if (options.validate) {
          options.validate(entity, fieldRef)
        }
      }
    }
  })
}

Could something like this be built into the field types? This would be helpful to other users, and I would not have to carry around these validated field types to other projects.
Describe alternatives you've considered
I tried inserting this invalid data with the SQLite data provider but it coerced the input values into the correct type as far as I can tell, so some (most?) databases will take care of this problem on their own. Still, it's dangerous for the JSON and MongoDB data providers and possibly others.
Additional context
I created a simple Github repo based on the Task MVC example that just adds a frontend that bypasses TypeScript type validation and lets you POST objects to Remult directly, like an antagonistic user could do with curl or from the browser console, displaying any errors that result. It also fetches the resulting database entries and displays them, so you can see if invalid data was added. This can be used to test field type validation in isolation.

@toBeOfUse, fixed it on https://github.com/remult/remult/releases/tag/v0.19.3
Care to check it out?

This fixes the problem; it even retroactively sanitizes the invalid values I'd been inserting upon retrieving them from the database. So it was just the string data type that was missing this coercion? This was an incredibly quick and accurate fix.
There is one more small problem that came up when I tested inserting objects with strings for fields that should be numbers through the API. If I have this entity:
@Entity('tasks', { allowApiCrud: true })
export class Task {
  @Fields.autoIncrement()
  id = 0

  @Fields.string()
  title = ''

  @Fields.boolean()
  completed = false

  @Fields.number({ allowNull: false })
  shouldBeNum: number = 5
}

And post this to the database:
{
    "title": "attempt to put string into number field",
    "completed": false,
    "shouldBeNum": "surprise, it is a string"
}

The resulting database entry is this:
{
    "id": null,
    "title": "attempt to put string into number field",
    "completed": false,
    "shouldBeNum": null
}

So, the invalid value for shouldBeNum is converted to a null, which is fine, but this bypasses both the default value given for that field in TypeScript and the allowNull option in the field options. I think this could still be a slight potential problem if someone assumes this field can never be null and calls, like, toFixed on it in some important code, and gets an error because a null was induced through invalid data being submitted through the API. But it's an edge case.
Also, when I try to fix this with Validators.required, Typescript complains:

It seems like here, the Validators.required validator is defined to only work on the valueType string:
https://github.com/remult/remult/blob/a2aeaada749f9744d9e9497ea97f84bc09e86a0e/projects/core/src/validators.ts#L5-L13
But it works fine; when using Validators.required, trying to add a field with a non-number value for a @Fields.number truly does not work. I think the declared types might be too strict though.

We've done considerable work on validations in the last few versions, including the coming exp version. Can you review it and see if it addresses your needs?
https://github.com/remult/remult/blob/master/CHANGELOG.md
https://remult.dev/docs/validation.html#validation


Architecture overhaul (SDK 2.0)

Cleaner code, better testability.

@eldk https://github.com/d4rken/piwik-sdk-android/commit/54658f0fb7384469580bfc708b1ca3782a3d893f

:sparkles: COVERAGE INCREASED (+2.3%) TO 92.459% :sparkles:

CustomVariables have been deprecated. Most noticeably Tracker.setVisitCustomVariable has been removed and should now be used like TrackHelper.track(CustomVariables.toVisitVariables()).something(). While a bit more work than before this makes it clear that visit scope variables have to be transmitted (not just set to the tracker). Not only was the previous approach missleading, but we transmitted the visit scoped variables with every track request, even if they didn't change which wasted traffic. The new use pattern is similar to how the replacement for variables, "custom dimensions", is used.
To promote writing better code and making clear how Piwik works, the CustomDimensions extension of TrackMe has been removed. Instead there are now helper methods to set/get custom dimensions from TrackMe's and our friendly little TrackHelper now has a Screen.dimension as replacement for the deprecated Screen.variable method.
TrackHelper.dimension has been added to allow tracking dimensions conventiently with any typ of action in TrackHelper.

Usage examples can be seen here: https://github.com/piwik/piwik-sdk-android/pull/148/commits/ba25abfaf03b149e237a992dca37d9cdd43f309c#diff-a9f2a402bc64d1dc87638db64836ec35

Migrating from CustomVariables to CustomDimensions is not possible without data loss, or is it?
Added a few more (deprecate tagged) helper methods (I still use custom vars myself).

I know it's quite a handful of changes, but I felt that this was necessary to future proof the SDK. A modern Piwik 3.0 deserves a modern Android SDK...
I need help with making sure that the server-side analytics is not affected by these changes. I've done testing in my own app and with the example app, would be good if we could get a few more apps to test that switching doesn't alter analytics.
Guide:

Run existing app with old sdk
Check analytics
Integrate new sdk
Give feedback on new sdk api
Run existing app with new sdk
Check analytics
Give feedback

looks at the usual suspects 😉 @dotsbb @eldk

A modern Piwik 3.0 deserves a modern Android SDK...

Brilliant!
@d4rken I'll look at this for sure, but it will take some time, so please be patient ;)
BTW what do you think about releasing current dev branch with offline mode as 1.1.0 version?

Hello,
Thanks @d4rken ,
I have done a release (stable) of my app with what @dotsbb call 1.1.0 and add +optout, optin wifi, optin always mode (only one check).
I will include and test 2.0 in my beta release in next days (one week max), I have a bunch of thing to do on other stuff.
Maybe it's a good idea to release a 1.1.0, keep dev for 1.1.n, and have a 2.0 beta branch with its own dev ?
Thanks,
Eric

BTW what do you think about releasing current dev branch with offline mode as 1.1.0 version?

Don't really like it, because the offline mode is a change that will affect not only analytics but also app behavior (storage, traffic). I would prefer this comes along with a breaking change so devs are aware of what's new.
I think we could change the dev code branch such that offline mode is disabled by default, tag that as v1.1.0 and release.

Maybe it's a good idea to release a 1.1.0, keep dev for 1.1.n, and have a 2.0 beta branch with its own dev ?

I don't think it's necessary to split development of 1.X and 2.X, after some testing/review from you @dotsbb we can merge this into dev.
Worst case: We make a PR against master to fix a bug 😁 .

I have done a release (stable) of my app with what @dotsbb call 1.1.0 and add +optout, optin wifi, optin always mode (only one check).

Could you make a PR of these changes against the current dev branch? I would like to look at them and maybe we include it in a 1.1.0 release.
What do you think about disabling offline mode by default?

What do you think about disabling offline mode by default?
I think this should be the dev choice.

As I use "Opt-in" in my app,  user must say YES to send datas, if no, no datas are collected and dispatched, so no connexion needed, no connexion choice to do.
Some others devs, may prefer to use "Opt-out" : if user don't say NO, datas are collected and dispatched, so connexion choice may be given.
In EU, and in France (I better know), from legal point of view, "Opt-in" is always the final choice, on existing legislation or when a new one is made.
As I have used/tested some other tools,  before to make PIWIK choice, a lot of them are "Opt-out", or better done to use it.
So for some, enable connexion by default will be good, others may have or prefer to have it defaulted to disable.

Could you make a PR of these changes against the current dev branch?
I will do it before end of week

@eldk I was refering to offline mode, not all data collection. I think we should disable offline mode by default in 1.X and enable it by default in 2.X.

I've gone with @eldk's idea and created a 2.0 branch that we can later merge into dev when it's done. This makes it makes easier to submit further PRs against the 2.0 branch (as you will see in a min 😛).


Problem loading Google Maps

Please how can I solve a MissingKeyMapError?

Got the same problem.

So the referenced issue (#103) says it may be because the cache.
I'm going to try it now.

Hello @giantthinker. Did you solve it? I'm still having problems.

Hi @baumannzone. No I didn't. The map still does not load.

Check my solution: #104 and then, you may close this issue.

Hi @baumannzone, please in your solution trace the solution in your code for me to easily spot it. I can't find that line. Thanks.


Example project is broken

Challenge Show Relationships with a Force Directed Graph has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
The example project http://codepen.io/FreeCodeCamp/pen/KVNNXY isn't rendering.

@mmatthews1981 I think one reason it doesn't render is because Free Code Camp doesn't use the News section on the site anymore, since it moved news and discussion over to Reddit. @FreeCodeCamp/issue-moderators correct me if I'm wrong on this.

@erictleung The link still works if it's updated to https.
Closing as https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7700 addresses this.

I would just like to add that I just opened it with https and it is still blank. I tried in Chrome, Firefox, and Firefox mobile and on all of them it is just a brown page with a blank container that has a box shadow.

@raisedadead if you have access to the FCC account on CodePen, the variable URL_News in the JavaScript code needs an https:
var URL_News = 'https://www.freecodemp.com/news/hot';

Ah looks like we missed the description in your last PR too.

I am also unable to view anything on the codepen URL no matter I am using HTTPS or HTTP.

@arsho if you just briefly take a look at the code, look at the JavaScript (JS) section and add an s to the link in the URL_News variable and you should then be able to see things move.

Who's got access to the account? we need that in order to update the var like @erictleung's said

@hallaathrad I have got access. I'll take care of this asap.

@erictleung Sorry, I should have been more specific about which link I was talking about.
I thought this part of #7700 addressed it:

@mmatthews1981 @erictleung @hallaathrad @sludge256 I just updated it. Please refresh

And we have yet to find a data set for this challenge hence that is not addressed in the PR.

@sludge256 @erictleung Please close after confirmation. Thanks.

@raisedadead CodePen looks good! This issue should stay open. The text for the link for the Camper News Hot Stories API needs to be changed to https.

Closing as the example project is no longer broken. Happy coding, y'all!

I see the url has been updated but I am still getting the following error message in the console.

@arsho have you checked the codepen with https as in :
https://codepen.io/FreeCodeCamp/pen/KVNNXY

@raisedadead , I tried the codepen with https but still no luck. I also cleared my browser cached files. I am using Chrome Version 49.0.2623.75 (64-bit) on Ubuntu 15.04 machine. Here is the screenshot:

no what?  that issue is fixed. @raisedadead. I checked on that pen. it is fine now

@dwd2010 Its broken for me. It was working earlier.
@ahstro This is weird behaviour. strange.

@raisedadead, odd. I just did checked that pen few mins ago. it is fine to me.

Confirmed.
User agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

@raisedadead ,
While accessing the url https://www.freecodecamp.com/news/hot directly from browser, I get the following confirmation page.

Is it causing problem in Codepen Javascript code too?

@ahstro That is unrelated. You are using an ISP or VPN that CloudFlare (our DNS provider) has marked suspicious do to prior malicious activity.

Yup @arsho Unfortunately, I am also behind a shady ISP. This works perfectly when I switch to a different network.
Sorry about the inconvenience and I share the frustration, but closing this as nothing can be done on FCC side.

@raisedadead , Ya, I am using shared broadband internet connection that may or may not be used for suspicious activity, I have no idea. I also cannot switch to any different network at this moment.
@BerkeleyTrue,
I am confident that other campers from Bangladesh will also face the same problem. Currently I am working the challenge by downloading the json object from the browser locally.
I have a suggestion that the API can be referred to a link in github as the other D3 challenges as it is nothing but to learn D3. It does not need actual real time value. If the link collects data from Github, everyone can use it without facing any problem.


Change regexp to forbid names with dots or underscores as first or la…

…st character
Closes: #1
Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!


Extinction Geyser Station has two orbit lines

Might only happen after dying and respawning not sure, only noticed it then.
I also had the Vision installed at the time

ong bird never complained so idc


Man page?

Hello @Un1q32, I maintain a Alpine linux package of your pfetch fork. I think it can be good to have a man page. I can make a PR if you agree.
Best regards
Daniel Hejduk

Good idea! Every environment variable is documented in the readme so you can copy that, and the only command line options are -d/--debug and -v/--version.
pfetch     show system information
pfetch -d  debug mode
pfetch -v  show version

I recommend to make new release of pfetch, so I can update the alpine linux package. Maybe we can do config files like neofetch.

I make a new release the 1st of every month.  The next release will be on November 1st.

OK

I've made that new release btw

The PR is live. https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/74513


Add a way to specify alternate base URLs for use in testing

Webedit now will use a url specified in _WEBEDIT_ALTERNATE_BASE instead of the hardcoded default.

Darn, this was supposed to goto devel


Being front for access to diversity of plugins and configs

I think it would be excellent to have a front-end which allowed for incorporating a great diversity and plurality of plugins and configs.
Being able to choose anything from https://github.com/dustinspecker/awesome-eslint or the like--a site which may incidentally also help with categorization within create-config--would I think allow for better discovery of useful tools from the ecosystem, and also foster the community enforcing better control of their code. I personally find it difficult to live without plugins like unicorn, import, promise, eslint-comments, as well as special environments ones like plugins for node, html, markdown, no-unsanitized, compat, etc., but I think there is a kind of inertia for some projects that they ought to stick mostly just to the default rules for some self-limiting reason. With ESLint itself demonstrating its openness to plugins, and not favoring certain configs over others (beyond sorting them roughly in order by some objective criteria like number of stars on GitHub), I think this approach could be a good one.
I'm not inclined to work on this myself at the moment, but wanted to share it as an idea in case it might interest.

I’m not quite sure what it is you’re proposing. Are you suggesting that we somehow incorporate more options into the —init command? Or are you suggesting we build out a website?

More options into --init. But yeah, was also thinking it may be interesting for this project to be adapted as a polyglot project, where a site like the demo might indeed allow downloading a config file. Some folks may be more comfortable doing this than working on the command line. But the first idea is more in my thoughts at this time.

Gotcha. Can you describe specifically what you have in mind?
It’s hard to evaluate something as amorphous as “we should help people find plugins”. 😁

Sure... :-)
Was thinking it could be a sizeable wizard app, albeit one which did not have too many choices on screen at a time.
For example, looking at the awesome-eslint categories as food for ideas, a page might begin:
Do you wish to:

[x] get started quickly with just a few questions
[x] explore many of the available options in the ESLint plugin ecosystem?

Then if choosing no. 2, be shown:
Are you interested in plugins to:

[x] Enhance general Code Quality?
[x] Check for Compatibility in coding environments (e.g., browsers or ES versions)
[x] Deprecating features or Disabling plugins?
[x] Targeting JavaScript embedded within our languages like HTML?
[x] Working in a friendly way with a particular framework or library
[x] Working in a friendly way with other languages and environments (e.g., Node, CSS, TypeScript, JSON)
[x] Tweak ESLint in miscellaneous ways (e.g., converting rules to errors)
[x] Enforce specific Practices and Specific ES Features (e.g., checking imports, arrays, comments, promises, functional programming, etc.)
[x] Watch for Performance issues
[x] Check against Security concerns
[x] Enforces particular Style rules (e.g., import sort order, padding between statements)
[x] Better work with specific Testing Tools (e.g., Mocha, Chai, Jest, Cypress)

if clicking yes to no. 1, would give eslint-plugin-unicorn, eslint-plugin-sonarjs, etc. as options, for example, as per items in awesome-eslint's Code Quality section, and same with the rest.
I don't have too much of a strong idea of the exact UI except to ensure that things are categorized well to avoid too many items per category and ensure items are grouped as most salient to the average person (as we've hopefully done with awesome-eslint).
Btw, one really exciting tool concept out there is mrm which seeks to autogenerate files including ESLint configs on a codemods type of approach (also being usable to modify existing files). The project hasn't always been super responsive though, or otherwise, I might have submitted some of these ideas there.

Interesting idea. I do have some concerns, though:

I could see this turning into a popularity contest where every plugin author wants to get added and we will end up needing to draw some arbitrary line between who is included and who is not. This isn’t something I’d want to deal with on an ongoing basis.
I’m not sure we want the init wizard to be more complicated. Command lines are lousy for doing a lot of configuration. The init wizard was always intended to be a QuickStart, not an all-encompassing configuration tool.
We would constantly be fighting plugin compatibility issues. (Compatibility between plugins, with ESLint, etc.)

I think a better solution to the same problem is a website that makes it easy to discover plugins and rules. That’s obviously a massive undertaking but I think a much better experience for all involved.

Interesting idea. I do have some concerns, though:
1. I could see this turning into a popularity contest where every plugin author wants to get added and we will end up needing to draw some arbitrary line between who is included and who is not. This isn’t something I’d want to deal with on an ongoing basis.

Sure, understandable.  I guess we are already taking care of these kinds of choices with awesome-eslint, so maybe we in the community could help out. (See below)

2. I’m not sure we want the init wizard to be more complicated. Command lines are lousy for doing a lot of configuration. The init wizard was always intended to be a QuickStart, not an all-encompassing configuration tool.

Sure, understandable. I guess this brings me back to mrm since that can be set up with customizable defaults such that projects wouldn't have to go through the hoops of going through a load of screens each time. If they only wanted a choice between their two favorite configs, they could do so. And mrm allows through its interface installing third-party presets on npm so awesome-eslint could in theory make its own version with all choices potentially available but which also allowed customization to avoid a bloated series of choices.
Tbh, I think ESLint focusing on developing or forking that project might be time better spent than a limited tool--however understandable I think it is to offer something as it does--but I know there is scope creep and all.

3. We would constantly be fighting plugin compatibility issues. (Compatibility between plugins, with ESLint, etc.)

I think a better solution to the same problem is a website that makes it easy to discover plugins and rules. That’s obviously a massive undertaking but I think a much better experience for all involved.

Yeah, I can see that concern on making sure it all works, but I tend to view it from the point of view of a developer who is used to either:

Living with a plugin advertising not yet supporting a new version while it effectively does (courtesy of --legacy-peer-deps)
Finding out by trial and error if I need to downgrade or drop a plugin. The big thing I think is knowing what's available, so I can make the choice, watch the repo for updates, etc.

But again, upon your input and reflection, I do think maybe this is better supported through other tools like mrm.
Still, given the centrality of plugins to some tools' great success (like Firefox back in the day), you might want to give a little thought to that mrm idea because I think that might bring these advantages:

Avoid blessing any particular configurations while still promoting extensibility
Have discovery of plugins and configs fostered by the popularizing of a mechanism which the community can expand
Offer something more powerful to the community than create-config as it currently is, with mrm's support for customizable and extensible code modding against even an already existing ESLint config, etc.)

While a website might appeal to some, I think the developer's developer might prefer all this control, e.g., so, as mentioned, they could, via mrm config, have some decisions automated based on their interests and be presented with only those choices which they vary about.
I'll close the issue, but just something to possibly consider.


Added a spec file for rpm packages.

Added the spec file and made sure it is excluded from Cargo's package list.

Hi there! Can you explain what this file would be used for/why you created this PR? I assume to make an RPM package from this project? But what would that be good for? Other Rust projects will include litrs via Cargo and litrs does only offer a Rust interface. So I don't see why one would make an RPM package of this :thinking:

This is a transitive dependency of another rust program that I am packaging for fedora.
According to Fedora's Rust Packaging Guidlines all dependencies need an rpm package.
Since I will be handling the rpm I can keep the spec file in my fork if you prefer.

Since I will be handling the rpm I can keep the spec file in my fork if you prefer.

Yes, I think I prefer that. I have no idea about packaging, so it would be wrong if I would end up "maintaining" this file. So I don't think it belongs in this repository. Thanks for your PR anyway!


Hide Cursor, and just return a Box<Iterator> instead

This will allow us to abstract the Connection to be
non-backend-specific, without also having to do the same for Cursor.

Review? @mcasper @mfpiccolo

:+1: