|
Best. Answer. Ever.
GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
|
Helps to have a decent phone.
Keep your friends close. Keep Kill your enemies closer.
The End
|
|
|
|
|
Could be, it is a Galaxy, about as crap as you get.
|
|
|
|
|
Older model? The Galaxy S8/S8+ is probably the best phone out there today.
|
|
|
|
|
|
The SD card in my windows phone becomes available as a drive in Win10 explorer...makes it easy to move pictures and music around.
"Go forth into the source" - Neal Morse
|
|
|
|
|
ditto.
History is the joke the living play on the dead.
|
|
|
|
|
Me three. (works on my phone)
|
|
|
|
|
Haven't you learnt by now that these f***-ups are personal? Your computer is out to get you...
NO problem with my Moto G4+ - though I have to enable the connection for data transfer (on the phone) before Windows will see it, but then it just appears in Explorer like any other USB drive.
|
|
|
|
|
Not with my Galaxy. Did have it so that if I forgot, and renamed a directory on the Galaxy through Windows explorer, it would lock up Explorer for a minute or more. But it always recognized it at plug-in.
|
|
|
|
|
I have no problem with it. Keep in mind that the phone needs to get past the unlock screen for the file system to be exposed to USB. Besides that, no other problems for me.
|
|
|
|
|
Have you turned it off and back on again?
|
|
|
|
|
Yeah, I even opened and closed the front door. Well, you know what computers are like!
|
|
|
|
|
While comparing my changes with the server source code, just saw with my two eyes this great piece of code which checks if an nullable int is null or not :
private bool IsHasValue(int? a)
{
if (a== null)
{
return false;
}
return true;
}
The code is written by very senior developer on my team with huge years of experience in c#
modified 24-Jan-18 12:20pm.
|
|
|
|
|
|
who said it does not works, it's about reinventing the wheel
|
|
|
|
|
Not just reinventing it, but reinventing it to be less efficient. The actual HasValue implementation just checks an internal flag that's set to true when a value is assigned.
|
|
|
|
|
My advice - don't change the code, and hope your "very senior developer" doesn't have a CP account.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
i won't change and i am sure senior dev does not use CP
|
|
|
|
|
You see that large number at the top left of this website? A large fraction of those are actually sockpuppets with John pulling the strings. Don't be surprised if the 'persona' of your senior colleague appears out of nowhere.
Best Wishes,
-David Delaune
|
|
|
|
|
Especially since OP's using his real name
|
|
|
|
|
That code certainly .HasValue
|
|
|
|
|
A consultant friend of mine who has been programming far longer than I have—he started programming on the early Macs and helped write the first music notation software for the Mac—doesn't see why C# should need to use .SubString() to get the left/right most characters from a string and instead wrote these. I don't really have a problem with this sort of thing. I just don't see the point, but that's just me.
public string LeftStringFunction(string sValue, int iMaxLength)
{
if (string.IsNullOrEmpty(sValue))
{
sValue = string.Empty;
}
else if (sValue.Length > iMaxLength)
{
sValue = sValue.Substring(0, iMaxLength);
}
return sValue;
}
public string RightStringFunction(string sValue, int iMaxLength)
{
if (string.IsNullOrEmpty(sValue))
{
sValue = string.Empty;
}
else if (sValue.Length > iMaxLength)
{
sValue = sValue.Substring(sValue.Length - iMaxLength, iMaxLength);
}
return sValue;
}
"...JavaScript could teach Dyson how to suck." -- Nagy Vilmos
|
|
|
|
|
Looks like somebody's trying to reinvent VB6's Left$ and Right$ , neither of which throw an exception if you specify a length that's longer than the string.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|