Summary You want to: See your PC/laptop screen from your mobile phone But: Your Internet connection is inconsistent and your mobile connection is limited. Solution: Connect to your PC/laptop over Ad-Hoc Network Requirements You have Android mobile phone with mobile Internet access (3G) even for a few seconds You have WiFi access on your PC/laptop Instructions Install Teamviewer on your PC and Teamviewer Remote Control on your Android phone. Read on →

When you search for Akka-related things on Google and you want to display a page on Akka Documentation, two problems might arise: 1) You are a Scala developer and the Google result is for Java. 2) You are using version 2.4.2 but the page is for 2.3.13. or maybe both. You would probably wish a plugin to redirect you to correct page automatically. For example: http://doc.akka.io/docs/akka/2.3.13/java/actors.html to http://doc.akka.io/docs/akka/2.4.2/scala/actors.html You can use this Chrome plugin to set regex URL redirections. Read on →

In this post, I will be showing you how to issue LetsEncrypt SSL certificate for your HAProxy running on Docker container. We will be using DNS challenge to verify we own the domains. hook.rb script will connect to Amazon Route 53 to update DNS records for this reason. letsencrypt.sh will start the challenge and start hook.rb to update DNS records and then check if records are updated. git clone https://github.com/lukas2511/letsencrypt.sh cd letsencrypt. Read on →

In this post, I will be guiding you how to setup an Amazon S3 bucket as a static website, then configure CloudFront CDN to serve in front of Amazon S3. Outline is as following: Create a S3 Bucket Configure Amazon S3 to serve as a static website Create Cloudfront distribution. Set Route53 records Restrict S3 access to Cloudfront Amazon S3 Create an S3 bucket and then follow Amazon S3 bucket properties -> Permissions -> Edit bucket policy and paste the following text. Read on →

Let’s say you have a flask app and you want to create an Ubuntu service for this app. This way, the service will restart whenever the server restarts or the service fails. Here is a sample flask app on /home/user/server.py: #!/usr/bin/python from flask import Flask, request app = Flask(__name__) @app.route('/', methods=['GET']) def index(): return "Hello world" if __name__ == '__main__': app.run(host="0.0.0.0", port=31013) We have to write the following service configuration in /etc/init/flask. Read on →

In this tutorial, we are going to build a Remote R Server. Following this tutorial, you will be able to run your R codes on a remote server so that it runs more efficiently or it doesn’t heat up your laptop. You can read the detailed benefits. You can use any remote server for this purpose. You can use AWS, DigitalOcean, Scaleway. Warning: Scaleway has currently ARM processors thus require compilation from source code. Read on →

Installing Spark in Standalone Mode You can install and run Spark without needing to install YARN or Hadoop. Make sure your system has Java JDK installed. Just download the latest binary Spark with Hadoop version and extract it. For demo, let us assume our master server IP is 123.456.789.123. Running the master service Give the following commands: export SPARK_MASTER_IP=123.456.789.123 export MASTER=spark://${SPARK_MASTER_IP}:7077 ./sbin/start-master.sh -h 0.0.0.0 This will start the master and let it listen everybody (out of the network). Read on →

In this tutorial, I will guide you running your Play framework application (named MyProject in our tutorial) via Docker. I assume you have created a Play project with a build.sbt (or equivalent) file and make sure it’s running on port 9000 with sbt run command. Our demo project pulls tweets from Twitter of a specified person so it requires environment variables CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET to be set before running. Read on →