This document provides tips and hacks for using the Heroku platform. It covers setting up a Heroku account, installing the Heroku toolbelt locally, deploying a Rails app to Heroku including adding gems and configuring the asset pipeline, using the Heroku command line interface to run commands and view logs, managing Git deployment to Heroku, and additional tips like configuring domains, upgrading databases, and improving performance with Unicorn.
How to create a secured multi tenancy for clustered ML with JupyterHubTiago Simões
With this presentation you should be able to create a kerberos secured architecture for a framework of an interactive data analysis and machine learning by using a Jupyter/JupyterHub powered by IPython Clusters that enables the machine learning processing clustering local and/or remote nodes, all of this with a non-root user and as a service.
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)Dotan Dimet
A lightning talk given at Rails Israel 2014
(http://railsisrael2014.events.co.il/presentations/1319-mojolicious-perl-framework-for-the-real-time-web).
Uses some slides lifted from Glen Hinkle's YAPC 2012 talk
(https://speakerdeck.com/tempire/intro-to-mojolicious-perl)
and an image created by Marcus Ramburg.
PuppetCamp SEA 1 - Version Control with PuppetWalter Heck
Choon Ming Goh, System Administrator at OnApp Malaysia, gave a presentation on how OnApp implements version control. Since they have quite a few repositories, this is all puppetised and that is quite a nice way of doing version control.
Using docker for data science - part 2Calvin Giles
A lightning talk for PyData London (http://www.meetup.com/PyData-London-Meetup/) on using docker and fig to manage your data science development environment.
How to Install Odoo 11 on Ubuntu 16.04?Celine George
Odoo users and community, followers are very thrilled with the latest Odoo version release of Odoo 11. It comes with more faster, smoother, attractive, user-friendly and self-explanatory user interface, highly improved API, along with a lot of improvements and technical changes in,
- HR-Timesheet
- Accounting
- Localisation
- Odoo Studio
- Service Company
- Reporting and Dashboard
- New payment gateways
- Subscription App
- Web URL
How to create a secured multi tenancy for clustered ML with JupyterHubTiago Simões
With this presentation you should be able to create a kerberos secured architecture for a framework of an interactive data analysis and machine learning by using a Jupyter/JupyterHub powered by IPython Clusters that enables the machine learning processing clustering local and/or remote nodes, all of this with a non-root user and as a service.
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)Dotan Dimet
A lightning talk given at Rails Israel 2014
(http://railsisrael2014.events.co.il/presentations/1319-mojolicious-perl-framework-for-the-real-time-web).
Uses some slides lifted from Glen Hinkle's YAPC 2012 talk
(https://speakerdeck.com/tempire/intro-to-mojolicious-perl)
and an image created by Marcus Ramburg.
PuppetCamp SEA 1 - Version Control with PuppetWalter Heck
Choon Ming Goh, System Administrator at OnApp Malaysia, gave a presentation on how OnApp implements version control. Since they have quite a few repositories, this is all puppetised and that is quite a nice way of doing version control.
Using docker for data science - part 2Calvin Giles
A lightning talk for PyData London (http://www.meetup.com/PyData-London-Meetup/) on using docker and fig to manage your data science development environment.
How to Install Odoo 11 on Ubuntu 16.04?Celine George
Odoo users and community, followers are very thrilled with the latest Odoo version release of Odoo 11. It comes with more faster, smoother, attractive, user-friendly and self-explanatory user interface, highly improved API, along with a lot of improvements and technical changes in,
- HR-Timesheet
- Accounting
- Localisation
- Odoo Studio
- Service Company
- Reporting and Dashboard
- New payment gateways
- Subscription App
- Web URL
COMU2002 Talk, Interaction and Technology
University of Queensland
Based on what you have learned from writing Google+ blog posts, your group will lead a discussion on one of the following topics:
You are student members of your home school (SJC, EMSAH, Psych, ITEE etc.) administrative committee: How would you persuade your School to use Google+ as an official communication tool for all courses and administrative notifications?
How To Build and Run Node Apps with Docker and ComposeDocker, Inc.
Kathleen Juell, Digital Ocean -
Containers are an essential part of today's microservice ecosystem, as they allow developers and operators to maintain standards of reliability and reproducibility in fast-paced deployment scenarios. And while there are best practices that extend across stacks in containerized environments, there are also things that make each stack distinct, starting with the application image itself.
This talk will dive into some of these particularities, both at the image and service level, while also covering general best practices for building and running Node applications with database backends using Docker and Compose.
Capistrano is an open source tool for running scripts on multiple servers. It’s primary use is for easily deploying applications. While it was built specifically for deploying Rails apps, it’s pretty simple to customize it to deploy other types of applications.
capifony is a deployment recipes collection that works with both symfony and Symfony2 applications.
A team's learnings from adopting devops and automating an otherwise labor-intensive server fleet. The bottom line: As with code, automated tests and CI are king.
This talk was held at Barcamp Salzburg in October 2016.
Big query - Command line tools and Tips - (MOSG)Soshi Nemoto
BigQuery =Command line tools and Tips for business use=
Mulodo Open Study Group (MOSG) @Ho chi minh, Vietnam
http://www.meetup.com/Open-Study-Group-Saigon/events/231504491/
Install Oracle 12c Golden Gate On Oracle LinuxArun Sharma
In this article we will look at the steps to install oracle 12c Golden Gate on Oracle Enterprise Linux 6.5. The steps involved are:
Virtual Machine Setup
Install Oracle 12c Database
Install Oracle 12c Golden Gate
Prepare Golden Gate for Replication
Here is the full link of article: https://www.support.dbagenesis.com/post/install-oracle-12c-golden-gate-on-oracle-linux
Hadoop installation on windows using virtual box and also hadoop installation on ubuntu
http://logicallearn2.blogspot.in/2018/01/hadoop-installation-on-ubuntu.html
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Heroku Tips and Hacks
1. HEROKU TIPS AND HACKS
1. Create an account on Heroku.
- Go to website: http://heroku.com/
2. Install Heroku toolbelt:(https://toolbelt.heroku.com/)
- It is everything you need to get started using Heroku.
- Install: wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh| sh
3. Login to Heroku
- Run: $ heroku login (enter username and password)
- If have errors about ssh key:
http://www.ajibanda.com/2013/02/reset-git-ssh-key-to-log-in-using-a-new-heroku-
account.html
4. Add gem and config asset pipeline :
- In Gemfile:
gem ‘rails_12factor’, group:production
gem ‘thin’
- In config/application.rb:
config.assets.initialize_on_precompile = false
* Remember: Must commit Gemfile.lock to server to deploy.
* More details: https://devcenter.heroku.com/articles/getting-started-with-rails3
5. CLI Heroku: $ heroku run <...>
$ heroku run rake db:migrate
$ heroku restart <name_app_heroku>
$heroku open (open website in browser)
$ heroku run rails c
$ heroku run ruby script/imap_processor start
2. - Dùng cmd: $ heroku run bash
- View list current account: $ heroku accounts
6. Push local project to Heroku
- Git init in local project:
$ git init
- Add host to current git:
$ git remote add <origin> <git@heroku/app>
(git@heroku.com:bookmanageapp.git)
- Check remote exist or not? :
$ git remote -v
- Add and commit code
- Push code - Deploy code
$ git push [hostname] [branch] / $ git push origin/herokumaster
7. Cloning Existing Heroku Applications
$ heroku login
$ heroku git:clone -a <my_app>
$ cd my_app
* More details: https://devcenter.heroku.com/articles/git-clone-heroku-app
8. Delayed Job
* More details: https://devcenter.heroku.com/articles/delayed-job
9. View processes - logs
- View processes:
$ heroku ps
=== delayed (1X): `bundle exec rake jobs:work`
delayed.1: up 2013/11/04 19:38:01 (~ 15h ago)
=== web (1X): `bundle exec thin start -R config.ru -e $RAILS_ENV -p $PORT`
web.1: up 2013/11/05 08:12:55 (~ 2h ago)
3. - View logs:
$ heroku logs / $ heroku logs --tail
$ heroku logs -p imap.1
$ heroku logs -p web.
- View db info:
$ heroku config
* More details: https://devcenter.heroku.com/articles/logging
10. Multi accounts:
- Add account:
$ heroku accounts:add <name> -- auto
- Remove account:
$ heroku accounts:remove <name>
- Using account:
$ heroku accounts:set <name>
* Remember: Config (host) in: ~/.ssh/config
* More details: https://github.com/ddollar/heroku-accounts
- Add key: $ heroku keys:add
- Ex: Found the following SSH public keys:
1) id_rsa.pub
2) identity.heroku.app_rails.pub
3) identity.heroku.personal.pub
4) identity.heroku.work.pub
5) ssh-add id_rsa.pub
Which would you like to use with your Heroku account? => 3
*More details: https://devcenter.heroku.com/articles/keys
11. Config timeout:
https://github.com/heroku/rack-timeout
http://www.rubydoc.info/gems/rack-timeout/0.0.4/frames
4. 12. Access to db postgres on Heroku
- Click to Heroku Postgres Dev on website Heroku application.
- In this page, content some info:
Host : host_path (ec2-123-321-333.compute-00.compute-1.amazonaws.com)
Database: db_name_pg
User: user_name
Password: password
- Connect to database:
$ psql -U <username> -h <host> -d <database>
$ psql -U user_name -h host_path -d db_name_pg
13. View Memory (RAM), CPU, Core based on dyno sizes:
Dyno
Size
Memory
(RAM)
CPU
Share
Multitenan
t
Compute
(2)
Price/dynohou
r
1X 512MB 1x yes 1x4x $0.05
2X 1024MB 2x yes 4x8x $0.10
PX 6GB 100% (1) no 40x
$0.80
*More details:https://devcenter.heroku.com/articles/dyno-size#available-dyno-sizes
14. Config Domain:
- Add domain:
$ heroku domain add: <example.com>
or add in Setting section on heroku website.
5. - Get domain default on heroku: http://<my_app>.heroku.com
Ex: http://my_app.herokuapp.com
- Get IP of above domain:
$ host my_app.herokuapp.com
=> my_app.herokuapp.com has address 23.23.80.206
- Go to Godaddy or others service, config your domain point to this IP.
More details: https://devcenter.heroku.com/articles/custom-domains
15. Upgrade Mongolab (From sandbox-free to Single Node SM)
Changing to or from a single-node plan on Heroku:
1. Stop your app and any other processes writing to your database
2. Backup your database using mongodump
3. Remove your existing add-on
4. Add a new add-on (see available plans here)
5. Restore your database using mongorestore
6. Change your connection string info in your app
7. Restart your app
Example:
$ mongodump -h ds0123456.mongolab.com:3000 -d heroku_app -u user -p password -o .
$ heroku addons:remove mongolab
$ heroku addons:add mongolab:shared-single-small
$ mongorestore-h <new_host>:<new_port> -d heroku_app -u user -p <new_password> .
* Get <new_password>:
Run :
$ heroku config | grep MONGOLAB_URI
Output:
mongodb://heroku_app:new_password@ds0123456.mongolab.com:3000/heroku_app
Compare with:
mongodb://<dbuser>:<dbpassword>@ds0123456.mongolab.com:3000/<dbname>
Informations account :
dbuser: dbpassword
dbpassword: new_password
dbname: heroku_app
* More details: https://devcenter.heroku.com/articles/mongolab
6. 16. Improve performance with Unicorn (Concurrency)
-Add Gem:
gem ‘unicorn’
- Config:
Create a file configuration for Unicorn at config/unicorn.rb
- When using mongoid:
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 30
preload_app true
before_fork do |server, worker|
puts worker
end
after_fork do |server, worker|
puts worker
end
If using Mongoid, you don't need to manually reconnect as in the gist. Mongoid claims:
"When using Unicorn or Passenger, each time a child process is forked when using
app preloading or smart spawning, Mongoid will automatically reconnect to the
master database. If you are doing this in your application manually you may remove
your code." (http://mongoid.org/en/mongoid/docs/rails.html)
* More details:https://devcenter.heroku.com/articles/rails-unicorn
Other references:
http://railsapps.github.io/rails-heroku-tutorial.html
https://devcenter.heroku.com/articles/getting-started-with-rails3
* Developer: Nguyễn Thành Luân