F*ck Entity Framework with a big purple cactus and teach yourself some proper database querying instead. Databases deserve some love and attention, they're way too powerful to be treated like some black box in which you cram some data by magic.
Best posts made by AlexMedia
-
RE: Entity Framework, Code First and relational data
-
RE: Samsung, bunch of *****
Also, talking about the software on Samsung Galaxy phones...
When the original Galaxy S launched, it had Touchwiz on it. With every major revision it got worse, and Samsung have received heavy criticism for it.
They started tweaking it to make it better and more lightweight. They continued doing so until the software got into a state which was no longer recognisable as Touchwiz. At the end of 2016, it was rebranded as Samsung Experience. A software update for the Galaxy S7 pushed the new SE to that device, the S8 and later devices launched with it.
And it was pretty good: it was a clean UI and added a bunch of useful features to the OS. Just like OxygenOS on the OnePlus devices, it doesn't get in the way of what you're doing and actually adds value.
With the release of Android Pie for the S9, Samsung have done away with Samsung Experience and replaced it with One UI. It's a complete redesign of their software, and I actually quite like it. It's a bit different and takes some getting used to, but it's definitely good.
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
@boomzilla I mean, not even the DiscoDevs made the choice to go with NoSQL. :D
-
RE: Pasting from Excel
JIRA also fucks this up bigtime. If you're copypastaing from OneNote to a description/comment field in JIRA, it wants to upload the note as an attachment.
-
RE: https is down on the main site
@blakeyrat said in https is down on the main site:
Ben are you saying that Chrome no longer uses friendly error-pages? Is that it?
I've done some testing, it looks like Chrome only sends a friendly error page when it only gets an HTTP status code. If there's even a single letter, it chooses to display that instead.
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
@coldandtired said in How can this be so wrong??? (AKA the Discopocalypse thread):
@izzion said in How can this be so wrong??? (AKA the Discopocalypse thread):
Maybe over 500. I was quite active there but then, the admin went rouge and started to impose a lot of censorship and is constantly dishonoring the request to remove my account.
Once you go rouge you never go...euge?
Methinks this would be a good use case for GDPR.
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
Yeah, those ban extensions are probably something to do with me... @sam banned me and extended everyone else's bans back in 2016 while I was just providing some input. In a friendly and constructive manner.
edit: yup, I was right. Within 24 hours of posting this I got permabanned by
-
RE: Emoji do not get rendered with EmojiOne
@ben_lubar said in Emoji do not get rendered with EmojiOne:
@bb36e said in Emoji do not get rendered with EmojiOne:
I think this may have changed recently.
Nope. We've never had any system in place that would replace single Unicode codepoints with HTML tags.
does do such a replacement, if I remember our adventure with said horse correctly?
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
@Onyx said in How can this be so wrong??? (AKA the Discopocalypse thread):
But... You... WHY ARE YOU EVEN USING THE HISTORY API AT ALL THEN, YOU FUCKS?
To make sure that the address bar always brings you back to the right place?
-
RE: Mentioning User ending with Underscore: FAIL
>We should resolve this issue @eviltrout either by disallowing trailing _ or otherwise.
disallowing trailing _
Filed under: also, raw
Bwahahaha, what an idiot.
-
RE: Even More DiscoMD5 Nonsense
But how does this work? Why does it mention someone if you do an at-hash mention?
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
I think the 'SECURITY' tag is incorrect, it's not like this 'feature' allowed people to steal cookies. All we could do is mention @LB_.
@tufty: they used the MD5 hash to store the original text in an array, and replace the block with the hash. They do this to prevent their Markdown parser from falling flat on its face when it encounters a code block. After Markdown parsing the original text is put back in. They have now swapped that md5 hash with a random GUID.
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
Now that I give it another thought, this change does fix one hole: the one that allows you to go over the maximum post length, and potentially DoS the client.
-
RE: Lookit! Localization tags!
Downvotes are toxic and have no place on the internet at all!
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
@boomzilla said in How can this be so wrong??? (AKA the Discopocalypse thread):
He's just following orders.
No, it's not just following orders. From the conversations that I've had with Sam so far, I think he has spent too much time in the vicinity of Jeff and that he is copying some of Jeff's character traits.
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
Really? Jeff forked out some cash to get us off of Discourse?
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
I got an e-mail too. It was mostly about us being poopyheads, Sam defending Jeff, and Sam once again calling us poopyheads when I said we acted like that because Jeff was being the poopyhead.
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
@mrguyorama It's not Jeff though, it's 's a.k.a. Sam's doing
-
RE: :wtf: How can this be so wrong??? (AKA the Discopocalypse thread)
That's pretty much it, except for . That was 's doing.
-
RE: Singleton pattern... the wrong way.
@cartman82 The only UWP app I have ever written didn't go much beyond "Hello, world" so I wouldn't know.
I mostly write ASP.NET MVC or WebAPI stuff, where you can register a DependencyResolver which does the magic for you.
-
RE: Me, Leslie and Ron
@RaceProUK
Whenever I see something like that I usually nuke it from orbit. -
RE: Ingenious FizzBuzz solution
Using
strlen()
to determine what to print? Brillant! -
RE: My life was empty and had no meaning, but then I discovered regions
CodeMaid has a nice option regarding regions: it can remove all of them.
I used to put everything in regions (or rather, have a plug-in do that) because I felt it looked "cleaner", but I changed my mind on that. If you keep your code nicely sorted (something which CodeMaid can also do) there's no need for regions.
If you need regions to group members of a certain class because said class does multiple things, you've got other problems to tend to.
-
RE: Signs your code is unmaintainable
@Tsaukpaetra said in Signs your code is unmaintainable:
@AlexMedia said in Signs your code is unmaintainable:
Console application #4 invoked a "dynamic report generator". This meant that the application called a stored procedure, providing it with the name of a "report" to generate. This in turn read the SQL from a table and used the SQL Server variant of eval to get the data.
I recently finished the bare bones work for this!
What is wrong with you?!
@lucas1 said in Signs your code is unmaintainable:
Entity Framework is total shite. It takes so fucking long to do basic queries compared to other light weight ADO.NET wrapper libs that are soo much better than do like 75% of what EF does.
In my view Entity Framework is okay, but you have to get a really good understanding of how EF works and why it works in the way that it does.
If you leave everything to its default settings (lazy loading, proxy creation enabled, and so on) it will produce monstruous queries that take ages for SQL Server to process, and later on EF needs quite some time to 'materialise' the resultsets back into objects. If you do proper statements, EF shouldn't be much slower compared to plain old ADO and doing the mapping to/from objects yourself.
-
RE: Agile taken tooooooooooooooooooooooooooooo far
@Magus said in Agile taken tooooooooooooooooooooooooooooo far:
But honestly, structurally, this makes a great deal of sense.
Maybe, but only if a company truly commits to it. Which many are not capable of doing as they're risk averse enterprises.
-
RE: Twitch Installs Arch Linux
And the place was getting flooded by bots, which was ruining the fun for everyone.
At some point they started to type
ping 8.8.8.8
(the Google DNS server) and almost everyone was typing the exact same letters one at a time. -
RE: Azure CLI installation
@dkf I guess I haven't had enough coffee yet. When I reran the command I totally omitted the sudo and it finished installing just fine.
@sloosecannon I know what PATH is, I just don't understand the question. Why does it bother asking in the first place? If it is that important, why doesn't it add itself to my $PATH by default and print a "for convenience I've added myself to your $PATH. You're welcome."?
-
RE: Azure CLI installation
Nah, when I typed that command I hadn't consumed enough caffeine yet.
Also, I've got Azure CLI working. It's... interesting... but nowhere near as sophisticated as the Powershell equivalent.
-
RE: Octopus Deploy (and overly flat designs in general)
Multiline textareas in Material Design are poorly designed, I think because Google's preferred behaviour is that they "autosize".
I've played with Octopus 4 and I see the same behaviour. As Octopus 4 is built using React, I tried the textfield component on their website on Chrome 65 and I see the same behaviour happening. However...
#1 works, but only when I double click the white space above the label (The Angular version of MD allows single clicking)
#2 works as expected
#3 also just works@Jaloopa which browser do you use?
-
RE: I just tried to use a network projector
Last time I tried, Quality Centre makes a similar complaint (except it wants IE10) when you try and launch it with IE11.
The "Quality" in the name of that product does definitely not refer to the product itself.
-
RE: WordPress? php error showing on Oxford Online English Dictionary
The usable things ARE the nice things.
Agreed. The people at Wordpress have done a great job in their user interface design, which is why their software has become as popular as it is. The quality of the underlying code doesn't matter at all to, say, Ms Tina L'Hipstรจr who wants to blog about fashion. It's just got to work.
See also: the popularity of the iPhone.
-
RE: I can't unlock my phone. I am TR :wtf:
The exact same thing happened to my mom a few weeks ago. She had bought a tablet and I was helping her with setting it up. As she has forgotten the password to her Google account I advised her to reset it, which she did.
A while later she wanted to look at her phone, only to discover the damn thing wasn't letting her in anymore. Android simply refused her password, no matter what we tried. ADM was of no help either.
We ended up wiping the phone...
This was on a Motorola G 4G (2014)
-
RE: A few questions about Azure VMs
@anonymous234 Yeah, Microsoft's naming strategy is still pretty horrible from time to time. I also don't understand why Cloud Services aren't part of the App Service offering - the intended use is already in the bloody name!
-
RE: What style of CSS class names should I teach?
Isn't this what BEM is for?
-
RE: Build on deploy in VSTS
Maybe you can have your test code dropped as a build artifact and then run it from your release definition?
Or else, add a PowerShell step which downloads the code from somewhere else and then run it?
-
RE: VPN suggestions for circumventing NAT
I have a Raspberry Pi in my home, and used PiVPN to set up an OpenVPN based VPN server on it. It was a breeze to set up and works great. It should also work on any VM I suppose.
-
RE: Is there something like an intro or a short manual for Powershell targeted at those who know lots of Unix shell scripting?
The first thing you'll have to learn: you are not passing around strings like in bash, you are passing around objects instead. And that makes for some pretty cool features.
For example, take the following snippet:
$items = ls | where { $_.Name.Contains("S"); } # Takes all items in the current folder whose name contains the letter S $sorted = $items | sort LastWriteTime -Descending # Do some fancy sorting $sorted | ConvertTo-Csv -NoTypeInformation | Out-File test.csv
This takes all items in a folder where the name contains a letter S, sorts it by LastWriteTime, and then dumps it into a CSV file.
-
RE: Is there something like an intro or a short manual for Powershell targeted at those who know lots of Unix shell scripting?
If you do
Get-Help ls -Full
the help includes information about the type of the returned object. Forls
however, this isObject
because it depends on the provider - the file system returns different types than the registry.After you've done something like:
$x = Get-Item C:\Windows\WindowsUpdate.logYou can do tab completion when typing
$x.
This will enumerate through all the properties of an object. You can also tabcomplete on cmdlets and parameters. -
RE: Microsoftsale.org legit???
To me it looks like the two floors above the taco shop are home(s). I wouldn't be surprised if the guy who runs the taco shop lives there... his commute must be awesome.
-
RE: Ticketing system wanted.
Agreed. HP's bugtracker as well as their help desk software is awful.
-
RE: Ticketing system wanted.
Personally I prefer to see relative time if the event has happened less than 24 hours ago, after that I like to see absolute time instead.
@blakeyrat said:Oh it does the dumb Discourse date hiding bullshit. "1 day ago". I had a little mini-rant to our IT people saying they need to figure out how to fix this, because when we're in crunch time doing our bugs for UAT (user acceptance testing), we need to know when that comment was made TO THE MILLISECOND. (Yes you can mouse-over to get the real time, but it's a fucking pain.) That's still not fixed on our instance; not sure if JIRA even allows you to change that.
Just curious, but why is it so important to know to such detail when a comment was made? Aren't they shown in chronological order?
-
RE: Why can't I rename a folder?
@RaceProUK said in Why can't I rename a folder?:
@Yamikuronue IIS may not be listed as
iis.exe
; I think it actually usesw3wp.exe
because raisinsThis is because IIS is not a single process, instead there are a couple. The 'World Wide Web Publishing Service' (w3svc) service is the root process, which spawns a child worker process (w3wp) for each configured application pool.
@loopback0 said in Why can't I rename a folder?:
@Yamikuronue It looks like a folder IIS will have open if it's running, so try stopping IIS and then messing with the folder.
iisreset /stop
That stops IIS completely, which is not something I would recommend. Just stopping the application pool should be enough to free locks.
-
RE: Active-Directory-aware VPN
@asdf said in Active-Directory-aware VPN:
This is why even our manager + 1 tells us to ignore company policy. (Not in writing, of course.)
Of course not. Management wants you to be productive, but they don't want to put their own heads on the chopping block. If your manager ever wants to get rid of you (or even better, your entire department) he'll just say you were breaking company policy. And as there's no written proof of his authorisation, you're screwed.
-
RE: Recommend me PC games under 30 dollars
How much did you get in your local currency? Assuming you were paid out in Argentine pesos (as you mentioned Argentina) you would've gotten 818 pesos (which is $30).
Game pricing can vary greatly per market. Take Cities Skylines for example: the US price is $29.99, but the Argentine pesos price is 329.99. This is little over $12.
Price information source: https://steamdb.info/app/255710/
I can definitely recommend Cities Skylines - the base game is already very good and the countless mods available from the Workshop make it possible to build almost anything and to tightly control every aspect of your virtual city.
-
RE: If you give a coder a ticket
When he tries to install a different IDE, he'll need to raise a ticket with IT.
-
RE: If you give a coder a ticket
If you have to create a job opening, you'll have to conduct interviews.
-
RE: I want to buy an android phone, too!
@bb36e said in I want to buy an android phone, too!:
Ideally I wanna buy from carrier but if the phone is cheap, I'm open to buying it outright. That said, oneplus seems to be pretty sketchy and I've heard bad things about their support.
I own a OnePlus 3T and I am quite happy with it. The phone is fast, has great battery life (although it fluctuates quite a bit between updates) and is updated regularly.
OxygenOS itself is pretty neat too, it stays as close to stock Android as possible, but adds useful features here and there. There's no bloatware or UI-horribleness like you see on Samsung devices.
I haven't had to deal with 1+ support yet so I can't tell you about that.