HNHacker News
TopNewBestAskShowJobs

anh79

20 karma · joined February 14, 2015

submissionscomments
anh79··on Reach for Markdown, not LaTeX
When I prepared my master thesis some years ago, I needed to extract parts of the main materials to build another small book that contained only the main ideas, theorems and proof highlights. \LaTeX and it's programming interface really helped as I could define a new environment for example

\begin{shipboth} contents for both thesis and the small book \end{shipboth}

This is an example of making things DRY. How can I do the same with Markdown (and their tools)?

(Well I rarely use \LaTex today; my R\'esum\'e was typeset in \LaTeX and it helped me to get a good job but when it has so many things I just write them in a .odt file)

anh79··on Domain-cli: Search domain availability from terminal
Very good example. Thanks a lot.
anh79··on Domain-cli: Search domain availability from terminal
It's even hard on Linux machine. How do you know all whois servers for different top level domains? for .info, for .social, for .in, bla bla. In 2016 it's so painful to set up correct whois monitoring at my company . (May be it's a lot better now.)
anh79··on Domain-cli: Search domain availability from terminal
Can you give some example? I have tried some registrars and if you don't provide some NS information, the default NS information is used.

I have a tool in the past https://gist.github.com/icy/b30893cecc8ec657317ba93831b0fd4a... it works fine as I experience. The tool has option `--all` to check by using both google/open dns. E.g,

  $ whoisvn google-is-good.com --all
      opendns.org:   google-is-good.com   available
        googledns:   google-is-good.com   available
  
  $ whoisvn google-is-bad.com --all
      opendns.org:    google-is-bad.com   available
        googledns:    google-is-bad.com   available
anh79··on Domain-cli: Search domain availability from terminal
whois may not work if you don't have correct configuration (e.g, whois server for some special domains .info, .social, ...)
anh79··on Terraform Gotchas and How We Work Around Them
hi Kalmar,

Is it possible to query information directly from a state file? Some interpolation would help. I ask this because I often refer to resource information from another project, and I don't see that modules are helpful.

I posted my work-around here [1] some days ago . The real code was not there because I haven't had permission for my company, but it's very short and easy to write by anyone.

Thanks for your reading.

[1] https://github.com/icy/oops/blob/master/terraform/problem_1_...

anh79··on #viettel #isp #vietnam totally blocks Facebook to violate protests on May 15th
See also http://techcrunch.com/2016/05/17/facebook-blocked-in-vietnam...
anh79··on WordPress 4.3, “Billie”, released
Wordpress ecosystem has many security issues. So upgrading doesn't mean it's secure. So I run my wordpress on laptop, compile all things to static contents thanks to httrack , and publish those static contents. No more nightmare, and the speed is amazing.

Of course, there is no more comments and dynamic contents. But I don't care ;)

anh79··on WordPress 4.3, “Billie”, released
The perfect thing of Wordpress is that it really helps to upgrade from (very) older version to the new one.

Yah, some months ago I upgraded a wordpress 2.3.3 (released in 2008, http://codex.wordpress.org/Version_2.3.3) to version 4.1 :) I only needed to fix some minor problems!

I will wait 5 years from now to see if I can move from this 4.1 to another one. Sorry Wordpress 4.3 ;)

anh79··on Docker 1.8 released
Thanks a lot. I wonder why this is not mentioned in the changelog :)

Regarding the `docker-compose` issue, it's described here https://github.com/docker/compose/pull/1723 . Aanand Prasad has a better PR in https://github.com/docker/compose/pull/1754 (merged).

anh79··on Stronger Shell
(Talking about interactive "fish" shell; but that's the point: I need to be familiar with its interative mode first.)
anh79··on Stronger Shell
I agree. But "fish" is quite strange to me, especially its way to recall history. In "Bash", I can type "^ R" and browser the history very fast. In "fish", I have to type and select with up/down array; it's not easy to browser the history randomly (FIXME).

My #Bash" history has > 96k entries (woh, believe it or not; because of this too big number, "xterm" + "screen" always stuck when exitting; but "urxvt" + "tmux" work perfectly thanks to "urxvt" daemon mode.)

Porting this huge history database from my daily "bash" to "fish" is just a nightmare ... :D

anh79··on Docker 1.8 released
Hi @cpuguy83,

Thanks for your feedback. I couldn't gather enough information for bug reporting (But I had few rich logs that told "docker" has invalid memory access.)

As a work-around, I use a special patch of docker-compose that helps the containers to restart automatically when "docker" daemon restarts :)

> There's also been a known issue around creating lots of `docker exec` instances and those references not being released (so you can query for status later), this is also resolved.

Woh, this seems my case, though I am not sure about "releasing" (We run "exec" and "exit"; we don't hold any "exec" for longer than 2 seconds.) I haven't seen this mentioned in changelog (FIXME). Let me try again in ticket system!

anh79··on S3 and High Availability
I'm thinking of putting S3 behind a Cloudflare set up, and use "Always online" feature of Cloudflare.

Sound goods? (Woh, as long as Cloudflare doesn't have any SSL issue :D)

anh79··on Docker 1.8 released
Congratulations!

It seems the memory issue with "docker" daemon hasn't been admitted/resolved. (See https://github.com/docker/docker/releases/tag/v1.8.0)

In all of my deployments, "docker" daemon memory keeps increasing. The worst case is 37% in a 512MB instance in Digital Ocean. Then docker daemon crashes...

That's to say, congratulate but I don't really want to upgrade ... :(

anh79··on Stronger Shell
Bash is good as a system shell. For interactive shell, zsh/fish/... wins.

That's why I only learn Bash. One lesson for everything for both purposes ;)

anh79··on Stronger Shell
All lessons I've known https://github.com/icy/bash-coding-style/blob/master/LESSONS...
anh79··on Go 1.5 Release Notes
Mine "go" experience comes with the latest docker 1.7. Ok okay. it comsumes 37% of 512 MB memory. That's fine. I will shutdown all of my apps for you. :P
anh79··on Cloudflare DNS/SSL issue lasts 15 hours
Yesterday Cloudflare had critical DNS/SSL issue in their Asia and LA regions. The SSL issue was admitted at the very end.

I was testing Cloudflare feature (with a free plan). My QA was working on the new configuration. (Un)Fortunately, the issue happened at the same time, and we had to switch to our custom proxies.

A guy reported the problem happened for their paid plan (https://twitter.com/ashleykaryl/status/626411486420836353)

I intended to use Cloudflare because it has fancy management console, fast purging cache, and clean API. But after this incident (and seeing how Cloudflare reported their issue), I have to think twice.

Any ideas?

anh79··on Major Flaw in Android Phones Would Let Hackers in with Just a Text
Thanks Android. You make life much easierr :)
anh79··on Capitalist Soul Rises as Ho Chi Minh City Sheds Its Past
Hello from Saigon,

It's sad to see you go. But it's very true that the air is critically polluted, esp. in the central area. I moved from DaNang city (You would try!) to Saigon to seek for a job; except for the money and the high tech air, Saigon isn't worth living.

The most critical thing is that people seem not to believe in others any anymore, and/or to believe in the future. (The author said people only thought of today, that's a reason.) Living fast, living short. And killing the future. :(

anh79··on Show HN: Bocker – Docker implemented in 100 lines of bash
When I first saw the HN title, I was so stunning. Weird, it's not my tool https://github.com/icy/bocker ;)

The author of "bocker" (not my bocker) has a great idea. I would learn from the script. Docker is not magic anymore.!!

anh79··on PHP: md5('240610708') == md5('QNKCDZO')
How about ==== and ===== and ======?

For security reason, I suggest PHP to implement such operators... :D Example:

"abc" === 'abc'; # ==> true

"abc" ==== 'abc'; # ==> false, single-quote vs double-quote

"abc" ===== 'abc'; # ==> true, this is how it works

j.k :D

anh79··on Bug 1202858 – Restarting squid results in deleting all files in hard-drive
no, it's my mistake. I have fixed that.
anh79··on Bug 1202858 – Restarting squid results in deleting all files in hard-drive
zsh is an interactive shell. It is not to replace #bash as system shell as I know.
anh79··on Bug 1202858 – Restarting squid results in deleting all files in hard-drive
set -u is good. set -e requires to change a lot of code. See for example

https://github.com/icy/bash-coding-style#set--e

anh79··on Bug 1202858 – Restarting squid results in deleting all files in hard-drive
Maybe I would add a new record to this https://github.com/icy/bash-coding-style#good-lessons
anh79··on The thing I hate about HTML (2010)
10 years ago I was a heavy TeX user and really hate HTML. I made it a little fun with my stupid flex program https://github.com/icy/ktml :D
anh79··on Is email broken?
Thanks for that, rakoo.

Do you know any XMPP client that supports threading? I am using Pidgin (for irc, facebook, yahoo), skype and viber. None of them has the feature.

anh79··on 1Password on Linux
Very good tool. I will take a look. (I have used my script for years, it's worth switching to a better thing.)
Page 1 of 2Next →