stern-domain-at.pfx (optionally secured with passphrase)
Openssl needs to be installed
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| 1. build app1 project with prod flag | |
| ng build --prod | |
| 2. copy files under dist folder to the server | |
| scp -r dist/app1/* {username}@{ip address of server}:/var/www/app1/ | |
| 3. set base href of application (app1 works on /) | |
| <base href="/"> | |
| 4. build app2 project with prod flag |
| Git Hubflow Workflow: | |
| Sync Branch: | |
| git hf update - this will update master and develop and sync remote branches with local ones (be sure not to put commits into develop or master as it will push these up) | |
| git hf push - this will push your commits in your local branch to the matching remote branch | |
| git hf pull - this will pull the remote commits into your local branch (don't use if the remote branch has been rebased - use git pull origin "your-branch" instead) | |
| Feature Branch: | |
| gif hf feature start "my-feature" - this will create a feature branch on origin and local will be based off the latest develop branch (make sure to git hf update before or you will get an error if local develop and remote develop have divereged) | |
| git hf feature finish "my-feature" - this will delete the local and remote branches (only do this after a PR has been merged) |
| #-----ORACLE SECTION---------# | |
| import cx_Oracle | |
| from pptx import Presentation | |
| try: | |
| dsn_tns = cx_Oracle.makedsn('Host Name', 'Port Number', service_name='Service Name') | |
| conn = cx_Oracle.connect(user=r'User Name', password='Personal Password', dsn=dsn_tns) | |
| # Now execute the sqlquery | |
| cursor = conn.cursor() |
| import tensorflow as tf | |
| keras_model = "tomato_weights_best.hdf5" | |
| tflite_model = "tomato_model.tflite" | |
| converter = tf.lite.TFLiteConverter.from_keras_model_file(keras_model) | |
| tflite_model = converter.convert() | |
| open(tflite_model, "wb").write(tflite_model) |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| // Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | |
| //initialize tensorflow with the AssetManager and the Model | |
| tf = new TensorFlowInferenceInterface(getAssets(),MODEL_PATH); |