TIL (about the Dark Arts of HTML)
-
-
-
TIL the stroboscopic effect can actually be dangerous: if some piece of machinery is moving close to the fluorescent lights frequency, it can cause it to look still. Possibly leading to some really hard to explain accidents.
-
TIL how to use powerwasher in one of those self-serve car wash places.
That thing is super satisfying.
-
That thing is super satisfying.
That seems like it would be painful, and it is almost certainly illegal in public.
-
TIL if you RDP from one Windows 10 machine to another, open something on the remote machine (e.g., for @blakeyrat, open Notepad and type random stuff into its window), and then try to print, you can get a print dialog on the local machine. That was a rather confusing couple of minutes.
-
TIL some VPS providers find it acceptable to deliver Centos servers without
yum
installed.
-
By default, Windows RDP will share any local printers with the remote Windows session. So yeah, that's probably how that would happen.
-
By default, Windows RDP will share any local printers with the remote Windows session. So yeah, that's probably how that would happen.
No--the printer dialog was in the local desktop, not inside the RDP window. (I couldn't tell you whether it was a local printer or not, as I was printing to the XPS driver to save paper, while working on alignment issues, and both machines have that printer.)
-
No--the printer dialog was in the local desktop, not inside the RDP window.
I got that detail before... I'm just saying that's probably how that happened.
I couldn't tell you whether it was a local printer or not, as I was printing to the XPS driver to save paper
It was probably the local XPS printer. And I'm assuming that's why the print dialog appeared on the local machine. I'm also speculating that it wasn't really the print dialog (because I think that would've been on the remote desktop), it was the XPS printer's "save as" dialog, and it appeared on the local desktop because that's where the driver was running.
-
It was probably the local XPS printer. And I'm assuming that's why the print dialog appeared on the local machine. It wasn't really the print dialog (that was on the remote desktop), it was the XPS printer's "save as" dialog, and it appeared on the local desktop because that's where the driver was running.
Hmmm. That kind of makes sense I guess, but I don't think I've ever seen it before. I might try it at work today, RDPing into the Win10 laptop from a 7 desktop.
-
Okay, I just tested it using two Win7 machines.
There's the option to share printers and clipboard (enabled by default, I think):
And there's a remote instance of Notepad, which defaulted to print to the local (redirected) PDFCreator driver:
After printing it, it spooled for a while, and then the PDFCreator driver's window opened on the local desktop to set the PDF's properties and filename:
So that's probably the behavior you noticed.
-
So that's probably the behavior you noticed.
Probably--although IIRC the print dialog didn't say "(redirected)".
-
-
TIL we have a emoji.
-
If you only knew the power f the dork side of the Source.
-
TIL the Portal 2 engine has a
linked_portal_door
entity that works like a seamless portal, which can be used to create all sorts of Antichamber-like levels.So that's like, a whole new game you can make without even needing any mods.
-
No one ever remembers Prey. :(
-
TIL DuckDuckGo will give you a UUID if you search for "uuid" (and call it "Random GUID") but will return you the NASDAQ market value of Guidance Software Inc if you search for GUID.
[...]
Which I could find a list of searches that get special treatment.
They're covered by Instant Answers, see https://duck.co/ia for more.
Ok, some of those are cool if a little useless, and some are even useful. Thanks for the link, @Arantor.
More...
Okay, that's enough of that. I don't know why I got so excited over this. It's not like the other search engines don't have their own versions of this.
-
You got excited because you're in tech and you had a new toy to play with that isn't built on "claiming to pretend to not do bad things" ;)
-
TIL if you forget to change default drupal password from admin/admin (or whatever it is), and script kiddies find you, You're Gonna Have A Bad Time.
-
TIL if you forget to change default drupal password
I hope you didn't learn this first-hand. :(
-
I hope you didn't learn this first-hand.
No I had a comfortable back seat to the show.
-
Schadenfreude, the best Freude.
-
TIL YouTube supports 360º videos
https://www.youtube.com/watch?v=i7ogrXl5BJoToo lazy to assemble my Google Cardboard to try it out, but I assume it looks great in it.
-
##TIL
that being a good seeder contradicts with having a home server.
-
##TIL
Mah pi 1 case isn't compatible with mah pi 3.
That's pi alright, always with the hidden costs.
-
-
###TIL
that even though Microsoft is being a little bitch about it, you can install DirectX 9 on Windows 10 and get those old games working, no problem.
-
that even though Microsoft is being a little bitch about it, you can install DirectX 9 on Windows 10 and get those old games working, no problem.
YES! Got my old DX9 pacman clone school project working.
Totally worth risking the stability of my system.
-
TIL that Raspbian, by default, has Node.js installed, however it does NOT have npm installed.
-
TIL how to archive a project in Jira: you create a permission scheme called "archived" where nobody has read access to the project so it vanishes from the list and only admins can find it.
-
TIRL:
http://www.paralint.com/blog/2008/11/13/stop-internal-drive-showing-up-in-safely-remove-hardware/
Side note, that was really hard to find. Every other link I found was a registry hack that was supposed to prevent AHCI/SATA drives from appearing in safely remove hardware, which didn't work at all (I tried to hide the DVD+/-RW drive that was showing up, but it didn't work; the other thing I needed to hide was an USB device, so I never even expected it to work for that).
Short version:
In RegEdit, go to
HKLM\SYSTEM\CurrentControlSet\Enum
and search for the device's friendly name (the text that shows up in the safely remove hardware menu). Once you find it, there should be aCapabilities
REG_DWORD which is bit-mapped. Subtract 4 from that value to unset the "removable" bit.Note 1: even in elevated RegEdit, you will not be able to edit the value. You can, however, modify it by running
reg.exe
from an elevated command prompt:reg add "$keyname" /v Capabilities /t REG_DWORD /d $val /f
Note 2: unfortunately, it only lasts until reboot, and there is no way to make the change permanent. You have to change the registry value every time the computer starts up. To automate this, use Task Scheduler to run the
reg add
command asNT AUTHORITY\SYSTEM
on every startup.
-
TIL:
Database in MySQL is just a directory.
CREATE DATABASE
simply creates this directory and puts a little 2-line ini file in, with your encoding and collation choices. You can freely manipulate these directories to migrate, clone or copy databases (as long as mysql service is off).I... kind of like it. Even if I suspect there's a performance penalty attached to it.
-
Until you put tables in then it gets complicated.
MyISAM can be migrated around just as described, as can schemes for memory tables because the schema exists as a file.
InnoDB on the other hand, depending on how configured (whether all in one file or files per table, and which format of table) may go... badly... for you if attempted.
-
InnoDB on the other hand, depending on how configured (whether all in one file or files per table, and which format of table) may go... badly... for you if attempted.
I figured it out afterwards. You only get table structure in .frm files. All the data is in a single data file that is shared between databases. For the performance reasons, I guess.
-
So you're using InnoDB in the default settings, as MyISAM exposes table data as .myd and indexes as .myi files in that folder.
-
So you're using InnoDB in the default settings, as MyISAM exposes table data as .myd and indexes as .myi files in that folder.
Yes. Who is using MyISAM these days?
-
This post is deleted!
-
Wow! This is an actual site.
-
TIL about SQL's Cross Apply as it was the only (first I found on Google?) way to join to a table valued function that needed a parameter from the table.
-
TIL
If you want to do TDD / unit tests for UWP apps, this is your only option.
-
@cartman82 Oh, and BTW, the only way to run tests is like this:
That's a blank UWP GUI app running tests on my class library. It takes about 5-15 seconds to load and execute with a single unit test.
So if you were thinking you'd do TDD with this shit platform, think again.
-
@cartman82 said:
If you want to do TDD / unit tests for UWP apps, this is your only option.
-
@RaceProUK said:
Are you sure?
Yes. Their screenshots conveniently leave out the part where the GUI app is built and started every time you want to run tests. Which takes 5-15 seconds. Which is death for TDD.
-
@cartman82 said:
Which takes 5-15 seconds. Which is death for TDD.
15 seconds in the death of TDD? You do know any reasonably comprehensive test suite for any serious application is going to longer than that to run all the tests, right? Hell, even the unit test suite for SockBot takes longer, and that hasn't stopped us!
-
@RaceProUK said:
You do know any reasonably comprehensive test suite for any serious application is going to longer than that to run all the tests, right?
Yes, but if you're doing TDD, you're not gonna run the entire suit after every little change. You'll just restest over and over again the class you're working on.
This number for UWP is the base number, with just one test. It isn't getting faster than that.
Hell, even the unit test suite for SockBot takes longer, and that hasn't stopped us!
Are you doing TDD? And running the entire half a minute test suit all the time?
If yes, you have more time and patience than me.
-
@cartman82 said:
Yes, but if you're doing TDD, you're not gonna run the entire suit after every little change.
We don't run it after every tiny change; we run it after we've fixed a bug, or developed the new features.
@cartman82 said:
Are you doing TDD?
After a fashion, yes.
@cartman82 said:
And running the entire half a minute test suit all the time?
Not all the time; when we need to.
@cartman82 said:
If yes, you have more time and patience than me.
Or we're not running it twenty times a minute.
-
@RaceProUK In other words, you're wasting my time.
-
@cartman82 And running your unit tests after every tiny change isn't?