bash-4.1$ psql
psql (8.4.20)
Type "help" for help.
postgres=# SHOW hba_file;
hba_file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This snippet may be used after installing the following libraries: | |
# (1) OpenDP library with DP-PCA | |
# - reference: https://test.pypi.org/project/opendp/0.9.0.dev20231221001/ | |
# | |
pip install -i https://test.pypi.org/simple/ opendp==0.9.0.dev20231221001 | |
# (2) scikit-learn (includes numpy) | |
# |
- Django 1.9 application with two databases:
- Legacy database with readonly access via unmanaged models. Both Django models (models.py) and related migrations have "managed" set to
False
'managed': False
- Default database holding django specific tables (e.g. auth_user, django_content_type, etc)
- Legacy database with readonly access via unmanaged models. Both Django models (models.py) and related migrations have "managed" set to
- For testing I want to re-create the legacy database tables. In other words, during
python manage.py test
, tell Django to set "managed" toTrue
- There are several excellent blog posts on how to set "managed" to
True
during tests:
- There are several excellent blog posts on how to set "managed" to
- http://blog.birdhouse.org/2015/03/25/django-unit-tests-against-unmanaged-databases/
- pom.xml
<dependency>
<groupId>com.hubspot.jinjava</groupId>
<artifactId>jinjava</artifactId>
<version>2.2.0</version>
</dependency>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<nav class="navbar navbar-light fixed-top"> | |
<div class="navbar-text ml-auto d-flex"> | |
<button class="btn btn-sm btn-outline-success" | |
@click="sliderStatus = !sliderStatus"> | |
<i class="fas fa-dollar-sign"></i></button> | |
<div class="dropdown ml-2" v-if="cart.length>0"> | |
<button class="btn btn-success btn-sm dropdown-toggle" | |
id="cartDropdown" data-toggle="dropdown" | |
aria-haspopup="true" aria-expanded="false"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<nav class="navbar navbar-light fixed-top"> | |
<div class="navbar-text ml-auto d-flex"> | |
<button class="btn btn-sm btn-outline-success" | |
@click="sliderStatus = !sliderStatus"> | |
<i class="fas fa-dollar-sign"></i></button> | |
<div class="dropdown ml-2" v-if="cart.length>0"> | |
<button class="btn btn-success btn-sm dropdown-toggle" | |
id="cartDropdown" data-toggle="dropdown" | |
aria-haspopup="true" aria-expanded="false"> |
Code to get the D3M temp directory accessible by TA2/TA2
from os.path import join
from tworaven_apps.configurations.utils import \
(get_latest_d3m_config,)
d3m_config = get_latest_d3m_config()
if not d3m_config:
NewerOlder