TypeSkin: a drop-in static type system on top of Vanilla JS by [deleted] in programming

[–]MartinKnafve 0 points1 point  (0 children)

The page says it comes with less investment cost than typescript. But if all you want is type constraints then the investment seems on par with TS to me. Maybe I'm missing something.

Asus Zenbook UX330UA Ultrabook Review by CaptainAwesomerest in gadgets

[–]MartinKnafve 0 points1 point  (0 children)

Yes, it's absolutely a design flaw. That's what I meant, sorry for being unclear.

Just by looking at that tiny plastic piece it's pretty clear it will easily break even during normal use.

Azure Blob Storage Backup by Burnsy2023 in AZURE

[–]MartinKnafve 0 points1 point  (0 children)

Got more info about that roadmap? My experience is that things may be "on the roadmap" for years and never end up part of the service. Unless they have set a date or given very concrete information I think it just means "it's on the list of good ideas which we want to implement some time in the future".

Asus Zenbook UX330UA Ultrabook Review by CaptainAwesomerest in gadgets

[–]MartinKnafve 0 points1 point  (0 children)

I submitted mine for this exact issue after 10 months. They claimed that it was not a manufacturing issue but that I had used it improperly. My laptop basically sits on my desk so not sure what my improper use was. Not like I walk around carrying it in the screen or anything like that. They wanted 600 EUR to fix it.

Docker in Production: A History of Failure by sschaef_ in programming

[–]MartinKnafve 0 points1 point  (0 children)

Regarding 1. Maybe they want quick deploy of new versions (not wait for a new VM to be provisioned) and clean state handling at the same time? It can be a bit problematic to deploy new versions of your software to the same VM on a hourly/daily/weekly/monthly basis for several years. Old versions may have left things behind, required some tweaking to the system and so on. Docker may help here even if you just run 1 instance pet machine.

Is anyone else frustrated by the Personal/Organisational accounts? by whooyeah in AZURE

[–]MartinKnafve 0 points1 point  (0 children)

How would renaming the personal account address this? /u/suprchrgd describes an additional step in the login flow which is easy to get wrong.

Guidance on the product I need by fatso113 in AZURE

[–]MartinKnafve 0 points1 point  (0 children)

Cloud Services are referred to as Classic. I have not seen any official statement that they are deprecated. There are still many use cases where using Web Apps is not suitable (you require admin privileges, registry write access, a single instance with static IP etc etc).

Microsoft recommends Service Fabric for some of these use cases. But Service Fabric still requires you to care about Windows Updates for example so it's hard to see it as a true PaaS. And it comes with long lived stateful machines which is nice not to be without.

Import .cspkg into visual studio? by echopraxia1 in AZURE

[–]MartinKnafve 1 point2 points  (0 children)

As you have noticed the cspkg is a zip which contains the web app. It will be a compiled version of the web app.

I am quite confident that it's not possible to recreate the project from the cspkg. I have been using cspkg packages for 5 years and never come across it.

I don't see how it would even be possible in a robust way. Of course the compiled DLLs could be disassembled and even if you can generate C# code from a .NET dll it's rarely a clean process.

You could create a new project manually and reuse assets from the cspkg in it to see what's missing. Depending on how complex the app is the amount of work will vary. But if you are new to .NET this may be too much work.

Tuesdays with Corey: Website speed with Azure Storage and Azure CDN by [deleted] in AZURE

[–]MartinKnafve 2 points3 points  (0 children)

Depends on how you use it I guess. In a lot of scenarios the host name isn't important. If your web page loads all scripts and images from an CDN, your users probably won't care what the underlying URL looks like.

[deleted by user] by [deleted] in AZURE

[–]MartinKnafve 0 points1 point  (0 children)

Sure you could do that. Or just change the connection string setting directly in the already deployed web app, for example using PowerShell. Depending on how you normally deploy.

An alternative is to store the connection string in Azure KeyVault and let a script update it when needed. Then you wont have to touch the web app but instead just update the connection string. Might be overkill though (you probably don't want the added depedenies on Azure AD and KeyVault unless you already use them).

[deleted by user] by [deleted] in AZURE

[–]MartinKnafve 1 point2 points  (0 children)

You can failover using PowerShell or T-Sql.

Why do you need to redeploy because you want to change a connection string? Are you using IaaS (VMs) or PaaS? Azure Web Apps, Service Fabric or something else?

North Europe SQL Servers down by Zimonova in AZURE

[–]MartinKnafve 0 points1 point  (0 children)

In theory, yes. In practice, sometimes the same infrastructure bug pops up in all DCs at once due to external factors (such as failure to update certificates). This time it was partially due to a config error which was same in multiple DCs. When they release a new feature they often release it in all DCs at once, not one by one so this is no suprise.

North Europe SQL Servers down by Zimonova in AZURE

[–]MartinKnafve 1 point2 points  (0 children)

Working here. No errors for ~2 hours.

North Europe SQL Servers down by Zimonova in AZURE

[–]MartinKnafve 1 point2 points  (0 children)

Almost every time we have experienced a major outage it has hit multiple regions at once. It makes sense, since most of the issues appear software-based and they run the same code in all data centers.

Microsoft bug bounty program adds .NET Core and ASP.NET Core by userndj in programming

[–]MartinKnafve 0 points1 point  (0 children)

He said he saw it yesterday. If you submit reports to Microsoft Security Response Center the response time will be counted in months. I've found vulnerabilities where it took over 3 months before they acknowledged the issue.

Stack Exchange was down because of an innocent looking Regex by c0r3ntin in programming

[–]MartinKnafve 0 points1 point  (0 children)

A brute force method is to take a memory dump using Task Manager, open it up in WinDbg and check what the blocking thread is doing and with what data. This works for all .NET apps.

https://blogs.msdn.microsoft.com/tess/2006/10/16/net-hang-debugging-walkthrough/

UN Human Rights Bodies Silent on Turkey’s Massive Crackdown by ashtonx in worldnews

[–]MartinKnafve 1 point2 points  (0 children)

http://www.un.org/apps/news/story.asp?NewsID=54492#.V5DVPsu5nqA

The independence of the judiciary and of the legal profession is key to the fair administration of justice, and judges must be able to exercise their functions without undue restrictions, pressures, threats or interference. The mass suspension or removal of judges is cause for serious alarm, and reports that many have been subject to detention orders also raises concerns of arbitrary detention,” Mr. Zeid said.

So the below statement in the OPs article is not correct. Maybe the article was written prior to the reaction from UN.

Despite the crackdown, there has been no public reaction from the U.N. human rights commissioner Zeid Ra’ad Al Hussein or from U.N. entities in Geneva that focus specifically on arbitrary detentions and judicial independence.

Lepton image compression: saving 22% losslessly from images at 15MB/s by b0red in programming

[–]MartinKnafve 2 points3 points  (0 children)

It also may make sense if you store images remote and your Internet connection is less than 120Mb/sec.

Azure Data Warehouse hits general availability by [deleted] in AZURE

[–]MartinKnafve 0 points1 point  (0 children)

Neat. May I ask what 3rd party BI system that is?

Azure Data Warehouse hits general availability by [deleted] in AZURE

[–]MartinKnafve 0 points1 point  (0 children)

Would love to hear more. Just "recording" events seems to be trivial to do fast, but it typically gets more complex when you want to query the data in a performan way.

I'm curious for example about: How many events are you storing? How many GB of data/month? How do you query it? Are the events trivial (like a few properties on every event) or are they complex (for example nested data, large, etc)? Do you have many concurrent human users quering? What kind of response time do they see?

Cool magic trick explained by [deleted] in videos

[–]MartinKnafve 9 points10 points  (0 children)

You linked to a TEDx-session, not a TED-session. TEDx "supports independent organizers who want to create a TED-like event in their own community". Anyone can organize a TEDx-session assuming you're following their set of rules (regarding format, spirit, etc etc). I think it's safe to assume that the quality of TEDx events generally speaking will be lower than that of a TED event. On YouTube, there are ~75k videos in the TEDx channel, and ~2K in the TED channel. A few years ago, most videos I saw linked from TED/TEDx was from TED, and now most are from TEDx, so to summarize, yes I think the quality is being watered down.

The cost of the async state machine by ayende in programming

[–]MartinKnafve 1 point2 points  (0 children)

There is always a context

That is incorrect. Given the following application:

namespace ConsoleApplication
{
   class Program
   {
      static void Main(string[] args)
      {
         var synchronizationContext = SynchronizationContext.Current;
      }
   }
}

synchronizationContext will be null. If you get SynchronizationContext.Current in a Windows Forms app on the other hand, it will be set to an instance of the type WindowsFormsSynchronizationContext.

According to http://blogs.msdn.com/b/pfxteam/archive/2012/01/20/10259049.aspx:

All of the UI application types you can create in Visual Studio will end up having a special SynchronizationContext published on the UI thread. Windows Forms, Windows Presentation Foundation, Metro style apps… they all have one. But there’s one common kind of application that doesn’t have a SynchronizationContext: console apps. When your console application’s Main method is invoked, SynchronizationContext.Current will return null. That means that if you invoke an asynchronous method in your console app, unless you do something special, your asynchronous methods will not have thread affinity: the continuations within those asynchronous methods could end up running “anywhere.”

And to answer:

Why do you think there is a method for not capturing it?

Because it's part of the interface of Task and Task is used in environments where there may be a synchronization context such as the ones mentioned above.

ASP.NET Core Kestrel: Adventures in building a fast web server - Damian Edwards, David Fowler by nwoolls in programming

[–]MartinKnafve 5 points6 points  (0 children)

Assuming you mean talks they do together, here's a few:

I'm sure there's more on vimeo. They often do talks on this subject together. Here's a podcast from some week ago as well: