Help Bites
-
@Tsaukpaetra said in Help Bites:
you need to be in "Devices by connection" to see the tree
Still pretty close to the root.
-
@HardwareGeek said in Help Bites:
disconnect the USB camera.
Probably so you can flip it around I presume.
There's definitely something wrong in any case if it's actually connecting at USB 3 speeds.
@HardwareGeek said in Help Bites:
Still pretty close to the root.
I don't see it in the list. Focus it when in By Type mode, then switch to By Connection.
-
@Tsaukpaetra said in Help Bites:
I don't see it in the list. Focus it when in By Type mode, then switch to By Connection.
-
@HardwareGeek Hrm, so yeah, at the very least it's as close as possible.
I dunno then. Maybe Windows Update has a updated driver or something (since apparently the makers don't provide anything special).
In theory there's a Utility app you can try and see if it exposes more-specific settings, but unfortunately there's not much more I can think of.
-
Is there a commandline utility for Windows that will
rm -rf
a directory whether or not it or its children have outstanding locks?I waste hours each week just trying to delete the build directory, which somehow is always locked.
-
@error Powershell
Remove-Item -recurse -force
? Though given that windows prefers mandatory locking, it may simply not be possible to remove a locked item.
-
@PleegWat said in Help Bites:
@error Powershell
Remove-Item -recurse -force
? Though given that windows prefers mandatory locking, it may simply not be possible to remove a locked item.Fails with locked files. I have a few GUI utilities that can unlock and purge locked files, which is what I end up doing, but I want something scriptable.
-
The underlying cause here seems to be that VSCode is running maven in the background, conflicting with when I run maven in the foreground. I noticed the target directory comes back when I delete it, even before kicking off a build.
-
-
@error I'll stick with vim, TYVM.
-
@error said in Help Bites:
Is there a commandline utility for Windows that will
rm -rf
a directory whether or not it or its children have outstanding locks?I waste hours each week just trying to delete the build directory, which somehow is always locked.
Google suggests:
-
@Tsaukpaetra A good starting point but it's not recursive. Eventually I'll script something using it.
-
@error said in Help Bites:
but it's not recursive
Should be somewhat trivial to solve if you
@error said in Help Bites:
I'll script something using it.
Yeah, that. Should be trivial enough to
dir /b /s *.*
that shit.
-
Is anybody experienced with modern Visual Basic? I'm doing an SSRS report to implement a couple of medical forms. When we have collected the data that goes on the form, the SSRS version is supposed to display it. But when we haven't collected the data yet, I'm supposed to show a blank version of the form.
There are some supplemental tables that give me enough data to pre-fill a few values, such as the type of form, the patient's name and date of birth, and a few other things if they ask for them. And that's where things get interesting.
Here is the complication. One of the forms has a score, which is calculated after the form is filled in. And depending on that score, I show or hide some SSRS tablix rows, using logic along the lines of:
Hide the row if:
= Fields!NotCompletedIsSelected.Value or Fields!AssessmentScore.Value < 5 or Fields!AssessmentScore.Value > 9
But, the problem is, if we haven't collected the data, then that score is null in the database, and Visual Studio bitches that null isn't a number (actually it bitches that null isn't a boolean, I think, but same issue)
It seems VB has weird rules about how short circuiting works. And I don't know VB particularly well.
How would I safely check if a value is defined before I compare it?
Maybe the cleanest way is to set it to zero and in SQL, with SQL's isnull. And then hide it if it's zero.
-
@Captain said in Help Bites:
It seems VB has weird rules about how short circuiting works. And I don't know VB particularly well.
If you want an AND operator that's short-circuiting, use
AndAlso
:
-
@Zerosquare "Also" means "And" can short-circuit?
-
Yes. Sounds counterintuitive, but that's the way it works in VB.NET.
(For compatibility with classic VB, the
And
keyword is bitwise AND, and thus is not short-circuiting.)