I'm not a certified electrician, but I know a thing or two about how those things are connected. I haven't seen earth on a switch or dimmer before, so that's not much of a problem.
The colours of those wires, on the other hand...
I'm not a certified electrician, but I know a thing or two about how those things are connected. I haven't seen earth on a switch or dimmer before, so that's not much of a problem.
The colours of those wires, on the other hand...
Lots and lots of jellypotatoing when that flag is enabled, making the forums completely unusable.
I hate Teams just as much as I hate Slack. It's bad software and the engineers responsible should feel bad.
@Tsaukpaetra said in That's Windows 7 for ya:
FTFP. No, an aging hard drive cannot possibly be the reason why it now takes 5 minutes to boot instead of the New-from-factory 30 seconds.
And exactly how many programs have you installed since Windows was installed? And how many of them do all kinds of wonky business during start-up?
My install of Windows 10 is now almost a year old and it feels like it still boots as quickly as it did before.
@AlexMedia said in UI Bites:
The Clock flyout thingamagic nowadays can also show you an agenda. It's hidden by default, but you can click it:
The word in English is "calendar".
Not quite.
A calendar is a system of organizing days for social, religious, commercial or administrative purposes. An agenda is a temporally organized plan for matters to be attended to, based on what's on your calendar.
@pjh said in How can this be so wrong??? (AKA the Discopocalypse thread):
@alexmedia said in How can this be so wrong??? (AKA the Discopocalypse thread):
It's homegrown forum software, and even after running the site for 16+ years the owner still thinks making changes directly in production is A Good Idea
.. did you just on the 'why not both' meme?
I totally did.
Worst I have ever seen is property based DI on properties that are private. Externally you can no longer see the dependencies of a certain class and it's impossible to get a new instance without going through the IoC container
@asdf said in How can this be so wrong??? (AKA the Discopocalypse thread):
@AlexMedia Dafuq? Your posts was as nice and on-topic as a post can possibly be.
Today, Jeff has managed to make me hate him even more.
This wasn't Jeff's doing, it was his minion Sam's.
WTF is this shit? Are you seriously telling me that Intercourse is adding a new entry into my browser's history for every fucking post that I read?? And what's up with the scrolling? It's unusable.
And as I'm a new user, I'm not allowed to post images.
I hate the new forums already.
This is definitely fascinating. Keep up the good work, @ben_lubar!
Also, why does it take several seconds for the name suggestion popup to show? If I can write an LDAP query which crawls through 10 AD domains across 6 continents in less than 5 seconds, then surely Discourse should be able to do a SELECT TOP(5) username FROM users WHERE username LIKE '@query%'
in less than 1 second?
I disagree with you on that: in my experience the quality of discussion underneath an article nowadays is better than it was. The quantity might be lower than it was pre-Discourse, but that does not have to be a bad thing. Nobody gives a damn about cheesy oneliners from Anon29583949.
Discourse, and Paula going on a rampage every once in a while, are good reasons though.
To be fair, I like the forum-site integration, but then again I'm a forum dweller.
I see little added value in undoing the forums integration. In fact, I think we (as a community) could survive just as well if all frontpage articles actually were forum threads.
I still don't understand the reasoning behind this design 'decision', it deliberately introduced inconsistency into the product.
HTML sanitisation is hard.
It's not top-notch support, but for Jeff's standards it's pretty decent.
Someone really should tell Jeff that he should not be talking to clients. Playing an architect or lead dev is fine, but it's probably best if he delegates client interfacing to someone else.
BEM is just a way of structuring CSS. You shouldn't start with BEM as it will be very confusing for your students and it will distract them from the work they're trying to achieve.
I think you should first start with the basis (what is CSS? what are selectors? what does the "cascading" stand for?) before you move to the somewhat more advanced topics such as ways to structure your code. It's like any programming language course: first do a "Hello, world", then move to control structures (for, if, and friends) and slowly dive deeper into classes, namespaces, interfaces, and so on.
If BEM isn't your thing, that's okay. There are other guidelines for structuring CSS, such as SMACSS:
Does this mean the ***\****
or however that thing worked doesn't work anymore either?
The MD5-tomfoolery will stop working once the Discourse instance gets upgraded to the latest and greatest *cough* version. The DiscoDevs switched to GUIDs as temporary placeholders.
The whole parser-that-replaces-text thing still is batshit crazy though.
I remember being able to do this with about:
pages, at least 15 years ago. Updates to IE (and other browsers) later restricted the use of about:-pages to a couple of known addresses because the about:-protocol was being abused.
It looks like someone felt the need to reimplement the wheel, but didn't pay attention to history.
It does precisely nothing to enhance security. It does show that the DiscoDevs are still focused on enforcing 'civilised discourse' rather than, say, work on the quality of their product.
Filed under: 502 OK
@lb_ said in Azure CLI installation:
Even many Windows software installers have a tickbox for "Add to PATH variable?" so it's a pretty common question. Not sure why you're worked up about being given a choice in the matter.
I like to follow the "Don't make me think" principle. Give me sensible defaults, and give me an option to change them if I want to.
Questions like "where do you want to install?" and "add to path?" will be answered with the defaults / Yes by approximately 95% of the users, so why even bother asking for input in the first place while you just as well might propose default values and only change them if the user explicitly asks you to.
The difference is in the apostrophe:
Sep '15 = somewhere in September 2015
Sep 15 = September 15th, this year
(I found out by clicking on the date, which gave a popup with the full date.)
I've restarted the script and now it continues beyond where it broke the last time. Now it wants to know this:
===> Modify profile to update your $PATH and enable shell/tab completion now? (Y/n):
What does this even mean Why is this a question? What if I say no, won't I then be able to use it?
Hats off to you for how quick you've picked this up.
I know a certain other discussion forum software developer who would've laughed this off with a meme. Or a permaban.
It might be worth to take a look at the Entity-Attribute-Value pattern for representing the metadata of your reports.
You lose some of the advantages of an RDBMS (such as constraints, easy querying and proper data types), but if you have a really variable set of data it might be more effective than a number of tables.
You could also consider splitting the thing out into two separate interfaces, which are then both implemented by your concrete implementation. Only do this if necessary, it might not make sense.
Now here's a new requirement I forgot to mention because I didn't think of it until this morning on the bus:It occurs to me that some of the API calls take the same params. (FoobarRemoveRequest is fed into both CancelFoobar and DeleteFoobar, for an example.) In that case, the audit log, in addition to containing the communication back and forth to the API also needs to contain the API endpoint called--
Which means I'll probably have to use reflection anyway! Since AFAIK the only way to get that is by asking C# what the name of the WCF ServiceReference method is.
If you use Expression<Func<IMyservice, T>>
you can analyse the expression and determine the method name. Once analysed, you call .Compile()
on your expression to evaluate it. This does incur a (small) performance penalty.
For an example, take a look at http://stackoverflow.com/questions/20420404/how-to-get-method-name-of-generic-funct-passed-into-method
@anonymous234 They are when you use ngen
on them
It's not the answer you want to hear, but have you tried educating your co-workers about the virtues of moving to Visual Studio 2015? There's some nifty stuff in VS2015 that they might enjoy.
@dfdub said in Agile taken tooooooooooooooooooooooooooooo far:
Honestly, the terms may be stupid, but the organizational structure they describe makes a lot of sense. Flat hierarchies and cross-team collaboration is encouraged.
It can work, yes. But only if the entire company is committed to it, all the way from the top.
This sounds a lot better than what I see at my employer. The teams here are mostly isolated and work against each other, willingly or unknowingly.
That's a wholly different story, which needs fixing. But scrum/agile/squads/whatever aren't going to be a silver bullet as long as the underlying problem isn't tended to.
The "squads" model works for Spotify, because they want to work like that. They're ok with things breaking (as long as it gets fixed) and with trying new stuff. They're OK with teams self organising, as long as the teams are focused on the end result.
If you "work agile" (sprints! story points! burndown charts! retrospectives! silly team names!) but you still have to deal with a change management board, have to deal with budget approvals for tiny things (such as upscaling the size of your SQL Azure database) and have little input in what happens overal, you're not working agile. You're being fooled.
If the position has been open for that long they've had a hard time finding anyone who is willing to support VB.Net - so you've got the upper hand here. Just be upfront about not being a master in VB.Net (you aren't) but that you are good at C#, know the .NET Framework, and that you're willing to learn.
VB.Net is not hard. Picking up on someone else's codebase is much, much harder.
@weng said in Someone tell me about GPO - Group Policy Objects:
Chrome would have to intentionally check whether it's on a domain before choosing whether to honor such a registry setting. Which would both be stupid and a thing I'd expect Chrome to do.
The reason for checking if the machine is domain-joined is to stop malware from force-installing an add-on which siphons off your personal information to Bumfuckistan.
Why do you do a get of the user, and then a reload of that same object? You don't store your DbContext somewhere, do you?
If you do, stop doing that because a DbContext is absolutely not thread-safe and re-use will cause all kinds of funky issues.
edit: and I agree with what @LB_ wrote. Creating a new user if one doesn't exist is not really needed, I think? Why store users that you don't know anything about except their login name?
@raceprouk said in Contempt Culture:
@alexmedia said in Contempt Culture:
@xaade said in Contempt Culture:
Is there another language that lets you throw text files on a server and have a working backend for a website?
ASP.NET still allows you to throw an ASPX on the web without requiring a DLL or anything. Something like this is enough:
<%@ Page Language="C#" %> <% Response.Write("Hello, world."); %>
Just like the good ol' days of Classic ASP.
And anyone who does that in production code deserves to have their thumbs removed and replaced with chopsticks.
Agreed, this isn't how you should run a production .NET website.
A while ago I had to do a bulk update of about 250 items in production. There was no web service which I could use, so I had to do the update from within the context of the application. At that time I plonked an .aspx into the webroot, called it from my browser, and deleted it when the update was done.
The alternative would've been doing 250 updates by hand, but why would anyone working in IT want to do that?
To make matters worse, it's everywhere. Handrolled JSON in views, returned from controllers, AsJSONString();
in interfaces, and so on.
You could use the let keyword:
c_BaseURL = from x in globalattribs
let url = x.Where(x.Key == "URL").FirstOrDefault()
select url != null ? url.Value : "";
@blakeyrat said in Chrome only allows 1000 iframes:
@ben_warre Mac Classic had a limit of something like 255 controls per window. The documentation for this said something like, "if you run up against this limit, your design is very wrong and should be revisited."
Windows also has such limitations.
This is also why IE draws its own controls (such as radio buttons) instead of offloading this to the window manager: they want to prevent a malintending site from breaking the browser.
I have a disliking for that particular way of doing DI, I highly prefer constructor based dependency injection.
From what I can tell, PeerTube is a decentralised p2p variant of YouTube. I have no idea how it's exactly supposed to work, so here's a Wikipedia page (in French, because of course it's only in French):
And some Github repo:
Ever since the last feature upgrade, my Windows 10 stopped auto-installing updates. Instead, it nags me almost every day that it "needs some updates". 9 out of 10 times, there are definition updates for Windows Defender.
Just install the bloody things already, I don't care about it.
$200 million for some fetch-transform-insert work?Damn.
Well, it looks like Google got a hold of this. Searching for the same query now no longer gives me the phone number of the suicide prevention hotline.
Well, like people have written on SuperUser: to protect your reputation. You don't want to get linked to stuff like credit card fraud, DoS attacks or child pornography because you willfully neglected to stay current.
Also, it's being about a good citizen. You don't leave your garage unlocked and never look in there ("my house is fine as it is, I don't need the garage") because people will eventually use it for things you did not anticipate. For example: shooting porn in there, using it for drug trafficking, or whatever. The same applies to computers.
And "learning new UIs at 56" is a problem because? If your dad buys a new car, he'll have to learn a new user interface. Surely it will look somewhat familiar (pedals, steering wheel, clutch, indicators) but some things will be different (position of the reverse, how the radio works, that nift cruise control things, etc.) and he will have to learn about those too.
My dad is 63 and he has always followed the trends. He was among the first to upgrade to Windows 10 and I haven't heard him complain once.
Earlier today, a friend of mine (who does iOS development fulltime) was gushing over Swift and its impressive new features. He mentioned Generics (despite now fully knowing what it is), "Optional" types (a.ka. 'this integer can also be null') and non-nulleability by default for some types (except when you mark them as Optional).
So I welcomed him to 2005, back when Microsoft added Generics and Nullable Types to the .NET Framework 2.0.