WTF Bites
-
-
@PJH sounds like a very useful magic number.
-
@TimeBandit said in WTF Bites:
Sorry, we ran out of fork, so I gave you a knife and a spoon"
Use the knife to carve the spoon into a fork, idiot.
-
12345678-ABCD-0123-4567-0123456789AB
:
E_INVALID_GUID
That just means our in house guids are one more secure.
-
-
@sweaty_gammon
How dare you use our project! GTFO!
-
-
@Tsaukpaetra No idea. I was just using the installer you get from office 365 site.
-
@sweaty_gammon said in WTF Bites:
@Tsaukpaetra No idea. I was just using the installer you get from office 365 site.
The one that lets you "instantly" start running office, right?
-
@Tsaukpaetra
Setup.X86.en-us_O365BusinessRetail_{somenonsense_with_guids}.exe
-
@sweaty_gammon said in WTF Bites:
@Tsaukpaetra
Setup.X86.en-us_O365BusinessRetail_{somenonsense_with_guids}.exe
it's the one that makes a fake drive in My Computer.
-
I hate Entity Framework with a passion. Doing anything past the most trivial things becomes absolutely horrifically difficult.
-
@sweaty_gammon said in WTF Bites:
I hate Entity Framework with a passion. Doing anything past the most trivial things becomes absolutely horrifically difficult.
Well it's or "Entities". Anything more is . :P
-
@sweaty_gammon compared to?
I quite like it. If it doesn't do what you want you can usually run a sproc, or the DB connection and pure SQL.
-
@swayde I'd rather have a thin layer over ADO.NET and just hand craft the sprocs. It takes a little bit longer but not much.
-
@sweaty_gammon ADO : EF :: PS : C#. If you are doing something very small, it is much faster to get it up and running with ADO because of the boilerplate of EF. However, once your operations are scaled up enough that it gets tedious to hand-write the SQL, EF becomes much easier to build with.
-
When you are working with a DI framework scaffolding the project is about the same with something like dapper or EF.
As for it being easier with more entities and tables. I don’t see it. I am writing exports in the system and something that should take me 30 minutes is taking me several hours.
Also every example of EF is some incredibly trite system like a blog or a twitter post.
-
@sweaty_gammon said in WTF Bites:
As for it being easier with more entities and tables. I don’t see it. I am writing exports in the system and something that should take me 30 minutes is taking me several hours.
As in performance, or creating the model/selecting the data?
-
@swayde Creating model and selecting data. The relationships aren't trivial and unless you do your queries in a certain way it is an utter pain to get the right data.
-
@sweaty_gammon said in WTF Bites:
The relationships aren't trivial and unless you do your queries in a certain way it is an utter pain to get the right data.
Sounds like there should be a sproc or view or something like that to encode doing the Right Thing inside the database, on the principle of pushing the smarts to where it belongs.
-
@dkf I agree. But it has been decreed that we use EF.
-
@anotherusername said in WTF Bites:
Turns out,
LongPtr
was the problem all along -- it's new, it doesn't work, but after replacingLongPtr
withLong
it all works perfectly fine. (Nevermind that I thought the version of Excel was exactly the same... maybe there's an update that hasn't been installed or something.)As long as you don't encounter any numbers that need the full 64 bits.
-
WTF of my day: So, I want to do some tutorials for my pupils on how to do StuffTM in Word, Excel and so on.
However, as they all get Office Pro 2016 through their school account but I myself have a Office365 account (which I'm now sharing with my whole family so cancelling that one is a no-go), the icons, layout and feature are not exactly equal.
There are different icons, the tabs / labels sometimes have different names and there are extra features like those transition animations in PowerPoint. Which creates a bit of confusion sometimes if I'm using a new label but they still have the old one.
But: Office 2016 Pro and Office 365 cannot be installed side-by-side.
No problem, though, we've got plenty of MAK for Windows 10 Edu and Enterprise so I'll simply install one of those in a VM and then do stuff in there, right? So, got myself a key for Win10 Edu. Fired up HyperV, clicked on "Quick start", selected the ISO I got.
"Start". Okay, it doesn't accept my key? Oh, wait, it says right there that I should click on "I have no key" if I'm doing a fresh install. Edition select? Windows 10 Education.
"Windows-license-file cannot be found?" Huh.
Googling yielded not exactly helpful answers by some wannabe-freelance mods at the MS forums: "Is your key actually valid?" - "Motherfucker, where did I say that I even had the chance to enter the key?"
In the end, one relatively hidden answer provided the solution: Turn off dynamic RAM provisioning for the VM and use static RAM allocation only.
-
@Lorne-Kates said in WTF Bites:
If there is ever a way that I can kill someone through the Internet with a blog post
The one upthread praising the benefits of eating raw chicken seems to be on the right track.
-
@boomzilla said in WTF Bites:
@anotherusername said in WTF Bites:
Turns out,
LongPtr
was the problem all along -- it's new, it doesn't work, but after replacingLongPtr
withLong
it all works perfectly fine. (Nevermind that I thought the version of Excel was exactly the same... maybe there's an update that hasn't been installed or something.)As long as you don't encounter any numbers that need the full 64 bits.
It's a 32-bit version of Excel, so that seems unlikely.
-
@anotherusername said in WTF Bites:
@boomzilla said in WTF Bites:
@anotherusername said in WTF Bites:
Turns out,
LongPtr
was the problem all along -- it's new, it doesn't work, but after replacingLongPtr
withLong
it all works perfectly fine. (Nevermind that I thought the version of Excel was exactly the same... maybe there's an update that hasn't been installed or something.)As long as you don't encounter any numbers that need the full 64 bits.
It's a 32-bit version of Excel, so that seems unlikely.
In that case
LongPtr
is the same asLong
for you so you're fine.
-
@sweaty_gammon said in WTF Bites:
@dkf I agree. But it has been decreed that we use EF.
You can still use EF with sprocs and views. Or at least you could in 6.0 - it’s possible that’s one of the many missing features in Core.
-
@Unperverted-Vixen They get funny if I used Sprocs or Views. I don't care enough anymore to argue too much.
-
In the end, one relatively hidden answer provided the solution: Turn off dynamic RAM provisioning for the VM and use static RAM allocation only.
That's so obviously related to the license key, you should hand in your WTF badge.
-
@Scarlet_Manuka said in WTF Bites:
@Lorne-Kates said in WTF Bites:
If there is ever a way that I can kill someone through the Internet with a blog post
The one upthread praising the benefits of eating raw chicken seems to be on the right track.
Eh. I accidentally ate raw chicken once. I pooped slimy green stuff the next morning, but otherwise I was fine.
-
@Scarlet_Manuka said in WTF Bites:
@Lorne-Kates said in WTF Bites:
If there is ever a way that I can kill someone through the Internet with a blog post
The one upthread praising the benefits of eating raw chicken seems to be on the right track.
Eh. I accidentally ate raw chicken once. I pooped slimy green stuff the next morning, but otherwise I was fine.
At Cub Scouts camp outs we used to do foil dinners. You'd pick your meat and vegetables and seasoning and stuff and wrap it up in foil then cook it in the coals of the camp fire. One time my son was not appropriately supervised (hey, as the Cubmaster my job was to look after the fire!) and he put some raw chicken and seasonings in his foil and skipped the cooking step. He told us afterwards that it was good though rather chewy, but he seemed to suffer no ill effects.
-
@boomzilla Food-borne illnesses seem to depend a lot on luck — whether the bacteria contaminating the food happen to be common, garden-variety strains that your body is tolerant of, or virulent strains that'll kill you. Take the infamous E. coli for example. You have E. coli living in your gut right now, and your body is fine with that. Eat something contaminated with your familiar varieties, and you won't even notice. Eat something with an unfamiliar variety, traveler's diarrhea. Eat something with a particularly nasty strain; become a statistic, and the USDA recalls all the romaine lettuce in the country.
-
@HardwareGeek and in a few months all the romaine fields will be producing some other kind of lettuce and the same guys getting us all sick will soil the reputation of another cultivar, I have no doubt.
-
@boomzilla said in WTF Bites:
the reputation of another cultivar
Romaine had it coming. It honestly had passed its prime as a lettuce. In its day iceberg was king, and now admit it, you wouldn't cross the street to spit on a head of iceberg lettuce. Time for another broad-leaf plant to carry its handlers' gut bacteria into our systems, as a nation.
-
Time for another broad-leaf plant to carry its handlers' gut bacteria into our systems, as a nation.
I've switched to green leaf. Seems OK so far.
-
I only eat leaves that have been chemically converted into meat by an organism such as a cow.
-
I only eat leaves that have been chemically converted into meat by an organism such as a cow.
Lettuce is good.
As a condiment in a cheeseburger
-
@TimeBandit said in WTF Bites:
Lettuce is good.
As a condimentYep, nothin' beats squeezing a healthy dollop 'o lettuce onto a cheeseburger.
-
I only eat leaves that have been chemically converted into meat by an organism such as a cow.
Some leaves — thyme, oregano, basil, mint, for example — are very tasty.
-
I only eat leaves that have been
chemicallynaturally converted intomeatprotein byan organisma fully-organic process such as a cow.FTFC
-
Yep, nothin' beats squeezing a healthy dollop 'o lettuce onto a cheeseburger.
I'm a big fan of watercress and spinach, myself.
Not simultaneously.
-
@Gribnit Are you saying that Lettuce is an oppressed minority?
-
@HardwareGeek Thyme goes quite well with scrambled eggs
-
@sweaty_gammon said in WTF Bites:
@HardwareGeek Thyme goes quite well with scrambled eggs
I'd make scrambled eggs more often, but I haven't the...
inclination
-
@sweaty_gammon said in WTF Bites:
@HardwareGeek Thyme goes quite well with scrambled eggs
So about three minutes?
-
@Tsaukpaetra Depends on the number of eggs. 3 minutes is probably about right for 2 eggs.
-
esoteric also confuses content filters?
http://nav.webring.org/cgi-bin/navcgi?ring=esolang;list
-
@sweaty_gammon said in WTF Bites:
I hate Entity Framework with a passion. Doing anything past the most trivial things becomes absolutely horrifically difficult.
select * from object
select a,b,c from object
select a,b,c, d as e from object
select a,b,c, d as e from object as o LEFT OUTER JOIN other_object as q on q.a = o.a
select list.*, cnt.cnt as [Count] from (select id from object) as list LEFT OUTER JOIN (select id, count(id) as cnt FROM other_object GROUP BY id) as cnt on list.id = cnt.id
SELECT * FROM ( select list.*, ROW_NUMBER() OVER (PARTITION BY sub_group ORDER BY sub_sequence, id) as rn from ( select list.*, cnt.cnt from (select id from object) as list LEFT OUTER JOIN (select id, count(id) as cnt FROM other_object GROUP BY id) as cnt on list.id = cnt.id ) as list ) as top_in_group INNER JOIN groups as g ON top_in_group.sub_group = groups.id WHERE top_in_group.rn = 1 ORDER BY groups.sequence
-
@Lorne-Kates I am sure we can all cherry pick badly written code to straw-man someone else.
-
Steps to reproduce the problem
- create a user with an UID > INT_MAX, e.g. 4000000000
- run any systemctl command
, the issue turns out to be in another component, not systemd.