WTF Bites
-
Typical Samsung battery, you just barely nick it with a Dremel and the thing's totally ruined.
-
https://www.youtube.com/watch?v=qT_gwl1drhc
Barcodes are bad if that's the only thing you're using for authentication...
-
There's also this available, which I would think that project would be based on.
Yes, you are correct in that detail. However, their own documentation states that a master-detail-page should look like this, i.e. with a Hamburger Menu:
What you get, however, is this:
Which is most definitely a tabbed page. :)
-
That juice topic reminded me of this I've found at a couple hotels:
"For our juice dispenser we should have a touchscreen to select juice. Now how do we solve this problem?"
"I know, let's use an iPad! It's literally the only touchscreen of an appropriate size that exists!"
"BRILLANT!"Because you totally need to get a $400 tablet just for the touchscreen. Because there's NOT A SINGLE cheaper tablet that could do the job equally well, or even just a plain touchscreen connected to whatever logic controller the device is using. Idiots.
Reminds me of a vending machine I found in a train station last week. Through its window I could see that, for once, it had a product I liked. But when I tried buying it, I found that the touch-screen menu didn't feature said item. The machine had the thing in stock and didn't allow people to buy it!
-
or even just a plain touchscreen connected to whatever logic controller the device is using. Idiots.
To be fair, it's MUCH easier to program an Android tablet than any other embedded controller. So a cheap Android tablet would probably have been the right choice there.
-
Featuring the Remove XSS button:
-
their own documentation states that a master-detail-page should look like this, i.e. with a Hamburger Menu... What you get, however, is this:
Which is most definitely a tabbed page. :)
It is most definitely a tabbed page, but I also see that it has a hamburger menu.
-
@anotherusername said in WTF Bites:
It is most definitely a tabbed page, but I also see that it has a hamburger menu.
Naw, that's not a real Hamburger Menu, that's a contextual options/actions menu - you have to set it up for every tab specifically. If you switch to "About" it disappears and in the "Browse" category it contains only an "Add Item" action.
-
that's not a real Hamburger Menu, that's a contextual options/actions menu
The difference being?
you have to set it up for every tab specifically
Maybe the screenshots they used to illustrate it only had one tab.
-
@anotherusername said in WTF Bites:
that's not a real Hamburger Menu, that's a contextual options/actions menu
The difference being?
you have to set it up for every tab specifically
Maybe the screenshots they used to illustrate it only had one tab.
Hamburger Menus are usually used for high-level navigation between pages. Also, a Hamburger Menu is visually defined by three horizontal lines - that's where the name comes from, after all.
-
Also, a Hamburger Menu is visually defined by three horizontal lines - that's where the name comes from, after all.
-
@anotherusername Yeah, they did indeed kind of fuck that up. It's also in the wrong place. I'm not sure why they went with that icon - UWP does have the normal Hamburger Icon too.
I mean, just look at this from the documents:
The Refresh button is the "page" button?
-
Makers of wtfdevice decided that empty files are doing it wrong, after copying an empty file there it just disappear.
-
@anotherusername Yeah, they fucked up. If I follow the official instructions to create a MasterDetailpage, I get this:
and a click on the Hamburger expands correctly to:
Obviously, it's not quite up-to-date. I'd hazard a guess that they didn't touch the docs for this one since WindowsPhone 8.1 (partially, because they're not talking about UWP at all, but always about "Windows Phone")
-
Visual Studio asked me to fill out a quick survey, 5 questions, 4 of them multiple choice.
Afterwards, this popped up in the upper left of my monitor:
-
-
Why does Windows check the 'not recommended' option BY DEFAULT?
-
@bb36e I think it may tick the one you are currently using by default. For me it typically always ticks only private networks by default.
-
Why does Windows check the 'not recommended' option BY DEFAULT?
Because that's the one you're currently connected to.
Edit: Because I can't read two centimeters down, I'll also add that it will re-prompt you if you change network types and run the program again. ;)
-
@loopback0 said in WTF Bites:
OneNote 2016 for Mac doesn't work without signing into a Microsoft account. At all.
You can sign in or quit the app.So... I decided to use OneNote today and realized that since the update to 2016, you're right. OneNote tries to force you to sign in with a Microsoft account.
However, there's an easy workaround on Windows. Right-click on the task bar and try to close the Window. The "SIGN IN NOW!!!!!" window will mysteriously disappear and you'll notice that OneNote works just fine without OneDrive. The nagging window will only appear the first time you start OneNote 2016.
I don't know how to trick the OS X version into accepting that you don't want to synchronize your notes, but there must be a similar way.
-
@RaceProUK said in WTF Bites:
Yeah, I remember trying to explain to a software engineer why his code was making two comparison
if (someBoolean == True)
After a while, I just gave up
As bad as that is, any decent modern compiler will optimise that away to a single check anyway.
Where "modern" means "pretty much anything from the last quarter century". I'm pretty sure my first C compiler would not have made that two comparisons. In 68k asm that wouldn't make any sense anyway as both moves and compares set the condition codes. A PowerPC compiler would have had the opportunity to fuck that up but PPC code from a crap compiler performs so badly that they paid attention to stuff like that from the start.
-
I'm pretty sure my first C compiler would not have made that two comparisons.
Really, this doesn't matter. The is that a software engineer can't understand that it is two comparisons.
-
@TimeBandit said in WTF Bites:
I'm pretty sure my first C compiler would not have made that two comparisons.
Really, this doesn't matter. The is that a software engineer can't understand that it is two comparisons.
if (!(someBoolean == True).ToString().Equals("false", StringComparison.OrdinalIgnoreCase) == true)
-
@Jaloopa Needs more
cowbellenterprisey!
-
if (!(someBoolean == True).ToString().Equals("false", StringComparison.OrdinalIgnoreCase) == true)
NAFE spotted !
-
@TimeBandit said in WTF Bites:
Something we already know is now confirmed:
I have a theory for this.
There's relatively few technical colleges in India, but they have TONS of people who want to get in, so the entry requirements are extremely high.
This leads to two kinds of people who actually get in and can graduate:- Students who are really, really smart and know their stuff.
- People who can follow a script (including class assignments) to the letter.
I think that there's more of the second than the first, but those who outsource their human resourcing all believe that they will find these few geniuses.
-
@TimeBandit said in WTF Bites:
I'm pretty sure my first C compiler would not have made that two comparisons.
Really, this doesn't matter. The is that a software engineer can't understand that it is two comparisons.
Hm, for a very sophist definition of "comparison". Like saying "is the sky blue?" involved two comparisons—assessing the truth value of "the sky is blue" by comparing the color of the sky with the definition of the color "blue", and then comparing that truth value with "true".
There may be some philosophical argument where you'd want to work that way for some reason, but in engineering you don't.
-
@LaoC IOW, you're a software engineer
-
@LaoC Strictly speaking, you'd also need to define what you mean by "is" first!
-
Like saying "is the sky blue?" involved two comparisons—assessing the truth value of "the sky is blue" by comparing the color of the sky with the definition of the color "blue"
That's not how first-order logic works.
blue
would be a predicate symbol of valence 1, andblue(sky)
would evaluate to true.
-
I see Pluralsight is up-to-date with what's hip in the IT industry.
-
@Atazhaia
That goes well with their office 2013 trainings
-
@Atazhaia
That goes well with their office 2013 trainingsPluralsight: Courses for the
nextlast 5 years?
-
Like saying "is the sky blue?" involved two comparisons—assessing the truth value of "the sky is blue" by comparing the color of the sky with the definition of the color "blue"
That's not how first-order logic works.
blue
would be a predicate symbol of valence 1, andblue(sky)
would evaluate to true.Sure, but that's also not how the n00b wrote the expression; is_true(x) would be even more obviously redundant. Although I'm quite sure there are people who thought it a good a idea to write such a predicate.
-
-
My WTF of the day:
https://youtu.be/C_PUpJeV0_4?t=6m12s
- Using an angle grinder like this without eye protection.
- Doing this whole thing without eye protection, period.
- Having your kid around.
- Doing this inside.
- No hand protection either.
- And, of course, no fume hood, too.
- Proceeding then to poke the battery with a metal tool in your bare hand. Granted, it should be discharged at that point but...
Jesus Christ.
He is waiting for Samsung to explode into his kid's face then sue them. Next year they will add a clause to their wadawada to not use angle grinder when children around.
-
Trying to sign in to HP's website:
Welp, guess I won't be using this particular signin form.
-
is_true(x) would be even more obviously redundant
is_true
cannot even be defined in first-order logic, since there are no functions that map truth values to truth values. Functions map predicate symbols to predicate symbols (which can have "arguments" of their own), and those evaluate to either true or false. That's why I said "that's not how formal logic works". ;)
-
is_true
cannot even be defined in first-order logicI think it can, provided you're using equality and a symbol for truth. It's not very useful though.
is_true(x) ≝ (x = ⊤)
The key is that in first-order logic, variables may stand for booleans because FOL is a strict extension of propositional logic. What it can't do is take a function (which would push it to being at least second-order logic, which is much less tractable).
-
@dkf
But the "truth symbol" (let's call it "1") still wouldn't be the same astrue
. Also,is_true
would evaluate tofalse
for any predicate. (If you can even write "= 1"; I'm not 100% sure this is even a valid formula.)
-
Also, is_true would evaluate to false for any predicate.
Well yes, as that would be a syntactic error. You can't pass a predicate to a function in FOL, just values. Similarly, you'd have to decide whether
blue
is a predicate — allowing you to sayblue(X)
— or a value — allowing you to sayis_true(blue)
— you get to pick (at most) one of those.
-
@dkf
Aren't values technically predicates of valence 0?Edit: Oops, I just realized I had confused predicates with functions there for a second. Constants are functions of valence 0 (which makes a lot more sense). Therefore, I obviously meant to say that
is_true
would evaluate tofalse
for any function/constant.
-
@asdf You can't apply a general predicate to a function in first-order logic. You have to write the whole thing out. Basically, FOL is where the values that you can use as arguments are just basic atomic values (
true
,12345
,FreddieTheFish
, etc.) and higher-order logics are where you can also pass functions.You can say
is_true(colour_of(FreddieTheFish) = blue)
but there you are not passing an actual complex statement tois_true
; you're just passing the result of evaluating it.
-
@dkf My ic point was that the truth symbol and a formula evaluating to
true
are not the same thing.Also, why shouldn't I be able to pass a function to a predicate? A function is a term, and a predicate operates on terms. See https://en.wikipedia.org/wiki/First-order_logic#Formation_rules, which also suggests that both your definition of
is_true
and your example are invalid.
-
So the guy from mettle S04E05 has started working today.
- Installed linux.
- Installed IDE-s.
- Configured everything
- Tried to install MySQL with
apt-get
- Somehow screwed up
- Tried to fix it
- Screwed it up even worse
- "Cartman, give me that flash with linux installation..."
- He is now reinstalling linux
So how was your day?
BTW this guy is NOT good at devops stuff. I would probably be able to fix his apt, but screw that.
-
@cartman82 How can you fuck apt-get install mysql-server ?
-
@TimeBandit said in WTF Bites:
@cartman82 How can you fuck apt-get install mysql-server ?
Apparently forgot to enter password or something. Then he reinstalled and purged and who knows what else. But the systemd service remains and keeps restarting. And that's black magic, so he'll just reinstall linux instead.
-
@cartman82 This isn't the Lounge, so I'm just waiting for someone to come across this and think, "wait a minute, that's what I did today"
-
@cartman82 said in WTF Bites:
But the systemd service remains and keeps restarting. And that's black magic, so he'll just reinstall linux instead.
Delete the damned service file and run
systemctl daemon-reload
? That's black magic?Also, how the hell did that not get purged with the reinstall?
-
@cartman82 said in WTF Bites:
Apparently forgot to enter password or something. Then he reinstalled and purged and who knows what else. But the systemd service remains and keeps restarting. And that's black magic, so he'll just reinstall linux instead.
Looks like he knows just enough to be dangerous.