Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
useerup
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
useerup
11y ago
And you just built du with a single line of PowerShell. Also, you demonstrated the full syntax. The short form would be (leveraging aliases, positional parameters and unambiguous short parameter names): For du: ls C:\Windows\ | measur
92.
▲
by
useerup
11y ago
Both consumer Skype and Office365
93.
▲
by
useerup
11y ago
> With the weakening of the USSR in the late 70s and 80s and its collapse in the early 90s, social democracy has gone into a tailspin crisis Tailspin crisis? Did you read the article? The Scandinavian countries weathered the financial cr
94.
▲
by
useerup
11y ago
The "financed by oil" is exclusive to Norway. No other Scandinavian/Nordic country enjoys similar fortune. But it may highlight another point that could be made: Instead of corrupting the country similar to the oil-rich arab
95.
▲
by
useerup
11y ago
I did not read the article as saying the original (1960s) success of "Scandinavian Design" was fueled by a fascination of the welfare model. Rather, I took the impression from the article that the latest revival which the design
96.
▲
by
useerup
11y ago
These are categorized as experimental devices and Windows 10 is free to use on those devices for development and testing. The UEFI secure boot requirements only apply if you want to distribute a commercial product and want to slap a "D
97.
▲
by
useerup
11y ago
That certainly was a proud time of the Danish people. However, the jews were also forced to pay vast amounts - in cash, jewelry and more - to the kind fishermen who ferried the jews over to Sweden. Not all danes participated out of kindness
98.
▲
by
useerup
11y ago
> although I imagine conservative Jewish populations are an exception I'm a dane living in Copenhagen. I am atheist as well. I really do not get what you mean by "conservative Jewish populations are an exception" to good c
99.
▲
by
useerup
11y ago
> No. The file system, is the abstraction. Adding /proc onto it is a use of that abstraction. Agree that the file system is an abstraction. Makes us think in terms of directories (containers) and files (items). Everything in the fil
100.
▲
by
useerup
11y ago
It is a file system, consisting of file system objects, like files and directories. Already exposing processes as files is an abstraction. It somewhat works because you can imagine the file representation being maintained by the process.
101.
▲
by
useerup
11y ago
This is a case of a leaky abstraction ( https://en.wikipedia.org/wiki/Leaky_abstraction ). The "everything is a file" philosophy is the real problem here. Specifically, the way a mental model of a hierarchy i
102.
▲
by
useerup
11y ago
I was fed up with the quagmire of other languages, so TrumpScript was a godsend. I was angry! angry! angry! but Trumpscript is the solution! Trust me, it just is! Some observations: An innovative new statement construction can be used to ma
103.
▲
by
useerup
11y ago
> It doesn't look like Windows does anything at all regarding preventing programs from binding to a particular port Correct. By default a program may bind, but inbound traffic is blocked. > and it also doesn't look like an A
104.
▲
by
useerup
11y ago
> Does WF allow you to restrict which programs can be bind to a given port? Yes. > This [0] doesn't make it seem like it can Indeed. Also check out the cmdlets of the PowerShell NetSecurity module: gcm -mod netsecurity Ba
105.
▲
by
useerup
11y ago
> The only way it could get better is if you could dictate that only processes with a given set of UIDs or GIDs could bind to a given interface and port. Ahem. That's what Windows does. The built-in firewall (on by default on all ve
106.
▲
by
useerup
11y ago
It does. The built-in firewall will by default block any program from listening on any port, unless authorized by a rule. The article did not touch on this subject, but I believe that for this to work, the admin will have to either switch o
107.
▲
by
useerup
11y ago
> Unloading" cannot be done, unless you are aware of the load order. This is a general issue -- dlclose() is reference counted, and you wouldn't know if it actually unloaded the library. Yup. Which is exactly why Windows is mor
108.
▲
by
useerup
11y ago
> They are much nicer to use than the Windows equivalent Seriously? You find a system with global events where you must perform your own resource book-keeping to clean up the correct resources nicer than structured exception handling?
109.
▲
by
useerup
11y ago
> This is a relatively recent development PowerShell became bundled from Vista SP1, IIRC. All Windows since then has PowerShell intrinsically. So if 2006-7 ish is relatively recent, then I suppose you're correct. Relatively correct,
110.
▲
by
useerup
11y ago
In PowerShell: ls /dir -re | ? LastWriteTime -lt (Get-Date).AddDays(-7) | del i.e. 1: enumerate the files recursively (ls is alias for Get-ChildItem) 2: pipe through a filter (? is alias for Where-Object) that selects only fil
111.
▲
by
useerup
11y ago
PowerShell is miles ahead of bash, sh, ksh, zsh etc when it comes to consistency. For instance: * All of the cmdlets follow the same verb-noun pattern. * There are only 40 or so standardized verbs, with guidelines for what they should be us
112.
▲
by
useerup
11y ago
> Moreover async/await with async resource management (which C# doesn't have yet) In C#, the using statement combines with async/await . It is cool that Python finally gains proper async/await, there is no need to
113.
▲
by
useerup
11y ago
> I really hated the language you use to describe build tasks. Yup. For some reason that escapes rationality, MS chose to control the build through Workflow Foundation. And they build a horribly complicated WF "script". Pretty
114.
▲
by
useerup
11y ago
> I want double-tab to print a listing of said options so that I can see them all at once. Is this possible? In PowerShell 5 (at least in Windows 10), Ctrl-Space yields a list of matching completions. You can then use the arrow keys (ip,
115.
▲
by
useerup
11y ago
I had the misfortune of taking one of his classes on compiler construction. He was a thoroughly arrogant person with little ability to recognize that there could be other ways of doing things, and limited teaching skills. He insisted on us
116.
▲
by
useerup
11y ago
> Here's the cold hard fact stated yet again: PowerShell's object pipeline is functionally analogous to function chaining in languages like Ruby, Python, and JavaScript, not Unix pipelines. Ok, what then is the functionally an
117.
▲
by
useerup
11y ago
> Then those generated cmdlets must be instances of .NET classes, because by definition that's what cmdlets are Nope. The problem is that you searched for confirmation that cmdlets was "just" .NET classes (I really don
118.
▲
by
useerup
11y ago
> which is function chaining within a single runtime If PowerShells pipelines are merely equivalent to function chaining, then you should have no problem replicating the following very simple pipeline with function chaining in Ruby, Py
119.
▲
by
useerup
11y ago
> You are the same person who tried to falsely claim that cmdlets are not instances of .NET classes The fact stands, cmdlets can be implemented as .NET classes, but they can also be implemented through script (i.e. not .NET classes) or t
120.
▲
by
useerup
11y ago
> That's because the object pipeline is functionally analogous to function chaining within a single runtime like in Python or Ruby No it is not. See my response below.
More ›