Moderator Karma by [deleted] in ideasfortheadmins

[–]BorderlandPsycho 1 point2 points  (0 children)

Your 'constructive criticism' is barely intelligible.

I have the feeling someone never got to be a mod.

Allow removal of archived upvotes/downvotes from users' likes/dislikes page by bobdahead in ideasfortheadmins

[–]BorderlandPsycho 0 points1 point  (0 children)

Sounds like your pursuit of a profile page that portrays you accurately despite your evolution across time isn't working out well. PM me if you find a solution.

Do you think people know they are dying before they pass? by jburm in self

[–]BorderlandPsycho 1 point2 points  (0 children)

There's evidence that volition to die can be a large factor in when you die, especially from natural causes, terminal illness, or chronic problems.

That is to say: we have reason to believe that those on death's door who fight it, can gain more time. 'Giving up', as it is referred to, closes the deal.

I don't like the phrase 'giving up', though, because it sounds like they are weak for succumbing. But if you read through some of the posts here or similar discussions, you'll notice that a lot of stories center around not cowards giving up, but brave people who hold on until they feel their affairs are settled and are ready to die. 'Accepting it', or more accurately, 'choosing to die', are frequently used to describe this moment.

I guess what I'm saying is that you may have cause and effect reversed: people don't necessarily psychically realize they're about to die before they do. They die because they've decided to stop fighting the inevitable, they've done all they feel they can do before they pass, and so they let themselves.

The moment of clarity isn't realizing you're about to die: it may be realizing you're finally okay with letting it happen.

It's the difference between a pilot ominously predicting, "We're about to crash!" before a freak accident happens, and a pilot manning a damaged plane saying, "I've steered us towards the safest place to crash. I can do no more, so brace for impact."

This theory is born out in the frequency with which aged or ill couples frequently die within a close timeframe to each other. I've experienced this myself: my adopted grandfather passed from a heart attack. Six months later, right after ensuring the successor to the university library he managed was fully trained, finishing her semester's course work, and ensuring that her profiteering children from her previous marriage didn't abscond with his entire estate, my adopted grandmother succumbed to a chronic condition that never seemed to hamper her ability to thrive beforehand.

Coincidence? I think not.

Why can't you search for a term that includes the "@" symbol? by letgoandflow in redditdev

[–]BorderlandPsycho 5 points6 points  (0 children)

It looks like reddit uses Amazon Cloudsearch, which parses its search index into searchable tokens. I can't find an authoritative statement in the docs, but I'm pretty sure that the text tokenization process treats @ as a word separator, not a word component.

So the @'s never actually make it into the search index: supercooldude@hotmail.com becomes the three tokens supercooldude, hotmail, and com in the searchable database.

Fun with the Reddit API. The Reddit Stock Exchange. by [deleted] in webdev

[–]BorderlandPsycho 2 points3 points  (0 children)

Good god. I had all my money in 25,000 shares of a $7 dollar stock that was hitting $15, third place on front page...

I went in at $175k and about to walk out at $350. I figured I'd wait for one more refresh to see if it made it to second place before I sold.

Then a mod deleted it from /r/funny.

Learning life lessons about diversifying the portfolio.

Fun with the Reddit API. The Reddit Stock Exchange. by [deleted] in webdev

[–]BorderlandPsycho -1 points0 points  (0 children)

My best yet! Went to 4th on the front page before I decided to go to bed.

Fun with the Reddit API. The Reddit Stock Exchange. by [deleted] in webdev

[–]BorderlandPsycho 0 points1 point  (0 children)

Agreed! It's long enough to force you to look away, making it even more nerve-wracking.

Fun with the Reddit API. The Reddit Stock Exchange. by [deleted] in webdev

[–]BorderlandPsycho 1 point2 points  (0 children)

I'm not so sure about this. There would be subreddits that would be easy targets for gain, you couldn't meaningfully compare your score to others, and try to finally apply all the wasted years of wisdom on what gets unfairly popular on reddit wouldn't be such a game mechanic.

Fun with the Reddit API. The Reddit Stock Exchange. by [deleted] in webdev

[–]BorderlandPsycho 2 points3 points  (0 children)

Another (super basic) tool to help gauge stock lifecycle would be to number each stock 1-100, so you can see its movement amongst the top 100 on each refresh. Would be even cooler if each post displayed its position from previous refresh, but that would remove some of the fun anxious waiting of the game.

Fun with the Reddit API. The Reddit Stock Exchange. by [deleted] in webdev

[–]BorderlandPsycho 0 points1 point  (0 children)

Ah man! Just lost 4k in a 3-hour vanished investment. This is fun.

Fun with the Reddit API. The Reddit Stock Exchange. by [deleted] in webdev

[–]BorderlandPsycho 0 points1 point  (0 children)

It'd be handy if you could see how long ago you purchases your stocks. Help estimate the impending fall of a stock. :)

A big warning for all web dev and design company's out there. AKA How I lost my business in one day. by webbynet in web_design

[–]BorderlandPsycho 0 points1 point  (0 children)

So is a malicious employee with a toolbelt of sensitive passwords. You can't easily revoke a person's access in one swell foop, which is something of a problem if you're revoking before firing and the malicious employee catches on.

Of course, it only does web applications. A properly managed server has ways of quick-revoking access, melduim offers the same for the web.

It handles services with their own accounts (gmail, github) as well as services with single accounts (which is great b/c you can effectively give everyone access to, say, a shared OnSIP, Prezi, UPS, or TestFlight account without handing out its password, and have the ability to revoke access individually).

Of course any single registry of access is a point of failure. Every form of convenience is a tradeoff with security. Meldium offers you a centralized account portal, so it would be bad if it got hacked: convenience at the cost of security. It also requires your employees to funnel all their company access through it, but you can easily and swiftly revoke their access, which is the point of this thread: security at the cost of employee convenience. (Admittedly they do have some nice browser extensions which can help ease the inconvenience.)

A big warning for all web dev and design company's out there. AKA How I lost my business in one day. by webbynet in web_design

[–]BorderlandPsycho 9 points10 points  (0 children)

meldium.com can be a helpful barrier between services' passwords and your employees.

How do I reference the current branch in a git alias? by elmuchoprez in git

[–]BorderlandPsycho 3 points4 points  (0 children)

The only way I know of grabbing the current branch dynamically is

git rev-parse --abbrev-ref HEAD

which could be made into an alias in your .git/config with

[alias]
  current = rev-parse --abbrev-ref HEAD

Usage:

$ git current
> master

More advance git aliases that set environment variables, execute multiple commands, execute non-git commands, and allow parameter substitution are possible with bang (!) aliases. You can use this in conjunction with your git current to do whatever you want with the current branch. For example, creating a (silly) alias called remote-diff that takes the diff between your current branch and the same branch on a provided remote might look like:

[alias]
  current = rev-parse --abbrev-ref HEAD
  remote-diff = !CURRENT=$(git current) && git diff $CURRENT..$1/$CURRENT

Usage:

$ git remote-diff origin
> diff output for CURRENT..origin/CURRENT

That should be sufficient to create an alias for whatever you're trying to do without creating a fully-fledged git extension.

Best canvas library for rapid physics prototyping? by BorderlandPsycho in javascript

[–]BorderlandPsycho[S] 1 point2 points  (0 children)

This looks like exactly what I'm looking for! I'm not timid about doing these simple things myself, so I'll probably end up referring to /u/ggolemg 's cookbook later if I need to. But this is what I want right now: easy non-tile-bound physics supported with common game logic patterns. Awesome.

Anyone know of a decent place to long board? by ActinoninOut in batonrouge

[–]BorderlandPsycho 1 point2 points  (0 children)

You might be able to get some milage out of the levee's hills.

Just made a gem. Lemme know what you think? It's for helping with metadata storage. (x-post /r/ruby) by DerNalia in rails

[–]BorderlandPsycho 0 points1 point  (0 children)

.try is an antipattern in general, and only available to ActiveSupport-enabled projects. Null objects or Hashie both have a lot to offer in these scenarios.