Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
u801e
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
241.
▲
by
u801e
4y ago
It's not actually a flag to the s command. It's a way to modify the address. So, for instance, if you want to delete from the third line to the third to last line in the file, you could run: :1+2,$-2 d 1 is the address
242.
▲
by
u801e
4y ago
Another approach is to use normal mode to delete a block of text you want. For instance, if you want to delete up to the line before the line that contains "This is a line of text", you could run q: .,/This is a li
243.
▲
by
u801e
4y ago
Hopefully sometime before 2038.
244.
▲
by
u801e
4y ago
I had a 14.4K modem, but the dial-in pool for my ISP only supported 2400 bps speeds. It took me most of the day to download the first C&C demo file which was 10 MB IIRC.
245.
▲
by
u801e
4y ago
s/arrested the lines of coffee/changed the lines of code/
246.
▲
by
u801e
4y ago
It helps in terms of maintenance. For example, when changing some code, you could look at the commits that arrested the lines of coffee you're going to modify. With well crafted commit messages, you may be able to avoid introducing a r
247.
▲
by
u801e
4y ago
They are valuable when using git blame to see the line in the context of the change it was part of and the associated commit message. That information could help avoid introducing a regression for example.
248.
▲
by
u801e
4y ago
> It is valuable history: it is archaeological evidence of what has been attempted before. Except that is not readily accessible. When looking at a particular section of code, you could either run git blame, or run git log and filter it
249.
▲
by
u801e
4y ago
> Handy pointers to all the branches you merged, in case you ever need them The one thing that GitHub does when it generates the merge commit (which it does even for fast-forward merges) is that it adds a link to the PR associated with t
250.
▲
by
u801e
4y ago
> What's the value prop of having the merge-commit in the history for you? The merge commit contains the sha values of the parent commits. For example, if merged a branch that could otherwise be a fast forward merge using the --no-
251.
▲
by
u801e
4y ago
>> An eternal war rages between team “git log should be clean” vs. team “git log should have an accurate history.” Having a clean commit history makes it easier to utilize commands like git blame and git bisect. I'm not convince
252.
▲
by
u801e
4y ago
> Cyclist feel a lot safer biking across Feeling safer doesn't mean actual safety. For example, some cyclists feel safer riding facing traffic, but statistically, that's much more dangerous compared to riding in the same direct
253.
▲
by
u801e
4y ago
Thanks for the recommendation. Could you elaborate on some of the issues this book goes over that factor into this particular crash besides the speed of motorists and the proximity of cyclists and pedestrians?
254.
▲
by
u801e
4y ago
> The fault is to some degree the design of the road. What specifically about the design of the road? You allude to the fact that it allows for traffic to move at high speeds in close proximity to cyclists and pedestrians and this is on
255.
▲
by
u801e
4y ago
NACTO really hasn't vetted their designs or really written a standard design guide https://john-s-allen.com/blog/2014/04/endorse-nacto/
256.
▲
by
u801e
4y ago
Crashes have a number of factors that lead up to one. When the NTSB investigates an aircraft incident, they look into the actions or lack thereof that lead up to the incident and issue recommendations based on what their investigation find
257.
▲
by
u801e
4y ago
You have to scroll about 2/3rds of the way down the article to see the description of the crash: >> Andrew entered the left lane on the far side of the road as a 19-year-old was driving down it in a red Toyota Camry. In a stateme
258.
▲
by
u801e
4y ago
I remember that it was possible to insert inline images in a plain text email by adding a uuencoded block in the middle of the message. MIME also had inline attachments, but those typically show up at the end of the message.
259.
▲
by
u801e
4y ago
The phrase "supports bottom posting" isn't the best way to describe formatting replies. Good netiquette typically involves deleting quoted text you're not directly addressing in your reply and type your responses inline.
260.
▲
by
u801e
4y ago
The fact that carriers are still selling locked phones is really strange. Imagine if Verizon, Comcast, or Cox sold locked Dell or Lenovo laptops at a discount and only allowed you to connect to the internet using their ISP service.
261.
▲
by
u801e
4y ago
I sometimes use the lens cleaning wipes. Other times, I just wash them with liquid soap and water and pat them dry with a towel or paper towel (or anything as long as it doesn't leave lint).
262.
▲
by
u801e
4y ago
The online chat experience is subjectively worse in the last 5 years or so compared to how it was in the '90s, '00s, and early '10s. I don't have the issues the OP has, but I do have significant lag with text input when
263.
▲
by
u801e
4y ago
I trusted using curl to find out it just returns a HTTP 404 page :)
264.
▲
by
u801e
4y ago
> some of the programs you literally entered in machine code! How did people ever find the time?! IIRC there was a program in BASIC you had to run to start the machine language prompt. Entering lines basically involved typing a series of
265.
▲
by
u801e
4y ago
Reverting large squash commits or merge commits after other commits have been applied to the main/master branch will likely result in conflicts. On the other hand, limiting commits to do a single thing and having several per merged bra
266.
▲
by
u801e
4y ago
Not exclusively. I just use it as the terminal multiplexer and as a way to copy text to and from any program running in one of its terminal windows. The only reason I use gvim instead of vim is because the latter isn't compiled with cl
267.
▲
by
u801e
4y ago
It's worked rather well for me for the last couple of years I've been doing it. Why would you consider it brittle? I can use standard vim keybindings to copy text from the terminal to the clipboard: ctrl-w N ?some text
268.
▲
by
u801e
4y ago
I try to re-arrange the split so that there are no vertical splits for the window I plan to copy from, but if you're using a terminal window in vim and want to copy text from it, you can use terminal normal mode and visual line selecti
269.
▲
by
u801e
4y ago
I actually use multiple terminals within gvim where I ssh to various hosts and use it to copy terminal scrollback text into the * or + register. This allows me to copy text from any terminal and paste it in Github or pastebin. I can also c
270.
▲
by
u801e
4y ago
> I like being able to paste code into chat and have it syntax highlighted. > Occasionally, I like to send a GIF. Some people don't like large blocks of text or images pushing other messages completely off screen.
More ›