News for hackers. Stuff that matters.
Re:Satya Nadella – Microsoft's CEO by leobelle on Tuesday February 04, 2014 @09:13AM (#7177450)
It looks like Microsoft is starting to head in a better direction given their backtracking on "metro" style for desktop applications. I hope they develop more software for non-Windows devices. I really wouldn't mind using Microsoft software on non-Windows. I only use Windows for testing and gaming.

I wish Nadella and Microsoft luck, and hope they make a real turn around.

As a side note it is also exciting to see some more diversity in the top ranks of one of our biggest technology companies. If I were a young aspiring engineer from India, or anywhere in the world really, I'd feel pretty good about the future right now.

Also amazing is that they're publishing and embedding Google YouTube videos on that page.

Re:Satya Nadella – Microsoft's CEO by tomswartz07 on Tuesday February 04, 2014 @09:25AM (#7177523)
I find it particularly interesting that they highlighted his work with *Nix systems in his early career.

I don't want to draw any conclusions, but I have a good feeling about that.

Re:Satya Nadella – Microsoft's CEO by StudyAnimal on Tuesday February 04, 2014 @09:50AM (#7177687)
I found it interesting they didn't mention anything about his career at MS since being on the NT team in 92.
Re:Satya Nadella – Microsoft's CEO by Touche on Tuesday February 04, 2014 @11:02AM (#7178238)
I think the #1 thing Microsoft needs to do in order to right itself is become a platform that developers love, which isn't the case today. Becoming fully posix compliant would be a great start to that.
Re:Satya Nadella – Microsoft's CEO by r00fus on Tuesday February 04, 2014 @01:35PM (#7179349)
The CLR, .NET and Visual Studio are quite nice, some of the best in the IDE world.

However, it's Microsoft's tendency to squeeze and coerce compliance that drove people away. Proprietary everything means you don't play nice with everyone else.

Now the web has leveled the playing field somewhat, and they can't be coercive to be successful. It'll be interesting to see them play will on other companies' turf and platforms.

Re:Satya Nadella – Microsoft's CEO by ygra on Tuesday February 04, 2014 @11:06AM (#7178258)
They've been there and no one used it.
Re:Satya Nadella – Microsoft's CEO by nailer on Tuesday February 04, 2014 @11:50AM (#7178564)
IIRC (old Windows NT4 MCSE here) POSIX subsystem never had access to TCPIP, which made it pointless. It was a sales point, rather than a genuinely useful subsystem.

That said, I think OSs are irrelevant: people are happy to pay for apps, cloud hosting etc and MS are happy to provide it to them, Windows or not, for money.

Re:Satya Nadella – Microsoft's CEO by hga on Tuesday February 04, 2014 @01:02PM (#7179122)
I don't doubt it, it was only Posix.1, required by the Federal government (https://en.wikipedia.org/wiki/Microsoft_POSIX_subsystem).

Per http://www.unityisplural.com/2012/01/windows-posix-complianc... due to a procurement lawsuit in 1995 the Coast Guard was forced to accept a NT based "open system" bid. I don't know if they actually cared at the time, but the UNIX(TM) losing bidders certainly did, and it certainly made a big difference in subsequent adoption of NT/Windows.

Re:Satya Nadella – Microsoft's CEO by tanzam75 on Tuesday February 04, 2014 @06:16PM (#7180900)
Microsoft acquired Interix in 1999. That was a much more complete POSIX subsystem than the one that originally shipped with NT.

Another lost opportunity. Microsoft could've captured the academic and web-developer market that eventually turned to OS X as a client OS.

Re:Satya Nadella – Microsoft's CEO by Touche on Tuesday February 04, 2014 @11:22AM (#7178371)
They abandoned it when they dominated developer mindshare, which they do not today.

Also, I'm not talking about a posix layer that is all but hidden, I'm talking about making Windows a posix system. Coreutils (or something like it), a free compiler, a terminal.

Re:Satya Nadella – Microsoft's CEO by jasomill on Tuesday February 04, 2014 @01:16PM (#7179219)
Microsoft already provides "something like" coreutils, free compilers, and a console subsystem. While these things could use considerable improvement — particularly the console subsystem — I'm not sure that the best approach for either Microsoft or the market is to encourage a POSIX/GNU monoculture. I'd rather see Microsoft incorporate good ideas from the competition into future products, and vice versa.
Re:Satya Nadella – Microsoft's CEO by leobelle on Tuesday February 04, 2014 @01:57PM (#7179513)
Well sure, I guess my problem is that the current console is terrible, including the powershell.
Re:Satya Nadella – Microsoft's CEO by marshray on Thursday February 06, 2014 @02:20AM (#7189144)
Console window aside, what do you think of Powershell as a shell/scripting language?
Re:Satya Nadella – Microsoft's CEO by ygra on Thursday February 06, 2014 @03:42AM (#7189339)
I'd hazard a guess and say that they didn't use it much and only noticed »Whoa, I have to type Get-ChildItem instead of ls? That's so bloated, get me out of here.«

(Side note: I'm a developer, not an administrator and I use PowerShell as such – I have no clue of how to query AD or manage IIS, but I do know the language very well. I also was a technical reviewer of the PowerShell Cookbook 2nd ed.)

From my experience the language has some quirks (that are being slowly remedied in recent versions, e.g. handling of one-element arrays), but otherwise is quite well designed. The quite consistent naming of cmdlets give you enough hints to figure out what a command would be, if you only knows it exists, e.g. querying things always start with Get, projection is done with Select, etc. In a way, PowerShell is more unixy than traditional Unix utilities in that they really do one thing and only one thing. This can lead some to consider PowerShell overly verbose, because the pipeline often looks like

    Get-Things | Select-Things | Format-Things
But to me this is actually nicer because I can concentrate on each part individually and not figure out the switch to ls that tells me the file size. And well, PowerShell passes objects through the pipeline so most of the time you can cut text processing to a minimum because you already get what you need directly (which is not to say that text processing is poor in PowerShell – -match, -replace represent grep and sed and switch -regex is very nice for quickly writing parsers for semi-structured text content).
Re:Satya Nadella – Microsoft's CEO by marshray on Thursday February 06, 2014 @03:59AM (#7189392)
Thanks! Sounds like I will have to get serious about finding time to get it under my fingers then.
Re:Satya Nadella – Microsoft's CEO by ygra on Thursday February 06, 2014 @05:15AM (#7189600)
I started out code-golfing Project Euler problems in PowerShell and later noticed that because it's .NET-based it can complement .NET development fairly well. Examples below are all things I did recently.

Need to fiddle around with a format string to get it right?

    '{0:yyyy-MM-dd}' -f (Get-Date)
Or need to quickly test a web service whether the new method works correctly?

    $p = New-WebServiceProxy http://localhost/FooService.svc
    $p.AwesomeMethod()
Or quickly figure out whether a license key matches with the lib you have lying around anyway:

    Add-Type -Path key.dll
    [Key.LicenseKey]::Check('...')
For me it dramatically reduced the number of ConsoleApplication8624 projects in VS. In any case, if there are questions you can also drop me a mail.
Re:Satya Nadella – Microsoft's CEO by marshray on Thursday February 06, 2014 @05:53AM (#7189717)
Cool, thanks again
Re:Satya Nadella – Microsoft's CEO by jejones3141 on Tuesday February 04, 2014 @08:40PM (#7181414)
What I recall hearing was that wherever the standard allowed a POSIX call to just set errno to indicate "sorry, we don't support this", MS's POSIX compatibility library did so, rendering it useless.
Re:Satya Nadella – Microsoft's CEO by leobelle on Tuesday February 04, 2014 @09:27AM (#7177537)
Man, a fully functional supported bash-like terminal on Windows would be heaven sent.
Re:Satya Nadella – Microsoft's CEO by rbanffy on Tuesday February 04, 2014 @09:43AM (#7177642)
It's called MinTTY and comes with Cygwin.

I'd never even consider using a Windows machine without it.

http://lifehacker.com/5185647/mintty-gives-cygwin-a-native-w...

Re:Satya Nadella – Microsoft's CEO by coryfklein on Tuesday February 04, 2014 @11:19AM (#7178347)
Microsoft supports MinTTY and Cygwin?

/sarcasm

Re:Satya Nadella – Microsoft's CEO by mkr-hn on Tuesday February 04, 2014 @04:06PM (#7180257)
It doesn't have to. That's the beauty of an open software ecosystem.
Re:Satya Nadella – Microsoft's CEO by ygra on Tuesday February 04, 2014 @09:29AM (#7177557)
I'd take PowerShell over bash any day. If you mean the console window, that's completely independent of the applicating running inside both on Unix-likes and Windows and admittedly there are things to improve. However, there are ConEmu, Console2 and others which by now work really, really well.
Re:Satya Nadella – Microsoft's CEO by dman on Tuesday February 04, 2014 @10:37AM (#7178053)
Why are all of them column based? You cant arbitrarily resize a console window in 2014?
Re:Satya Nadella – Microsoft's CEO by Encosia on Tuesday February 04, 2014 @11:27AM (#7178417)
I use Cmder, which is nice and you can resize arbitrarily (I agree that it's ridiculous not to be able to horizontally resize a console window).
Re:Satya Nadella – Microsoft's CEO by nkerkin on Tuesday February 04, 2014 @07:00PM (#7181076)
You can with ConEmu, just drag or snap to any size you want and subsequent commands will fill any available horizontal space
Re:Satya Nadella – Microsoft's CEO by AlexeyBrin on Tuesday February 04, 2014 @12:32PM (#7178887)
Sure you can! Right click on the console window bar (top) and look in Settings. You will need to increase the horizontal buffer size or something like that.
Re:Satya Nadella – Microsoft's CEO by dman on Tuesday February 04, 2014 @05:26PM (#7180681)
Why can I resize all other windows by dragging the bottom right but not cmd.exe?

I also forgot to mention how slow text output is on cmd.exe when compared against terminals like xterm on linux. If the new CEO can improve the windows command line experience I for one would be immensely grateful.

Re:Satya Nadella – Microsoft's CEO by NamTaf on Tuesday February 04, 2014 @08:16PM (#7181337)
Because cmd.exe is a fixed width based on the character count. You can drag the height down but not the width sideways. If you right click on the black C:\ icon in the top left and go to properties, the layout tab will let you set the character count width and in turn change that, or alternatively set the font size which will scale the window to suit the character count at the new font size.

You might have been facetious to prove a point but surprisingly few know you can change those settings there, and I like making my terminal oldschool-hacker-green :)

edit: Actually, I've no idea what I've done but now I can drag the window arbitrarily and it'll just show more characters. Maybe I set a font and now can do it? I don't know!

edit 2: I made it go to 160 characters, then set it back to 80, and now it'll let me drag it out to 160 but no more? This is so confusing Microsoft is on drugs

edit 3: Oh, ok. Screen buffer size sets the 'you can resize to this maximum' whereas screen size sets the 'you start at this size'. I'll stop making edits now.

Re:Satya Nadella – Microsoft's CEO by jasomill on Tuesday February 04, 2014 @01:26PM (#7179277)
Right, but that's a considerable inconvenience compared to the usual ways of resizing a window. Also, IIRC, there's no Win32 SIGWINCH equivalent, so full-screen interactive console utilities won't respond correctly to resizing.

While there are reasonable third-party workarounds for the most pressing problems, the Windows console subsystem could use lots of love.

Re:Satya Nadella – Microsoft's CEO by RobinBlk7 on Tuesday February 04, 2014 @01:49PM (#7179458)
There is equivalent! And many applications know about it. Example? Far Manager, Vim, ... WINDOW_BUFFER_SIZE_EVENT
Re:Satya Nadella – Microsoft's CEO by Touche on Tuesday February 04, 2014 @10:56AM (#7178198)
They're not completely independent on Windows. That's why all of the attempts to make a better Windows console ultimately fail.
Re:Satya Nadella – Microsoft's CEO by gretful on Tuesday February 04, 2014 @09:36AM (#7177601)
I'd take bash over PowerShell any day. The whole Windows philosophy makes building stuff out of disconnected smaller parts harder than it needs to be.
Re:Satya Nadella – Microsoft's CEO by majkinetor on Tuesday February 04, 2014 @10:21AM (#7177934)
That is not PS problem but community problem. PowerShell is years ahead of bash. Bash community is decades ahead.
Re:Satya Nadella – Microsoft's CEO by Touche on Tuesday February 04, 2014 @10:58AM (#7178207)
That's ridiculous. PowerShell's #1 selling point, object oriented streams, is only available to .NET languages! Which is why the community will never prosper.
Re:Satya Nadella – Microsoft's CEO by Zardoz84 on Tuesday February 04, 2014 @03:11PM (#7179950)
Try fish. It's year ahead of bash and powershell.
Re:Satya Nadella – Microsoft's CEO by squigs25 on Tuesday February 04, 2014 @09:49AM (#7177683)
Exactly - the beauty of bash is that it's accessible
Re:Satya Nadella – Microsoft's CEO by ConceptJunkie on Tuesday February 04, 2014 @09:59AM (#7177765)
I use TCC from these guys (jpsoft.com). It used to be called 4NT and before that 4DOS. Basically it's a superset of cmd.exe (a super-dooper-set these days) and lets you do pretty much anything you can do with shells like bash.

If you're from a Unix background, you're probably better off running bash from Cygwin, but if you're a Windows guy, TCC is a great shell.

It's the first thing I install on a Windows machine.

Re:Satya Nadella – Microsoft's CEO by i_s on Tuesday February 04, 2014 @12:36PM (#7178925)
Agree that it is needed. In the meantime, I use M-x eshell in emacs when I have to develop on windows.
Re:Satya Nadella – Microsoft's CEO by skrebbel on Tuesday February 04, 2014 @09:19AM (#7177492)
> As a side note it is also exciting to see some more diversity in the top ranks of one of our biggest technology companies.

Because true diversity is people who look different!

Re:Satya Nadella – Microsoft's CEO by asolove on Tuesday February 04, 2014 @09:25AM (#7177520)
I'm sure his diversity is only skin deep, and that being born in Hyderabad to an Indian civil servant and migrating to America as an adult had no effect on his personality, experience, or opinions.
Re:Satya Nadella – Microsoft's CEO by chris_wot on Tuesday February 04, 2014 @09:27AM (#7177540)
He reads Russian literature, loves poetry, and watches test cricket. Seems like a pretty diverse bunch on interests to me.
Re:Satya Nadella – Microsoft's CEO by leobelle on Tuesday February 04, 2014 @09:24AM (#7177511)
I'm not sure what you mean by your reply.
Re:Satya Nadella – Microsoft's CEO by ebbv on Tuesday February 04, 2014 @10:06AM (#7177823)
It means he's one of those white racists who doesn't think he's racist.
Re:Satya Nadella – Microsoft's CEO by mason240 on Tuesday February 04, 2014 @10:56AM (#7178197)
I read it as the above person being a SJW who has a problem with Nadella being "white on the inside."
Re:Satya Nadella – Microsoft's CEO by sremani on Tuesday February 04, 2014 @12:01PM (#7178641)
He is son of an IAS officer, he is part of Indian Elite. But coming to US in 80s and making to University of Chicago means he is a real deal.
Re:Satya Nadella – Microsoft's CEO by klipt on Wednesday February 05, 2014 @04:28AM (#7182749)
I'd think a SJW would be more concerned that he's an able bodied cishet male. That's only marginally better than the dreaded able bodied cishet white male.
Re:Satya Nadella – Microsoft's CEO by skrebbel on Tuesday February 11, 2014 @01:07AM (#7216073)
That comment is basically impossible to refute. You can say it to anyone and automatically win the argument, regardless of content. You call me a racist, well, I call you a cheapskate.
Re:Satya Nadella – Microsoft's CEO by benihana on Tuesday February 04, 2014 @09:28AM (#7177547)
Ha ha ha! Because he doesn't look different enough! Get it? Cause he's basically a white guy with darker colored skin, get it? Because being born in a different country and moving here basically makes you white, get it?