Activate Windows 10 in VirtualBox

I’m using Windows 10 in VirtualBox for testing purpose, where my main OS is formatted to Ubuntu.

I noticed I can activate the Windows 10 with the key sealed in hardware,
get the key with the follwing command

Read More

Web development testing in Android Virtual Device

Some time, we will need to test web development in mobile devices.
Previously, I used to test in iOS simulator, the virtual host will just work.

Read More

Install Arch Linux

First of all, I must say that I was referring OSTechNix for the installation guide.

Read More

Why Vue.js $emit not working

I’m working Vue with Laravel, creating a component (nested view), and try to handle the user event in the root (Laravel blade file).

Read More

Why Google Analytics pageviews different from filter by day and by month

I wrote a script to sync Google Analytics (GA) pageviews to own DB in daily basis.
E.g.

  • 2019-12-01 -> 342 pageviews

Read More

Find out app API endpoint

Have you ever think of, to find out any app API endpoint?

I’m just know about this. I will be doing this in iPhone.

Download mitmproxy

mitmproxy is free & open source.

Read More

Becareful of JavaScript blocking the main thread

I’ve just made a mistake on production site, the client’s website.

I was working on a tracking script, which let client to include into their site.

Read More

How to prevent duplicated join of table in Laravel Query Builder

Laravel Query Builder is an awesome feature, really.

When comes to generate a complicated report, with complicated filter/sort, the code logic can be very confusing.

Read More

The efficient way to debug JS/CSS in production site

Recently I discovered this package, which allows us to run JavaScript & css in any domain.

Read More

docker-compose for Elasticsearch & Kibana

Create a file docker-compose.yml with the following content:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3'

services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
container_name: elasticsearch_local
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
- http.cors.enabled=true
- http.cors.allow-credentials=true
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- http.cors.allow-origin=/https?:\/\/localhost(:[0-9]+)?/
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
kibana:
image: docker.elastic.co/kibana/kibana:7.2.0
container_name: kibana_1
environment:
- "SERVER_NAME=kibana"
- "ELASTICSEARCH_HOSTS=http://elasticsearch:9200"
ports:
- 5601:5601
networks:
- esnet
restart: "unless-stopped"

volumes:
esdata1:
driver: local

networks:
esnet:

Read More