Live data from Hacker News

Developer and Power Users Tool List for Windows

hanselman.com

151–160 of 235 posts

Re: Developer and Power Users Tool List for Windows

#151
post #6

I wonder why the author recommend winget but not scoop. Scoop obviously has more community support and that's the most important part of a package manager (more packages, more frequent update, etc).

> I wonder why the author recommend winget but not scoop. Scott Hanselman works for Microsoft and is a prominent advocate for the .NET/Microsoft ecosystem so his recommendations are likely to skew towards native MS tools in the first instance. Nothing wrong with that as long as you consume his material through that lens! That said, I'm quite surprised I hadn't heard of Scoop[0]. Looks interesting... [0] https://scoop…

> ... native MS tools ...

I recall that the developer of AppGet claiming [0] that Microsoft effectively "stole" AppGet from him.

[0]: https://medium.com/@keivan/the-day-appget-died-e9a5c96c8b22

Re: Developer and Power Users Tool List for Windows

#152

Is 7zip really a good format for sharing data? I also use the program for unpacking and I like the context menu integration. However when I send files, I prefer zip because I feel like this is easiest for the recipient to open (no matter if they are using windows, linux, osx, Android...).

No, IMO. Nobody cares about saving "2-10%" if it means risking a hassle at the customer/user site due to a nonstandard format. If they do care that much about a minuscule incremental win, they probably shouldn't.

See the endless flame wars between DjVu advocates and .PDF die-hards for another example. Stick with the standard unless the improvement being offered by the newcomer is drop-dead amazing.

Re: Developer and Power Users Tool List for Windows

#153
post #56
post #55

Funny, how big part of the list are Linux-origin projects or WSL. How about really making the switch to Linux instead of trying to make Windows function like Linux?

Both OS's have up and downsides. What's wrong with emulating parts of other OS's you like, in the OS you like?

Imagine, how much further Linux would be if people (and Microsoft) had used all the energy of trying to make Windows work like Linux instead of actually improving Linux.

There has been lots of projects with that goal like Cygwin, Mingw, WSL*. Different virtualization glue layers etc.

For most of the part there has been lots of effort to different runtimes (PHP, Python, Docker etc) to make them work better with Windows and the end result usually is that it's a lot more easier to have the same stuff running on top of Real Linux instad of different kind of kludges the Windows versions require.

Re: Developer and Power Users Tool List for Windows

#154

AutoHotKey finally fell off my list, to be replaced by... powershell. After about 8 years of utter disdain for the mistake that is powershell, I’m actually enjoying giving it a proper test drive. I can’t quite believe it myself but i chsh’d to pwsh on my mac and linux boxes too. Goodbye 30 lines of AHK just to capture and parse the output of a RunWait (in practice it was better to create a WSH com object and exec the…

The AutoHotKey programming language is quirky and weird, even when compared to Powershell's quirkiness, but there are classes of things that AutoHotKey can do that I don't know how you would do on Powershell: prepend or append selected text to what's already on the clipboard with Ctrl+[ or Ctrl+] find all windows with specific text in the title and resize them in a custom way (Window+]) insert custom strings or large…

This was a good list, just for fun i had a bash at #1 (an excuse to learn as much as anything...):

prepend-selection.ps1:

    $before = Get-Clipboard
    [void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms')
    [System.Windows.Forms.SendKeys]::SendWait("%({TAB})")  # when launched, a powershell.exe opens and steals focus, this alt+tab takes focus back to the app that has the text selection
    [System.Windows.Forms.SendKeys]::SendWait("^(c)")  # ctrl+c
    $after = Get-Clipboard
    Set-Clipboard -Value ($after + $before)
Now for the impossible bit - perform this action on ctrl+[ keypress... I created a new shortcut on the desktop (in the start menu would also work) with a target of:

    powershell.exe -executionpolicy bypass -noexit -file prepend-selection.ps1
And the "start in" was set to the dir containing prepend-selection.ps1

Lastly the "shortcut key" of the shortcut was set to CTRL+SHIFT+[ -- i couldn't use CTRL+[

... and it works. Open an app like notepad, put something on the clipboard, select some other text then ctrl+shift+[ with notepad still having the focus and... wait far too long but then eventually powershell.exe opens and i have the selected value prepended to my clipboard.

0 out of 10. Would not do again, AHK definitely beats powershell for this use case :-)

For #2 i know how to do that already - create a Shell.Application com object and then cycle through the window list and set width / height / top / left to suit.

For #3 i didn't try it but i wonder if there's a mechanism where i can insert a function to be called back into window's message processing loop. Like how i imagine AHK does it. This is just a thought, i'd just use AHK before i actually tried this.

For #4 this suffers the same issue as #1 with the "define a keypress" limitation but otherwise it's just an exec + focus window + send keys (likely with some hacky sleeps in between).

Re: Developer and Power Users Tool List for Windows

#155
post #57
post #55

Funny, how big part of the list are Linux-origin projects or WSL. How about really making the switch to Linux instead of trying to make Windows function like Linux?

I've been using WSL and a lot of unix tools on Windows. I have a simple reason: Windows is a much better desktop environment. I tried to switch from macOS to Linux. I've found workarounds / alternatives to almost all of my issues on Linux. One issue seems to be unfixable though; I have a 4K monitor and pretty much required to use fractional scaling. Windows and macOS does it perfectly. I had good luck with Pop!_OS bu…

Haven't used desktop Linuxes or Windows for about decade as macOS + Linux servers has provided useful common ground for both use cases. But even ten years ago KDE was a lot more nicer to use than Windows and I would assume they have gone a lot further in the mean time. For HiDPI stuff that sound real PITA if that hasn't been yet worked out :/

Re: Developer and Power Users Tool List for Windows

#157
Once Windows 10 supports linux GUI apps by default in WSL 2, that will be huge. At that point it should be easy to develop completely in Linux, only on Windows.

I've gotten this working with some extra tools, and the experience is pretty good, but it is still a bit too fiddly for me to consider it as a primary solution for everyday development.

Re: Developer and Power Users Tool List for Windows

#158

Earlier quoted context omitted.

> I wonder why the author recommend winget but not scoop. Scott Hanselman works for Microsoft and is a prominent advocate for the .NET/Microsoft ecosystem so his recommendations are likely to skew towards native MS tools in the first instance. Nothing wrong with that as long as you consume his material through that lens! That said, I'm quite surprised I hadn't heard of Scoop[0]. Looks interesting... [0] https://scoop…

> ... native MS tools ... I recall that the developer of AppGet claiming [0] that Microsoft effectively "stole" AppGet from him. [0]: https://medium.com/@keivan/the-day-appget-died-e9a5c96c8b22

I don't believe it. Embrace, extend, and extinguish is dead. /s

Re: Developer and Power Users Tool List for Windows

#159

AutoHotKey finally fell off my list, to be replaced by... powershell. After about 8 years of utter disdain for the mistake that is powershell, I’m actually enjoying giving it a proper test drive. I can’t quite believe it myself but i chsh’d to pwsh on my mac and linux boxes too. Goodbye 30 lines of AHK just to capture and parse the output of a RunWait (in practice it was better to create a WSH com object and exec the…

The AutoHotKey programming language is quirky and weird, even when compared to Powershell's quirkiness, but there are classes of things that AutoHotKey can do that I don't know how you would do on Powershell: prepend or append selected text to what's already on the clipboard with Ctrl+[ or Ctrl+] find all windows with specific text in the title and resize them in a custom way (Window+]) insert custom strings or large…

AHK language sux. Shame it is not Lua instead of it.

But tool is awesome, and community is great.

Re: Developer and Power Users Tool List for Windows

#160
post #114

Earlier quoted context omitted.

Tangentially related, but I wish that running elevated from the shell was more ergonomic. I want to just be able to have a sudo-like command to run elevated from an otherwise non-elevated shell. Instead I have to launch a new instance of the shell host that's elevated. ConEmu makes this feel more seamless by doing some window manipulation hacks to bring elevated and non-elevated into tabs of the same window, but Wind…

>I want to just be able to have a sudo-like command to run elevated from an otherwise non-elevated shell. Won't the runas command ( https://docs.microsoft.com/en-us/previous-versions/windows/i... ) let you do this - run a command as Administrator without opening another command/powershell prompt?

cinst gsudo

Works like on linux. Runas and friends are junk.

https://github.com/gerardog/gsudo

Post reply on HN