Hackyo’s Update — LAST WEEK

Haryo Akbarianto Wibowo
Inspire Crawler
Published in
2 min readMay 30, 2016

Introduction

My last story:

Sorry, I can’t reach my computer last night so I create it today..

Here’s the list What I’ve done:

  1. Implement Secure Deployment (especially define .htaccess)
  2. Trying Travis CI
  3. Profiling with JProfiler

Implement Secure Deployment

Okay, so now you can access our website.

On our last sprint, we opened the website here

http://sandbox.badr.co.id/ppl1/timAul/web/public/

TOO LONG

Yeah, and it’s not secure as we can open the timAulfolder for example.

So, I migrate what is inside public into ppl1 folder

http://sandbox.badr.co.id/ppl1/

And then, I rewrite the .htdocs so that WE CAN’T ACCESS timAul folder on the website. It’s also to block people to see sensitive data (such as .env that save environment, etc)

Sorry, I can’t show you the code as the work is inside the server and how to login is to show the ssh keys.

Trying Travis CI [Build Script & CI]

I try to use Travis CI, sadly it only works on my local. To implement Travis CI into my website, I must have root access to install it. Sadly, I don’t have root access. So I only try it in my LOCAL.

And Again, sorry I can’t show it T_T

  1. Trying Travis CI

https://github.com/Alieff/timAul/blob/branch-alief/.travis.yml

I use it to compile the php in our repository.

I follow how to do it here

Yeah, We haven’t tried Continous Integration as we don’t have root access. We have contacted the server’s side and the reply came at 10.58 today …

Profiling with JProfiler

I profile our crawler using JProfiler.. As I forgot to save the result in cloud, I will tell how to do it.

Just install JProfiler extension, then run with JProfiler.

JProfiler will show the memory usage, CPU usage, thread, etc as I run the program.

The best concern that we must overlook is the memory usage.

The maximum memory usage is 600 MB.

That’s why, we can’t play it on server.. Our server capacity is only 500 MB and 100 MB free.

Reclaim

API DOCS

Profiling

Build Script

End of Word

With ideas it is like with dizzy heights you climb : At first they cause you discomfort and you are anxious to get down, distrustful of your own powers ; but soon the remoteness of the turmoil of life and the inspiring influence of the altitude calm your blood ; your step gets firm and sure and you begin to look — for dizzier heights. — Nikola Tesla

--

--

Haryo Akbarianto Wibowo
Inspire Crawler

Mad AI Enthusiast. I write mostly about Artificial Intelligence and Self Development. I also love to read Engineering, Psychology and Startup. Love to share!