run carla env :  observation     assert False AssertionError

carla version 0.7 and 0.71 both same error
and tensorflow=cpu 14.1 and tensorflow-gpu=1.6  is samw error
(coach_env) sdc@frankwang-Tri01:~/Projects/coach$ python3 coach.py -p Carla_A3C -n 1
/home/sdc/Projects/coach/coach_env/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Warning: failed to import the following packages - RoboSchool, Neon, ViZDoom, PyBullet, GymExtensions
Please enter an experiment name: c
Using tensorflow framework
Traceback (most recent call last):
File "coach.py", line 271, in
env_instance = create_environment(tuning_parameters)
File "/home/sdc/Projects/coach/environments/init.py", line 32, in create_environment
env = eval(env_type)(tuning_parameters)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 136, in init
self.reset(True)
File "/home/sdc/Projects/coach/environments/environment_wrapper.py", line 165, in reset
self._restart_environment_episode(force_environment_reset)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 229, in _restart_environment_episode
observation = self.step([1.0, 0])['observation']
File "/home/sdc/Projects/coach/environments/environment_wrapper.py", line 140, in step
self._update_state()
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 185, in _update_state
'measurements': [measurements.player_measurements.forward_speed],
File "/home/sdc/Projects/coach/environments/environment_wrapper.py", line 81, in observation
assert False
AssertionError

Results stored at: ./experiments/c/19_03_2018-23_30
Total runtime: 0:00:29.358656

Do you want to discard the experiment results (Warning: this cannot be undone)? (y/N)

gpu have 3
(coach_env) sdc@frankwang-Tri01:~/Projects/coach$ python3 coach.py -p Carla_A3C -n 4
/home/sdc/Projects/coach/coach_env/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Warning: failed to import the following packages - RoboSchool, GymExtensions, PyBullet, ViZDoom, Neon
Please enter an experiment name: c
*** Distributed Training ***
/home/sdc/Projects/coach/coach_env/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
/home/sdc/Projects/coach/coach_env/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
E0319 23:24:41.996985406   12448 ev_epoll1_linux.c:1051]     grpc epoll fd: 3
/home/sdc/Projects/coach/coach_env/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
/home/sdc/Projects/coach/coach_env/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
/home/sdc/Projects/coach/coach_env/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
/home/sdc/Projects/coach/coach_env/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
E0319 23:24:42.861840739   12456 ev_epoll1_linux.c:1051]     grpc epoll fd: 3
E0319 23:24:42.964169270   12454 ev_epoll1_linux.c:1051]     grpc epoll fd: 3
E0319 23:24:42.964269364   12455 ev_epoll1_linux.c:1051]     grpc epoll fd: 3
E0319 23:24:42.964458426   12453 ev_epoll1_linux.c:1051]     grpc epoll fd: 3
E0319 23:24:43.027589433   12452 ev_epoll1_linux.c:1051]     grpc epoll fd: 3
Traceback (most recent call last):
File "./parallel_actor.py", line 101, in
env_instance = create_environment(tuning_parameters)
File "/home/sdc/Projects/coach/environments/init.py", line 32, in create_environment
env = eval(env_type)(tuning_parameters)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 96, in init
self.game.connect()
File "/data/env/carla/PythonClient/carla/client.py", line 49, in connect
self._world_client.connect(connection_attempts)
File "/data/env/carla/PythonClient/carla/tcp.py", line 49, in connect
self._reraise_exception_as_tcp_error('failed to connect', error)
File "/data/env/carla/PythonClient/carla/tcp.py", line 98, in _reraise_exception_as_tcp_error
raise TCPConnectionError('%s%s: %s' % (self._logprefix, message, exception))
carla.tcp.TCPConnectionError: (localhost:33640) failed to connect: [Errno 111] Connection refused
Traceback (most recent call last):
File "./parallel_actor.py", line 101, in
env_instance = create_environment(tuning_parameters)
File "/home/sdc/Projects/coach/environments/init.py", line 32, in create_environment
env = eval(env_type)(tuning_parameters)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 96, in init
self.game.connect()
File "/data/env/carla/PythonClient/carla/client.py", line 49, in connect
self._world_client.connect(connection_attempts)
File "/data/env/carla/PythonClient/carla/tcp.py", line 49, in connect
self._reraise_exception_as_tcp_error('failed to connect', error)
File "/data/env/carla/PythonClient/carla/tcp.py", line 98, in _reraise_exception_as_tcp_error
raise TCPConnectionError('%s%s: %s' % (self._logprefix, message, exception))
carla.tcp.TCPConnectionError: (localhost:53351) failed to connect: [Errno 111] Connection refused
Traceback (most recent call last):
File "./parallel_actor.py", line 101, in
env_instance = create_environment(tuning_parameters)
File "/home/sdc/Projects/coach/environments/init.py", line 32, in create_environment
env = eval(env_type)(tuning_parameters)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 96, in init
self.game.connect()
File "/data/env/carla/PythonClient/carla/client.py", line 49, in connect
self._world_client.connect(connection_attempts)
File "/data/env/carla/PythonClient/carla/tcp.py", line 49, in connect
self._reraise_exception_as_tcp_error('failed to connect', error)
File "/data/env/carla/PythonClient/carla/tcp.py", line 98, in _reraise_exception_as_tcp_error
raise TCPConnectionError('%s%s: %s' % (self._logprefix, message, exception))
carla.tcp.TCPConnectionError: (localhost:60571) failed to connect: [Errno 111] Connection refused
Traceback (most recent call last):
File "./parallel_actor.py", line 101, in
env_instance = create_environment(tuning_parameters)
File "/home/sdc/Projects/coach/environments/init.py", line 32, in create_environment
env = eval(env_type)(tuning_parameters)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 96, in init
self.game.connect()
File "/data/env/carla/PythonClient/carla/client.py", line 49, in connect
self._world_client.connect(connection_attempts)
File "/data/env/carla/PythonClient/carla/tcp.py", line 49, in connect
self._reraise_exception_as_tcp_error('failed to connect', error)
File "/data/env/carla/PythonClient/carla/tcp.py", line 98, in _reraise_exception_as_tcp_error
raise TCPConnectionError('%s%s: %s' % (self._logprefix, message, exception))
carla.tcp.TCPConnectionError: (localhost:38677) failed to connect: [Errno 111] Connection refused
Traceback (most recent call last):
File "./parallel_actor.py", line 101, in
env_instance = create_environment(tuning_parameters)
File "/home/sdc/Projects/coach/environments/init.py", line 32, in create_environment
env = eval(env_type)(tuning_parameters)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 96, in init
self.game.connect()
File "/data/env/carla/PythonClient/carla/client.py", line 49, in connect
self._world_client.connect(connection_attempts)
File "/data/env/carla/PythonClient/carla/tcp.py", line 49, in connect
self._reraise_exception_as_tcp_error('failed to connect', error)
File "/data/env/carla/PythonClient/carla/tcp.py", line 98, in _reraise_exception_as_tcp_error
raise TCPConnectionError('%s%s: %s' % (self._logprefix, message, exception))
carla.tcp.TCPConnectionError: (localhost:46727) failed to connect: [Errno 111] Connection refused

Results stored at: ./experiments/c/19_3_2018-23_24_0
Total runtime: 0:00:17.242453

Do you want to discard the experiment results (Warning: this cannot be undone)? (y/N)

Using tensorflow framework
Traceback (most recent call last):
File "coach.py", line 271, in
env_instance = create_environment(tuning_parameters)
File "/home/sdc/Projects/coach/environments/init.py", line 32, in create_environment
env = eval(env_type)(tuning_parameters)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 96, in init
self.game.connect()
File "/data/env/carla/PythonClient/carla/client.py", line 49, in connect
self._world_client.connect(connection_attempts)
File "/data/env/carla/PythonClient/carla/tcp.py", line 49, in connect
self._reraise_exception_as_tcp_error('failed to connect', error)
File "/data/env/carla/PythonClient/carla/tcp.py", line 98, in _reraise_exception_as_tcp_error
raise TCPConnectionError('%s%s: %s' % (self._logprefix, message, exception))
carla.tcp.TCPConnectionError: (localhost:44196) failed to connect: [Errno 111] Connection refused
fix by: and open server then  add time sleep;
change:
@property
def measurements(self):
assert True
@measurements.setter
def measurements(self, value):
    assert True

@property
def observation(self):
    assert True

@observation.setter
def observation(self, value):
    assert True

to Ture
error:
Using tensorflow framework
Traceback (most recent call last):
File "coach.py", line 271, in
env_instance = create_environment(tuning_parameters)
File "/home/sdc/Projects/coach/environments/init.py", line 32, in create_environment
env = eval(env_type)(tuning_parameters)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 136, in init
self.reset(True)
File "/home/sdc/Projects/coach/environments/environment_wrapper.py", line 165, in reset
self._restart_environment_episode(force_environment_reset)
File "/home/sdc/Projects/coach/environments/carla_environment_wrapper.py", line 232, in _restart_environment_episode
observation = self.step([1.0, 0])['observation']
KeyError: 'observation'

Hi,
Checkout commit 125c7ee38d413e4709271292c473f5930196b137 !
The latest commit seems to have broken quite a number of things..

# @property
# def observation(self):
#     assert False
#
# @observation.setter
# def observation(self, value):
#     assert False

        #observation = self.step([1.0, 0]).state['observation']

    observation = self.preprocess_observation(self.env.observation)

@ciumonk thanks!

We pushed some fixes to Carla in the following commit: f31159aad6e84d738732d22fc8aa1509c6cda275
This should solve the measurements / observation issues


Invoke from plugin icon?

Should there be an icon in kicad for it?
@gregdavill seems to:

But I do not:

Currently I think the icon I'm getting is some sort of placeholder from KiCad.
Let me add a proper icon.

Currently I think the icon I'm getting is some sort of placeholder from KiCad.
Let me add a proper icon.

Can you try c609cd9730f3eef623a6721349c51fa04eaddc66
I've added an icon for it now

Can you try c609cd9730f3eef623a6721349c51fa04eaddc66
I've added an icon for it now

@gregdavill I updated and re-launched KiCad but I don't see any icons.  But now that I think about, I don't see any of the other plugin icons like teardrop and RF-Tools.  I'll investigate that as it seems like some issue with my build and/or install of v5.99.  It used to have icons but I don't remember when it went away.

@gregdavill I updated and re-launched KiCad but I don't see any icons.  But now that I think about, I don't see any of the other plugin icons like teardrop and RF-Tools.  I'll investigate that as it seems like some issue with my build and/or install of v5.99.  It used to have icons but I don't remember when it went away.

In your pcbnew preferences what does your "Action Plugins" page look like?

In your pcbnew preferences what does your "Action Plugins" page look like?

Interesting, I don't see KiBuzzard in the list.  Also, not sure why I don't see any of the icons for the plugins that are listed.

Interesting, I don't see KiBuzzard in the list.  Also, not sure why I don't see any of the icons for the plugins that are listed.

In fact, after my most recent build, plugins are listed at all.
I posted about it to see if anyone else having problems.
https://forum.kicad.info/t/v5-99-plugins-missing-after-recent-build/27046

In fact, after my most recent build, plugins are listed at all.
I posted about it to see if anyone else having problems.
https://forum.kicad.info/t/v5-99-plugins-missing-after-recent-build/27046

FYI I'm working on a build I self built 2 days ago.
Version: (5.99.0-8406-gb90e72ed07), debug build
Libraries:
    wxWidgets 3.0.5
    libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh/0.9.3/openssl/zlib nghttp2/1.41.0 librtmp/2.3
Platform: Linux 5.8.0-33-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu, x11
Build Info:
    Date: Jan 16 2021 20:57:04
    wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.71.0
    OCE: 6.9.1
    Curl: 7.68.0
    ngspice: 32
    Compiler: GCC 10.2.0 with C++ ABI 1014
Build settings:
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    KICAD_USE_OCE=ON
    KICAD_SPICE=ON
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF

Note that I've got KICAD_SCRIPTING_WXPYTHON=ON and KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON

FYI I'm working on a build I self built 2 days ago.
Version: (5.99.0-8406-gb90e72ed07), debug build
Libraries:
    wxWidgets 3.0.5
    libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh/0.9.3/openssl/zlib nghttp2/1.41.0 librtmp/2.3
Platform: Linux 5.8.0-33-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu, x11
Build Info:
    Date: Jan 16 2021 20:57:04
    wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.71.0
    OCE: 6.9.1
    Curl: 7.68.0
    ngspice: 32
    Compiler: GCC 10.2.0 with C++ ABI 1014
Build settings:
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    KICAD_USE_OCE=ON
    KICAD_SPICE=ON
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF

Note that I've got KICAD_SCRIPTING_WXPYTHON=ON and KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON

I was able to get it working with fresh install of ubuntu 20.04 in a VM. there were a few issues along the way, perhaps you need to alias python3 to python
sudo ln -s /usr/bin/python3 /usr/bin/python
other than that I think python 3.9 is too new and has other issues

I was able to get it working with fresh install of ubuntu 20.04 in a VM. there were a few issues along the way, perhaps you need to alias python3 to python
sudo ln -s /usr/bin/python3 /usr/bin/python
other than that I think python 3.9 is too new and has other issues

Interesting, thanks!
On Ubuntu it's probably best to set python with
update-alternatives --install /usr/bin/python python /usr/bin/python3 10

Interesting, thanks!
On Ubuntu it's probably best to set python with
update-alternatives --install /usr/bin/python python /usr/bin/python3 10

@gregdavill I actually have KICAD_SCRIPTING_WXPYTHON=OFF so that might be the problem.  I changed that recently after a problem trying to run standalone CAM python program for the v5.99 pcbnew module
https://forum.kicad.info/t/install-the-v5-99-python-modules/26846/11  I will try to get KICAD_SCRIPTING_WXPYTHON=ON working again

@gregdavill I actually have KICAD_SCRIPTING_WXPYTHON=OFF so that might be the problem.  I changed that recently after a problem trying to run standalone CAM python program for the v5.99 pcbnew module
https://forum.kicad.info/t/install-the-v5-99-python-modules/26846/11  I will try to get KICAD_SCRIPTING_WXPYTHON=ON working again


Feature Request: Direct use of pointy castle keys

Hi :)
currently, the framework allows importing PEM keys. As the framework also uses pointy castle keys internally, it would be nice, if it would be possible to directly use pointy castle keys instead of converting them to a PEM string first and then parsing them back to the framework key class. Thank you!

Hello !
I totally understand the need. So I pushed a new version (v2.6.3) that includes this feature on all JWTKey
https://pub.dev/packages/dart_jsonwebtoken/versions/2.6.3
You can now instantiate a JWTKey like this:
final pcKey = pc.RSAPrivateKey(modulus, privateExponent, prime1, prime2);

...

final key = RSAPrivateKey.raw(pcKey);

Nice! Thank you :)

I run into the attached issue with ECDSA keys. It seems like, the new .raw method does not initialize the size property.

Yeah right ! Fixed : https://pub.dev/packages/dart_jsonwebtoken/versions/2.6.4

Nice, seems to work now :)


etcdct: adopt new client port by default

etcdserver uses both 4001 and 2379 for serving client requests by
default. etcdctl supports both ports by default.
/cc @yichengq @barakmich

lgtm

lgtm


Use amd64 for local linux builds

Description of the change:
Changes local linux builds (for kind/etc) to use amd64 instead of 386
Motivation for the change:
Avoid https://github.com/kubernetes/kubernetes/issues/97685
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /docs
[ ] Commit messages sensible and descriptive

/lgtm

/lgtm

Do we need a BZ to merge this or can we merge this manually?

Do we need a BZ to merge this or can we merge this manually?

/hold
Pausing bot spam until someone is able to look at the failing checks.

/hold
Pausing bot spam until someone is able to look at the failing checks.

/retest


Better Transformer integration

What does this PR do?
This PR tries to integrate BetterTransformers into Hugging Face ecosystem - following the same simple approach as in https://github.com/huggingface/transformers/pull/19632
More information coming soon!
The idea is that any HF model could be converted to its Fast version out of the box as follows:
import torch
from transformers import AutoModelForSequenceClassification
from optimum.bettertransformer import BetterTransformer

model = AutoModelForSequenceClassification.from_pretrained("bert-base-cased")
model = BetterTransformer.transform(model_hf)

inputs_ids = torch.LongTensor([[1, 1, 1, 1, 1, 1]])
model(input_ids)

cc @fxmarty @michaelbenayoun @HamidShojanazeri
Check also: https://pytorch.org/blog/a-better-transformer-for-fast-transformer-encoder-inference/
And also https://github.com/huggingface/transformers/pull/19553
TODO:

[ ] Address https://github.com/huggingface/optimum-intel/pull/84#discussion_r1015304912

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

For clarification, I'll add more docs later on the PR - asking for a second step of review @fxmarty @michaelbenayoun !

This looks really nice. Not super fan of the code duplication but IMO it's better like this to bring the feature fast. Once my points are addressed and the doc is completed (maybe with tables of the benchmarks you've done?) I think it can be merged!


-source and -target are set to 1.6 now

Java source level was not specified, so you've probably got errors like this:
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] git/SparkOnHBase/src/main/java/com/cloudera/spark/hbase/example/JavaHBaseMapGetPutExample.java:[38,8] error: generics are not supported in -source 1.3

Added maven-compiler-plugin to pom.xml with explicit java source version (1.6 - seems to be most common now, supported by most Hadoop distributions).

Hey this is helpful.
I would like to see this move to http://github.mtv.cloudera.com/cloudera-labs/SparkOnHBase
That is the more hardened version.  This is like the pre-release version.  Also if you would like to do more here let me know we can talk about future functionality.

I'll be glad to help as I'm now using both HBase and Spark in my job.
Unfortunately, URL you gave is not available (tried from several networks). Are you sure it's public?

Hi Can you please guide me how to integrate Hbase on spark

The above URL link is not available


Android Basics: Activity Lifecycle / problem with onDestroy()

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-activity-lifecycle
In which task and step of the codelab can this issue be found?
3 (Explore the lifecycle methods and add basic logging)
Describe the problem
When overriding onDestroy(), the call to super.onDestroy() has to be at the very end of the method; otherwise, we don't see any logging.
So, the correct code would be:
    override fun onDestroy() {
        Log.d(TAG_LIFECYCLE, "onDestroy called")

        super.onDestroy()
    }

Steps to reproduce?

Implement onDestroy() as stated in the codelab
Run the app
Close the app via the Recents menu
No logging for onDestroy() can be found in Logcat

Versions
Android Studio version: Android Studio Bumblebee | 2021.1.1 RC 1
API version of the emulator: tested on a physical device (Pixel 5, Android 12)

The original code works for me. But when closing the app using the back button didn't give me the destroy log. Closing from the recent apps screen works. Tested on an Android 12 Xiaomi device.

while pressing back button, I don't see any destroy log.


Feature/f2 explore mapper

Added mapper functionality,
Changed map to visualize
Added outline for mapper selection
Changed searchbar design

We can postpone merging this until we merge @carlos27g's branch. Then, I can work on creating a hybrid design

I just created the pull request and made both of you @elif-caliskan and @renttrent reviewers


[Prisma plugin] Example for using mutations

I just started using Pothos. An dit looks really good. Thanks for the great work. :-)
But I am missing an example of how to use mutations with the Prisma plugin. I found only examples on how to use queries.

There aren't a lot of examples of this right now.  It's currently a more manual process than defining queries, but you can see an example here: https://github.com/hayes/pothos/blob/main/examples/complex-app/src/schema/team.ts
If there are specific things you are having trouble with let me know, but the general solution requires defining input types  using the normal input type builder methods, and then using those input types with a t.prismaField.  There currently are no helpers for generating input types that match the types in your schema, so that part is currently requires just manually building those types.  It's something I have been thinking about, but gets very complicated when you start looking at all the different ways you can model relations.

Thanks :-)
In case someone else is also searching for a mutation example with prisma, this is what I did:
// prisma.schema
model Customer {
  id    String     @id @default(cuid())
  name  String
}

// schema.ts
import { builder } from './builder.js';
import { db } from './context.js';

const CreateOneCustomerInput = builder.inputType('CreateOneCustomerInput', {
  fields: (t) => ({
    name: t.field({ type: 'String', required: true }),
  }),
});

const CustomerUniqueInput = builder.inputType('CustomerUniqueInput', {
  fields: (t) => ({
    id: t.field({ type: 'String', required: true }),
  }),
});

builder.mutationType({
  fields: (t) => ({
    createOneCustomer: t.prismaField({
      type: 'Customer',
      args: {
        input: t.arg({ type: CreateOneCustomerInput, required: true }),
      },
      resolve: (query, _, { input }) =>
        db.customer.create({
          ...query,
          data: {
            name: input.name,
          },
        }),
    }),
    updateOneCustomer: t.prismaField({
      type: 'Customer',
      args: {
        input: t.arg({ type: CreateOneCustomerInput, required: true }),
        where: t.arg({ type: CustomerUniqueInput, required: true }),
      },
      resolve: (query, _, { input, where }) =>
        db.customer.update({
          ...query,
          data: {
            name: input.name,
          },
          where,
        }),
      )
    }),
  })
})


fix(storage): use FQDN

Sorta related to #13345
Didn't run any integration tests. YOLO.

This change is

FQDN?

FQDN?

https://letmegooglethat.com/?q=fqdn

integration-production-pr
[ RUN      ] ThreadIntegrationTest.ReuseConnections
google/cloud/storage/tests/thread_integration_test.cc:224: Failure
Expected: (max_expected_connections) >= (connected.size()), actual: 10 vs 201
...
~CurlHandle recv_count=0 (0 with no data), send_count=0 (0 with no data).
~CurlHandle == curl(Info): Connection cache is full, closing the oldest one.
== curl(Info): Closing connection 0
== curl(Info): TLSv1.3 (OUT), TLS alert, close notify (256):
== curl(Info): Connection #4 to host storage.googleapis.com left intact

demo-centos-7-pr
-----------------------------------
|   Running quickstart: storage   |
-----------------------------------
2023-12-21T23:17:44Z (+1582s): [ CMake ]
Error creating object: UNKNOWN: Permanent error, with a last message of PerformWork() - CURL error [51]=SSL peer certificate or SSH remote key was not OK error_info={reason=, domain=, metadata={gcloud-cpp.retry.function=CreateResumableUpload, gcloud-cpp.retry.reason=permanent-error, gcloud-cpp.retry.original-message=PerformWork() - CURL error [51]=SSL peer certificate or SSH remote key was not OK}}

Closing, because I don't really want to debug libcurl. Sorry.


OR isNull() predicate not working on nullable foreign key relation due to cross join

I have two tables, hello and world. hello contains a column world_id which is a reference to world.id. This is a nullable reference; some hello have null world_id.
I have created the following predicate: QHello.hello.world.name.like("test").or(QHello.hello.world.isNull()). When executing this predicate, QueryDSL / Hibernate creates the following HQL:
SELECT hello0_.id AS id1_0_
	,hello0_.world_id AS world_id2_0_
FROM hello hello0_
CROSS JOIN world world1_
WHERE hello0_.world_id = world1_.id
	AND (
		world1_.name LIKE ? ESCAPE '!'
		OR hello0_.world_id IS NULL
		)

Due to the cross join, entities where hello.world_id is null do not appear, even though I included them as an OR clause in my predicate. It needs to be some sort of LEFT JOIN instead.
JPA implementation: Hibernate
Database: Postgres
QueryDSL version: 4.3.1 (tested on 4.4.0 as well, issue exists there as well)

QueryDSL doesn't generate joins. We just render the JPQL query exactly as you define the query AST. So QHello.hello.world.name.like("test").or(QHello.hello.world.isNull()) is rendered to hello.world.name LIKE :param_1 OR hello.world IS NULL in JPQL/HQL. Hibernate just tends to use a cross join for implicit joins (i.e. hello.world.name). For one, I suggest upgrading to a more recent version of Hibernate, but also according to the JPA specification, you should just prefer to use an explicit join instead:
.from(hello)
.leftJoin(hello.world, QWorld.world)
.where(QWorld.world.name.like("test").or(QWorld.world.isNull())

Which in JPQL renders:
FROM Hello hello LEFT JOIN hello.world world WHERE world.name LIKE :param OR world IS NULL


Display path structure of the imported raw data

It would be very helpful to see the original path structure of the imported/crawled raw data. This could be included in the meta data window.

Good UI improvement once we have #143.

@pudo Hi. With these programming scripts can exhale data public users from social networks.


Does this implementation handle the vanishing gradient problem?

We all know RNNs have this problem. While the paper "Were RNNs All We Needed?" focuses on parallelism, does it also lay down any changes to handle vanishing gradients?
Just curious.

I'm assuming since the authors remove the previous hidden state dependencies from the gates, which simplifies the model and reduces the number of parameters .this somehow helps with the vanishing gradients

I'm assuming since the authors remove the previous hidden state dependencies from the gates, which simplifies the model and reduces the number of parameters .this somehow helps with the vanishing gradients

yes exactly, and also there is not a nonlinearity (usually a tanh) as the hidden state propagates along the sequence dimension, which is the reason it can be parallelized
this comes with its own costs however
if you wish to have a "real" simplified RNN, take a look at this repo


The logger (OutputLogger) only logs exceptions

The following method should accommodate state in all log levels:
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception, string> formatted)

To have Xunit print the logs to the console:
dotnet test --logger "console;verbosity=detailed"


Create Expand.php

Something something make expanded images

This is a WIP or something.

@Smoggert after much consideration, this will have to be closed due to unforeseen circumstances.


[TEVA-2001] Redirect NQT Job Alert

Jira ticket URL
https://dfedigital.atlassian.net/browse/TEVA-2001
Changes in this PR:

sign-up-for-NQT-job-alerts now routes to subscriptions#new or subscriptions#create
If the user reaches the create a job alert form via /sign-up-for-NQT-job-alerts the old copy from the nqt job alert is displayed and the "Suitable for NQTs" checkbox is checked.
@origin set to "/sign-up-for-NQT-job-alerts" if the user reaches the form via /sign-up-for-NQT-job-alerts
Removed nqt job alerts

Comments

No idea if I've gone about this the right way but it seems to work
It'd probably be helpful if the job role accordion section was expanded when "Suitable for NQTs" is pre-checked. Not sure how I could achieve this though...

Review app deployed to https://teaching-vacancies-review-pr-3134.london.cloudapps.digital


client for flask testing

Coverage increased (+0.13%) when pulling 2bf0043f4d5b900c9c1f16162268662c4d8b72b4 on flask into 86742fde142ecab516f5688c303515500765acf3 on master.


support terraform 0.12

terraform init --upgrade
Upgrading modules...
Downloading git::https://github.com/cloudposse/terraform-aws-cloudfront-cdn.git?ref=0.7.0 for cdn...
- cdn in .terraform/modules/cdn
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.3.7 for cdn.distribution_label...
- cdn.distribution_label in .terraform/modules/cdn.distribution_label
Downloading git::https://github.com/cloudposse/terraform-aws-route53-alias.git?ref=tags/0.2.5 for cdn.dns...
- cdn.dns in .terraform/modules/cdn.dns
Downloading git::https://github.com/cloudposse/terraform-aws-log-storage.git?ref=tags/0.2.2 for cdn.logs...
- cdn.logs in .terraform/modules/cdn.logs
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.3.3 for cdn.logs.default_label...
- cdn.logs.default_label in .terraform/modules/cdn.logs.default_label
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.3.7 for cdn.origin_label...
- cdn.origin_label in .terraform/modules/cdn.origin_label
Downloading git::https://github.com/cloudposse/terraform-aws-s3-website.git?ref=0.8.0 for website...
- website in .terraform/modules/website
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.14.1 for website.default_label...
- website.default_label in .terraform/modules/website.default_label
Downloading git::https://github.com/cloudposse/terraform-aws-route53-alias.git?ref=tags/0.3.0 for website.dns...
- website.dns in .terraform/modules/website.dns
Downloading git::https://github.com/cloudposse/terraform-aws-s3-log-storage.git?ref=tags/0.5.0 for website.logs...
- website.logs in .terraform/modules/website.logs
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.14.1 for website.logs.default_label...
- website.logs.default_label in .terraform/modules/website.logs.default_label

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "null" (terraform-providers/null) 2.1.2...
- Downloading plugin for provider "local" (terraform-providers/local) 1.3.0...
- Downloading plugin for provider "aws" (terraform-providers/aws) 2.18.0...

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
dhcp-149-171-170-94:infrastructure hachaboob$ terraform apply

Error: Unsupported argument

  on .terraform/modules/cdn/main.tf line 46, in resource "aws_cloudfront_distribution" "default":
  46:   logging_config = {

An argument named "logging_config" is not expected here. Did you mean to
define a block of type "logging_config"?

Error: Incorrect attribute value type

  on .terraform/modules/cdn/main.tf line 52, in resource "aws_cloudfront_distribution" "default":
  52:   aliases = ["${var.aliases}"]

Inappropriate value for attribute "aliases": element 0: string required.

Error: Unsupported argument

  on .terraform/modules/cdn/main.tf line 54, in resource "aws_cloudfront_distribution" "default":
  54:   custom_error_response = ["${var.custom_error_response}"]

An argument named "custom_error_response" is not expected here. Did you mean
to define a block of type "custom_error_response"?

Error: Incorrect attribute value type

  on .terraform/modules/cdn/main.tf line 85, in resource "aws_cloudfront_distribution" "default":
  85:       headers = ["${var.forward_headers}"]

Inappropriate value for attribute "headers": element 0: string required.

Error: Incorrect attribute value type

  on .terraform/modules/cdn/main.tf line 91, in resource "aws_cloudfront_distribution" "default":
  91:         whitelisted_names = ["${var.forward_cookies_whitelisted_names}"]

Inappropriate value for attribute "whitelisted_names": element 0: string
required.

Error: Unsupported argument

  on .terraform/modules/cdn/main.tf line 101, in resource "aws_cloudfront_distribution" "default":
 101:   ordered_cache_behavior = "${var.cache_behavior}"

An argument named "ordered_cache_behavior" is not expected here. Did you mean
to define a block of type "ordered_cache_behavior"?

#29 fixes this

I am trying to use master and it still does not work with TF 0.12.


[Forge] Freeze doesn't produce ice while active

Turned it on with a bucket of water in it , i saw the progress bar go and my bucket emptied but no ice anywhere , checked the fridge just in case but nothing

Thanks for the report. Fixed in https://github.com/MrCrayfish/MrCrayfishFurnitureMod-Refurbished/commit/a92a01e1df93caac4206bcda279de02ef9535e48


wait_for_ajax is not working with :angularjs for me

we have a method defined called wait_for_script which passes the specified JS library to PageObject in order to utilize wait_for_ajax. Here is the code we use:
module AjaxHelper
  include PageObject
  include TimeoutHelper

  def wait_for_script(script,timeout = 30, message = nil)
    timeout = timeout_by_env(timeout)
    PageObject::JavascriptFrameworkFacade.framework=script
    self.wait_for_ajax(timeout, message)
  end
end

and calling this method like this
wait_for_script(:jquery, 10, 'this is the message')

We use :jquery all the time and it works great. However we just upgraded to PageObject v -1.1.0 and I am trying to use this method with :angularjs and I'm getting the following error:
Selenium::WebDriver::Error::UnknownError: unknown error: Cannot read property 'get' of undefined
  (Session info: chrome=45.0.2454.85)
  (Driver info: chromedriver=2.18.343845 (73dd713ba7fbfb73cbb514e62641d8c96a94682a),platform=Windows NT 6.1 SP1 x86_64)
./lib/helpers/ajax_helper.rb:8:in `wait_for_script'

Any ideas if this is an issue with PageObject or an issue with my implementation?

Ok, sat with a developer on this and here's why I'm having a problem:
The script run in page-object-1.1.0\lib\page-object\javascript\angularjs.rb is:
 'return angular.element(document.body).injector().get(\'$http\').pendingRequests.length;'

The page I'm trying to implement this on isn't a true AngularJS app, it's a page which contains an AngularJS app inside of it in a div element. So when this script looks for angular.element(document.body) it doesn't find anything and returns the error above.
If it's cool with you @cheezy I might play around with this and see if I can make document.body into a variable.

I'm open to any pr that makes this more robust.

Given the age of this, I'm going to close it. Please re-open if you wish to continue investigating solutions.


Update error

On osx 10.11.4
▸ Updating Fisherman
cat: /Users/Amio/.local/share/fisherman/VERSION: No such file or directory
Aye! Fisherman 15 updated (0s)
fish: Unknown command '__fisher_plugin_validate'
~/.local/share/fisherman/functions/fisher_update.fish (line 1): __fisher_plugin_validate $item
                                                                ^
in command substitution
	called on line 0 of file ~/.local/share/fisherman/functions/fisher_update.fish

in function 'fisher_update'
	called on line 1 of file -

from sourcing file -
	called on line 60 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/eval.fish

in function 'eval'
	called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
	called on standard input
	with parameter list 'update'

fisher: '' is not a valid name, path or URL.
fish: Unknown command '__fisher_plugin_validate'
~/.local/share/fisherman/functions/fisher_update.fish (line 1): __fisher_plugin_validate $item
                                                                ^
in command substitution
	called on line 0 of file ~/.local/share/fisherman/functions/fisher_update.fish

in function 'fisher_update'
	called on line 1 of file -

from sourcing file -
	called on line 60 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/eval.fish

in function 'eval'
	called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
	called on standard input
	with parameter list 'update'

fisher: '' is not a valid name, path or URL.
fish: Unknown command '__fisher_plugin_validate'
~/.local/share/fisherman/functions/fisher_update.fish (line 1): __fisher_plugin_validate $item
                                                                ^
in command substitution
	called on line 0 of file ~/.local/share/fisherman/functions/fisher_update.fish

in function 'fisher_update'
	called on line 1 of file -

from sourcing file -
	called on line 60 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/eval.fish

in function 'eval'
	called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
	called on standard input
	with parameter list 'update'

fisher: '' is not a valid name, path or URL.
fish: Unknown command '__fisher_plugin_validate'
~/.local/share/fisherman/functions/fisher_update.fish (line 1): __fisher_plugin_validate $item
                                                                ^
in command substitution
	called on line 0 of file ~/.local/share/fisherman/functions/fisher_update.fish

in function 'fisher_update'
	called on line 1 of file -

from sourcing file -
	called on line 60 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/eval.fish

in function 'eval'
	called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
	called on standard input
	with parameter list 'update'

fisher: '' is not a valid name, path or URL.
0 plugin/s updated in 0s
fish: Unknown command '__fisher_complete_reset'
~/.local/share/fisherman/functions/fisher_update.fish (line 139):     __fisher_complete_reset
                                                                      ^
in function 'fisher_update'
	called on line 1 of file -

from sourcing file -
	called on line 60 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/eval.fish

in function 'eval'
	called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
	called on standard input
	with parameter list 'update'

fish: Unknown command '__fisher_key_bindings_reset'
~/.local/share/fisherman/functions/fisher_update.fish (line 140):     __fisher_key_bindings_reset
                                                                      ^
in function 'fisher_update'
	called on line 1 of file -

from sourcing file -
	called on line 60 of file /usr/local/Cellar/fish/2.2.0/share/fish/functions/eval.fish

in function 'eval'
	called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
	called on standard input
	with parameter list 'update'

@amio Oops, it seems you tried to upgrade from 1.5?

Thanks :D
Mostly it(curl -L git.io/fisher-up-me | fish) fix the problem but still got an exception(just FYI ):
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
100  3906  100  3906    0     0    794      0  0:00:04  0:00:04 --:--:--  3576
Unexpected end of string, quotes are not balanced
~/.config/fish/functions/fisher.fish (line 551):     fish -c "

        pushd $path

        if not command git fetch -q origin master ^ /dev/null
            printf '$error""ARGH""$nc Fetching $error%s$nc\n' '$name' > $__fisher_stderr
            exit
        end

        set -l commits (command git rev-list --left-right --count master..FETCH_HEAD ^ /dev/null | cut -d\t -f2)

        command git reset -q --hard FETCH_HEAD ^ /dev/null
        command git clean -qdfx
        command cp -rf '$path/.' '$fisher_cache/$name'

        if test -z \"\$commits\" -o \"\$commits\" -eq 0
            printf '$okay""OKA
                                                             ^
from sourcing file ~/.config/fish/functions/fisher.fish
	called on standard input

in command substitution
	called on standard input

source: Error while reading file '/Users/Amio/.config/fish/functions/fisher.fish'
I have commented out the old fisherman's init code
from your fish configuration file:
/Users/Amio/.config/fish/config.fish

We don't need this code anymore, so you can remove it.

Erasing old fisherman's functions.
Erasing old fisherman's variables.

Installing the new fisherman in:
/Users/Amio/.config/fish/functions/fisher.fish

######################################################################## 100.0%

@amio The upgrade script has become a bit buggy suddenly.
To confirm fisherman 2.0 was installed correctly, could you:
fisher -v
fisher ls
ls -a ~/.config/fisherman

Thanks.

So far so good:
~/git $ fisher -v                                                                                17:08:33
fisherman version 2.1.13 ~/.config/fish/functions/fisher.fish

~/git $ fisher ls                                                                                17:08:38
* theme-eden
  cache
  completions
  conf.d
  man

~/git $ ls -a ~/.config/fisherman                                                                                17:08:42
.           ..          cache       completions conf.d      fishfile    man         theme-eden

@amio Nope. You still didn't upgrade correctly.
Remove cache, completions, conf.d, fishfile and man from your ~/.config/fisherman .

O.o
It's clean now:
~/git $ fisher -v                                                                                17:27:28
fisherman version 2.1.13 ~/.config/fish/functions/fisher.fish

~/git $ ls -a ~/.config/fisherman                                                                                17:27:48
.  ..

Looks good! Things should work from now on, I hope. :)

👍 Thanks!
PS:
Sometime it's "eden", sometime it's "theme-eden", is that alright?

@amio In the first case: omf-theme-xxx becomes xxx, but in the second case fish-theme-eden just becomes eden because the regex that cleans the string is not recursive, only removes the first prefix we find.
If I make it recursive then it would be eden always.
What do you think?

If you change that sub to gsub, I think things would work.

https://github.com/fisherman/fisherman/blob/master/fisher.fish#L1115

Do you want to try that? If it works, can you send me a PR? :)

The gsub seems doesn't work, modify the regex works:
sub(/^(omf|omf-theme|omf-plugin|plugin|theme|fish|fisher)-/, "", s[n])
# to
sub(/^(omf|omf-theme|omf-plugin|plugin|theme|fish-theme|fisher)-/, "", s[n])

While IMHO keep the "theme-" prefix is useful, in case someone make a "plugin-eden" or "awesome-eden". For the same reason I would rather recommend to remove pattern omf-theme|omf-plugin|, what do you think?

For the same reason I would rather recommend to remove pattern omf-theme|omf-plugin|, what do you think?

Yes, I think this is the most sensible thing to do. 👍


set_continuous_color with multiple figures

First of all, as always: Great work, this tool is invaluable!
If I run this script:

figure
g = gramm('x',1:20,'y',1:20,'color',[ones(1,10) 1:10 ])
geom_line(g)

facet_grid(g,[ones(1,10),2*ones(1,10)],[])
fig(g,[1 1 1 2*ones(1,10-3),3*ones(1,10)])
set_continuous_color(g)
draw(g)

I get the error
Error using matlab.graphics.axis.Axes/set
While setting property 'CLim' of class 'Axes':
Value must be a 1x2 vector of numeric type in which the second element is larger than the first and may be Inf

Error in caxis (line 80)
            set(ax,'CLim',arg);

Error in gramm/draw (line 726)
            caxis([mi ma]);

Error in gramm/draw (line 125)
        obj{ind_fig}.draw();

80              set(ax,'CLim',arg);

In Line 726 and 885 (after you fix L726)
Because I have a figure where the color limit is [1,1] and matlab does not like this. Please note that the first error does not occur if the limit is [0,0] (i.e. caxis([0,0]) works), but then the error at 885 still persists.
My current workaround:
replace in draw.m Line 885 and Line 726
        mi = min(min(obj.plot_lim.minc));
        ma = max(max(obj.plot_lim.maxc));

        if mi ~= ma
            caxis([mi ma]); % in L726
            set(ca,'CLimMode','manual','CLim',[mi ma]); % in L885
        end

But then I still get the not-useful colorbar legend. But it works :)
More general: I think the problem is, that set_continuous_color is defined for all figures, but should be defined for a single figure, or the obj.plot_lim.minc/maxc should either be over figures, or have default 0,0.

Thanks for the detailed report, issue #34 recently was also related to color limits, I'll look into that.

That's corrected in the last commit, along with the possibility to set 'CLim' in set_continuous_color(), which should make your color legends in multiple figures much better!
figure
g = gramm('x',1:20,'y',1:20,'color',[ones(1,10) 1:10 ])
geom_line(g)

facet_grid(g,[ones(1,10),2*ones(1,10)],[])
fig(g,[1 1 1 2*ones(1,10-3),3*ones(1,10)])
set_continuous_color(g,'CLim',[1 10])
draw(g)


hikey.conf: add burn-boot (hisi-idt.py) to EXTRA_IMAGEDEPENDS

Signed-off-by: Fathi Boudra<EMAIL_ADDRESS>

lgtm


AI Jam js not working

Hi there, I'm trying to run ai-jam-js on my Ubuntu 16.04 from my Magenta conda environment.
I want to use an Akai LPK25 as a MIDI controller, so I plug it into my PC with the environment active and I run sh RUN_DEMO.sh in the appropriate directory. By accessing to <IP_ADDRESS>:8080 the interface is shown but it seems like it is not receiving any kind of signal because the piano keys only work when I use the mouse and they don't emit any sound at all (even with the mouse).

I don't know what's wrong but I suspect that it has to be sth related to the hardware and synth connections. Here's the log:
File http://download.magenta.tensorflow.org/models/attention_rnn.mag already present
File http://download.magenta.tensorflow.org/models/performance.mag already present
File http://download.magenta.tensorflow.org/models/pianoroll_rnn_nade.mag already present
File http://download.magenta.tensorflow.org/models/drum_kit_rnn.mag already present
 * Running on http://<IP_ADDRESS>:8080/ (Press CTRL+C to quit)
WARNING:tensorflow:No input port specified. Capture disabled.
INFO:tensorflow:Opening 'magenta_in' as a virtual MIDI port for output.
2018-02-01 01:04:04.104307: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2018-02-01 01:04:04.166210: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
WARNING:tensorflow:The saved meta_graph is possibly from an older release:
'model_variables' collection should be of type 'byte_list', but instead is of type 'node_list'.
INFO:tensorflow:Restoring parameters from /tmp/tmpIxuYso/model.ckpt
Loaded 'attention_rnn' generator bundle from file './attention_rnn.mag'.
WARNING:tensorflow:The saved meta_graph is possibly from an older release:
'model_variables' collection should be of type 'byte_list', but instead is of type 'node_list'.
INFO:tensorflow:Restoring parameters from /tmp/tmpZlPHdN/model.ckpt
Loaded 'drum_kit' generator bundle from file './drum_kit_rnn.mag'.
INFO:tensorflow:Opening 'magenta_drums_in' as a virtual MIDI port for input.
INFO:tensorflow:Opening 'magenta_clock' as a virtual MIDI port for input.
INFO:tensorflow:Opening 'magenta_out' as a virtual MIDI port for output.

Instructions:
Start playing  when you want to begin the call phrase.
When you want to end the call phrase, stop playing and wait one clock tick.
Once the response completes, the interface will wait for you to begin playing again to start a new call phrase.

To end the interaction, press CTRL-C.
INFO:tensorflow:Restoring parameters from /tmp/tmpAEHW5P/model.ckpt
Loaded 'rnn-nade_attn' generator bundle from file './pianoroll_rnn_nade.mag'.
WARNING:tensorflow:The saved meta_graph is possibly from an older release:
'model_variables' collection should be of type 'byte_list', but instead is of type 'node_list'.
INFO:tensorflow:Restoring parameters from /tmp/tmpd8bQ9A/model.ckpt
Loaded 'performance' generator bundle from file './performance.mag'.
INFO:tensorflow:Opening 'magenta_in' as a virtual MIDI port for input.
INFO:tensorflow:Opening 'magenta_out' as a virtual MIDI port for output.

Instructions:
Start playing  when you want to begin the call phrase.
When you want to end the call phrase, stop playing and wait one clock tick.
Once the response completes, the interface will wait for you to begin playing again to start a new call phrase.

To end the interaction, press CTRL-C.
<IP_ADDRESS> - - [01/Feb/2018 01:04:13] "GET /build/1.js HTTP/1.1" 200 -
open: opción incorrecta -- «a»
Uso: open [OPCIONES] -- comando

Please help @adarob @cghawthorne :pray: :smiley:

I get this js error in Magenta.js i when I press a key from the keyboard (both in Chrome and Firefox):

And this when I change from Drums to Piano again:

After resolving original symptoms with #30 I have a follow-up issues (unless someone calls for a separate issue I'll continue here since the issue name still applies).
I installed magenta-gpu in separate conda envs magenta for python3.5 and magenta2 for python2.7.
Since python 3 version exhibited crashing on an Import Error, I work with python 2 for now.

ImportError: No module named 'Queue'

After runing sh RUN_DEMO.sh in magenta2 env, when I open localhost:8080 in Chrome, my GPU load raises from ~0% to ~50% and stays there no matter what I do in the app. I can now hear and see what I played, but I can't get any Response to any of my Calls.
I also attach the current behavior as a short YT video for quick demonstration.
I'd love to hear if someone gets a different behavior. @adarob any clues or suggestions where to look at next?
Cheers!

I have a fix for the Python3 issue that I'll push shortly.
It would be important to see what's happening in the terminal you started RUN_DEMO.sh in. It should be logging messages that it is receiving clock signals.

https://github.com/tensorflow/magenta/pull/1117 will fix the python3 issues once the pip package is updated.

For the no Response case, I attach terminal output of RUN_DEMO.sh in this GIST


prisma.plugin.nextjs.addTypesOnSave broken

This feature is totally broken, I'm confused why any nextjs related functionality is included in the prisma vscode extension in the first place.
Before saving:

After saving:

After saving again (notice the req and res parameters switch order).

@bhgsbatista Sorry for the inconvenience. This was a bug that will be patched shortly.

I'm confused why any nextjs related functionality is included in the Prisma vscode extension in the first place.

This was created because in nextjs page functions i.e getStaticSideProps, getServerSideProps the types can not be automatically inferred and passed to the page.
As Prisma prides itself on type-safety this is an experimental attempt to remove the burden of adding types and lowering the bar to entry. This also enables type safety in js code by leveraging JSDOCs

Thanks for the speedy fix!


Sortable is not a function

Since realese 1.2.0 i have following issue:
Uncaught TypeError: Sortable is not a function(…)

my setup:
...
var Sortable = require('react-sortable').Sortable;
...
var SortableImageItem = Sortable(ImageItem); // <- chrome debugger error

ahh you changed the function to lowercase!
this i sa bit problematic because the most of the guys have in their package.json something like "react-sortable": "^1.1.0", maybe you can provide an alias function or something like that and make a patch release...

I forgot to mention this in the release notes. Now you can see it there, as well as in the README file.

If you would like to, you are welcome to make a PR for compatibly patch.

isnt it just echo "export { SortableComposition as sortable } from './SortableComposition'" >> src/index.js;
i can pull request that if you want?


Add files via upload

I have added a Data Science Interview Questions and answers PDF... Please merge it into your Repo

I'm hesitant to put a binary to the repo. If you think this resource is useful, please consider adding a link to the original to awesome.md


xDai compatibility

_Deadline: October 19. If we don't make this deadline, please reach out on Slack. _
What is this feature about? (1 sentence)
This makes the Gnosis Safe Multisig available on xDai via https://xdai.gnosis-safe.io/app.
Why is it needed? What is the value? For whom do we build it?

We want to make the Safe Multisig web interface also compatible with the Gnosis Safe contracts / backend services on xDAI.
This is important for Gnosis since we commited to leverage xDai as L2 more. cf. blog post
Also on L2, high value assets can be managed. So the same security requirements apply like on mainnet.
The contract controlling the bridge between xDai and mainnet is supposed to be a Gnosis Safe soon.

High-level overview of the feature

The xDai Safe (contracts and interfaces) should be completely separate to mainnet (and Rinkeby). At this point, there should not be a "bridging" feature or something similar between mainnet and xDai.

Please note: ETH is not the native currency to pay gas costs on xDai, but rather xDai.

The web app should be available at https://xdai.gnosis-safe.io/app

Probably requires involvement by Devops for deployment
https://xdai.gnosis-safe.io should automatically forward to https://xdai.gnosis-safe.io/app

No need for a desktop app for xDAI at this point.

Only the 1.1.1 Safe contracts are deployed on xDai. They have the the same addresses like on mainnet, i.e. e.g. 1.1.1 mastercopy at 0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F

Transaction-service on xDai: https://safe-transaction.xdai.gnosis.io/

Some wording changes (should be kept to a minimum for the first version)

Network label ("xDai")
We have this notification about "Rinkeby - don't send mainnet funds". This one should not be shown for xDAI.
Please adapt the popup "You Must Change Networks" accordingly.

Instead of ETH, on xDai, the native currency is xDai, so ETH should be hidden/not show up in the assets overview.

Misc

Please note: We are planning to add support for 2 more networks(#1253) quite soon. Please keep that in mind, when deciding whether to hardcode or make this more generic.

We are now adding support for 3 new networks (xDai, EWC and Volta). We use different URL and we have the network label but besides that, there is no differences. This could be a problem.
@dasanra had the idea to change some main css color respective to the used network. What do you think about this @posthnikova? Would this be possible?

@tschubotz Do you mean change the color in dropdown https://prnt.sc/up5vvy where it says Mainnet or everywhere in the interface? By the way in the dropdown the color doesn't change for Rinkeby.

This could be a problem.
You can't use the interface when you owner wallet is on wrong network, there is a 'Wrong network' popup which blocks everything. Would it also work this way for xDai, EWC and Volta?

@tschubotz Do you mean change the color in dropdown https://prnt.sc/up5vvy where it says Mainnet or everywhere in the interface?

What we had in mind was a more drastic UI hint, such as e.g. the entire header row:

Dani said, they did something similar in the DutchX admin interface and it helped. That's how this came up.

You can't use the interface when you owner wallet is on wrong network, there is a 'Wrong network' popup which blocks everything. Would it also work this way for xDai, EWC and Volta?

That's right. It would also work this way for xDai, EWC and Volta. So a UI change would be in addition to that, to make it even more clear that these are different apps.
On the other side, I'm only aware of 1 report so far where someone sent mainnet funds to a Rinkeby Safe address.

I would maybe rework the tag in header so it changes color.

I'm not sure about changing the color of header. It would draw too much attention.

It would draw too much attention.

That would be the purpose of it though ;) i.e. to know that this is a different env.

The purposes of indicating network are:

to connect a wallet that is on the right network
to prevent sending mainnet funds to testnet addresses

1 we have more or less covered, you can't use the interface when it's blocked.
2 is not really covered. We have a network tag in the header and a notification 'Rinkeby version - don't send mainnet assets to this Safe'. Mistakes could happen when the user copies Safe address. But we don't warn when the users copy Safe address on testnets and there is no indication in Receive popup. So maybe we should add these?

2 is not really covered. We have a network tag in the header and a notification 'Rinkeby version - don't send mainnet assets to this Safe'. Mistakes could happen when the user copies Safe address. But we don't warn when the users copy Safe address on testnets and there is no indication in Receive popup. So maybe we should add these?

Not only fore testnet <> mainnet: xDai and EWC are not testnets and users should not assume that a Safe on 1 network exists on the other network as well.
Hence we thought it would help making it visually clear that the apps are not interchangeable would help.

I'm sure it should be somewhere near the Safe address and in Receive popup.

That would work I think. Would that be additional to coloring the network name in the top right corner. This one here?

Would that be additional to coloring the network name in the top right corner. This one here?

Yes, we'll have a tag in the top header, a warning in the sidebar and a warning in Receive popup. For mainnet no changes are needed.

We also have this tiny icon in the wallet dropdown:

I think this could be nice.
What is your opinion on Sasha's design proposal @fernandomg @nicosampler @dasanra?

I like the color code approach. Also the idea of informing the user what network it is using.
I'm not sure if changing the colors of the action button to match the network would also be a way to make the user aware of the network they're connected to.
Also, in regard to the test networks (Rinkeby, Volta in this case), what do you think of using one color for all of them? I mean, if it's a testnet, then #E8673C or whatever color suits better?

EDIT: I think this may be a pain to do, but somehow I like the idea of giving the whole app a slight
coloring based on the main color. The thing is that I don't know how to do that. Probably it's
a really bad idea

@fernandomg I understand what you're talking about. This is a brand design question. If we replace the primary color the interface would no longer associate with Safe, it will look like a brand behind it is the network. So it depends on if we want to keep the Safe branding or not.

Also, in regard to the test networks (Rinkeby, Volta in this case), what do you think of using
one color for all of them?

I think they should be different. Volta is a tesnet belonging to EWC so it should use corresponding colors.

@fernandomg I understand what you're talking about. This is a brand design question. If we replace the primary color the interface would no longer associate with Safe, it will look like a brand behind it is the network. So it depends on if we want to keep the Safe branding or not.

Crystal clear, thanks for the clarification.

I think they should be different. Volta is a tesnet belonging to EWC so it should use corresponding colors.

Oh, Ok. So if xDai happens to have a testnet then it's color will correspond to #48a9a6. Yes, makes sense.
Thank you!


fix: Extra save & continue click investigation fix

The type of this PR is: fix
Resolves EMI-1410 and _I think _ EMI-1397 as well.
This PR solves a bug we currently hack around, creating a negative user experience. Paired with @damassi and @iskounen on it.
cc @artsy/emerald-devs
Description
In https://github.com/artsy/force/pull/12684 and #12673 we changed the behavior of our address verification and submission flow to require an additional button click. Initially the thought was that we had a race condition with numerous useState variable settings, causing an old address to be sent immediately after confirmation.
While that fix solved the problem, we think the problem was actually that the onChosenAddress prop, an anonymous arrow function, was closuring the finalizeFulfillment() function, which itself was closuring the setShipping() function, which at the time the component was mounted contained an old address.
Both fixes accomplish the same thing - not calling the stale finalizeFulfillment closured into the onChosenAddress prop. We initially fixed this by checking for presence of addressVerifiedBy (it is null until set by the flow), and sometimes this worked, but other times it triggered an error from simultaneous mutations. Thus to illustrate the problem and potential fix we created a new state variable.
Lacking tests at the shipping route level i think this reserves at least one more round of manual testing for variations on:

ship vs arta ship
perfect address vs suggestions vs no suggestions

I haven't touched/look at this code at all - but from reading the PR description, and esp the last sentence:

That said this are of the code has lots of competing updates and interactions, including other known bugs.

Do you think it might make sense to work on a re-build of the order flow/app? (it may or may not come with design updates). My thinking is if the code has become very complex and unwieldy, even though iterative bug-fixes are usually better than a full rebuild and a rebuild can come with its own bugs - maybe a rebuild by a now more experienced team can come up with an overall better code-base?
To be clear, I'm specifically referring to the Force order/checkout flow - not necessarily anything related to Exchange or more backend/mutation updates.

It def needs to be rebuilt; we've been talking about this for a long time now and various folks has expressed intent / interest, but it never goes anywhere significant. Hopefully this changes with the new team setup. But that said this code is complex and delicate and we can't refactor it until someone spends some time putting together a detailed control-flow diagram that maps each transition. And from there, use a formal state machine.

Alright, this appears to be working - thanks for the reviews so far. It also appears to fix the bug in EM-1397.

Still need to do more thorough QA, and here are my notes so far:

Accepting a recommended address when an order already had a quote does not re-quote or persist the recommended address. This happens when going back to the shipping step second time in the checkout flow. Still need to verify if this is the same in production currently.

This fix doesn't fix EM-1397 fully even though it sends the desired verifiedBy parameter. It's a separate issue from what this PR is solving, so I'll add a note too there. See the recording: it passes the correct verifiedBy param when finalizing fulfillment, but leaves the app in an incorrect state, which can lead to future issues.

I think it still makes sense to merge this PR if no blocking issues, and in the same time, I'd like to discuss if we can have better test coverage to catch regressions. It's really hard to have to manually test all scenarios. 😓

@starsirius thanks for testing! Agree we need tests for this flow at the route level- I wonder if this justifies its own ticket so we can prioritize it appropriately.

@erikdstock Yes. Tests can be its own task and not blocking for this PR. I'll try to verify the major flows are covered and merge!

OK I tested again the major flows and wrote up the test cases (expand below). It may be helpful as an outline for the future improved tests.
Arta shipping test cases

Suggestion

Correct modal shows up
Selecting the suggested address populates the form (secondary CTA skipped)
Selecting the suggested address continues to quote selection
Selecting the suggested address calls the set shipping mutation with the corrected address
Clicking save and continue again proceeds to the payment step
Navigating back to the shipping step shows the suggested address

No suggestion

Correct modal shows up
Selecting edit address allows me to edit (secondary CTA skipped)
Clicking save and continue calls the set shipping mutation with the original address and populates the quotes
Clicking save and continue again proceeds to the payment step
Navigating back to the shipping step shows the suggested address

Perfect address

No modal shows up
Clicking save and continue calls the set shipping mutation with the original address and populates the quotes
Clicking save and continue again proceeds to the payment step
Navigating back to the shipping step shows the suggested address

Partner shipping test cases

Suggestion

Correct modal shows up
Selecting the suggested address calls the set shipping mutation with the corrected address (secondary CTA skipped)
Selecting the suggested address proceeds to the payment step
Navigating back to the shipping step shows the suggested address

No suggestion

Correct modal shows up
Selecting edit address allows me to edit (secondary CTA skipped)
Clicking save and continue calls the set shipping mutation with the right address
Clicking save and continue proceeds to the payment step
Navigating back to the shipping step shows the suggested address

Perfect address

No modal shows up
Clicking save and continue calls the set shipping mutation with the original address
Clicking save and continue proceeds to the payment step
Navigating back to the shipping step shows the suggested address

I'm going to merge this and we'll follow up separately for

The issues discovered in https://github.com/artsy/force/pull/12745#issuecomment-1685546255.
Better test coverage


Dataset Desmodes overview

[ ]  InstitutionID was not used correctly. Now it forms the basis of occurrenceID as the identifier of the unique records DwC info: DwC:institutionID  --> new unique occurrenceID's generated [rowNumber; institutionID, institutionCode -> hash values
[ ] scientificName --> Desmodus rotundus |  Desmodus desmodus rotundus | Desmodus d. rotundus |Desmodus rotundus rotundus |
Desmodus rotundus - exposiÃ§Ã£o  keep only Desmosus rotundus & Desmodes rotundus rotundus ?
[ ] occurrenceRemarks --> republished from https://doi.org/10.6084/m9.figshare.18745316
[ ] Data coming from Lee dataset (Lee DN, Papes M, Van Den Bussche RA. 2012. Present and potential future distribution of common vampire bats in the Americas and the associated risk to cattle. PLoS One 7:e42466.) also mentioned data downloaded from GBIF. Any means to identify those ones to avoid duplicates?
[ ] in dwc:family also 'SUBSPECIES' as a value? (with institutionID 860.015.542-6)
[ ] coordinateUncertaintyInMeters ranges from 0,04 to 262883
[ ] Tried to establish relation with already published GBIF records by resourceRelationShip
[ ] I completed empty values in basisOfRecord with MaterialCitation & occurrence

occurrence %<>% mutate(dwc_basisOfRecord = case_when (
datasetName == 'Lee'   ~ "MaterialCitation"
,datasetName == 'Zarza' ~ "MaterialCitation"
,basisOfRecord == 'UNKNOWN' ~ "occurrence"
,datasetName == 'literature' ~ "MaterialCitation"
,datasetName == 'Piaggio' ~ "MaterialCitation"
,datasetName == 'Juan Luis_Personal_Database' ~ "MaterialCitation"
,datasetName == 'Literature' ~ "MaterialCitation"
,datasetName == 'Bio_Diversi_Data_UY' ~ "MaterialCitation"
,datasetName == 'PCMS' ~ "MaterialCitation"
,datasetName == 'Literature' ~ "MaterialCitation"
,datasetName == 'Streicker_Peru' ~ "MaterialCitation"
,datasetName == 'SAG' ~ "MaterialCitation"
,TRUE   ~ basisOfRecord ))

[ ] added IUCN as nomenclaturalCode
[ ] added occurrenceStatus --> present
[ ] changed locality_proper --> locality

First task looks good, as it looks like you are assigning each occurrence a GBIF ID
Scientific Name should be Desmodus rotundus
Occurrence remark looks good, as that would direct to the original figshare database
Lee paper does used occurrences from GBIF, but those should have already been removed (i.e., no duplicates). If you would like to exclude all occurrence points from the Lee paper, I believe that would also be acceptable. Let me know if that makes sense.
If basis of record is not listed then it is unknown. I am unsure of what MaterialCitation signifies within the GBIF system, but I believe that would the most accurate description.
Locality_proper to locality is fine, they are the same thing. Locality_proper is simply corrected for capitalization
I am unsure of what you mean by dwc:family also ‘SUBSPECIES’? Family should be Phyllostomidae. However, if there is an error, please let me know.

First task looks good, as it looks like you are assigning each occurrence a GBIF ID
--> I'm assigning each occurrence a new unique ID, this is not the GBIF ID. In the original dataset I could not find GUID (Global Unique ID's, which we need for publication on GBIF. What came close was the institutionID (I guess this is the unique record number in the original database). DwC:institutionID is actually an ID for the institute, so I guess the term was not used correctly.
If I download the data from https://doi.org/10.15468/dl.my64ap, I get the whole DwC (also all the empty columns) and the uniqueID can be found back in occurrenceID

Scientific Name should be Desmodus rotundus

Ok, fixed

Occurrence remark looks good, as that would direct to the original figshare dataset

ok

Lee paper does use occurrences from GBIF, but those should have already been removed (i.e., no duplicates). If you would like to exclude all occurrence points from the Lee paper, I believe that would also be acceptable. Let me know if that makes sense.

If the Lee paper data here (Desmodus_dataset_Dec_2021.csv) is not already on GBIF , we will keep them in the dataset. :)

If basis of record is not listed then it is unknown. I am unsure of what MaterialCitation signifies within the GBIF system, but I believe that would the most accurate description.

More info on the term can be found here: https://github.com/tdwg/dwc/issues/329 IT's referring to evidence of an occurrence from literature.

Locality_proper to locality is fine, they are the same thing. Locality_proper is simply corrected for capitalization

ok

I am unsure of what you mean by dwc:family also ‘SUBSPECIES’? Family should be Phyllostomidae. However, if there is an error, please let me know.

I think there is an error somewhere. Where family and taxonRank changed places.

Also here is something not correct, as we have 100% Desmodus rotundus, family should be the same in the whole dataset.

fixed
I also changed M & F in Dwc:sex to male and female as these are the controlled vocabulary terms. :)

Sounds good. Looks like two of the columns might have been switched at some point (family and taxonRank). Perhaps try downloading the most recent version from Figshare (https://figshare.com/articles/dataset/Desmodus_rotundus_Occurrence_Record_Database/15025296). (i.e., Desmodus_dataset_Apr_2022).

Some more questions, remarks in April 22 version
I have these values in basisOfRecord
MachineHUMAN_OBSERVATIONbPRESERVED_SPECIMENervatiHUMAN_OBSERVATIONn
HumanHUMAN_OBSERVATIONbPRESERVED_SPECIMENervatiHUMAN_OBSERVATIONn
Still some errors in family <-> taxonRank (I created fixed terms here now)

All taxonrank is now species (as all scientificName = Desmodus rotundis (no subspecies)

Okay, gotcha. Just went through and fixed those columns, so they should be okay now. For taxonRank species is fine, just make sure that Desmodus rotundus is spelled correctly and that should be good to go!

For the basis of record it looks like some things have been collated. Should be HUMAN_OBSERVATION, PRESERVED_SPECIMEN, or LIVE_SPECIMEN. That specific record is unknown, so it should be left black or listed as UNKNOWN. Does that make sense?


Enhancement: Support EJS files

It appears that EJS (Embedded JavaScript) files could be supported pretty easily on this extension.
EJS templates embedded javascript with <% begin tags and %> end tags, with javascript and other characters that drive various behavior inbetween the ejs start/stop tags.
Currently, htmlhint gives the following error on these tags:

So, one can work around this by turning off the spec-char-escape rule, but then the rule won't catch any non-ejs issues with special character escaping.
The following should be considered for ejs files (*.ejs) by default, or allow explicit configuration by user somehow. These are considered as least support for ejs to most support (but also least amount of work to most amount of work):

Just disable spec-char-escape by default on ejs files (*.ejs)
Ignore the spec-char-escape rule only on <% and %>
Find paired <% and %> tags and ignore both the tags and everything between them
Same as above, but actually lint the ejs tags (<%, <%=, etc.)
Same as above, but also lint the javascript within the ejs tags, or pass off to another linter (e.g. eslint, etc.)

alternatively, to support other types of files, (I'm using nunjucks templates with my eleventy SSG site), can the configuration for htmlhint be configured to use different htmlhint rc files for different file extensions?
in the meantime, I've just posted a feature request with the upstream htmlhint project asking if the .htmlhintrc syntax be extended to overide rules for different file extensions, and define start/end pairs like "{{", "}}"   and "{%", "%}" so that stuff between them can be ignored.

Related to: https://github.com/htmlhint/HTMLHint/issues/492
I too am facing this issue, although I feel this must be implemented in the npm package than in the VS Code extension.
Possible solution: https://github.com/htmlhint/HTMLHint/issues/492#issuecomment-808464837

please how can i disable the spec-char-escape


No need to use file_ids for non-image objects

@jkeck I left display_type in the code in case we need to revert back.  Will mark it as deprecated and pull it out of the code once the UI is tested.

:+1:


reloader using thread

Currently reloader is using python subprocess module to restart the process. But this will not work in the restricted environment such as ios. Can we have an option to use thread instead of subprocess? Thanks!

That is not technically possible. You need to reload sys.modules as well.
On 8 February 2016 07:38:49 CET, Mohd Rozi<EMAIL_ADDRESS>wrote:

Currently reloader is using python subprocess module to restart the
process. But this will not work in the restricted environment such as
ios. Can we have an option to use thread instead of subprocess? Thanks!

Reply to this email directly or view it on GitHub:
https://github.com/mitsuhiko/werkzeug/issues/869

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


SHADE crashes when modulo-regridding a time-limited NOLEAP calendar

Reported by Andrew Wittenberg on 23 Nov 2005 03:32 UTC
Ran into this with one of our model datasets, which has a NOLEAP calendar.  Here
I cast MONTHLY_NAVY_WINDS onto a NOLEAP calendar, so that I don't have to send
you my dataset.
    NOAA/PMEL TMAP
    FERRET v5.81
    Linux(g77) 2.4.18 - 07/14/05
    22-Nov-05 22:15

yes? use monthly_navy_winds
yes? set ax/cal=noleap uwnd,r=taxis
!-> set ax/cal=noleap TIME
yes? let a = uwnd[def ax/t/edge/mod/cal=noleap/unit=days/t0=1-jan-0001 mon_irreg_nlp = \
...? {0,31,59,90,120,151,181,212,243,273,304,334,365}
yes? let a_clim = a[gt=mon_irreg_nlp@mod](t=1-jan-1986:31-dec-1989]
yes?)
yes? shade/y=0 a_clim
STOP ,3 statement executed
The crash does not occur if we omit the "t=1-jan-1986:31-dec-1989" time limits
when defining A, or if we simply PLOT or LIST the values of A_CLIM at a single
point.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1365

Comment by<EMAIL_ADDRESS>on 25 Nov 2005 16:52 UTC
*** Bug 1366 has been marked as a duplicate of this bug. ***

Comment by<EMAIL_ADDRESS>on 28 Nov 2005 21:49 UTC
in confine_axis.F, there is code that fixes the limits on the time axis in world
limits, if they were originally set in the default calendar and now need to be
reset with respect to an alternative calendar.
This code was "fixing" limits that were never set at all for a given context. Do
not reset unless they are set to begin with!


Uninhabited Houses on 1911 Census

Can we have a look at allowing uninhabited houses/buildings to be entered on the 1911 census.
Was told that they were excluded as there were not supposed to be uninhabited houses on 1911.  However on a 1911 piece that I had someone start transcribing today has six pages complete with schedule numbers, but nothing entered on them other than notes from the enumerator which include why the schedule had not been used.  And this is not isoloated to this piece or county.  Just about every 1911 piece I have looked at across four different counties includes at least one numbered schedule page which has not been filled out.
In addition, if one where to look at the enumeator list of properties for the piece, there are those either unoccupied on the night, or normally not occupied at night which, given any earlier year would have been included as an uninhabited house/building.  And I can come up with good reasons on why they should be included.

Needs adressing as 1911 being worked on now.

Yes, should be included as very helpful (when they are present) for those working on house history, or trying to work out if an unnumbered house with is the same as one in a previous/next census and thus the John Smith as sole occupant is the same John Smith as the occupant in another census with slightlly different details.

Needs review to agree what is to be done to implement this.


Github and Discord button are broken

Link to the page where something isn't quite right
https://www.svelteui.org
Exact quote of what is wrong
Browser: Safari (iPadOS 15.5), Safari (MacOS Monterey 12.4), Chrome v98 (MacOS Monterey 12.4)
Currently, the buttons are loaded as:
<button href>[Github SVG]</button>

It should be fixed to:
[Github SVG]

Are you willing to create pull request with the fix?
No

I can confirm this, if no one wants to pick this up I can fix it

Let me try fixing it

@cananda do you plan on fixing it within the next couple of days?

Fixed, sorry @cananda but I heard nothing back from you.


Books that dont work as intended

The "Chromic Lexicon" from ChromatiCraft cant be put into the Book Binder
the "World Domination with OpenBlocks" from OpenBlocks cant be opend from within the Book Binder
the "Quest Book" from Hardcore Questing Mode cant be opend from within the Book Binder

If they can't be put in. Put them in the config. If they can't be opened, they just cannot be opened in Enchiridion 1. I'll be taking a look at individual books in ench2.


User Story: As a watchdog, I need a way of reporting anomolous data to ensure accurate reporting of spending

This aligns with the concept of crowdsourcing data quality.  Many stakeholders would love to clean up the data for their own reasons across all personas.
The below is an example of search results when investigating a specific contract, SAU90014D0001.
The first screen was interesting with the recipient identified as "Miscellaneous Foreign Awardees".  This is odd since the contract in question went to one entity.

Clicking on the Recipient then brings to the below screen which indicates over $2.7B awarded to "ADICE" in 2014 alone.  How did we get from "Miscellaneous Foreign Awardees" to ADICE?  What is ADICE?  Lots of N/A's and the DUNS number can't be correct.

I am interested in learning whether you found anything further on this topic. I have been doing some similar research.
Thanks

This comment concerns views and links on the legacy website, which is no longer live.
Here is the link to the same award discussed above on the new site: https://www.usaspending.gov/#/award/68849300
"MISCELLANEOUS FOREIGN AWARDEES" is the title that goes with DUNS 123456787. It is what is called a generic DUNS, and provisions in the Federal Acquisition Regulation allow its use under very specific circumstances (typically when a vendor cannot--or cannot quickly, when expediency is an issue--register in the System for Award Management for security or other reasons). That being said, I expect it is used outside those circumstances as well. I'm not aware of its use (or misuse) ever being investigated.
The upshot: this award was given to a specific vendor, but because the generic DUNS was used, there's no way to tell through our dataset which vendor that was. Further inquiries would need to be directed to the State Department, who gave this award.

I came across some Household Effects (HHE) shipments that were apparently moved under code 423860, which is for transportation equipment (non vehicular) purchases. They were assigned to Miscellaneous Foreign Awardees (MFA) by local posts. I did some more research and found at least 10 posts, 8 of them in Africa, that routinely awarded HHE shipments to (MFA) under the same code. These shipments should move under the GSA ITGBL program. I have reported this with a list of the shipments to ELSO and GSA. So far ELSO cannot find any of them in the Integrated Logistics Management System reports. This may be because they were contracted under NAICS 423860.
There may be a legitimate reason for how these were managed but it seems that the posts may have been circumventing the system.
Regards
Tony Waugh
Tony Waugh
DEWITT MOVE WORLDWIDE | DEWITTMOVE.COM
9142 Crystal River Dr., Indianapolis, IN 46240
CELL<PHONE_NUMBER>
EMAIL<EMAIL_ADDRESS>By land, air or sea, THE DEWITT COMPANIES MAKE IT EASY

From: ross-williford<EMAIL_ADDRESS>Sent: Tuesday, September 3, 2019 10:26:52 PM
To: fedspendingtransparency/fedspendingtransparency.github.io<EMAIL_ADDRESS>Cc: Tony Waugh<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [fedspendingtransparency/fedspendingtransparency.github.io] User Story: As a watchdog, I need a way of reporting anomolous data to ensure accurate reporting of spending (#149)
This comment concerns views and links on the legacy website, which is no longer live.
Here is the link to the same award discussed above on the new site: https://www.usaspending.gov/#/award/68849300https://linkprotect.cudasvc.com/url?a=https%3A%2F%2Fwww.usaspending.gov%2F%23%2Faward%2F68849300&c=E,1,aZ9CHXJrFE-y6uS_agmME276AhHeIRkc0Op0eTBJUuirZEXLiZV6oUfm-4vCJIZUFZjCzzgFLdea38cOGLveurTZIBD8a7uvzDM7OGPEvDI,&typo=1
"MISCELLANEOUS FOREIGN AWARDEES" is the title that goes with DUNS 123456787. It is what is called a generic DUNS, and provisions in the Federal Acquisition Regulation allow its use under very specific circumstances (typically when a vendor cannot--or cannot quickly, when expediency is an issue--register in the System for Award Management for security or other reasons). That being said, I expect it is used outside those circumstances as well. I'm not aware of its use (or misuse) ever being investigated.
The upshot: this award was given to a specific vendor, but because the generic DUNS was used, there's no way to tell through our dataset which vendor that was. Further inquiries would need to be directed to the State Department, who gave this award.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/fedspendingtransparency/fedspendingtransparency.github.io/issues/149?email_source=notifications&email_token=ANCRRFBXCSH47APXN5R6H2TQH4MGZA5CNFSM4CA57E5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD52EC2Q#issuecomment-527712618, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANCRRFBSEZVJLNOWSOFNYSLQH4MGZANCNFSM4CA57E5A.

Interesting background information.

There may be a legitimate reason for how these were managed but it seems that the posts may have been circumventing the system.

This certainly wouldn't surprise me. Unfortunately, not much we can do on our end to fix it (other than raise awareness of the use of MFA). Could be of interest to watchdog groups, inspectors general, or GAO, of course.

Thanks Ross
I have sent some further information to the IG department at GSA and I am working with the European Logistics Office of Dept. of State because many of the shipments should have been managed by them.
I will let you know if we get any further news.
Tony
Tony Waugh
DEWITT MOVE WORLDWIDE | DEWITTMOVE.COM
9142 Crystal River Dr., Indianapolis, IN 46240
CELL<PHONE_NUMBER>
EMAIL<EMAIL_ADDRESS>By land, air or sea, THE DEWITT COMPANIES MAKE IT EASY

From: ross-williford<EMAIL_ADDRESS>Sent: Tuesday, September 10, 2019 10:56:18 PM
To: fedspendingtransparency/fedspendingtransparency.github.io<EMAIL_ADDRESS>Cc: Tony Waugh<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [fedspendingtransparency/fedspendingtransparency.github.io] User Story: As a watchdog, I need a way of reporting anomolous data to ensure accurate reporting of spending (#149)
Interesting background information.
There may be a legitimate reason for how these were managed but it seems that the posts may have been circumventing the system.
This certainly wouldn't surprise me. Unfortunately, not much we can do on our end to fix it (other than raise awareness of the use of MFA). Could be of interest to watchdog groups, inspectors general, or GAO, of course.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/fedspendingtransparency/fedspendingtransparency.github.io/issues/149?email_source=notifications&email_token=ANCRRFEXF3HS3AK5QTEQJP3QJBM5FA5CNFSM4CA57E5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6NC6DA#issuecomment-530198284, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANCRRFBUQLADNX4S7CXNECDQJBM5FANCNFSM4CA57E5A.


Gallery

a gummy jellyfish

https://user-images.githubusercontent.com/25863658/197331690-2c9f7f55-e571-4e66-90f3-fd3580c9a88f.mp4

a koi fish

https://user-images.githubusercontent.com/25863658/197331713-ba7d340e-b23e-47ba-90ef-54fa682edda5.mp4

a bread

https://user-images.githubusercontent.com/25863658/197331760-59a02698-f5be-4867-a303-d6a7ccc9a0d7.mp4

a delicious cake

https://user-images.githubusercontent.com/25863658/197331771-7bb4cdb1-ed17-428e-934c-5c694d0fcd8a.mp4

a DSLR photo of a yellow duck

https://user-images.githubusercontent.com/25863658/194847191-77740afc-9a51-4646-9c1f-7f59cdc7b13d.mp4

a rabbit, animated movie character, high detail 3d model

https://user-images.githubusercontent.com/25863658/194846953-ce5e343e-58d1-4c97-8af7-c3d63bf1d894.mp4

a DSLR photo of a rose

https://user-images.githubusercontent.com/25863658/194827909-b20269da-9e9b-477e-9926-06925d3dfea7.mp4

a high quality photo of a pineapple

https://user-images.githubusercontent.com/25863658/194284983-623a4ade-0029-490e-b038-c7dfa83bb405.mp4

a DSLR photo of a hamburger

https://user-images.githubusercontent.com/25863658/194285798-711feaf9-fc5a-4098-b7b5-bf2d2b0758b7.mp4

a DSLR photo of cthulhu

https://user-images.githubusercontent.com/25863658/194288254-facfa486-73c4-43c3-819b-0739ca950086.mp4

Failure cases:

A DSLR photo of a squirrel

https://user-images.githubusercontent.com/25863658/194286147-b38e7692-fa32-4936-846b-dd65a6e74111.mp4

I tried DSLR photos of a panda, got a similar failed result. Curious: any guess why it failed?

Maybe it's because small prey animals have adapted shape and color patterns to make it difficult to guess their true orientation and so which direction they're scurry or hop away.

This is my first tests, each take about 90 minutes:
--text "a hamburger"
https://user-images.githubusercontent.com/65137/197421283-d31aa5ee-efeb-45fb-9dd5-b16e46be74a1.mp4
--text "jeweled dagger"
https://user-images.githubusercontent.com/65137/197421294-a7950c2c-e7a0-40a4-8307-0eb1fa0fc78f.mp4
Certainly, a lot more to tune and play with.

Some results from the pure-pytorch vanilla NeRF backbone:

a hamburger

https://user-images.githubusercontent.com/25863658/202386706-176fbc90-7043-45b9-86aa-73c4d521d6ce.mp4

a pineapple

https://user-images.githubusercontent.com/25863658/202386762-956626ed-4e6a-40eb-81c7-affd665d4966.mp4

@ashawkey Hi, can you please provide these commands to reproduce the new results video here?
https://github.com/ashawkey/stable-dreamfusion/tree/8d7899ae758e0f683a1cef51b876f2a37cba0c55

@elliottzheng Hi, they are run with the default configs, with prompts like "a superman". You could also refer to this: https://github.com/ashawkey/stable-dreamfusion/issues/128#issuecomment-1413593621.

how long does it take to run? Also, does the optional build step (which is failing) makes any difference to the rendering?


feat(DiamondIcon): add diamond icon

Overview

Add diamond icon to gamut-icons

PR Checklist

[X] Related to designs:
[X] Related to JIRA ticket: EGG-2730
[x] I have run this code to verify it works
[ ] This PR includes unit tests for the code change
[ ] This PR includes testing instructions tests for the code change
[ ] The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

Storybook preview: /?path=/docs/atoms-icons-regular--editable-icon
Don't make me tap the sign.
PR Links and Envs

Repository
PR Link
PR Env

Monolith
Monolith PR
Monolith Env

Portal
Portal Link
Portal Env

Another Repo
Another Link
Another Env

🚀 Styleguide deploy preview ready!https://63052ebfaa8a900069560c05--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-icons@7.6.3-alpha.e136b3.0@codecademy/gamut-kit@0.6.184-alpha.e136b3.0@codecademy/gamut-labs@33.1.5-alpha.e136b3.0@codecademy/gamut@50.4.3-alpha.e136b3.0@codecademy/monaco@0.6.76-alpha.e136b3.0<EMAIL_ADDRESS>
📬Published Alpha Packages:@codecademy/gamut-icons@7.6.3-alpha.cc5287.0@codecademy/gamut-kit@0.6.184-alpha.cc5287.0@codecademy/gamut-labs@33.1.5-alpha.cc5287.0@codecademy/gamut@50.4.3-alpha.cc5287.0@codecademy/monaco@0.6.76-alpha.cc5287.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://63053557e8bb87041b9dcc06--gamut-preview.netlify.appDeploy Logs


F/more tests for links

Assignee Tasks

[ ] added unit tests
[ ] referenced any relevant issues

Guidelines
Please add a description of this Pull Request's motivation/user story, scope, outstanding issues or potential alternatives, reasoning behind the current solution, and any other relevant info.

added more front end tests for links component

Closes #7


Is this possible to detect vertical object such as wall?

Hello,
Is this possible to detecting vertical plane such as walls and put an object on it. Currently using this SDK we detect horizontal surface but what about the vertical surface?

No, it is not possible to detect vertical planes with ARCore at this time. Here is a link to a github issue for ARCore requesting vertical plane support -> https://github.com/google-ar/arcore-android-sdk/issues/18
Vertical planes was added in ARKit 1.5 for iOS devices. This is currently in developer preview. We will have support for ARKit 1.5 soon.

To reopen this question, vertical plane detection should now be possible with ARCore 1.2, which you've supported with the 1.7 release of ViroCore (releases).
That said, I'm unclear on the implementation of this feature. The ARPlaneAnchor.Alignment  enum hasn't been updated with a ARPlaneAnchor.Alignment.VERTICAL value, and my testing has failed to detect any instances of ARPlaneAnchor.Alignment.NON_HORIZONTAL, so I'm missing something.
What do we need to do to detect vertical planes with ViroCore? Can we please get some documentation on the matter?

Hi @ryan-hodgman, one thing that's easy to miss is setting the anchor detection types. See the code snippet below. Apologies for the lack of documentation on this; we'll add further documentation now.
EnumSet<ViroViewARCore.AnchorDetectionType> types = EnumSet.of(ViroViewARCore.AnchorDetectionType.PLANES_HORIZONTAL,
                ViroViewARCore.AnchorDetectionType.PLANES_VERTICAL);
        ((ViroViewARCore) mViroView).setAnchorDetectionTypes(types);

        arScene.setListener(new ARScene.Listener() {
            @Override
            public void onAnchorFound(final ARAnchor anchor, final ARNode node) {
                if (anchor.getType() == ARAnchor.Type.PLANE) {
                    ARPlaneAnchor planeAnchor = (ARPlaneAnchor) anchor;
                    if (planeAnchor.getAlignment() == ARPlaneAnchor.Alignment.NON_HORIZONTAL) {
                        // Vertical plane detected
                    }
            }

            @Override
            public void onAnchorUpdated(final ARAnchor anchor, final ARNode node) {
            }

            @Override
            public void onAnchorRemoved(final ARAnchor anchor, final ARNode node) {
            }

            @Override
            public void onAmbientLightUpdate(final float lightIntensity, Vector lightColor) {
            }

            @Override
            public void onTrackingUpdated(ARScene.TrackingState state, ARScene.TrackingStateReason reason) {
            }

           @Override
            public void onTrackingInitialized() {
            }
        });

Our underlying tracking engine for ViroCore is ARCore, so that's probably a good question for the Google guys over there. I'll venture a theory, though: vertical surfaces tend to have fewer other recognizable features on them than horizontal surface (e.g. there are more items standing on floors than there are hanging on walls), and the lack of such features impairs the ability to identify vertical planes.

Please Give proper doucumentation for detecting Vertical plane such as wall, and Horizontal plane such as floor


When one scans a standard QRcode (text) with  the altme scanner it displays "server error"

Should displayed "this QR code not supported"....

Size: S


Set application environment variables to production by default

Set these to match the current override values in the gcloud-generated Dockerfile so they can be removed from the latter.

👍  LGTM


Playbooks: Plan limits

Updated content to specify which features are limited to specific plans.
@agarciamontoro, could you let me know if there's any functionality/limits that I overlooked? Thank you!

Sorry for the delay, @justinegeffen.
There's also the timeline and retrospective features

Thank you! That's the first file that's been edited - we don't have specific sections for timeline and retrospectives, it's all rolled into the metrics and goals page. But I have updated the note for extra clarity.


Config errors for configs/detectors/detectors_htc_r101_20e_coco.py

I came across configs/detectors/detectors_htc_r101_20e_coco.py and found that only the backbone in the neck is changed to r101, but the backbone in backbone is still r50. So this config actually implements r50 + r101. Just wanted to point out this error and hope to see it updated soon.
Thank you!

Hi @joe-siyuan-qiao  The base config is _base_ = '../htc/htc_r101_fpn_20e_coco.py', so the backbone is r101 not r50.

Ah, that's right. Thanks for the prompt reply! Will close this.


Vigilion

integration with vigilion

Needs rebasing.

this is a madness. when I'm finish with Trussell Trust I'll create a new branch and PR.


MFMP4ToYUVWithMFT write nothing to yuv

it seeems it doesn't enter if (mftProcessOutput != MF_E_TRANSFORM_NEED_MORE_INPUT), so it can't write to yuv.

MFMP4ToYUVWithMFT sample now fixed.