development | Tidepool Local Development | Runtime Evironment library
kandi X-RAY | development Summary
kandi X-RAY | development Summary
IMPORTANT NOTE: You must run the k8s-stable branch of this repo. The default master branch is subject to changes at any moment and it’s not always possible to keep the local enviroment config up to date. The k8s-stable branch will always be the latest functioning local development enviroment. It's easy to get up and running quickly as long as you know a bit about your computer and your way around a terminal window. Currently, our local development environment only works natively in MacOS and Linux environments. To run within Windows, we recommend you set up and run within a Linux VM via a virtualization tool such as VirtualBox or VMWare. We hope to natively support Windows in an upcoming iteration. Very determined Windows users may be able to get it working in it's current form with GitBash, Cygwin or the new Bash integration in Windows 10. If you do get this working on Windows before we get to it, please consider contributing back to the community with a pull request.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of development
development Key Features
development Examples and Code Snippets
Community Discussions
Trending Discussions on development
QUESTION
I built an app using Django 3.2.3., but when I try to settup my javascript code for the HTML, it doesn't work. I have read this post Django Static Files Development and follow the instructions, but it doesn't resolve my issue.
Also I couldn't find TEMPLATE_CONTEXT_PROCESSORS
, according to this post no TEMPLATE_CONTEXT_PROCESSORS in django, from 1.7 Django and later, TEMPLATE_CONTEXT_PROCESSORS
is the same as TEMPLATE
to config django.core.context_processors.static
but when I paste that code, turns in error saying django.core.context_processors.static
doesn't exist.
I don't have idea why my javascript' script isn't working.
The configurations are the followings
Settings.py
...ANSWER
Answered 2021-Jun-15 at 18:56Run ‘python manage.py collectstatic’ and try again.
The way you handle static wrong, remove the static dirs in your INSTALLED_APPS out of STATIC_DIRS and set a STATIC_ROOT then collectstatic again.
Add the following as django documentation to your urls.py
QUESTION
There are multiple development teams in an area of the organization that work closely together. Each has its own Azure DevOps board under the same Azure DevOps project. All boards inherit from the same Azure DevOps process.
One team would like to add a field to a work item type, but only show that field on their board. The field would not appear on the same work item type on the other teams' boards.
Is this possible? Microsoft has good documentation for Azure DevOps but I can't find anything that speaks to this, and I can't accomplish it myself in the UI. Thank you for any insights.
...ANSWER
Answered 2021-Jun-15 at 20:13If you add a new field to a work item type of some team project, this field will be available for all project teams.
Each team can customize the card view on each board (backlog or sprint): Add fields to cards, Customize fields
Additionally, you can use process rules to hide fields (Hide or restrict modification of a field based on a user or group) as Matt mentioned. You can find each team as a group [Team Project]\Team Name
in the conditions section.
QUESTION
I have a dataset with the name of Danish ministers and their position from 1990 to 2020 (data comes from dataset called WhoGovern; https://politicscentre.nuffield.ox.ac.uk/whogov-dataset/). The dataset consists of the ministers name
, the ministers position
, the prestige
of that position, and the year
in which the minister had that given position.
My problem is that some ministers are counted twice in the same year (i.e., the rows aren't unique in terms of name
and year
). See the example in the picture below, where "Bertel Haarder" was both Minister of Health and Minister of Interior Affairs in 2010 and 2021.
I want to create a dataset, where all the rows are unique combinations of name
and year
. However, I do not want to remove any information from the dataset. Instead, I want to use the information in the prestige
column to combine the duplicated rows into one. The observations with the highest prestige should be the main observations, where the other information should be added in a new column, e.g., position2
and prestige2
. In the example with Bertel Haarder the data should look like this:
(PS: Sorry for bad presenting of the tables, but didn't know how to create a nice looking table...)
Here's the dataset for creating a reproducible example with observations from 2010-2020:
...ANSWER
Answered 2021-Jun-08 at 14:04Reshape the data to wide format twice, once for position
and the other for prestige_1
, and join the two results.
QUESTION
I'm trying to docerize my NodeJS API together with a MySQL image. Before the initial run, I want to run Sequelize migrations and seeds to have the tables up and ready to be served.
Here's my docker-compose.yaml
:
ANSWER
Answered 2021-Jun-15 at 15:38I solved my issue by using Docker Compose Wait. Essentially, it adds a wait loop that samples the DB container, and only when it's up, runs migrations and seeds the DB.
My next problem was: those seeds ran every time the container was run - I solved that by instead running a script that runs the seeds, and touch
s a semaphore file. If the file exists already, it skips the seeds.
QUESTION
I'm using create-react-app and have configured my project for eslint. Below is my .eslintrc file.
...ANSWER
Answered 2021-Jun-15 at 12:54You can do it by adding DISABLE_ESLINT_PLUGIN=true
to the "build" in the "scripts" part in your package.json
:
QUESTION
Hi so I'm starting to learn PHP and one of the first steps was to run the Development Server to start practicing, the line I used was:
...ANSWER
Answered 2021-Jun-15 at 14:30The server isn't "frozen", it's doing its job, waiting for requests and serving responses. Go to http://localhost:4000 in your web browser to request something from it.
Specifically, since you didn't specify a PHP script for it to run, it's waiting for you to request a particular file - if you have a file called "index.php", you can go to "http://localhost:4000/index.php" in your browser, if it's called "arnoldo-rocks.php", go to "http://localhost:4000/arnoldo-rocks.php", and so on.
It will carry on doing that until you kill it with Ctrl-C
If you want to run it in the background while you run other commands, and are using a Linux/Unix shell (not CMD or PowerShell), you can run it this way:
QUESTION
This question is related to Azure MSIX Build and Package task only has Release and Debug configurations
We have a WinForms project that has an MSIX installer. Manually, we can successfully create
- An MSIXBUNDLE and deploy it to Kudu
- An MSIX and deploy it to an Azure VM through a VHDX. We have manually convert the MSIX to a VHDX first
We are now trying to automate the build and release process to create the VHDX. However, we are getting a blank screen when the VHDX is mounted using a process that we have already validated. The only thing different is the build method (i.e., MSBuild versus VS Publish).
How do we create a working VHDX in Azure CI Build Pipeline?
Below is the YAML.
...ANSWER
Answered 2021-Jun-15 at 14:26Actually, there is nothing wrong with the YAML. The problem was a delay in the virtual machine loading the VHDX. In other words, wait about 5 minutes once the VHDX is mounted before trying to run the application. I am leaving this here in case anyone else runs into this issue
.
QUESTION
package.json
...ANSWER
Answered 2021-Jun-15 at 14:23Hello I have found a solution. I had several instances running and therefore the npm start then selected a different port than I defined in the test. Have killed all processes on the port and restarted
QUESTION
I am working on a StencilJS
project where I have to use MirageJS
to make fake API data.
How to call server before StencilJS application loads. In react we can call makeServer() in the index.ts file, but in the stencil, we don't have such a file.
How can we call this to start the mirage server, Please can someone suggest the correct way.
Below is my server.ts file mirage/server.ts
...ANSWER
Answered 2021-Jun-15 at 14:02I'm not familiar with MirageJS so I might be off, but can you use globalScript (https://stenciljs.com/docs/config) and then run your Mirage server there?
QUESTION
While developing a Django project, all your migrations are stored within each app folder, however, in production I don't want those migrations, I want to keep a Production
database, and a Development
database:
How do I handle Django migrations in a Production and Development environment?
I'm asking this question because it's been really hard to update my deployed project with new additions in the development one, my ideal scenario would be to keep each set of migrations in a folder outside my source code, just like the databases.
...ANSWER
Answered 2021-Jun-15 at 12:28The best idea is to keep production and development migrations the same and while developing you clean migrations before pushing the code and you should push migrations into your Version Control System too.
In development, you might end up deleting a table and re-creating it so make sure you don't push the un-intended migrations. The thing is you should treat migrations as code, not an automated script. I have done a lot of mistakes in the past, so, I came to the conclusion of including migrations in code. and that's effective and gives more control.
Moreover you might have to do data migrations in production, how will you do if you wont push the code?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install development
The Tidepool stack relies on Docker and Docker Compose to run all of the code on your computer. Follow the appropriate link for your platform (Mac OSx or Linux recommended) at https://docs.docker.com/install/#supported-platforms and follow the directions to install and run Docker on your computer. IMPORTANT: This stack is VERY resource intensive. You will need a fairly robust computer to run it efficiently, and will need to provide Docker with at least 60 GB of disk space and 4 GB of RAM. The default 2 GB RAM for Docker on MacOS won't cut it, and will need to be increased via the preferences panel. We recommend 8 GB or higher if you have 12 GB or more available.
We use Docker Compose to run a local Kubernetes cluster within Docker. There are a number of Kubernetes-in-Docker solutions available, but the one we've settled on as offering the best all-around fit for local development is bsycorp/kind. If you installed Docker Desktop, the docker-compose tool will have been automatically installed with it. If you installed Docker on Linux, you'll need to download the binary by following the Docker Compose Installation Instructions.
The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. It's important to install a version that's at minimum up-to-date with the version of the Kubernetes server we're running locally (currently 1.18.2). Please follow the kubectl installation instructions for your operating system.
The Tidepool services (and supporting services such as the MongoDB database and the Gloo Gateway for routing requests) are defined by Helm templates, which the helm tool uses to convert into manifests that can be applied to the our local Kubernetes (K8s) cluster. IMPORTANT NOTE: We currently run against version v3.0.2 of Helm, so be sure to install the correct version when following the Helm Installation Instructions. After installing Helm, you can verify the correct version by typing helm version in your terminal.
Managing a K8s cluster can be very challenging, and even more so when using one for local development. Tilt is a CLI tool used to simplify and streamline management of local development services within a Kubernetes cluster. By using our Tilt setup, developers can very easily run a live-reloading instance of any of our frontend or backend services without needing to directly use or understand Helm or Kubernetes. All that's needed is uncommenting a couple of lines in a Tiltconfig.yaml file, and updating the local paths to where the developer has checked out the respective git repo, if different than the default defined in the config. IMPORTANT NOTE: We currently run against version v0.16.1 of Tilt, so be sure to install the correct version when following the Tilt Installation Instructions. After installing Tilt, you can verify the correct version by typing tilt version in your terminal.
Netcat should be installed by default on an recent versions of MacOS. If it is not, you can install it via homebrew. On Linux, you will need to use the appropriate package manager to install it. After installing Netcat, you can verify it's working by typing nc -h in your terminal.
There are 2 environment variables that we recommend you export before starting up the Tidepool stack for the first time. It's recommended that you export them in a persistent way, such as within your local ~/.bash_profile (or whatever equivalent you use). KUBECONFIG - This is the path used by Tilt to issue commands to your Kubernetes cluster. TIDEPOOL_DOCKER_MONGO_VOLUME - This is the path used to persist your local MongoDB data. You don't need to set this, but if you don't, you'll be restarting from a blank slate each time you start up your dev environment.
Once you've completed the Initial Setup, getting the Tidepool services (including supporting services such as the database and gateway services) up and running in a local Kubernetes cluster is trivial.
All of the Tidepool services uses a multi-target Dockerfile to build the Docker images. This means there is a development target, which includes all of the necessary development tools, and a production target, which contains only the final binaries. The default, if no target is specified, is development. To set a different build tarket, update the buildTarget value for the service config in your local/Tiltconfig.yaml file.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page