Hacker News new | past | comments | ask | show | jobs | submit | wonginator1221's comments login

Nice! I struggled to learn jq initially and I made a similar page for my team.

One suggestion is to use with_entries as a replacement for the 'to_entries | map(...) | from_entries' pattern. For example:

  jq '.metadata.annotations | with_entries(select(.key == "label1"))'
is equivalent to

  jq '.metadata.annotations | to_entries | map(select(.key == "label1")) | from_entries'


Not related to with_entries, but I didn't see anywhere else in this thread that mentioned dealing with awscli output

from_entries handles nicely the Tags in a lot of awscli output, you can do things like

    aws ec2 describe-instances | \
        jq '.Reservations[].Instances[] | 
            {Role: .Tags | from_entries | .role,
             Name: .Tags | from_entries | .name,
             Id: .InstanceId}' \
        -C -c | sort | less -R
to get a summary of all your instances sorted by role.


thanks for the suggestion, i will add another example like this.


I personally had my Macbook Air that I bought in August 2012 have its 128GB SSD fail on me this past August. The data was not recoverable and I had to get the SSD replaced by an Apple technician for free as my Air was still under warranty.

Fortunately, I was mostly backed up, but it is definitely aggravating to see a < 12 month old SSD fail.


Sorry, but SSDs have never had a good history of being reliable. I've been lucky, but I hear too many horror stories. Backup is essential.

No medium is reliable, and it's good you were backed up recently.


I'm a huge fan of vim-fireplace[1] (and almost every other tpope vim plugin). vim-fireplace provides essentially all of the functionality listed above through a lein nREPL connection.

[1] https://github.com/tpope/vim-fireplace


Yup, I love fireplace. After a bit of fiddling my Clojure setup was better than my Python setup ever was. But for rainbow parentheses, you need also https://github.com/kien/rainbow_parentheses.vim


My friend also runs the ListServe Archive. It's quite interesting to dig through some of the older submissions and see the variety of the content.

http://thelistservearchive.com/


Direct link to the email for this story, which also contains interesting details not on the site:

http://thelistservearchive.com/2013/06/06.html


A relevant post by Derek Sivers regarding averages: http://sivers.org/below-average


I suspect it might be possible by modifying the device field in the pci_dev struct [1] in include/linux/pci.h when the device is initialized.

[1] http://www.makelinux.net/ldd3/chp-14-sect-6


I think that there's also a chance that charging karma for a comment could also alter the quality of discussion here on HN. Although it may reduce comment "spam", commenters would have a stronger incentive to follow popular opinion to ensure that the cost of posting a comment is recouped. This could potentially reduce the number of dissenting (yet still intellectually provoking) comments.

This hivemind mentality is a major problem in many online communities, but I do think that the hiding a karma on is definitely a step in the right direction.


IMO one is trying to do with karma what Google are doing with SERP positions - reward valuable content.

If you do what they've done and personalise results then gaming the system becomes a lot harder; the only real way to win has to become producing quality content.

Metrics such as rank, average, sd, account age, up & downvotes could be combined by the reader in order to personalise story listing and comment rank/display on the story page.

That way if I want to reward a persons comments with a karma boost for average comment karma I can do so, but you could just do upvotes or just rank on inverse of downvotes or whatever.

This way the site users generate competing algorithms, algorithms will be adjusted and 'evolve' to generate the prefered ranking of comments. Those who dont want to write one can pick a recommended or default algo.

If user written algos are too expensive to use (though I'm thinking it would be client side in js) then a selection of algos could be offered by the site.


Users also might try to nest their comments under one of the top comments instead of under the submission where they belong.


You could enable the mouse for mouse interaction with a supported terminal. In my tmux config:

  set -g mode-mouse on
  setw -g mouse-select-window on
  setw -g mouse-select-pane on
This particular configuration will allow you to scroll, select text and focus windows and panes with just a mouse click.


Except you can't natively select text for copy/paste anymore.

When you click-drag you're now triggering a tmux selection, not the native terminal-emulator highlight. This is a big problem because the emulated variant is slow and behaves nothing like the real thing.

To my understanding this is also a problem that can't be solved without further terminal emulator support. As it stands the remote application (tmux) can either receive all mouse-events or none of them.

This means you have to choose between scroll-wheel support plus broken text-selection - or no scroll-wheel support.


I tried the mouse integration and turned it back off for the same reason as you. Not having copy-paste at the terminal level is a non-starter as far as I'm concerned. Learning the vim movement commands better eliminated most needs for the mouse-pointing ability anyway.


Same here. But I found a decent workaround.

I have following in my .tmux.conf:

   set -g history-limit 1000
   # See https://wiki.archlinux.org/index.php/Tmux#Scrolling_issues
   set -g terminal-overrides 'xterm*:smcup@:rmcup@'
Now I can scroll using "scroll bar" which is acceptable for me. Plus I also get native text-selection.


Learning the vim movement commands better eliminated most needs for the mouse-pointing ability anyway.

Sadly not for me. I'm a die-hard vim-user but I can't live without my scroll-wheel in the terminal.


Even after deleting FB cookies, what prevents them from tracking you (with reasonably good accuracy) using your IP address. In that case, you might as well just blacklist all of facebook.com.

In my opinion, internet users must be aware that there is no easy way to be totally anonymous, whether it be Facebook, Google, etc. If you require complete anonymity, you might as well unplug your internet cable.


what prevents them from tracking you (with reasonably good accuracy) using your IP address

Dynamic IP addresses and use of the same IP address by multiple people.

All it takes is a couple of friends, acquaintances or others accessing using your home network and it'll confuse the hell out of the stats. And that's without going into IP ranges for universities, schools, offices large and small, and your local coffee shop.

Then add in IP address pooling by ISPs, where every time a user connects (or every week, month or year) they're issued a new IP, and you end up with an unclear situation.

I won't start on how cell/mobile phone networks further confuse the situation ;)


Or, indeed, using your combination of locale, useragent, etc. These are often unique. You can test yours here: http://panopticlick.eff.org/


you're partly right - the only resolution here would be to disable javascript, which makes a great part of panopticlick work (identifying installed fonts, etc.). however I think this kind of user recognition would be an overkill for a site with so many impressions like facebook - the computational effort to assign an account to each set of features must be huge (thou maybe sometime later ... when privacy laws get more restrictive).


It is indeed sort of disturbing that panopticlick gives me the message "Your browser fingerprint appears to be unique among the 1,769,884 tested so far."


If you add any new plugins your print would be unique again compared to your previous settings, which would make you difficult to track. Stay unique, my friends.


Still possible, still possible. Of course, it all depends on how much they want to track you.


Joel Spolsky wrote a little on founder equity and a potential method to divide ownership.

http://answers.onstartups.com/questions/6949/forming-a-new-s...


Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: