-
7 votes
-
Amazon and Viola Davis to adapt Octavia Butler's novel, Wild Seed
6 votes -
Traveling the Green River to understand the future of water in the West
6 votes -
Puerto Rico just passed a bill to require 100% renewable electricity by 2050
13 votes -
NFL - Instant Replay for Pass Interference
9 votes -
Dumbo review – Tim Burton remake lands with elephantine thud
7 votes -
Are sexual abuse victims being diagnosed with a mental disorder they don't have?
9 votes -
New York’s Orthodox Jewish community is battling measles outbreaks. Vaccine deniers are to blame.
8 votes -
When we first made tools
9 votes -
Meng Hongwei: China to prosecute former Interpol chief
4 votes -
EU lawmakers voted to scrap daylight saving time starting in 2021
10 votes -
Apple Card just defined right and wrong in FinTech
10 votes -
In Brazil 30 million people live in a 'quasi desert' of news
5 votes -
Tour Championship: Ronnie O'Sullivan beats Neil Robertson to become snooker world number one, for the first time in nine years
10 votes -
[David Matheson, the Mormon] ‘Gay conversion therapist’ comes out: Exclusive interview [to Channel 4]
8 votes -
The best $5,929.10 I ever spent: Moving back to the Midwest
12 votes -
Seven decades after the bomb, children of Hiroshima victims still worry about hidden health effects
8 votes -
It’s not just the isolation. Working from home has surprising downsides.
9 votes -
How the Dalai Lama's dash from Tibet 'changed the concept of Buddhism' forever
8 votes -
ID@Xbox Game Pass - Indie Showcase - March 26, 2019
3 votes -
How a fantasy baseball league of pioneering indie rock heroes is just like yours.
3 votes -
Advice for a soon to be college graduate
I am going to be graduating with a BA in Economics in May, and I am overwhelmed, like most people, with all the stuff that I am now responsible for. I was mostly wondering what advice you wish you...
I am going to be graduating with a BA in Economics in May, and I am overwhelmed, like most people, with all the stuff that I am now responsible for. I was mostly wondering what advice you wish you heard when you were 22.
10 votes -
The long, complicated, and extremely frustrating history of Medium, 2012–present
14 votes -
The writing of Rihanna's Umbrella began with a default GarageBand drum loop
6 votes -
The Apple Card is a perfect example of Apple’s post-iPhone strategy
12 votes -
What termites can teach us about cooling our buildings
9 votes -
Recreating the World's Oldest Tart Recipe | Munchies
6 votes -
In one hour the Orlando Magic will play their most important match since 2012
For those of you not following the NBA too closely you might not be aware but tonight the Magic play the Heat. For about the past month or so the two teams have been battling out for the final...
For those of you not following the NBA too closely you might not be aware but tonight the Magic play the Heat. For about the past month or so the two teams have been battling out for the final seed in the Eastern Conference Playoffs. I'll re-cap why this is so important for the Magic since they're the team I support and maybe some Heat fans can hit back with a reply for why it's so important to them.
-
In the 2011-2012 season the Magic entered a dark period called the "Dwightmare" where their best player who had led them to an NBA final Dwight Howard began stirring up drama within the organisation. Dwight was traded in the offseason to the Lakers giving serious deja vu of Shaq's time in Orlando. Since 2012 the Magic have consistently been cursed to mediocrity and missing the playoffs.
-
Magic star Nikola Vucevic (a player acquired from the Dwight trade) has been constantly underrated and disrespected by people around the NBA. After 7 seasons Vuc has finally made the All Star team and has led this team to exceed the expectations set at the beginning of the season. It is also important to note that Vuc has not made the playoffs either since 2012 when he was playing with the 76ers.
-
The Magic are 0.5 games behind the Heat, whoever wins this match will take the 8th seed from the other and likely bring a lot of motivation and momentum into their next games therefore being more likely to make the playoffs.
There's many more storylines to this match than I've put in here but I feel that this gets the main gist of why it's so important to fans of the Magic.
11 votes -
-
What have you been watching/reading this week? (Anime/Manga)
What have you been watching and reading this week? You don't need to give us a whole essay if you don't want to, but please write something! Feel free to talk about something you saw that was...
What have you been watching and reading this week? You don't need to give us a whole essay if you don't want to, but please write something! Feel free to talk about something you saw that was cool, something that was bad, ask for recommendations, or anything else you can think of.
If you want to, feel free to find the thing you're talking about and link to its pages on Anilist, MAL, or any other database you use!
9 votes -
Google is rolling out AMP for Gmail to let you shop and fill out forms without leaving your inbox
22 votes -
Senate blocks Green New Deal, but climate change emerges as key 2020 issue
8 votes -
“The big error was that she was caught”: The untold story behind the mysterious disappearance of Fan Bingbing, the world’s biggest movie star
12 votes -
How to Deliver Constructive Feedback in Difficult Situations
6 votes -
Final Fantasy VII | Launch trailer
7 votes -
Vice President Pence gives NASA five years to put Americans back on the Moon
14 votes -
Firmament by Cyan Worlds (developer of Myst, Riven, Obduction) - a narrative adventure designed for VR (but playable without)
6 votes -
'Coal is on the way out': Study finds fossil fuel now pricier than solar or wind
13 votes -
Behind The Scenes - Jaguar Catwalk - A CG Jaguar That Reacts To The Audience In Real-Time Using AI Gesture Recognition (video)
3 votes -
Louisiana’s disappearing coast - The state loses a football field’s worth of land every hour and a half. Now engineers are in a race to prevent it from sinking into oblivion.
9 votes -
Make Emacs write (part of) your git commit messages
I was fed up with the chores of writing consistent git commit messages, so a while ago I started developing a hook in Emacs which I used with Magit (actually git-commit-mode) which uses some crude...
I was fed up with the chores of writing consistent git commit messages, so a while ago I started developing a hook in Emacs which I used with Magit (actually
git-commit-mode) which uses some crude heuristics to fill out theCOMMIT_EDITMSGbuffer for me. Here is what it does (|stands for the cursor):-
If only a single file modified, insert
<filename>: |- If can figure out function name, insert
<filename> (<functionname>): |
- If can figure out function name, insert
-
If only a single file added, insert
Add <filename>| -
If a
TODOadded toReadme.org, insert; TODO <headline>| -
If a
TODOwasDONE, insert; DONE <headline>| -
If the files are
Readme.organdReadme.org_archive, and no new TODO's were added anywhere, insert; Archive DONE| -
If the file is
.gitignore, insert; Ignore | -
If the file is
TAGS, insert; Update TAGS|
I extend this when I find new cases where I repeatedly do the same thing. The code is below. It's probably a good idea to use it as a starting point and personalise it because this reflects how I like to write my commit messages (and I like pretending how they do it over at Emacs git repo). It is sloppy and probably buggy, but I don't think it can be destructive.
Final note: I can't figure out how to set this up so that after this takes effect, the buffer is marked as modified. I want to flip the modified bit so that in some cases I can just hit
C-c C-cand go. But I need to modify the buffer somehow to commit in some cases (I just typeC-oto open a new line in those cases). Here is the function:(defun gk-git-commit-mode-hook () "Set up git commit buffer." ;; If a single file is modified, prefix the message w/ it. (let ((modified-re "^# modified:") (new-re "^# new file:") (issue-re "^[+\\- ]\\*+ \\(TODO\\|DONE\\) ") current-defun filename addp onlyp issuep) (save-excursion (with-current-buffer "COMMIT_EDITMSG" (goto-char (point-min)) (re-search-forward "^# Changes to be committed:" nil t) (forward-line) (beginning-of-line) (cond ((looking-at modified-re) (re-search-forward ": " nil t) (setf filename (thing-at-point 'filename t))) ((looking-at new-re) (re-search-forward ": " nil t) (setf filename (thing-at-point 'filename t) addp t))) (setq onlyp (progn (forward-line) (not (or (looking-at modified-re) (looking-at new-re))))) (when (and onlyp (equal filename "Readme.org")) (goto-char (point-min)) (when-let* ((pos (re-search-forward issue-re nil t))) (setq issuep (progn (re-search-backward "\\*" nil t) (buffer-substring (1+ (point)) (line-end-position)))))) ;; Try to set ‘current-defun’. (when onlyp (save-excursion (goto-char (point-min)) ;; Error if not found, means verbose diffs ;; not enabled. (re-search-forward "^diff --git") (goto-char (line-beginning-position)) (let ((str (buffer-substring (point) (point-max))) (default-directory (expand-file-name ".."))) (with-temp-buffer (insert str) (diff-mode) (goto-char (point-min)) (setq current-defun (diff-current-defun)))))))) (if onlyp (cond ((and issuep (not addp)) (goto-char (point-min)) (insert ";" issuep)) ((equal filename "TAGS") (goto-char (point-min)) (insert "; Update TAGS")) ((equal filename ".gitignore") (goto-char (point-min)) (insert "; Ignore ")) (filename (goto-char (point-min)) (if addp (insert "Add " filename) (insert filename (if (and current-defun) (format " (%s)" current-defun) "") ": ")))) (when (and (equal filename "Readme.org") (save-excursion (goto-char (point-min)) (re-search-forward (concat modified-re " +Readme.org_archive") nil t)) (save-excursion (goto-char (point-min)) (re-search-forward "\\-\\*+ DONE" nil t)) (not (save-excursion (goto-char (point-min)) (re-search-forward "\\+\\*[\\+\\-] TODO" nil t)))) (goto-char (point-min)) (insert "; Archive DONE"))))) (add-hook 'git-commit-mode-hook #'gk-git-commit-mode-hook)Hope you find it useful.
12 votes -
-
Two upcoming Nintendo Switch models inspired by 3DS's split evolution, sources say
13 votes -
A new Lord of the Rings video game is coming in 2021
7 votes -
Jussie Smollett case: Chicago prosecutors drop all charges against 'Empire' actor
15 votes -
Jobs in southeast Kentucky's coal mines are vanishing. Can green jobs replace them?
4 votes -
Conspiracy theories can't be stopped
10 votes -
Mozambique floods cover more ground than NYC, Chicago, D.C., and Boston — combined
5 votes -
How To Boost Your Home Wi-Fi Signal
5 votes -
Cleaning your GitHub profile with a simple Bash script
5 votes -
Kickstarter for Firmament, a "next-generation narrative adventure" from Cyan, has launched
5 votes -
How do people tend to perceive you, versus how you perceive yourself?
A different version of ourselves lies in the minds of the people around us. Who is that person? How do you feel about him, and how are you different? [repost as the previous title had a typo]
24 votes