Hacker Newsnew | past | comments | ask | show | jobs | submit | matejn's commentslogin

I hate that even more, especially since Visual Studio introducted it. I had the habit of selecting some text, and then typing to replace it. Now when my replacement starts with a parenthesis or quote, the text just gets surrounded instead!

Maybe this is just an XKCD moment https://xkcd.com/1172/ ...


I think for the feature of wrapping, it is useful enough + just typing a->backspace->" is easy enough that I think it's a net win


But there have been sensible bindings for doing this forever, e.g.: https://github.com/tpope/vim-surround

There's no need to break normal editing behavior.


On my Windows 10 work machine, solid color backgrounds sometimes get reset to black after connecting to it via RDP. I "fixed" it by creating a solid color .png and using it as a background picture ...


rdp client actually has an option to remove the remote desktop's wallpaper


True, but at least in my attempts, that setting only affects picture backgrounds and is ignored when using solid color backgrounds.


Here I have to chime in and say that a certain YouTube razor is one of my favourite purchases ever. But I guess it's rather niche, being a double edged safety razor.


I like the SQL solutions people posted. But what about this one in Prolog?

  ?- setof(Author, Book^Pages^(book_author(Book, Author), book_pages(Book, Pages), Pages > 1000), Authors).
Depending on the structure of the Prolog database, it could be shorter:

  ?- setof(Author, Pages^(book(_, Author, Pages), Pages > 1000), Authors).


I completed last year's in Scryer Prolog and it was a joy. Some problems were almost impossible due to the lack of mutation (Karger's algorithm comes to mind), but file parsing was a breeze and I find Prolog programs generally beautiful. My favourite syntactical feature is the full stop at the end of clauses.


Erlang lifted it as the comma, semicolon, dot convention. When I was writing a lot of Erlang I found myself wishing it was in other languages. After not writing Erlang for a long time, I wrote a few functions recently and it was jarring. Then again I usually prefer the conventions of whatever language I'm using most at the time, unless I really dislike the language (Javascript).


I wish I could set my Visual Studio coding font to 10.5pt. Now I have to use 10pt and 105% zoom!

But then again, VS doesn't allow font size in px ...


10(.5) looks tiny though. I can place 6 copies of the article on my monitor, lol.


I think the same applies to laws. You can't get information on why a law was passed, and many of them end up seeming odd or even counterproductive.


anyone interested in changing that? I'd chip in


I think Windows will shorten the lifespan of your SSD even if you use "shut down", at least if you don't disable "fast startup". "Fast startup" basically replaces "shut down" with a light form of hiberation, which makes shutting the machine down take a long while and turning it on about a second faster. Not worth the tradeoff in my opinion. I also got some bugs when using fast startup, sometimes the sound wouldn't work until a reboot or my WiFi took weirdly long to connect. This is on a Lenovo Yoga/IdeaPad.


If I understood the watch website correctly, the weekday marker shows 2 dots instead of 1 during AM.


Hmm I used Vim for about 10 years and I never used R. I preferred one of the c- variants, usually ct and cas. I guess it depends on acquired muscle memory?


likewise, I use `r` all the time but I never even knew about `R`


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

Search: