Convert png to eps with minimal size

Every time I try to convert from png to eps, through commands like convert or via online converters like here, the eps file is always super large. For example, a 50KB png after conversion becomes 3MB eps.

Then I figured a way to reduce the file size. It is still through convert command, but with an additional prefix inside the command. Continue reading Convert png to eps with minimal size

Unlock Samsung Gear S2/S3 (AT&T)

Not sure if T-mobile follows the same procedure but I find the original solution here for S3 Frontier (AT&T). It apparently works for S2 also. I have no idea why AT&T does not release this and claims they cannot unlock wearables (in 2016).

Here is a log of the procedure, verified by both XDA folks and me.

First, you need to get the unlock code (from here at AT&T). If you are not the account holder, ask them to follow the procedure for you. To get the unlock code, you need to find out your smartwatch's IMEI number at Settings > Gear Info > About Device. For me, the request takes about 2 business days. Some people did not get it in couple days and pinged at the customer service and went it through.

Anyway, suppose you have the 8-digit unlock code now. You get it from the email asking you to follow the procedure by first "power off the device and remove the SIM card". Yea, you can never do that for Gear S2/S3 because they use eSIM.

Thanks to slapshot2286, we can unlock the device by doing the following.

  1. Go to Settings > Gear Info > About Device and scroll down to Software Version
  2. Tap Software Version 5 times and a keyboard will show up
  3. Type #7465625*638*# and another dialog shows up, which says "Personalisation" followed by "Enter NCK"
  4. Enter the unlock code you get from AT&T and tap OK

You will then see SUCCESS indicating you have unlocked your Gear S2/S3. Period.

Quickly Scan Local Network

Recently I need to quickly scan the local network and find my other device's IP address. I do not have access to the access point, and my device does not report its IP so I cannot directly get what I want. But using another device (laptop specifically), I can quickly find out the IP address of that device.

Just simply do:

for ip in $(seq 1 254); do echo $ip; nmap -sP --max-retries=1 --host-timeout=10ms 10.0.0.$ip | grep "Host is up"; done

Since we are under the same network (assuming my IP is 10.0.0.xx), we will have very low latency (so we can set low timeout). And then this prints:

Host is up (xxxs latency).
Host is up (xxxs latency).
Host is up (xxxs latency).

That means:

  • is my gateway (access point)
  • is me
  • And of course the one left is, which is my device's IP


Mac El Capitan: Blurry Display Issue

Recently I updated my MacBook Pro to El Captain, and I don't like El Captain. One major thing I noticed is the screen went blurry. Text and everything. My Mac does not have retina display, and yet it looked fine when I still had Yosemite. Well, not saying Yosemite was good either, but it was at least better than El Captain. Found several solutions online but they didn't quite work for me. After digging into the settings, I found below method working for me to fix the blurry issue.

Continue reading Mac El Capitan: Blurry Display Issue