For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | zellux's commentsregister

I've been using Netlify for a while with Hugo as site generator. It's free with HTTPS and CDN support.


Huawei has a very popular sub-brand for smart phones named 'Mate' (http://consumer.huawei.com/minisite/worldwide/mate8/). I guess that's why they are using Matebook for new laptops.


AFAIK Facebook will let you to choose between taking lump sum (a fixed amount of pre-tax money), or getting flight tickets and moving service ordered for you, plus after-tax reimbursement for other related cost.


You need to find an iron mine in the map first, and then you can put workers for irons.


At least the installation script adds some aliases to .bashrc.

https://github.com/mxcl/homebrew/blob/master/Library/Formula...


It suggests to, via you voluntarily typing

    echo 'source "`brew --prefix grc`/etc/grc.bashrc"' >> ~/.bashrc


I guess it is blocked because Dropbox was used to share software like GAppProxy/MyEntunnel/Puff, which can be used to surf across the GFW.


Wow, that will help C beginners greatly!


God yes. I remember when I started with C++ I was coming from Python so I was using ' and " interchangably (I guess the fact that they were different hadn't been covered in class yet). I don't remember how I caught that I was doing it wrong, but the exception messages sucked.


The trick applies to two-digit multiplication xy * xz while y + z = 10. And we can simply calculate like this:

  34 * 36 = 3*4 * 100 + 4*6 = 1224
  57 * 53 = 5*6 * 100 + 7*3 = 3021
For multiplications like yx * zx as long as y + z = 10, we need to add x * 100, like this:

  24 * 84 = 2*8 * 100 + 400 + 4*4 = 2016
  46 * 66 = 4*6 * 100 + 600 + 6*6 = 3036


I didn't know that pipes can work with remote commands before, what amazing combinations!


They don't -- they work with the local ssh command. Its just that ssh when invoked with a "command argument" runs that command instead of a shell, with the stdin and stdout being run through the network.

The end result is similar to what you said, but the mechanism is different, the pipe itself is strictly a local construct.


Thanks for pointing out that :)


  # cd 
  # rm -rf *
I'm wondering why they can delete files under /bin and /dev?


Because they are root and those are just files.

Perhaps they need to alias rm to 'rm -I' (-I : prompt once before removal)? I remember one of the MandrakeLinux versions had that enabled by default many years ago. It saved me a couple of times when I was still a Unix noobie.


"Because they are root and those are just files."

Just because you are root doesn't mean you should be able to do whatever you like to the filesystem at any time. Most modern unix variants (including linux) support file attributes such as immutability, see the man page for chattr(1) if you want more. In BSD land there is additionally the concept of Secure Levels which limit the ability of root to change file attributes under different circumstances; generally you have to reboot into single user mode to overwrite files or directories marked as immutable or delete ones marked as append_only.


According to the FreeBSD chflags(1) manpage:

  The chflags command first appeared in 4.4BSD.
Which puts it about seven years after this story.


"4.4BSD" isn't the same as FreeBSD 4.4, but actually version 4.4 of the original BSD which was released in June 1994.


OK, eight years, then. The timeline I found gave 1993 for 4.4BSD.


AFAIK a single cd command will set current working directory to /root, and rm -rf will only remove everything under /root. Or does cd command had different behavior in Unix at that time, comparing to shells today?


That sort of thing is why /root is now root's home directory.


The homedir of root was probably / on that system.


Did that version of BSD have secure levels? Updating systems where the system binaries are marked immutable can sometimes be a pain; but the comfort level it provides is remarkable.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You