Running into problems when pickling Map and HashMap

steps (0.10.0)
scala-pickling> console
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.11.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_51).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scala.collection.immutable
import scala.collection.immutable

scala> import scala.pickling._, Defaults._, json._
import scala.pickling._
import Defaults._
import json._

scala> immutable.HashMap(( for (j <- 0 until 20) yield j -> "Test" ): _* ).pickle.value

problem (0.10.0)
scala> println(immutable.HashMap(( for (j <- 0 until 20) yield j -> "Test" ): _* ).pickle.value)
{
  "$type": "scala.collection.immutable.HashMap.HashTrieMap",
  "bitmap":<PHONE_NUMBER>,
  "elems": {
    "elems": [
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    },
      {
      "$type": "scala.collection.immutable.HashMap"
    }
    ]
  },
  "size0": 20
}

original report
My data structure is stored as a Map and when I try to pickle it I run into some weird issues.
When pickling a immutable.HashMap using the following example code.
import scala.collection.immutable
import scala.pickling._
import json._

object Test {
  def main(args : Array[String]) {
    println(immutable.HashMap(( for (j <- 0 until 20) yield j -> "Test" ): _* ).pickle.toString)
  }
}

as output I get
JSONPickle({
  "tpe": "scala.collection.immutable.HashMap.HashTrieMap",
  "bitmap":<PHONE_NUMBER>,
  "elems": {

  },
  "size0": 20
})

If I use instead the following snippet of code
import scala.collection.Map
import scala.pickling._
import json._

object Test {
  def main(args : Array[String]) {
    println(Map(( for (j <- 0 until 20) yield j -> "Test" ): _* ).pickle.toString)
  }
}

I also end up with
JSONPickle({
  "tpe": "scala.collection.immutable.HashMap.HashTrieMap",
  "bitmap":<PHONE_NUMBER>,
  "elems": {

  },
  "size0": 20
})

only when I don't explicitly import Map do I end up with the correct output.

I was able to reproduce this problem using Pickling 0.10.0.

Looks like this issue is due to the fact that specialized classes are not
handled correctly.
On Feb 8, 2015 7:07 AM, "eugene yokota"<EMAIL_ADDRESS>wrote:

I was able to reproduce this problem using Pickling 0.10.0.
—
Reply to this email directly or view it on GitHub
https://github.com/scala/pickling/issues/63#issuecomment-73398665.

@phaller - Looking at this example @yigit provided, It is curious that the scala.Tuple2 at the top level seems to work fine but the Tuple2 as the value of the Map does not. Just thought I'd mention it in case that's a clue to fixing this.

Just some quick notes:

I was able to correct the reported issue by providing a new hand-rolled ImmutableMap pickler which uses TravPickler generator.
We still have the runtime issue, because the runtime pickler kicks in for unpickle[Any] and this tries to look into class structure, which fails.
We need some additional runtime hooks to provide custom runtime picklers but NOT for concrete types, but rather type constructors (like Map[,]).  We already have a mechanism in place specifically to handle Tuple2, but it's not extensible.


Additional webpack documentation

Thank you for the time you are putting into AlaSQL!

Part of #809

Awesome - thanks ! :)


Some UI improvements while using the dark mode

Prevent printing of the contributor's details on the console of the website.

improvement in the contributor's section as the avatars are too close to each other and the icon size is small.

fix the faqs section UI in the dark mode

Can I make some contributions here?

@Ollie-beep-bop it is already completed, just waiting for the branch to be merged. you can choose any different issue.

I want to contribute to this issue.
Kindly assign me

@aditi824 I have already submitted a pr for the same ,you can contribute once the changes a merged

@anujsinghrawat ok


AGI-24 conference - virtual engagement, 13th-16th August 2024

Details TBC, but there are probably roles for

facilitate a virtual "chill/reflection" space on Zoom, every day for 2 hours (probably 17-19:00 UTC)
conduct virtual fishbowl interviews on Zoom

Payments TBC - they will come from the Foundation, rather than the WG budget.

Vani to share a sign-up sheet in the next couple of days.
And will be mentioning it at Town Hall.
It will be open to the whole Ambassador program - but it would be nice if AI Ethics WG members have first dibs, as they're the people who have shown interest in the topic.
Due to the short time-frame, we don't have time to train people - so ideally it needs to be people who can already do the task without needing much support.
Tho perhaps we could fund some "shadowing" roles - pay people's time to attend and see how it is done?

Signups for roles on 13th-16th have now closed - see https://docs.google.com/spreadsheets/d/1vLC4ZIHO3WN-Ah9XwehRmbwLZAeePsxxYQXmLiiJLnQ/edit?usp=sharing
The selected people are:
Tues 13th
chillout room: Ese and Barnabas
interviews: Onize
Wed 14th
chillout room: Barnabas and Merryman
interviews: Jenn
Thurs 15th
chillout room: Barnabas and Onize
interviews - Jenn
Fri 16th
chillout room: Love and Onize
interviews:  Merryman

Still waiting to determine how payments will be processed

The Foundation has decided to pay people directly to their wallets, from the Supervisory Council wallet, without going through the Ambassador Treasury system.
So, since this is not part of the WG budget and is not actually going to be treated as if it was, we don't need to create individual Issues on this Board for people's work, and this holding issue can be closed.
Note that, sadly, this process may not have established a precedent for how payments for any future work at conferences and events can be processed.

In the WG meeting on Mon 2nd December, we agreed to leave this issue open until the payments have been made, just to remind ourselves to keep an eye on it and ensure it's resolved.

Update: I spoke to Esther a few weeks ago, but didn't get very far.  I will contact her again when we re-convene from the Holiday Break.


Solution needed

A simple solution with brief explanation is needed for this problem Sequence Equation
Anyone can work on this and send a PR. (multiple solutions in different languages are welcome)
If one solution has already been added, You may also add your solution (provided it is not exact copy).
Number the solutions accordingly (eg: solution2)

Note: Please include atleast a bit of explanation/logic as comments to your code before sending a PR.
The idea is to get a better understanding of solutions and not simply getting the code :)

Note: Please include atleast a bit of explanation/logic as comments to your code before sending a PR.
The idea is to get a better understanding of solutions and not simply getting the code :)

Added Detailed Explanation with Cpp solution  map based


ROX-9735: Enable SAC for Upsert on indirectly scoped resources

Description
Enable SAC for Upsert/UpsertMany for indirectly scoped resources.
Upsert operation will require full read and write access to resource.
Testing Performed
CI

Current dependencies on/for this PR:

yann/extended_resource_type_test

PR #1918   👈

This comment was auto-generated by Graphite.


Added snippet to Write() to BigQuerySink

R: @chamikaramj Python
R: @melap Docs
Quick PR to add a snippet to use Write with a BigQuerySink for batch.

I don't think this is needed. Please see my comments in https://github.com/apache/beam-site/pull/376


Errors in logs for only one container even when removed from config

I've started getting the following errors every few minutes in my HA log:
2020-12-18 18:22:15 ERROR (Thread-4) [custom_components.monitor_docker.helpers] grafana: Cannot determine CPU usage for container ('system_cpu_usage')
2020-12-18 18:22:15 ERROR (Thread-4) [custom_components.monitor_docker.helpers] Raw 'cpu_stats' {'cpu_usage': {'total_usage': 0, 'usage_in_kernelmode': 0, 'usage_in_usermode': 0}, 'throttling_data': {'periods': 0, 'throttled_periods': 0, 'throttled_time': 0}}
2020-12-18 18:22:15 ERROR (Thread-4) [custom_components.monitor_docker.helpers] grafana: Cannot determine memory usage for container ('usage')
2020-12-18 18:22:15 ERROR (Thread-4) [custom_components.monitor_docker.helpers] {}: Raw 'memory_stats' grafana
2020-12-18 18:22:15 ERROR (Thread-4) [custom_components.monitor_docker.helpers] grafana: Can not determine network usage for container ('networks')
2020-12-18 18:22:15 ERROR (Thread-4) [custom_components.monitor_docker.helpers] grafana: No 'networks' found in raw packet
2020-12-18 18:24:18 ERROR (Thread-4) [custom_components.monitor_docker.helpers] grafana: Can not determine network usage for container ('networks')
2020-12-18 18:24:18 ERROR (Thread-4) [custom_components.monitor_docker.helpers] grafana: No 'networks' found in raw packet

I've updated the integration and it shows as the latest version in HACS.
I've updated to the latest version of the grafana image.
I've even removed the grafana container from my list of monitored containers:
monitor_docker:
  - name: Docker
    containers:
      - hassio_supervisor
      - homeassistant
      - addon_a0d7b954_nut
      - qt-openzwave
      - ha-zwave-network
      - z2m-assistant
      - zigbee2mqtt
      #- grafana

And I've even tried stopping the grafana container and I still keep getting those errors in the logs.

For overall cpu/memory the monitor_docker needs to retrieve the Grafana container too ... How does your docker-compose.yaml or docker run looks like?
Does this only happen to Grafana or other containers too?

For overall cpu/memory the monitor_docker needs to retrieve the Grafana container too ... How does your docker-compose.yaml or docker run looks like?
Does this only happen to Grafana or other containers too?

For overall cpu/memory the monitor_docker needs to retrieve the Grafana container too ... How does your docker-compose.yaml or docker run looks like?
Does this only happen to Grafana or other containers too?

For overall cpu/memory the monitor_docker needs to retrieve the Grafana container too ... How does your docker-compose.yaml or docker run looks like?
Does this only happen to Grafana or other containers too?

It only errors for grafana. None of the other configured containers have any errors.
here is my docker run command:
sudo docker run -d -p 3000:3000 --name="grafana" --restart unless-stopped -v /home/finity/docker/grafana:/var/lib/grafana grafana/grafana

it worked fine with no errors until a few weeks ago. I'm not exactly sure when it started tho.

It only errors for grafana. None of the other configured containers have any errors.
here is my docker run command:
sudo docker run -d -p 3000:3000 --name="grafana" --restart unless-stopped -v /home/finity/docker/grafana:/var/lib/grafana grafana/grafana

it worked fine with no errors until a few weeks ago. I'm not exactly sure when it started tho.

This is an old issue, I will close it. If persists, please open a new one.


Importing dump error from 1.10.3 -> 1.11.0

Describe the bug
When import a dump from 1.10.3 to 1.11.0 I am getting the following error:
Error: unknown field `localizedAttributes`, expected one of `displayedAttributes`, `searchableAttributes`, `filterableAttributes`, `sortableAttributes`, `rankingRules`, `stopWords`, `nonSeparatorTokens`, `separatorTokens`, `dictionary`, `synonyms`, `distinctAttribute`, `proximityPrecision`, `typoTolerance`, `faceting`, `pagination`, `embedders`, `searchCutoffMs` at line 1 column 765

To Reproduce
Have a database with some data, create dump in 1.10.3 and try to then upgrade the dump in 1.11.0
Expected behavior
To not have this error message.
Screenshots

Meilisearch version:
v1.10.3 & v1.11.0

Hey @Flo4604 👋
Unfortunately, I cannot reproduce your issue. Here are the steps I followed:

Start a Meilisearch v1.10.3 and send the locallizedAttributes settings into an index called movies (whatever).
Enqueue a dump creation and wait for it to be done.
Stop this Meilisearch v1.10.3 version.
Delete the data.ms database.
Start a Meilisearch v1.11.0 with the --import-dump {mydump} where mydump is the previously generated dump
Profit as no error was thrown, and the settings contain the locallizedAttributes parameters.

Would you mind providing a reproducer with a dump included, please?
Have a nice day 🎃

Hi @Kerollmops I just pulled the latest tag again and it seems to work.
Sorry about that looks like I was on the wronger docker image

Ho! It may have been a problem on our side then. We are sorry for the inconvenience 🤦♂


compability with pvfactors 1.4

The pvfactors_timeseries function does not work with versions of pvfactors >= 1.3.
First reported in the pvlib google group
@anomam do you think it's worth continuing to maintain this wrapper function? It seemed like it made sense in the early days of pvfactors but you've done a lot since then it's not clear to me why people shouldn't just use pvfactors directly.

well for various reasons I actually can't get test_bifacial.py to pass using 1.2.2, 1.1, or even the CI suite's pvfactors==1.0.1. Maybe something about incompatibility of earlier versions of pvfactors with python 3.8 and/or pandas 1.0? I'm not up to digging hard on it right now.

@CameronTStark I'm not interested in fixing this.

@CameronTStark I'm not interested in fixing this.

Hi @wholmgren , I apologize as I haven't been on top of this at all since the first implementation of pvfactors in pvlib. The version 1.4.1 is very stable and a lot better than what's currently used in pvlib (incredibly faster thanks to complete vectorization and almost no reliance on shapely or pandas anymore, plus more modeling features and stronger architecture), and I'd be happy to spend some time updating pvlib if you're still ok with having pvfactors, but I don't know if you are...

@anomam do you think it's worth continuing to maintain this wrapper function? It seemed like it made sense in the early days of pvfactors but you've done a lot since then it's not clear to me why people shouldn't just use pvfactors directly.

I have a couple of questions that could maybe help the discussion:

does pvlib desire bifacial modeling capabilities? I just looked at the bifacial.py module and I don't see anything else or any other model implemented apart from what I did, so maybe there's not much interest...?
are there any feedback from users about using the pvfactors wrapper?
has it become an issue for pvlib to rely on external packages for models? (apart from me doing a bad job maintaining it so far, sorry)

In my opinion, if it was worth having the older version of pvfactors in the first place, then it's probably even more worth having the latest one as it's a lot better. But that's what I'd like to understand/discuss.
Thanks for your time!

I should clarify that my statement that I wasn't interested in fixing it extended only to my own contribution (in response to being assigned the issue), not the general utility of fixing it.

does pvlib desire bifacial modeling capabilities? I just looked at the bifacial.py module and I don't see anything else or any other model implemented apart from what I did, so maybe there's not much interest...?

Yes. The lack of additional models is only due to a lack of time.

are there any feedback from users about using the pvfactors wrapper?

This is not the first time that users have asked about compatibility with newer versions of pvfactors.

has it become an issue for pvlib to rely on external packages for models? (apart from me doing a bad job maintaining it so far, sorry)

I don't think we have enough experience yet to determine this.

In my opinion, if it was worth having the older version of pvfactors in the first place, then it's probably even more worth having the latest one as it's a lot better. But that's what I'd like to understand/discuss.

Makes sense to me. I was somehow under the impression that you might now think that pvlib users should use pvfactors as a standalone package. I don't know where I got that from. Maybe just seeing some features go by on my github notifications.
Thanks @anomam!

Ok, thanks @wholmgren . I will try to get started on this during the week or next week; unfortunately I can't allocate work time to this anymore so I'll try to do it one of these nights

@anomam I'll second what @wholmgren says, that linking with pvfactors is worth doing. Several other bifacial modeling options are in the works #863 and #717, because there's value in providing a variety of these models in a common framework. Please let me know if there's something I could do to help here.


The crosstable cant be printed out in Python console

Description
What steps will reproduce the problem?
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
import pandas as pd
import numpy as np
iris = load_iris()
df = pd.DataFrame(iris.data, columns=iris.feature_names)
df['is_train'] = np.random.uniform(0, 1, len(df)) <= .75
df['species'] = pd.Categorical.from_codes(iris.target, iris.target_names)
df.head()
train, test = df[df['is_train']==True], df[df['is_train']==False]
features = df.columns[:4]
clf = RandomForestClassifier(n_jobs=2)
y, _ = pd.factorize(train['species'])
clf.fit(train[features], y)
preds = iris.target_names[clf.predict(test[features])]
pd.crosstab(test['species'], preds, rownames=['actual'], colnames=['preds'])
I  do a test for code above ,and hope the see the crosstab result. But it cant be printed out in the console. However , when I pasted the code in command window, it runs well ,I can see the table.
Is there any problem with the console box to show the crosstab result?
Version and main components

Spyder Version: 3.1.4
Python Version: 2.7.13
Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies
pyflakes >=0.5.0 :  1.5.0 (OK)
pep8 >=0.6       :  1.7.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
qtconsole >=4.2.0:  4.3.0 (OK)
nbconvert >=4.0  :  5.1.1 (OK)
pandas >=0.13.1  :  0.20.1 (OK)
numpy >=1.7      :  1.12.1 (OK)
sphinx >=0.6.6   :  1.5.6 (OK)
rope >=0.9.4     :  0.9.4 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
matplotlib >=1.0 :  2.0.2 (OK)
sympy >=0.7.3    :  1.0 (OK)
pylint >=0.25    :  1.6.4 (OK)

the result in JupyterQtConsole is :
Out[3]:
preds       setosa  versicolor  virginica
actual
setosa          13           0          0
versicolor       0           9          2
virginica        0           1          5
however in Spyder ,there is only(both python console and Ipython console) :
runfile('C:/Users/Administrator/.spyder/temp.py', wdir='C:/Users/Administrator/.spyder')
and no table.....

What you get with runfile is exactly the same that you get when you run python myfile.py. So if you want to see something printed in the console, you need to ask Python explicitly to do that.
In other words, your last line needs to be
print(pd.crosstab(test['species'], preds, rownames=['actual'], colnames=['preds']))

Great! Thank you

Great! Thank you


CORGI-432: API / logic changes needed for OSC integration

@RedHatProductSecurity/corgi-devs This is mostly ready for review. The approach shouldn't change and there are detailed comments on the more important / complicated commits, but I still need to:

Compare the reconciliation report before and after the latest filter changes, to confirm we have no regressions in coverage (but I'm not expecting any).
Confirm there are no performance regressions. Everything was much faster when I tested locally (with large amounts of data), but things were still slow when I deployed to stage for the demo.
Add some tests for the new ?include_fields and ?exclude_fields parameters, once I finish above.

I already tested the actual logic, and then demoed to OSC yesterday. They seem happy with the overall approach, but I did emphasize this wasn't finalized yet in case we need to make any changes.

LGTM ... part of this code is the idiom we applied in osidb so its already gone through a review there as well - we are slower then it could be (but still ok processing time) this is due to yet another slow count which I will eventually fix   ... I would rather get this in sooner rather then later though I wonder if the change in semantics for latest filter match expectations of all prodsec ... lets just push to stage and start the conversation. Very nice work !

I am off the project and its completely your (and Jason's call) to merge eg. it might be that replacing with new filter causes you/Jason to have re perform analysis -  but generally you know that ;)


Save block entity data to display ItemStacks for laser node GUI

This allows seeing the colors on an ender chest or the fluid in a tank for example
Before:

After:

Tested and it works great :) thank you!


Composer install with symfony 2.7

When installing rocketeer through Composer on a symfony 2.7.x some dependencies are broken:
I'm using "dev-master" branch.
composer update "anahkiasen/rocketeer"
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for anahkiasen/rocketeer dev-master -> satisfiable by anahkiasen/rocketeer[dev-master].
    - Conclusion: remove symfony/symfony v2.7.2
    - Conclusion: don't install symfony/symfony v2.7.2
    - anahkiasen/rocketeer dev-master requires illuminate/filesystem ~4.2 -> satisfiable by illuminate/filesystem[v4.2.1, v4.2.12, v4.2.16, v4.2.17, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9].
    - illuminate/filesystem v4.2.1 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.12 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.16 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.17 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.2 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.3 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.4 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.5 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.6 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.7 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.8 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/filesystem v4.2.9 requires symfony/finder 2.5.* -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - don't install symfony/finder v2.5.0|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.1|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.10|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.11|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.12|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.2|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.3|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.4|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.5|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.6|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.7|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.8|don't install symfony/symfony v2.7.2
    - don't install symfony/finder v2.5.9|don't install symfony/symfony v2.7.2
    - Installation request for symfony/symfony == <IP_ADDRESS> -> satisfiable by symfony/symfony[v2.7.2].

Due this problem, I installed the .phar file, but I wanted to have it as a dependency, for creating classes & custom tasks.
Any thoughts about how to solve this?
Thanks!

I'm also having this issue.  Are there plans to resolve this?

You can still create classes and custom tasks when using the PHAR, just need to include your local vendor folder no? Or create your classes in .rocketeer/tasks etc

@Anahkiasen Does this mean pulling Rocketeer as library via Composer is not supported anymore? Does Rocketeer respect the autoload info of the local vendor-dir? Does it support a vendor-dir other than vendor?

I looked into the illuminate/filesystem package to see what changed between 4.2 & 5.0, but there's no changelog.  I guess we could try updating to 5.x & see what happens.  Are the tests on this project comprehensive enough to check everything's OK after the upgrade?  I'm pretty new to this project, so don't know.

BTW, the same can be said about illuminate/console. Rocketeer currently requires this package in version ~4.2 which forbids using version 5.x and especially 5.1.x which switched to symfony/console 2.7. For example the latest typo3/cms uses symfony/console 2.7 and is thus not installable next to Rocketeer. (Or vice versa.)

Hmmm… looks like a fair bit of work there.  I don't know Illuminate components well, being more of a Symfony guy, but the config loader's throwing errors on initial glance

I've just forked to see what happens when updating, but it looks like the config loader needs some work to update.  Will see if I can find time to dig around with this sometime soon, unless anyone else has time sooner.

We are now using a custom .phar which includes our own classes as well as Rocketeer and it's dependencies. Just use the box.json which comes with Rocketeer and change the paths to point to vendor/anahkiasen/rocketeer/... instead.
With this we don't have to worry about dependency conflicts between our projects and Rocketeer anymore.

Thanks for the update.   Can you just elaborate on the "change the paths to point to …"?  Do you mean to add vendor/anahkiasen/rocketeer/... to the directories aray?

No. Have a look at the box.json. Since Rocketeer is pulled as dependency, you need to change a few paths, namely like this:
{
  ...
  "banner-file": "vendor/anahkiasen/rocketeer/bin/banner.txt",
  ...
  "bootstrap": "vendor/anahkiasen/rocketeer/src/Rocketeer/Console/Compilation/WhitespaceCompactor.php",
  ...
  "main": "vendor/anahkiasen/rocketeer/bin/rocketeer",
  "output": "bin/your-phar.phar",
  ...
}

Don't forget to also fix the finder portion according to #609.

Same issue here:
$ composer require anahkiasen/rocketeer
Using version ^2.2 for anahkiasen/rocketeer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for anahkiasen/rocketeer ^2.2 -> satisfiable by anahkiasen/rocketeer[2.2.0].
    - Conclusion: remove symfony/console v3.0.6
    - Conclusion: don't install symfony/console v3.0.6
    - anahkiasen/rocketeer 2.2.0 requires illuminate/console ~4.2 -> satisfiable by illuminate/console[v4.2.1, v4.2.12, v4.2.16, v4.2.17, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9].
    - illuminate/console v4.2.1 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.12 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.16 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.17 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.2 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.3 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.4 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.5 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.6 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.7 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.8 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.9 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - Can only install one of: symfony/console[v2.5.0, v3.0.6].
    - Can only install one of: symfony/console[v2.5.1, v3.0.6].
    - Can only install one of: symfony/console[v2.5.10, v3.0.6].
    - Can only install one of: symfony/console[v2.5.11, v3.0.6].
    - Can only install one of: symfony/console[v2.5.12, v3.0.6].
    - Can only install one of: symfony/console[v2.5.2, v3.0.6].
    - Can only install one of: symfony/console[v2.5.3, v3.0.6].
    - Can only install one of: symfony/console[v2.5.4, v3.0.6].
    - Can only install one of: symfony/console[v2.5.5, v3.0.6].
    - Can only install one of: symfony/console[v2.5.6, v3.0.6].
    - Can only install one of: symfony/console[v2.5.7, v3.0.6].
    - Can only install one of: symfony/console[v2.5.8, v3.0.6].
    - Can only install one of: symfony/console[v2.5.9, v3.0.6].
    - Installation request for symfony/console (locked at v3.0.6) -> satisfiable by symfony/console[v3.0.6].

Installation failed, reverting ./composer.json to its original content.

@TrogWarZ I recommend you to simply use the .phar or build your own to continue.

@mbrodala , got it, thank you.


Suggestion for Banking App

Since this project centres around a logging system: how about you make the app applicable for use in a logging system to log transactions for a bank. You can change the code and remove some specific aspects of existing animal parlour project and replace these with transactions that can be logged into the file system instead

Thanks for the comments on how to refactor the Pet Parlour logging application for use as a Banking Application. Most of the classes, and other functionality has had to change but the Interface and the Abstract classes have remained relatively unchanged, since they were designed to be generic logger classes.


Add Simulation motor

Add a simulation motor class that can move instantly (default) or do a timed move according to the velocity and distance.
@coretl I'm doing a draft PR so you can give me some early feedback. Does this look about right?
At the moment I'm fighting flake8 vs my installed ruff extension. Perhaps we should update to latest copier?
edit: copier adoption is under way at #207

#207 is progress so far with copier

@coretl How is this now?
CI is broken due to linting - awaiting https://github.com/bluesky/ophyd-async/pull/207

This is a fix for #57

Awaiting the branch 215_soft_signals to be merged and then will rebase off of main.
(so at present this does not pass CI)
Will address the change requests on Fri.

Awaiting the branch 215_soft_signals to be merged and then will rebase off of main. (so at present this does not pass CI)
Will address the change requests on Fri.

Have yet to push the changes which support numpy integer/floating types in the SimConverter, can push that on top of my branch or make a separate PR (should just be a few lines)

rebased over https://github.com/bluesky/ophyd-async/tree/215_soft_signals.

@callumforrester would you like to take a look?

@callumforrester because this is rebased it looks like lots of changes but you just need to look at:

src/ophyd_async/sim/demo/sim_motor.py
tests/sim/demo/test_sim_motor.py


feat: increase sync concurrecny count based on associations

Issue #, if available:
Description of changes:
There is a single thread allocated for two different queues, the Sync queue and the Reconcilliation queue. When the sync operations produce a reconcillliation operation containing 1000 items in memory, the resource spent on saving to disk causes the sync thread to get deprioitized. The result of this is most of the time spent writing to disk while network traffic trickles in.
This PR increases the thread count when we can determine that it can be optimized, for example when the models have no associations among them, then they can be retrieved and reconciled in any order. If it cannot be optimized (models with associations) then it falls back to the 1 thread per sync and recon queue. With the optimization, setting the thread to the number of models will immedately kick off one API call per sync operation, getting the results in memory (a reconcilliation operation) in the FIFO reconcilliation queue. Because they are reconcilled in order of the insertion into the queue, models with little data will not be blocked by models with a lot of data.
Baseline testing (TBD):

AModel, 200k items
BModel, 100k
CModel, 10k
DModel, 1k
EModel, 100

total ModelSync time for each
Check points:

[ ] Added new tests to cover change, if needed
[ ] All unit tests pass
[ ] All integration tests pass
[ ] Documentation update for the change if required
[ ] PR title conforms to conventional commit style

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

this has been merged in over in https://github.com/aws-amplify/amplify-ios/pull/1267


Unable to find configuration file - Error in October CMS 3.4.6 install

Hi,
We have a problem after creating a plugin via the Builder plugin.
We get the "Unable to find configuration file" error and didn't manage to find why. We were using the Builder for years and didn't had any issues. Now, in October cms V 3.4.6 we had Fatal Error on instalation and after fixed that we now have this issue.
When we are trying to Create a record, the system throws the "Unable to find configuration file" error like this:
"Unable to find configuration file /home/user/public_html/dev/project-name/plugins/developer/slider/models/slider defined for Backend\Behaviors\FormController." on line 55 of /home/user/public_html/dev/project-name/modules/system/traits/ConfigMaker.php
Is there anyone who has this problem?
Thank you in advance.

Hey @RempadDesign
So we can better understand the issue, please can you confirm what version of Builder you are using? And also, what steps are taken to arrive at the error?
Based on the error, you may need to check the developer/slider plugin, it appears to be referring to a configuration file without its file extension (.yaml).
Best regards

Hi, thanks for your prompt answer.
We are using the latest 2.0.5 Builder version. We have created all the plugin dependencies from the Builder interface (Database, Models, Menus, Controllers etc.) like we did every time we were building a plugin with it for years. When we are trying to Create a record, the error is thrown.
The developer/slider structure is like this: https://snipboard.io/0EbWXL.jpg
We have never manualy created the configuration.yaml file you are reffering to.. we don't understand why is now missing.
Thank you in advance.

Hi @RempadDesign
It is still possible to enter a file without the .yaml at the end using builder. Please check all the controller YAML files since they make reference to the model YAML files. Specifically, can you share the contents of the file plugins/developer/slider/controllers/sliders/config_form.yaml and config_list.yaml

Hi and sorry for the late answer.
The cont on the specified files is for config_form.yaml:
name: Sliders
modelClass: Developer\Slider\Models\Slider
form: $/developer/slider/models/slider
defaultRedirect: developer/slider/sliders
create:
redirect: 'developer/slider/sliders/update/:id'
redirectClose: developer/slider/sliders
update:
redirect: developer/slider/sliders
redirectClose: developer/slider/sliders
preview: {  }
And for the config_list.yaml:
list: $/developer/slider/models/slider/columns.yaml
modelClass: Developer\Slider\Models\Slider
title: Sliders
noRecordsMessage: 'backend::lang.list.no_records'
showSetup: true
showCheckboxes: true
recordsPerPage: 20
toolbar:
buttons: list_toolbar
search:
prompt: 'backend::lang.list.search_prompt'
recordUrl: 'developer/slider/sliders/update/:id'
Thank you in advance.


Tuple with TypeVar as Function Parameter: Expected class type but received "Literal[0]"

Environment data

Language Server version: 2021.12.1
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): 3.96 64 bit Conda

Expected behaviour
No error when using a parameter of a tuple type that uses a TypeVar
Actual behaviour
Getting error when using a parameter of a tuple type that uses a TypeVar, see code below.
It seems to be a regression. I rolled back to Pylance 2021.11.2, which does not give me this error.
Logs
Code Snippet / Additional information
TNodeData = TypeVar("TNodeData")
TestTuple = Tuple[int, TNodeData]

test1: TestTuple[str] = (34234, "hello")
x = test1[0] # no error as expected

def some_func(node: TestTuple[str]):
    some_var= node[0] # unexpected error: Expected class type but received "Literal[0]"

Thanks for the bug report. This will be fixed in the next release.

This issue has been fixed in version 2021.12.2, which we've just released. You can find the changelog here:  CHANGELOG.md


New Invoices section for Kaui Guide

This is still a draft document. I'm submitting the Invoices section for review. A PDF version is available in the kaui folder.

@pierre - Do you want to review this section, or are you okay with Stéphane's review?


Example links on the JS Promises primer are broken

On https://developers.google.com/web/fundamentals/getting-started/primers/promises the example links are broken.
Example broken example links:

https://developers.google.com/web/fundamentals/getting-started/primers/_code/async-best-example
https://developers.google.com/web/fundamentals/getting-started/primers/_code/async-example

Fixed this in #3657, deploying now.


Added missing license headers

What does this PR do?
Adds missing license headers
Checklist

[x] This is something else

[ ] I have updated CHANGELOG.asciidoc

:grey_exclamation: Build Aborted

The PR is not allowed to run in the CI yet

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Reason: The PR is not allowed to run in the CI yet

Start Time: 2021-11-08T12:52:35.691+0000

Duration: 4 min 53 sec

Commit: 0911eacef978b6ee7163662fc0dc191da0637154

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run benchmark tests : Run the benchmark test.

run compatibility tests : Run the JDK Compatibility test.

run integration tests : Run the APM-ITs.


[Request] binary or tutorial for Linux

I would really like to know, if this code is also intended to be used on Linux.
Of course I can use mono or wine . but I would like to run it as binary or a compiled code on linux.
So how do I compile this for linux? :)
Thanks in advance!

Sorry, there may be no plans to port Linux for now, but there may be some solutions.

Create a makefile that will compile everything for you. Copy these files and build a replacement .vcxproj for Linux's compilation tools. Google used to have a tool called Make It So that would do this automatically, but it has long been unsupported by the newer visual studio.

You can also use cmake, which is a bit complicated to do correctly.

I have time to try to compile under Linux as well. 🤔

The current code will not compile under Linux since HasherSha1Traits.hpp calls the Windows API to compute the SHA-1 of some data with no alternative implementation.
I've been messing with Linux support myself a while ago.
Here is a ZIP with new and modified files for Linux support. (unchanged files are not included in the zip file)
The code has a dependency on GMP, but most Linux distro's should have that.

@Sonic-The-Hedgehog-LNK1123 thank you so much! I think this should be implemented into the repo!
It worked, although it does not support the newest std=c++ versions. But that is ok.
The only problem I have right now is (maybe even offtopic!)
I can not get it to work smoothly with golangs CGO. At the end I always get the error:
/usr/include/c++/10/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options

Thanks!
P.S.: maybe you have some expirience with this and can help out? ;)

@MartinHotmann I only ever tested this code with a online compiler service that ends up running user code in a Linux environment. (I also compiled it using MinGw (GCC), but that was on Windows, not Linux)

It worked, although it does not support the newest std=c++ versions. But that is ok.

That is very strange, since this code requires C++17 support, what error are you getting there?

I can not get it to work smoothly with golangs CGO. At the end I always get the error:
/usr/include/c++/10/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options

This error is telling you it detected C++11 code while running in C++0x mode, Again this code actually requires C++17 support.


Envoy cidr hosts

Support CIDRs in NPHDS in addition to plain host addresses. This allows CIDR-based HTTP policy enforcement for both ingress and egress.
Cilium daemon is not yet updated to send down CIDRs in NPHDS, but integration testing is added to exercise the new functionality. Integration test is changed to not depend on configuration files to reduce clutter in the repo.
Signed-off-by: Jarno Rajahalme<EMAIL_ADDRESS>

test-me-please

Addressed the review comments.

test-me-please

This must be backported, since it breaks compatibility with the Cilium 1.0 agent. I.e. sidecars deployed with the Cilium 1.0 filters won't work after Cilium is upgraded to 1.1.

@rlenglet you added and removed the backport tag, but your comment is pretty direct. Should I try to backport this or was there some other plan?

Please don’t backport. I discussed with Jarno and we decided that a backport was not needed after all. That’s why I removed the label. Thanks for checking!


Search results should have a delete button

If search results are irrelevant, there should be a delete button so the person who requested it can delete the search results message

:+1: Related to #197


show editor title icon only when needed

this avoids showing the icon in wrong places like untitled files, settings page, extension page, etc...

Hi Muah, is there a reason you closed the pull-request? I haven't had the time to test it.

not really, i found that i can hide the icon all together through the editor which is sufficient for now


potentially suspicious file

I have a problem with this wp theme, I install a test copy here for testing :
http://test.unysonthemes.com/
My client test this with tool : https://quttera.com/ , and give this security problem : http://www.screencast.com/t/0vvz0lOF , can you tell me something about this.
Thank you!

It's a dynamically generated template string. Looks to be coming from this: https://github.com/xdan/datetimepicker/blob/v.1.0.1/jquery.datetimepicker.js#L243-L257
That tool gives a very vague explanation as to why it is potentially malicious.


[Release-1.29] - Validate resolv.conf for presence of nameserver entries

Backport fix for Validate resolv.conf for presence of nameserver entries

#9874

fixed here
https://github.com/k3s-io/k3s/pull/10302


Error about module 'optpack' not found on first load

Copy/pasted the setup into a new init.lua, restarted and got this:
:!git clone https://github.com/notomo/optpack.nvim /Users/cmaceach/.config/local/share/
nvim/optpack.nvim/pack/optpack/opt/optpack.nvim
Cloning into '/Users/cmaceach/.config/local/share/nvim/optpack.nvim/pack/optpack/opt/op
tpack.nvim'...

Error detected while processing /Users/cmaceach/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /Users/cmaceach/.config/nvim/init.lua:9: module '
optpack' not found:
        no field package.preload['optpack']
        no file './optpack.lua'
        no file '/Users/cmaceach/src/neovim/.deps/usr/share/luajit-2.1.0-beta3/optpack.
lua'
        no file '/usr/local/share/lua/5.1/optpack.lua'
        no file '/usr/local/share/lua/5.1/optpack/init.lua'
        no file '/Users/cmaceach/src/neovim/.deps/usr/share/lua/5.1/optpack.lua'
        no file '/Users/cmaceach/src/neovim/.deps/usr/share/lua/5.1/optpack/init.lua'
        no file './optpack.so'
        no file '/usr/local/lib/lua/5.1/optpack.so'
        no file '/Users/cmaceach/src/neovim/.deps/usr/lib/lua/5.1/optpack.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /Users/cmaceach/.config/nvim/init.lua:9: in main chunk
Press ENTER or type command to continue

After vim.cmd we should notify the user to restart nvim and return, instead of trying to continue sourcing

Thanks!
I fixed example. notomo/optpack.nvim@f3249f6


Publish fix MKII

NOT is not a working syntax here

Just checked, won't work either

No worries, since != is way better anyhow.


CI/BLD: Clean up CI and conda-recipe

building on travis is a terrible idea. too many moving parts


[feature] support for invoking a variable function using arguments (the powershell way)

right now it's possible to declare a variable as a function and invoke it but it's not very clean:
$myFunction = { param( [string]$arg ) "my arg $arg" }

# invocation
$myFunction.Invoke('an arg')
# or
& $myFunction 'an arg'

based on https://stackoverflow.com/questions/24798389/can-i-assign-a-function-to-a-variable
the way I expected it to work is the same way functions work:
$myFunction -arg 'an arg'

Hmm. No, this wouldn't be possible. A variable and a command name are fundamentally different. The variable you have contains a script block, not a function.
If you call $myFunction.GetType() you will get ScriptBlock back. If you go ahead and create a true function with this script block you will be able to invoke it as a function:
New-Item -Path 'Function:\myFunction' -Value $myFunction
myFunction -arg 'an arg'

Functions are not synonymous with script blocks in PowerShell. They're two separate objects, though function objects by definition contain a script block with their code stored inside.
For example, if we retrieve that function we just created and stored it in a variable, we can see it's a totally different type of object.
$function = Get-Item 'Function:\myFunction'
$function.GetType()

This gives us a FunctionInfo object. Because objects are always able to be sent as output, we cannot implicitly assume that a variable that happens to contain a function should inherently be executable as that function without some distinction from the user (in this case, it requires use of .Invoke() for script blocks, and the & call operator for functions and script blocks).
If we wanted something like this I might perhaps suggest that a new syntax could be made available as a very minimal shorthand: &myFunction where the & replaces the $ of a variable, but that is itself potentially problematic in other ways.
In brief, functions are objects just like anything else in PowerShell, and there aren't really any exceptions. If we treat variables as potentially directly invokable items, we'd be breaking a lot of things, I think. 😄

I'm was thinking of creating a swagger-client provider that will return an object an then I would be able to invoke function on it and have autocomplete on the arguments

As I've mentioned, you can take a small extra step to create a true function, which will then properly complete arguments. I do agree that the present methods of invoking from a variable are a little lacking in ability to pass arguments easily, though.

can you provide a small sample of that?
assuming I don't know the name of the method in advance and the name of the arguments (generate them based on the input)

Depends precisely how you receive the input, but if you're getting it from outside PowerShell I'd expect it to probably come as a string, so...
# store input string into this variable
$String = 'Get-ChildItem $home'

# create script block
$Script = [scriptblock]::Create($String)

# create function with whatever name you like really
New-Item -Path 'Function:\Get-Thing' -Value $Script

# call function
Get-Thing

# use Get-Help to programmatically retrieve parameters
(Get-Help Get-Thing).Parameters

I figure something like this could work
$generatedCode = '
function my-function {
  param( [string]$arg )
  "my arg $arg"
}'
Invoke-Expression $generatedCode

# and then
my-function -arg "test"

Yes, it would... But once again, be wary of running code that comes from elsewhere. If there's any other way to do whatever your ultimate goal is, I would take the other option.


Travis failing on bad version of Java

Example build failure: https://travis-ci.org/twbs/bootstrap/jobs/180783524.
Running "htmllint:src" (htmllint) task
Fatal error: Command failed: java -version
/bin/sh: 1: java: not found

Can hopefully look myself this weekend, but if anyone else has a quick fix, PRs are welcome!

X-Ref: travis-ci/travis-ci#6928. Seems to be fixed by #21108, but I'm not sure how exactly.

I'm guessing this will be fixed within the next 24 hours, based on progress over on Travis' end.

Thanks @bardiharborow! Merged your PR today for that fix.


Idea: reusable texts

As a CMS user
I want to have a single place to manage and translate texts repeating across the UI
so that I don't have to go to every place where this text re-appears and change it and especially do this for every language
Context: many texts throughout the UI repeat, e.g. a page often uses the same title and heading, also links to that page often use the exact same text. It's cumbersome to enter and maintain such texts.
Idea: Instead of having localized text fields (plain or rich text), these fields are non-localized relationships to a Texts collection. The Texts collection would have a type field to distinguish between rich and plain text.
Questions:

Performance?
Is there any other data besides texts for which we should do this? We already have the Media collection providing something similar for images and videos. Do we want pieces of reuseable UI / block instances?

Closed by #175


Update only FP from 72 to 74 produce invalid subfactories

Problem Description
Only FP mod update causes broke subfactories, source version is 1.1.72 (is above 1.1.60).
Savefile (75 MB)
factorio-current.log
Reproduction

Has a save file with space exploration mod and FP 1.1.72
For example has a subfactory for holmium wire

Update only FP to 1.1.74
FP says it need repair

After repair the main recipe is missing:

UPD: not only recipe is missing. Beacon modules also broken. It was speed modules, but becomes efficiency

Oh wow, these issues were, unlikely as it is, intertwined. The remark that the modules changed was the important hint, as I noticed my migration script tried to migrate machine modules onto the beacons, which more often than not was just invalid, hence why it removes those lines when repairing. Big oof.
Either way, thanks for the very detailed report. Fixed in the newest release.

Thank you a lot! I'll try the fix as soon as it released


feat: add gin BasicAuth using OLLAMA_BASIC_AUTH_KEY setup in env

This adds gin BasicAuth for username:password setup in env. I checked ollama server is using gin, and gin offers basic auth middleware. In this PR I attempted to use this middleware to validate request from using env var OLLAMA_BASIC_AUTH_KEY. Inputs, comments and feedback are welcome 🙏
Requested in https://github.com/ollama/ollama/issues/1053

Great work! Would love to see this (or similar) merged in.

Hi @kemalelmizan thanks so much for the PR. While we'd like to add auth to Ollama there are several different auth solutions – most teams have their own and we suggest doing this with a proxy in front of Ollama for the time being.


Finalize and deploy backend

Need to deploy the backend before we can have a test flight application out so test out everything on backend in branch deployment

related pr #118


add a subclassing example

I'm attempting to do subclassing based on the explanations in comments on various issues and based on reading the actual code, but it's not quite working the way I thought it would. In particular, glib.WithClassInit() doesn't seem to do anything at all. The function that I pass to it is never called, preventing me from accessing the *gtk.WidgetClass instance for the custom type that I'm trying to create. I don't know if I'm just missing something somewhere or not, but a full example that showed how to do subclassing properly would be very much appreciated.

Subclassing is unfortunately not being worked on right now and is very likely broken due to some earlier regressions :(


Validate only the length of the DATA frame in 6.9.2/1

This PR fixes the race condition reported in #115.

LGTM

Thanks for the confirmation!


Tensormaps intial front code

I have created a React Js application for the frontend for TensorMap

@RavinduHasithanjana  We don't need PRs before the GSoC selection period.
Please join the Gitter channel for TensorMap and read the challenge task carefully before submitting PRs.

Sure , I actually joined the gitter channel for TensorMap , and sorry for not seeing the challenge tasks.


Make 'com.google.android.gms:play-services-gcm' optional.

With this fix I can exclude the play-services-gcm dependency if needed.
Like this: (build.gralde)
dependencies {
    compile(project(':react-native-device-info')) {
        exclude group: 'com.google.android.gms', module: 'play-services-gcm'
    }
    ....
}

interesting concept.  Maybe a friendly message tot he user?  Like setting the value to "N/A Add play services" would be best?

Sounds good to me.

Done.


Automate amqp code generation and add test to catch drift

Summary: Automate amqp code generation and add test to catch drift
This is a work in progress change to implement what was described here.
Relevant Issues: https://github.com/pixie-io/pixie/pull/1820#issuecomment-1905273586
Type of change: /kind cleanup
Test Plan: diff_file rules fail until linting issues are resolved

I think it's okay to skip linting for autogenerated files. Might be worth adding them to the exclusion list and calling this done.

I think if you reduce the tab/spaces in the returns for gen_method_enum_select_case, gen_method_enum_declr etc to the expected output, the generated code is probably mostly formatted as expected.
There's a lot of them though, so unsure if it's worth the trouble.

I was expecting the diff 'as is' to be pretty nasty, which is why I tried to keep the code formatting intact initially. I'll see how difficult it is to get the code generation to output relatively formatted code.

@vihangm my latest approach gets the files formatted with minor whitespace differences. It required quite a few changes to the amqp code generation file. The changes to amqp_code_gen.py could be cleaner, but I wanted to get a feel for how many lines needed to be touched to make the diff reasonable. It required enough whitespace changes that my preference would be to stick with the initial approach that formatted the output files according to our clang-format config.
Let me know what you think.

Given that you have spent a bunch of time here, I trust your judgement. If you think running clang-format as part of the generation isn't too much trouble, that approach seems fine too. I was worried that running the linter would be more painful and hence suggested skipping lint/updating the code generation. :)

Sounds good :+1:. I've updated the branch based on the initial approach and it's ready for review now.


find the best format for video file and audio file in json

hi, this is not an issue, just an ask for some help.
I am writing a php app that works with youtube-dl json generated file.
What is the best way to find the best video file and the best audio file in the generated with --dump-json json file?
I see there is a 'preference' key, but several format have the same preference value.
How does youtube-dl selects the best audio and video before merging to an audio+video with ffmpeg, what are its criteria of selection in the json generated?

Run youtube-dl with -f 'bestvideo+bestaudio/best' and if it's a YouTube video the video and audio formats will be stored in the requested_formats field (it's not documented, so we may change it).
All the DASH videos are sorted by different attributes, like resolution or bitrate, and something similar for the audio. (It's all done in the InfoExtractor._sort_formats method), so then we just pick the best one.


Fix missing vendored stylesheet insertion

Fallout from https://github.com/rust-lang/rust/pull/101023, the old selector no longer matched anything so the vendored css didn't get inserted anywhere.

Tested locally and it works on both old and new docs 👍


Clarified that Webhook Secret & At Rest Encryption Key are Mattermost actions

Product docs update based on the following user feedback: "There's no "Generate" button in the OAuth app creation form in GitHub. Please update your instruction"

@hanzei I'm merging this docs PR into the v9.11 docs branch in preparation for tomorrow's product and docs release. I can apply any feedback you have to that branch or production directly if needed.


Global Covid-19 Explorer - eRum 2020 CovidR Contest

Submit your contributions by filling the following information
# Contribution's title, author, abstract
title: Global Cover-19 Explorer # title case
author: DataHive # comma-separated
abstract: |
  The Global Covid-19 Explorer is a shiny dashboard using interactive visualizations with innovative metrics to compare the Covid-19 burden in different countries.

# Short name to be used in the website Gallery menu (can be the same as title)
menu_entry: Covid19-Explorer
# URL of the public source code repository
repository: https://github.com/tdesmedt-tdsgn/Covid-Explorer
# Type of contribution and how it can be featured as gallery content
# Keep only the type and content relevant to your contribution
# For a Shiny app, provide its URL:
type: shiny
content: https://user.shinyapps.io/my-app # e.g. my-app on shinyapps.io
https://datahive.shinyapps.io/Covid19-Explorer/

In addition:

[x] Send an email to<EMAIL_ADDRESS>(for further direct communication down the road)

Subject: "Submission to CovidR: Issue #00", where #00 is the number of this Issue
Content: A full link to this Issue
Optionally include your social media profiles (Twitter, LinkedIn, Facebook): we will use them to @mention you while sharing the contribution through our channels.

If you have questions specific to your submission, used the comments in this Issue.

@tdesmedt-tdsgn, thanks for your submission.
We expect the author to be an actual person, I would propose the following, can you please confirm but updating the YAML above?
author: Tom De Smedt, DataHive

Dear,
Yes, that is totally fine.
Kind regards.
Tom
Verstuurd vanaf mijn iPhone

Op 22 mei 2020 om 02:22 heeft Riccardo Porreca<EMAIL_ADDRESS>het volgende geschreven:

@tdesmedt-tdsgn, thanks for your submission.
We expect the author to be an actual person, I would propose the following, can you please confirm but updating the YAML above?
author: Tom De Smedt, DataHive
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@tdesmedt-tdsgn, thanks for your feedback, I will also fix what I believe is a typo in the title: title: "Global CoverCovid-19 Explorer"

That is correct, thanks for spotting the typo!
Tom

Op 22 mei 2020, om 11:15 heeft Riccardo Porreca<EMAIL_ADDRESS>het volgende geschreven:
@tdesmedt-tdsgn https://github.com/tdesmedt-tdsgn, thanks for your feedback, I will also fix what I believe is a typo in the title: title: "Global CoverCovid-19 Explorer"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/Milano-R/erum2020-covidr-contest/issues/78#issuecomment-632588591, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIOZDCUK23CMDMXVYXD6S3RSY7BNANCNFSM4NHIJMQQ.

@tdesmedt-tdsgn, your submission is now accepted and visible at https://milano-r.github.io/erum2020-covidr-contest/tdesmedt-covid19-explorer.html :tada:
You can click on the eRum2020::Covidr badge in the page to obtain the badge code you can embed in your repository.
Furthermore, feel free to spread your contribution on social media with the link above, using hashtags #erum2020 #covidr, and invite the community to like the contribution using the corresponding button.
Last but not least: You can get your free ticket for the pre-conference event at https://www.eventbrite.it/e/covidr-erum-2020-pre-conference-event-tickets-104133026686


Can't report issues

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

VS Code Version: 1.76.0
OS Version: Windows_NT x64 10.0.19045

Steps to Reproduce:

Go to Help > Report Issue
Fill in all textboxes and dropdowns.

Pressing Create on Github does nothing. The dialog is not closed and Github is not triggered in the browser or any kind of response at all.

@roa-nyx what features/extensions have you signed into with GitHub? Settings Sync? GitHub Pull Request? GitHub Copilot? etc

@TylerLeonhardt I'm a little confused. I reproduced this with with all extensions disabled. Do extensions need to be enabled for this functionality to work?

Basically the issue reporter re-uses the auth token from features you have already logged in with. For example, if you logged in to Settings Sync, then we'll reuse that token.
So extensions being disabled is fine, but I want to understand which features/extensions you could be reusing that auth token with (extension enablement doesn't matter).
So what features/extensions have you signed into with GitHub?

I'm afraid I must plead ignorance here... I'm not sure how to give an exhaustive list, but clicking the profile icon shows I'm logged into roa-nyx (Github) and I do Settings Sync is On is checked.
I doubt it but does this screenshot help?

If not can you give me clearer steps/instructions on how to get you the information you need?
FYI: VS Code updated today to 1.76.1, same issue.

@roa-nyx that's good. Can you also send me a screenshot of the quick pick that shows up when you do Manage Trusted Extensions?
Also, were you trying to open an issue on VS Code or an extension (if so which?)?

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


Using Dbt to create datasets as folders of files (ex: CSV, ..) in Dremio

Hello,
I have connected Dremio to a S3 datalake (minIO) and I am using Dremio REST API to convert folders of csv files to datasets. I would like to know if it is possible to read and write datasets materialized as files using dbt.
I tried to use the dbt-dremio adapter but I couldn't make it work : Can I use my datalake as a database and recursive folders as schemas ?
Thank you for contributing to the dbt community with your adapter. It is really nice to be able to integrate Dremio and dbt.

Hi @amirbtb, better late than never...
Playing with input/output table formats, I managed to define a dbt source on a folder containing a hierarchy of files (json, text...).
So yes, it will be possible, as soon as I implement these table formats on input (select from TABLE(path(format options)), or output (create table path STORE AS(format options) as select...)
Best regards

@amirbtb , this should work in the latest dbt-dremio version.
Let's keep in touch.


Treemap clean up

from punch list
#337 Large box label display/no box label display as shown on mockup. Results less than 1% are only shown on hover or click.(Ed: This is the popup?)
#338 Space between “Transition Share:” and percentage must match space between “Salary:” and “Hourly” this line was reformatted using flex & changes with screen size - spacing should be better and should match at most widths
#338 Align left to treemap edge, match text size of “What do xxx transitions to?”
(Text changes were covered in another issue/pr)
#334 Remove all cents (whole rounded dollars only), limit decimals to 2
#334 Leave space between $ sign and first number I did not add actual whitespace here, but the overall  build/spacing changes might solve this
other
#335 Extend footnote across width of table to match Treemap
#none addressed render-order issues for hover and select outlines
#none displays salary in treemap boxes when salary radio button object is selected

Working locally, looks great! Only comment: Should ole.log("clicking"); be excluded? It looks like a git log file

I merged to my local instance, and all worked fine. Looks really nice.


I echoed my name

haha I did it! best Dora voice

Haha, good, I didn't realize you can do italics in here :)


Excessive Provider Change Events Due to Network Status Fluctuations

Your Environment

Plugin version: 5.0.0
Platform: Android
Device OS version: 11
Device manufacturer / model: samsung/SM-A908N
XCode version:
Capacitor info (npx cap doctor)Latest Dependencies:

@capacitor/cli: 6.1.1
@capacitor/core: 6.1.1
@capacitor/android: 6.1.1
@capacitor/ios: 6.1.1

Installed Dependencies:
@capacitor/cli: 5.0.1
@capacitor/core: 5.0.1
@capacitor/android: 5.0.1
@capacitor/ios: 5.0.1
* Plugin config provided to `#ready`:

{
/**
* Application config
/
autoSync: true, // <-- Auto start tracking when device is powered-up.
/*
* Permissions Config
*/
backgroundPermissionRationale: {
message:
'xxxxx',
negativeAction: 'Cancel',
positiveAction: 'Change to {backgroundPermissionOptionLabel}',
title: "xxxx"
},
debug: false, // <-- Enable this hear sounds for background-geolocation life-cycle.
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
disableLocationAuthorizationAlert: true,
distanceFilter: 200,
elasticityMultiplier: 4,
extras: {
  },
  headers: {
    ContentType: 'application/json'
  },
  isMoving: true,
  logLevel:
    config.app.STAGE == 'prod' ? BackgroundGeolocation.LOG_LEVEL_ERROR : BackgroundGeolocation.LOG_LEVEL_VERBOSE,
  reset: true,
  showsBackgroundLocationIndicator: false,
  startOnBoot: true, // <-- Auto start tracking when device is powered-up.
  stationaryRadius: 25,
  stopOnTerminate: false, // <-- Allow the background-service to continue tracking when user closes the app.
  stopTimeout: 5,
  /**
   * HTTP Config
   */

  url: config.app.MOBILE_APP_LOCATIONS_URL,
  useSignificantChangesOnly: true //only uses locations determined to be "significant"
}

## Expected Behavior
Provider change events should only trigger when there is a significant and genuine change in the provider status.
Rapid and frequent toggling of the network status should be debounced or rate-limited to prevent excessive event generation.

## Actual Behavior
The network status alternates between true and false every 2 seconds.
This results in continuous provider change events, causing significant load and potential inaccuracies in our backend processing.

## Steps to Reproduce
- Don't have any idea, how one of the user is able to do this.

## Context

Impact:
The excessive events are causing performance issues in our backend.
It appears that this behaviour may be due to user spoofing, resulting in unreliable data.

Request:
Implement a debouncing mechanism to filter out rapid and insignificant changes in the provider status.
Consider adding a configurable rate limit for provider change events to ensure that only meaningful changes are processed.

I have never heard of a problem with this.  I don’t wish to implement denouncing from a report of a single user without reproduction steps.

@christocracy
I suspect some users might be spoofing their location updates, and our plugin is currently unable to detect it. We have a key in the location object, isMock, which is showing as false for these spoofed updates.
I was wondering if it would be possible to implement debouncing logic to limit the number of updates received per minute. This could help us save on unnecessary API calls and improve the efficiency of our tracking system.
Could you please provide any suggestions or guidance on how to handle this situation? I understand it's a rare condition, but it seems some users have found a way to bypass our spoofing detection algorithm. We need to enhance our system for a more foolproof and robust tracking solution.
Thank you so much for your continuous support and for the excellent work you do with the plugin. Your assistance is greatly appreciated.

Let me know how to reproduce this phenomenon.


Add Time + Do Not Use Instances

What does this PR do?

Could not find an easy way to specify "unless it's the first word in a sentence". The rest ported over from https://docs.google.com/spreadsheets/d/1WTljnE27BdhcIrKOLlm0eK0Du9YqMLJwuPJdkdSkshQ/edit#gid=0.
Motivation

Docs Hackathon
Release

[ ] YES, this PR requires a release
[ ] NO, this PR doesn't need a release

Additional Notes

Release checklist

[ ] Create zip files for EACH style folder.
[ ] Attach the zip files when creating a release.

Thanks, created DOCS-6865 to track

for convenience, i've replayed changes here onto the branch in my PR, https://github.com/DataDog/datadog-vale/pull/52

Closing in favor of #52


WIP: adapt to JWT auth scheme

Pull Request Test Coverage Report for Build 104

82 of 82 (100.0%)  changed or added relevant lines in 6 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.9%) to 98.381%

Totals

Change from base Build 102:
0.9%

Covered Lines:
179

Relevant Lines:
179

💛  - Coveralls


[zh-cn] sync windows/_index.md dual-stack.md field-selectors.md finalizers.md names.md

#       modified:   content/zh-cn/docs/concepts/overview/working-with-objects/field-selectors.md
#       modified:   content/zh-cn/docs/concepts/overview/working-with-objects/finalizers.md
#       modified:   content/zh-cn/docs/concepts/overview/working-with-objects/names.md
#       modified:   content/zh-cn/docs/concepts/services-networking/dual-stack.md
#       modified:   content/zh-cn/docs/concepts/windows/_index.md

/approve


Add hukeping to the maintainer list of Notary

Signed-off-by: Hu Keping<EMAIL_ADDRESS>

Can one of the admins verify this patch?

jenkins, test this please
:|  wonder if we can skip circle and yubikey tests if it's only doc or these files

LGTM!!

LGTM :)

LGTM

LGTM

LGTM :-)

@HuKeping to confirm we've done the configuration correctly, please try merging this PR to confirm your maintainer status :-D

LGTM!

@endophage seems not have the write access

Merging, thanks guys!

Welcome!


small memory leak in esp_mqtt_client_init error path (IDFGH-2235)

In IDF-4.0-beta2.
Need to free client->event.error_handle if create mutex for client->api_lock fails.
`
diff --git a/mqtt_client.c b/mqtt_client.c
index 19458f7dc7aa..2343a5c1c78c 100644
--- a/mqtt_client.c
+++ b/mqtt_client.c
@@ -374,6 +374,7 @@ esp_mqtt_client_handle_t esp_mqtt_client_init(const esp_mqtt_client_config_t *co
}
client->api_lock = xSemaphoreCreateMutex();
if (!client->api_lock) {

   free(client->event.error_handle);
   free(client);
   return NULL;

}

`

Thanks for reporting this issue, we'll make sure to fix this in our next MQTT update.


Turbinia's setup.py seems to be broken with the latest version of pip

Turbinia can't be isntalled with the latest version of pip. (20.1)
Collecting pip
  Downloading pip-20.1-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-20.1
[snip]
Collecting turbinia==20190819.6
  Downloading turbinia-20190819.6.tar.gz (88 kB)
    ERROR: Command errored out with exit status 1:
     command: /opt/hostedtoolcache/Python/3.6.10/x64/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jz1lyg2d/turbinia/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jz1lyg2d/turbinia/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-rm1k5ext
         cwd: /tmp/pip-install-jz1lyg2d/turbinia/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-jz1lyg2d/turbinia/setup.py", line 65, in <module>
        'requirements.txt', session=False)
      File "/tmp/pip-install-jz1lyg2d/turbinia/setup.py", line 64, in <listcomp>
        install_requires=[str(req.req) for req in parse_requirements(
    AttributeError: 'ParsedRequirement' object has no attribute 'req'

Works fine on pip 19.1.1.

This might help: https://developercommunity.visualstudio.com/content/problem/1011562/azure-devops-python-build-pipeline-suddenly-stoppe.html
Or this: https://github.com/ansible/awx/pull/6880/files

Thanks.  Yeah, I didn't realize this was actually broken (again) -- I knew I needed to eventually remove the pip internal parse_dependencies() call, and have https://github.com/google/turbinia/issues/492 for that, and previously removed the other pip internal reference, but I guess the other shoe has dropped for this :).
@alimez this might be a good fixit bug for you to look into if you want.  We basically need to either find some other way to parse the requirements.txt, or just inline the contents into setup.py.

This has been fixed in HEAD, but I'm going to re-open this to track backporting this into the release branch and rolling out a new release.

Patch release 20190819.7 has been pushed with this fix.


Improve filtering by date

How to filter by date

"Don't know how to literal-quote value datetime.date(2020, 12, 20)"
await CrawlLog.objects.filter(created_at=datetime.today().date()).all()

Hi, it should work like you posted, you can pass datetime.date() with a date set, for most of backend you should also be able to pass string like "2020-12-20" and should work. But if you selected a DateTime column remember that you have time there also and if you do not provide one automatically in your date midnight time (00:00:00) is added.
Then you need to use range like filter(created_at__lt=DateTime.date(), created_at__gt=datetime.date()) and select midnight time of today and next day. To see what operands are available check filter documentation in docs.
If you want more specific response please post your model and example usage you want to achieve.

I get the same exception
The model field:
updated_at: datetime = ormar.DateTime()
Filter:
await Indicator.objects.filter(updated_at__lt=datetime(2021, 5, 19, 0, 0, 0, 0)).all()
Exception:
NotImplementedError: Don't know how to literal-quote value datetime.datetime(2021, 5, 19, 0, 0)

Current workaround is to convert datetime to string with the same format used in DB:
dt = datetime(2021, 5, 19, 0, 0, 0, 0).strftime("%Y-%m-%d %H:%M:%S")
await Indicator.objects.filter(updated_at__lt=dt).all()

If you set the date manually you can even use the string straight away like await Indicator.objects.filter(updated_at__lt='2021-05-19').all().
Can you post like full example (with sample model and sample data) that fails that I can include in the tests?
You use postgres?

Yes, I use postgres
Model:
class SampleModel(ormar.Model):
    id: int = ormar.Integer(primary_key=True)
    updated_at: datetime = ormar.DateTime()

Code that fails:
from datetime import datetime

creation_dt = datetime(2021, 5, 18, 0, 0, 0, 0)
sample = await SampleModel.objects.create(updated_at=creation_dt)

current_dt = datetime(2021, 5, 19, 0, 0, 0, 0)
outdated_samples = await SampleModel.objects.filter(updated_at__lt=current_dt).all()

Added in 0.10.14 (via #265).
Please update and check.

@collerek
It works now without converting to string. Thank you!


Life is long, we always have friends side by side

Version 3 should be continue? :+1:  :-1:

start ver1 with a new project... 🥇

yep 👍 , always ready with a leader like you !


Increase timeout of /auth api?

Is there a way to increase the timeout for the /auth api?

@BigVan  cc

Is there a way to increase the timeout for the /auth api?

sorry to reply too late...


Add files via upload

Adding lookup table for AML module.

Codecov Report

Merging #3 (b2ba119) into master (d2e98b2) will decrease coverage by 0.64%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master       #3      +/-   ##
============================================
- Coverage     80.66%   80.02%   -0.65%
+ Complexity     3165     3126      -39
============================================
  Files           117      117
  Lines         21518    21518
  Branches       2901     2901
============================================
- Hits          17358    17219     -139
- Misses         3267     3395     +128
- Partials        893      904      +11

Impacted Files
Coverage Δ

src/main/java/org/mitre/synthea/export/FhirR4.java
81.25% <0.00%> (-3.99%)
:arrow_down:

...java/org/mitre/synthea/world/agents/Clinician.java
75.86% <0.00%> (-3.45%)
:arrow_down:

...in/java/org/mitre/synthea/export/TextExporter.java
89.04% <0.00%> (-3.02%)
:arrow_down:

.../main/java/org/mitre/synthea/export/FhirDstu2.java
83.54% <0.00%> (-1.76%)
:arrow_down:

...c/main/java/org/mitre/synthea/export/FhirStu3.java
82.57% <0.00%> (-1.60%)
:arrow_down:

...ava/org/mitre/synthea/modules/LifecycleModule.java
91.19% <0.00%> (-1.33%)
:arrow_down:

...g/mitre/synthea/world/concepts/CoverageRecord.java
90.09% <0.00%> (-1.00%)
:arrow_down:

.../java/org/mitre/synthea/export/BB2RIFExporter.java
53.94% <0.00%> (-0.82%)
:arrow_down:

...e/synthea/modules/CardiovascularDiseaseModule.java
94.54% <0.00%> (-0.23%)
:arrow_down:

...org/mitre/synthea/world/concepts/HealthRecord.java
93.89% <0.00%> (-0.21%)
:arrow_down:

... and 10 more

Continue to review full report at Codecov.

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


[Publisher] A user with publisher permission should not be able to update tier collection

According to the test case, API Publisher(who has publisher permission only) should NOT be able to update tier collection. The fields should not be editable.
But a user with publisher permission only can update tier collection (subscription policies) of both created and published APIs.

As per the wiki publisher should be able to update the subscription tiers [1]
Hence closing the issue.
[1] https://github.com/wso2/carbon-apimgt/wiki/Permission-validation-on-the-Publisher-UI-elemets-for-API-update


TSC minutes from February 23rd 2021

Signed-off-by: AOrthVector<EMAIL_ADDRESS>

whomever gets to this first please review and approve


We needed to pay attention to how the field was generated,

not its current state.

@christopherswenson , API change here.  Please see of the function name makes sense to you.

We weren't rendering the third component of a bar chart if it was a measure.  This fixes that bug.

Added some changes. Removed isDimensional and isMeasureLike entirely for now. They were not implemented correctly, and were confusing. We can add them back if we need them.


Confusion about CF-CNN structure

Hello, I am reading your paper. I have some confusion about CF-CNN structure.
Take Table3. as an instance ,

is that means coarse1, which is subnetwork 1 , has 6 * Conv3 and 6 * Conv4. Coarse 1 Finally connects to a Averagepooling and FC.
Looking forward to your reply ~Thx a lot!
Maybe your codes can be helpful to understand the paper~

The feature maps obtained from convolution 4 of sub-network1 is connected
to the refine layer and average pooling.
2021년 4월 28일 (수) 오전 2:22, LAOTTan @.***>님이 작성:

Hello, I am reading your paper. I have some confusion about CF-CNN
structure.
Take Table3. as an instance ,
[image: image]
https://user-images.githubusercontent.com/47245566/116284220-6af58700-a7bf-11eb-9ea8-92af0ded9181.png
is that means coarse1, which is subnetwork 1 , has 6 * Conv3 and 6 *
Conv4. Coarse 1 Finally connects to a Averagepooling and FC.
Looking forward to your reply Thx a lot!
Maybe your codes can be helpful to understand the paper
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dkskzmffps/CF-CNN/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE6OAFR3AQBNKAVSM7JXFVTTK3XEVANCNFSM43VNIJDA
.

@dkskzmffps Could you please share the code for the paper? Thank you!


Fix is_categorical_dtype warning

@ivirshup all done

About the extra change

Because it would have saved me from jumping into the debugger to see how the indices differ.

It looks like this will only be the case for small data, since afaict the error message from the assertion is just dumping the repr of each object into the exception message:
In [30]: adata.obsm["b"] = b.to_df()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[30], line 1
----> 1 adata.obsm["b"] = b.to_df()

File ~/github/anndata/anndata/_core/aligned_mapping.py:189, in AlignedActualMixin.__setitem__(self, key, value)
    188 def __setitem__(self, key: str, value: V):
--> 189     value = self._validate_value(value, key)
    190     self._data[key] = value

File ~/github/anndata/anndata/_core/aligned_mapping.py:254, in AxisArraysBase._validate_value(self, val, key)
    252 except AssertionError as e:
    253     msg = f"value.index does not match parent’s axis {self.axes[0]} names:\n{e}"
--> 254     raise ValueError(msg) from None
    255 else:
    256     msg = "Index.equals and pd.testing.assert_index_equal disagree"

ValueError: value.index does not match parent’s axis 0 names:
Index are different

Index values are different (0.03791 %)
[left]:  Index(['AAACATACAACCAC-1', 'AAACATTGAGCTAC-1', 'AAACATTGATCAGC-1',
       'AAACCGTGCTTCCG-1', 'AAACCGTGTATGCG-1', 'AAACGCACTGGTAC-1',
       'AAACGCTGACCAGT-1', 'AAACGCTGGTTCTT-1', 'AAACGCTGTAGCCA-1',
       'AAACGCTGTTTCTG-1',
       ...
       'TTTCAGTGTCACGA-1', 'TTTCAGTGTCTATC-1', 'TTTCAGTGTGCAGT-1',
       'TTTCCAGAGGTGAG-1', 'TTTCGAACACCTGA-1', 'TTTCGAACTCTCAT-1',
       'TTTCTACTGAGGCA-1', 'TTTCTACTTCCTCG-1', 'TTTGCATGAGAGGC-1',
       'TTTGCATGCCTCAC-1'],
      dtype='object', length=2638)
[right]: Index(['AAACATACAACCAC-1', 'AAACATTGAGCTAC-1', 'AAACATTGATCAGC-1',
       'AAACCGTGCTTCCG-1', 'AAACCGTGTATGCG-1', 'AAACGCACTGGTAC-1',
       'AAACGCTGACCAGT-1', 'AAACGCTGGTTCTT-1', 'AAACGCTGTAGCCA-1',
       'AAACGCTGTTTCTG-1',
       ...
       'TTTCAGTGTCACGA-1', 'TTTCAGTGTCTATC-1', 'TTTCAGTGTGCAGT-1',
       'TTTCCAGAGGTGAG-1', 'TTTCGAACACCTGA-1', 'TTTCGAACTCTCAT-1',
       'TTTCTACTGAGGCA-1', 'TTTCTACTTCCTCG-1', 'TTTGCATGAGAGGC-1',
       'TTTGCATGCCTCAC-1'],
      dtype='object', name='index', length=2638)

^ In this case the mismatched values are in the middle, and it's a relatively small dataset.
I'm fine to keep this for now, but also fine to remove it later without needing to keep the same level of detail.

Oh, also should this be backported?

But do feel free to merge. The points above are for your consideration, but are not blocking

OK, doesn’t seem like this would merge anywhere near cleanly. Let’s not risk it.


move crsql_createCrr to Rust

beginner task to conver createCrr to Rust

@tantaman, I've started working on this. Currently moved isTableCompatible,  getTableInfo and freeTableInfo to Rust. I'll fire a PR once everything is ready.

Awesome. I'll be able to review this pretty much immediately. The typed-sql stuff is still on the back burner for me until we have text CRDTs & a native reactivity extension for SQLite.


fix #70 android compile failed on rn 0.29.0

add new params to TouchEvent.obtain method to fix #70

Thanks for this PR
:+1:


Make build

I just tried to build this training for the first time and I somehow expected that "make" would just build everything for me.
Creating a virtualenv and installing the requirements.txt is straightforward. Though, what is the reason for having to install sphinx-build globally?
Maybe we can add a "make build" that is run by default so this becomes a no-brainer for newbies. Optinions?

I'm still a bit confused about the development setup process for this. Is there any docs available or a straightforward script I can just use directly?

@pbauer should the Python version be bumped here to 3.7?
https://training.plone.org/5/mastering-plone/about_mastering.html#build-new
Note that if you don't have the latest Python 2.7.15, then you will have a problem installing sphinxcontrib-spelling and its dependency pbr. macOS 10.12.6 uses an old janky Python 2.7.10, and I forgot to use my 2.7.15 in my pyenv, which led to the error below. Using 2.7.15 worked.
Collecting sphinxcontrib-spelling==4.2.0 (from -r requirements.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/74/22/3fc121b8a7acd4952e0a280ced4703ed0082ae61533204731ef4cdfa01cb/sphinxcontrib-spelling-4.2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.org/simple/pbr/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
    Couldn't find index page for 'pbr' (maybe misspelled?)
    Download error on https://pypi.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!
    No local packages or working download links found for pbr
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/fx/p4fx43ts6f1dqgj29c0y20yc0000gn/T/pip-install-3mKAbU/sphinxcontrib-spelling/setup.py", line 14, in <module>
        pbr=True)
      File "/Users/stevepiercy/projects/Plone/training/lib/python2.7/site-packages/setuptools/__init__.py", line 139, in setup
        _install_setup_requires(attrs)
      File "/Users/stevepiercy/projects/Plone/training/lib/python2.7/site-packages/setuptools/__init__.py", line 134, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/Users/stevepiercy/projects/Plone/training/lib/python2.7/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
        replace_conflicting=True,
      File "/Users/stevepiercy/projects/Plone/training/lib/python2.7/site-packages/pkg_resources/__init__.py", line 777, in resolve
        replace_conflicting=replace_conflicting
      File "/Users/stevepiercy/projects/Plone/training/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1060, in best_match
        return self.obtain(req, installer)
      File "/Users/stevepiercy/projects/Plone/training/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1072, in obtain
        return installer(requirement)
      File "/Users/stevepiercy/projects/Plone/training/lib/python2.7/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Users/stevepiercy/projects/Plone/training/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 670, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/fx/p4fx43ts6f1dqgj29c0y20yc0000gn/T/pip-install-3mKAbU/sphinxcontrib-spelling/

@tisto I did not have to install Sphinx globally. Where do you see that in the docs?

IMHO we could remove sphinx-contrib spelling there are better tools these days, which you can hook up with/including testing against all your style-guides, for example vale or textlint.
Both of them are also way faster.
But for doing so we need the training docs (like the normal docs) to be in a better state :)
Speaking about the install/setup, I guess it depends on your own need/usage ?
I have one container running sphinx, for all of my projects, using that on macOS and linux, so I do not bother anymore with virtualenv for each setup.
If there is an egg missing (like an add-on) I through it into the container, done
Please note, this is my personal opinion, I am not saying we/you have to do that, it is all what fits you best.

If we want people to contribute we should make this as easy as running IMHO:
make
If a core developer has to look up how this works and needs a pointer, how can we expect a newbie to fix a typo...

@svx @pbauer I tried my best to make just typing "make" work for the setup:
https://github.com/plone/training/pull/441
Though, neither Makefiles nor Jenkinsfiles work well with activating virtualenvs in my experience. Therefore we would have to refactor that as well. What do you think?
I just had to set up things manually for two of my colleagues. If we make it that hard to build our docs we can not expect newbies to help us with improving it...this is definitely something that we have to fix.


VEIOSS-450 alter 3 years of corrections to allow 3 years from due dat…

…e to be same day as today

I forgot to added unit tests and realised that nothing is wrong with the original function, it performs as expected, I no longer believe there is an issue anymore and believe it was user error that caused the issue