What is a serializable object?

Question: What is a serializable object in C#?
I guess the word serializable is throwing me off more than "serializable object".
Answer: Normally objects are random access, that is, you can specify any part of an object (property or field) and access that part directly.  That's all well and fine if you're using RAM to store an object, because RAM is Random Acess Memory and is therefore suited to the job.
When you need to store your object on a medium that is not traditionally random access, for instance disk, or you need to transfer an object over a stream medium (such as the network) then the object needs to be converted into a form that is suitable to the relevant medium.  This conversion process is called serialization, because the structured object is flattened or serialized, making it more amenable to being stored for the long term, or transferred over the network.
Why not just copy the bits comprising the object in RAM to disk, or send it as an opaque blob over the network?  ... you may ask.  A few issues:

Often the format that the object is stored in memory is proprietary and therefore not suitable for public consumption--the way in which it is stored in memory is optimised for in-memory use.
When an object references other objects, those references only have meaning within the context of the running application.  It would not be possible to deserialize the object meaningfully unless during the serialization process, the object graph was walked and serialized accordingly.  There may be a need to translate those references into a form that has meaning outside the context of an application instance.
There may be an interoperability requirement between heterogeneous systems, in which case a standard means of representing the object is required (typically some form of XML is chosen for this).
Comment: As a newbie, I don't think you could of gave a better answer.
Answer: An object that can be converted to bits and stored on a medium, such as a hard drive.
http://en.wikipedia.org/wiki/Serialization
Comment: As an example of what is _not_ serialisable, consider something that will be very difficult, if not impossible, to reconstruct on a machine that doesn't have the same environment.

For example, ResultSets aren't serialisable, because they can hold connections back to the database.
Comment: Technically, any object that's not been serialized through some language construct or methodology is not serializable.  If you want an example of an object you typically wouldn't serialize, then the general idea is "anything you don't need/want to save".  In the MVC design pattern, you wouldn't typically serialize the view, as the controller should be instructing the view what to do (so you would serialize the model and the controller).
Comment: can you provide an example of an object that would NOT be serializable?
Answer: Object serialization is storing the instance's state so you can reconstruct that instance again later.
In most (C# and Java), a serializable object is "marked". In Java you need to implement Serializable. In C# you need to use [Serializable].
Once the object is serialized you can store it in a file or send it over the network.
Think of it like going through every instance variable of an instance and storing its value, separated by some separator (although, it's a lot more sophisticated than that; think of what happens if you have instance variables of non-primitive types, you're gonna have to store all the values inside those, too).
One use of it would be saving a game.
Answer: You can mark an object as [serializable] in C#, which mean that it can be converted to binary, SOAP, XML, in .net anyhow.
The beauty of this is that you can serialize an object send it across the internet, network etc then reinstate it on the other side as an object again. This can then cross machine boundaries, such as a windows machine to a Unix machine as long as the Computer on the other side is able to read the data and de-serialize it.
See this article:
http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=236
Answer: Serializing in general means to save an objects state into a 'saveable' format (like saving to disk) so that it can be deserialized later on into an actual object. It is usually done to also send an object over the network in case of remote calls. If you dont want save and also if you dont want to send an object over the wire you can ignore the serializable part (in Java you dont implement the Serializable interface)
Answer: Serialization :its a technique to convert object into binary format,simple object access protocol(SOAP) , or xml documents that can be easily stored ,transfered and retrieved .
In simple way serialization way that we can compress and decompress the data and transfer the data across network in a secure way.
object serialization is what ljuwaidah explained .
Try this link also
link text
Answer: In addition to what has been said, I think it's important to mention that serialization of data implies giving it a well defined order (serial comes from series, which means having something lined up or in line).
For instance, serializing a graph (e.g. an RDF graph as known from the "semantic web") into a serialization format such as XML means that there must be a ruleset defining how to put the information contained in the graph into an order, so that it can later be reconstructed by applying the reverse serialization rule (deserializing it).
Answer: As Java is an platform independent and it was invented for teh security purpose, all the things are possible in the form of bit. For example, we, as a user are quite understand the alphabets but it would be difficult to remember the bits of that alphabets or we can say in that Java language string.
Therefore to provide the security in the networking we use the objects.
As the messages are lossly coupled, to provide the security we use the objects to send or receive the messages from server or from client. Therefore as we are using the objects the objects must be serializable means they must be in the form of bits that can be easily understood by the machine.
Particularly to send and receive the message is known as JMS(Java Message Service) is used. For example, one computer which is in India may want to communicate with another computer which is in the U.S. at that time, JMS service is used.
In short the serialization means to convert the strings into to the bits.
By using this we can create the Java programs such as to send the mails and receives like the mail application based on the SMTP(Simple Mail Transfer Protocol) protocol is used.
Comment: Why is your answer about Java when the question is about C#?

What is a serializable object?


Can I store my getmail password in a gpg file?

Question: Is there a way to have getmail get the password from a gpg encrypted file instead of leaving it in plain text?
Answer: As far as I understand, getmail can get the password from

from the password configuration item in the getmailrc file,
from the OS X keychain (on macOS only),
on systems with Gnome keyring support, from the default Gnome keyring,
if not found via any of the above methods, getmail will prompt for the password when run.

(reference: http://pyropus.ca/software/getmail/configuration.html)
It seems to me that storing the password in a GnuPG encrypted file will require you to decrypt the file (using your GnuPG passphrase) and then somehow feed that into getmail while not storing it in a plain text file in-between (possibly using expect?).
It would be simpler, and less prone to accidentally leaving your mail password unencrypted somewhere, to just have getmail prompt you for the mail password (option 4 above).
Answer: Yes you can.
Add your key to gpg-agent or gnome-keyring, and configure either gpg -d or pass to write to stdout without prompting for key unlock. Mind to only include the password in the file. In ~/.getmail/getmailrc:
password_command = ("/usr/bin/pass","email/gmail.pw")
I installed getmail 5.5 from the official website instead of using the ubuntu-xenial repo (4.48) to get the password_command working.
Comment: The first command should be `gpg -dq` to avoid addition output.
Comment: The 2nd argument depends on the current directory.  For some reason, `~` will not work, it seems one must supply an absolute path.
Comment: for `gpg` this seems to be the case. With `pass`, the second parameter is relative to its PASSWORD_STORE_DIR
Answer: I know this is an old question, but here is an update in case anyone comes across it.  For the record, it's not always convenient or even feasible to type passwords — so this is a legitimate question.  Users may have many accounts and run things from cron jobs.
The correct way to securely manage passwords was through gnome-keyring.  I say "was" because everyone seems to have upgraded to a new python library called "keyring".  python-gnomekeyring isn't even available on Ubuntu anymore.  Unfortunately, getmail has not updated its dependencies — and simply complains that --store-password-in-gnome-keyring is not a valid option when it can't find it.  As of now, there is no safe way to manage passwords with getmail.  Of course, since Python 2 now is deprecated, and getmail is written in Python 2, it's days are numbered.  There does not appear to be a viable alternative, though.
It's odd how the more advanced technology gets, the less we seem to be able to to do with it :)
Comment: Probably because everyone is happy with their Whatsapps, Slacks and Jiras and so on. Less and less people use email, and those who do, probably just stick to the Outlook their employer provides them.


How to become mayor in animal crossing, new leaf

Question: My daughter bought her game used and opened a new file named after herself and has been working on her town. The game is new to us and we did not realize the previous owners info and town still exists. Is he the mayor? Is there anyway to delete his file without damaging hers. Will she then be the mayor. Thanks. I am not a gamer and she is just starting so any info would be so appreciated.
Comment: This problem has been answered previously, but in short. No, there is no easy to way to change mayors. My suggestion would be to wipe the town completely and just start over. Since she is just starting she won't be losing much, and will get to enjoy the game/town from the beginning.
Comment: Thanks, she's only 8 and is now devastated that the only way is to destroy everything she's got...can she still proceed just as she is - a resident.
Comment: She will be able to proceed as a villager, sure. but she won't be able to do anything to the town, as all of those features are exclusive to the mayor.
Answer: You should really check that there is no existing data from another user, when buying a preowned game. Unfortunately, I do not think it is possible to reset the game and keep her progress without a second 3DS system and copy of the game.
If you do have these, then it is possible to transfer non-mayor players to fresh new leaf game cards. I found a YouTube video on how to do this for you.

If you don't have another 3DS and game card, then you will need to deleate all data. This will mean your daughter will have to start fresh, but she should have a bit of experience on how to play. Here is a video on how to do that:


Boolean modifier - Difference, doesn't cut both sides of a cylinder

Question: Create two cylinders and difference the smaller one from the larger cylinder. Then construct rectangular cubes to cut across diameter of the hollow cylinder created above.  The cubes only cut at one intersection for each difference.
Is this a feature or a bug? It wasn't what I was expecting.
Blender 2.79
Quartering a tall donut
Comment: I see no problem? I just applied the boolean modifier again and it worked. Quick question, why did you apply the modifiers before giving us the file? It makes trying to help more difficult if we do not have the same scenario as you have.
Comment: Thank you.  I worked on, but was surprised at the result.  I don't recall it working like that in 2.74 (a few days ago before I 'upgraded').    I applied the modifiers to be sure you saw the problem as I did.   The raw pieces to recreate the modifies were in other windows.  I hear you.
Answer: After having several failed attempts at rectifying your model (Which had many internal faces, inverted normals etc.) I tried to replicate it myself. These are the steps I took:
To your first and larger cylinder, apply two boolean modifiers set to diference. Connect one to your smaller cutting cylinder.
Go to the smaller cylinders Object tab in the properties window and scroll to display. Change the dropdown menu called Maximum Draw Type to wire. This should show only the edges of your cutting mesh. Do the dame for your two cross cutting planes.
Now select both the cutting planes and hit control J to make it one object. Now apply the other bolean to the single cutting object.
Fixed!

Cool! So what does this mean?
When we are using modifiers such as boolean, try not to apply the modifiers until you see your results as you wish. Yes, you may say too many modifiers slows your system, but that is why we try and group items where possible, plus it keeps out scene neater.
Remember, plan what you want to do before you do it.
And if you hit trouble as you have in your situation, it is better to start again. Many times I have seen people hit problems that even I cannot find a solution for. When I try and remake the model, or they to do so, 90% of the time it works the second time. It may be frustrating when you redo your work 5 times over, but it has almost always saved me time in the long run. Plus you learn from your mistakes!
A mistake does not a failure, it's just another step towards success.
Sorry for the pep talk but there you go.
Good luck with your project and I hope I helped,
BFB


Extruder feedrate when loading and unloading filament

Question: I have an MKS Base 1.4 board with a TFT28 touch screen and a Titan Aero setup.
When I use the load filament command from the touch screen the motor turns at a crazy speed to load filament, whereas if I plug in my laptop and use Repetier host and send a load command it turns at a normal speed.
Is there a section in the Marlin firmware that allows me to set the actual extruding speed during load and unload?
Comment: Please explain how you retract and unretract filament with Repetier Host. E.g. are you using the G10/G11 G-code commands?
Answer: Loading and unloading filament through the LCD options is taking care of by G-code command M600. The options used when executing the M600 command define where the head goes and how much filament is extruded of which extruder. Apparently, there is a difference in calling the M600 command via the LCD menu or (un)loading filament through the Repetier application.
The Firmware-based and LCD-controlled retract options are defined in Marlin Firmware file Configuration_adv.cfg (Advanced Pause). The settings for Repetier are probably differently defined than in the advanced configuration file; you should look them up in Repetier. It could well be that separate G-codes (or scripts) are used for this. E.g. G10 is used to retract filament as set by M207 (both length and feed rate!). G-code G11 does the opposite, it unretracts the filament as specified by M208.
To answer your question, yes, you need to alter the values of the constants in Configuration_adv.h for changing the speed when using the LCD to change the filament:
<code>// (mm/s) Unload filament feedrate. This can be pretty fast.
#define FILAMENT_CHANGE_UNLOAD_FEEDRATE     10
// (mm/s) Load filament feedrate. This can be pretty fast.
#define FILAMENT_CHANGE_FAST_LOAD_FEEDRATE   6
</code>


Trying out Push Notification Example on Advanced Iphone Projects "Apress"

Question: hello all im trying out the chapter 10 example on push notifications. dont know if anyone has read it, its a really great article on push notifications. the code seems fine, the only problem i have is when i use
NSString *registerResult = [NSString stringWithContentsOfURL:[NSURL URLWithString:getURLString]];

it give me a warning that it is depreciated in iPhone 3.0, so i searched for a change i found that
[NSString stringWithContentsOfURL:encoding:error:]

works with this but i do not know how to implement it with the code of this article could someone please show me an example how i could get this link to work with this app.
here is the reference code.
NSString *hostString = @"http://2push2.us/apress/apress.php";
NSString *nameString = @"2Push2Test";
NSString *argsString = @"%@?token=%@&cmd=reg&name=%@";
NSString *getURLString = [NSString stringWithFormat:argsString,hostString,tokenString,nameString];
NSString *registerResult = [NSString stringWithContentsOfURL:[NSURL URLWithString:getURLString]];

Thanks
Answer: try the following
NSURL *url = [NSURL URLWithString:getURLString];

NSError *error = nil;
NSString *registerResult = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&error];

if (error) {
    NSLog(@"Failure: %@", [error localizedDescription]);
}


Who gets infected first in John Carpenter's The Thing?

Question: Amongst the Americans in John Carpenter's The Thing, who was the first to get infected?
Comment: I don't remember his name, but he was a husky dude.
Comment: @MajorStackings : Presumably, the dog's nationality was Norwegian. ;-)
Comment: This question was inspired by the live-chat viewing of *The Thing* that we had over at Mos Eisley, a little earlier this evening.  (Thanks to Richard and WadCheber for organizing it!)
Comment: Related: [Infection timelines of John Carpenter's The Thing](https://movies.stackexchange.com/q/527/49)
Answer: It is very difficult to say with certainty, which is precisely what Carpenter was going for.  He didn't want us to know much about who was infected and when it happened.
Certainly, the first Thing we see is the Dog-Thing being chased by the Norwegians in the helicopter.  The second Thing we see is the seemingly dead, two-headed monstrosity at the Norwegian camp.
After the Dog-Thing is taken into Outpost 31 by Clark, it would appear that its first victim is the man whose shadow we see on the wall of the room into which the Dog-Thing walks.  This shadow wasn't actually from any of the cast members, because Carpenter wanted to leave the audience guessing who the shadow belonged to (the shadow was actually that of stuntman Dick Warlock).  However, the producer, Stuart Cohen, explicitly states that it is supposed to be the shadow of Palmer.

THE SHADOW ON THE WALL was intended to be Palmer. At the time of filming  David Clennon's silhouette was considered too distinct, a dead giveaway. Cinematographer Dean Cundey tried to soften the edges to diffuse the image, but in the end John used stunt coordinator Dick Warlock to throw everyone off the scent...
  -  Cohen's blog, "The Original Fan".

However, we don't actually see the Dog-Thing assimilating Palmer, so we really don't know if this is when Palmer is assimilated, but it does seem very likely.
Next, the as-yet undiscovered Dog-Thing is put into the kennel, where it soon attempts to assimilate the other dogs;  it probably would have succeeded if it hadn't been discovered by MacReady and then destroyed by Childs' flamethrower.  As far as we know, nothing of the Dog-Thing survived the attack with the flamethrower.  The only Thing still alive in Outpost 31 at this point was Palmer-Thing.
The first human assimilation we see taking place on screen is Bennings'.  He is apparently dead and in the process of being assimilated when Windows walks in and sees the whole thing (no pun intended).  Windows runs to get the others, and when they return to the room, Bennings-Thing is gone and the window is broken.  They all run outside and find Bennings-Thing, still only partially assimilated, and kill it.
All of this is based on the way events play out on screen.  We don't have access to any other information about the timeline of infection, because Carpenter deliberately chose to avoid setting up such a timeline.  When he is asked about these kinds of questions, he always says that he just doesn't know - and as far as I can tell, he is being completely honest and candid.  He doesn't know, because if anyone knew, it would reduce the effectiveness of the movie's central theme: paranoia and uncertainty.  If no one knows when each character was assimilated, the veil of uncertainty can never be lifted, and the movie will never lose its psychological impact.
The only other bit of information I am aware of is a brief and tentative suggestion from the producer, Stuart Cohen.  Cohen says that, in his personal opinion, Blair was probably assimilated sometime between the autopsy on the two-headed Thing from the Norwegian camp, and Blair's freak out in the radio room.  But we need to remember that even Cohen and Carpenter, who presumably know more about this than anyone else, insist that even they don't know when each character was assimilated.
We can say something with relative certainty:  The following characters were not assimilated:

Clark
Fuchs (this is made clear in a deleted scene in which Fuchs' body is found impaled with a shovel in the greenhouse).
Copper (aka Doc)

And these characters were only partially assimilated before they were killed:

Bennings (he was very close to being completely assimilated, but not quite done)
Windows (he had just been attacked by Palmer-Thing when MacReady torched him, and although he certainly would have been completely assimilated if MacReady hadn't intervened, the process had just begun when he was killed)

The following characters were definitely assimilated:

Norris
Palmer
Nauls
Blair
Garry

The following characters might have been assimilated:

MacReady (although this seems extremely unlikely, and in fact, almost impossible)
Childs (the jury is out on this one, but my personal belief is that he, and MacReady, were both humans all the way through the film)

So, in short, the timeline I have just provided is probably the closest we can get to the truth, but we have to keep in mind that there really isn't an absolute "truth".  I would imagine that Carpenter would probably agree with my assessment, more or less, but he wouldn't say so as the director, only as a member of the audience.  This is just how events seem to play out in the story.
Comment: Jesus, 34 years later and this movie still gives me the chills.  An excellent movie.  Your answer will now force me to get the blue ray!
Comment: @FrankCedeno It's my favorite movie, at least in the horror and horror/science fiction genres.  It is the best example of its kind.  Absolutely brilliant.  A masterpiece.  Carpenter is a god.
Comment: @WadCheber - Don't forget *The Thing* has one of the funniest lines in movie history: "I know you gentlemen have been through a lot, but when you find the time, I'd rather not spend the rest of this winter TIED TO THIS FUCKING COUCH!" :)
Comment: @FrankCedeno - You should have come to the live blog viewing last night.  It was fun.  By the way, have you read *The Things* by Peter Watts?  It is a short story based on the movie, but written from the perspective of the Thing.  It makes the Thing a sympathetic character.  It's available for free online.
Comment: @FrankCedeno Here's a link to the story.  It is very short, and very, very good.  You can probably read it in less than 10 minutes:  http://clarkesworldmagazine.com/watts_01_10/
Comment: You state "As far as we know, nothing of the Dog-Thing survived the attack with the flamethrower.". I've always believed part of the Dog Thing managed to escape. You can clearly see two claws/hands come out of it, break the wooden roof and climb up. I think this part is also responsible for infecting Blair. And it may be the giant Thing in the movie's finale.
Comment: God damn it, I've seen "The Thing" as a child and I was totally fine, but now that I am older and understand more, even reading about all this is just revolting, urgh
Comment: I just watched the movie earlier tonight after reading this question. It's not clear if the Dog-Thing escaped. It certainly looks like it climbs up and out of sight, but it's not explicit that it goes out the hole in the roof. It's also strange that nobody thought to go looking for it if it did escape. My money is on Blair being infected by the tissue he came in contact with during the autopsy--he actually touches his pencil to his mouth after using it to prod the dead Thing.
Comment: You could argue Bennings was completely assimilated, the Bennings-Thing broke out of the storage room through the window and was trying to hide its nature. The physical imitation wasn't complete, but the cellular and mental transformation was.
Answer: I agree to bits and pieces of everyone's assumptions. Here's my input

the camera gives away a lot if you focus on each of the characters' faces. This is the first film I've seen this done so well and discreet that it's almost missed if you're not looking for it. The people who turn into the thing don't have a gleam in their eyes.
Touching the blood isn't enough to infect. It has to be within a cut or saliva.
Notice the dog when it is put into the kennel, it looks like a dog but doesn't really know how to "be" a dog. It just sits like the others because that's what they're doing. Look back at Palmer a couple of scenes after he passes the joint. He has his headphones on during the time they all rejoin each other yet the headset isn't plugged in. He's just going through the motions.

My order of infection:

Palmer from dog
(Part of assimilated dog escapes)

Bennings from store room thing

Norris

When Fuchs was attacked when the power went out, he realized he was being consumed but didn't have time to find anyone to tell them what was happening so he killed himself.

Windows from Palmer thing.

Blair from touching his lip to the eraser. (Note: Blair knew he was infected while in solitude, which is why there is a noose in the frame when MacReady opens the window.)

Some side notes: we don't see Nauls being taken, he just disappears.
The last part of the dog-thing was injured when it was torched so it hid away in the basement where it comes into final contact with MacReady. Notice that it's a combo of dog, Blair, and a handful of others.
At the end of the film, MacReady was tossing Molotov cocktails in each room. He saved the dynamite for the boss fight. But notice when he leaves the burning wreckage that he is holding one of the bottles with gasoline in it. He looks like he's about to take a drink but realized that it wasn't alcohol. This is when Childs shows up from nowhere. Mac offers him a "drink" after saying "let's just wait a while and see what happens." This is him testing Childs to see if he's a thing or not, and sure enough, Childs takes the "drink" like any normal human would which makes MacReady laugh knowing what he knows now.
Childs at this point has had more than enough time to be turned into a thing from sharing Palmer's stogie.
Back to the glimmer of humanity that the camera gives away, at this last scene between Childs and MacReady, notice that MacReady's eyes still have that glimmer and Childs' doesn't. Also pay attention to the breathing throughout the film. Those whose breath you can see tend to be still human. At the end, you can't see Childs' breath.
So the THING is not duplicating the humans, it is slowly changing all of its cells to be "thing" cells.
Comment: In reference to Blair 'knowing' he was infected. I still think that this is up for discussion as I don't believe the noose is proof he knew, it could be as ambiguous as allowing himself to take his own life should the thing attack the tool shed.
Comment: Saying that though, the Blair pencil to the lip after the autopsy is pretty compelling evidence.
Comment: Childs was never infected. The ending scene with Mac, he had a bottle of alcohol, not gasoline. The gasoline bottles were green. This bottle was dark green with the label on it still
Answer: Loved this film when I first saw it back in 1999, and although I think it is still good (first time is always the best with a film like this), John Carpenter should have had an idea who was infected an by what means for continuity purposes. Once upon a time I would have agreed that it was supposed to be Palmer's shadow we see when the dog walks into the room.
However, in a subsequent scene we Palmer light up a huge spliff in his mouth, then pass it onto Childs. Sometime later on Fuchs explains that it only takes one molecule of The Thing/Creature/Alien to assimilate an entire organism and therefore recommends that each person prepares theirs own meals/drinks and only eat from sealed cans. If this is true, and Palmer was indeed the first to be assimilated by the dog, then that means that Childs was also infected, except the subsequent blood test proved that he was human.
So, this means that it must've been Norris' shadow we saw and he was (presumably) the first to be infected by the dog (a possibility as the shadow looks like it could be Norris or Palmer), either that or it was Palmer's shadow and he wasn't assimilated until sometime later on (which I highly doubt) or the third possibility is that is was Palmer's shadow but the filmmakers made a continuity error because even they didn't think about who, and when, and how each character was assimilated, or they simply forgot about the information what Fuchs would later reveal from Blair notes.
As for Blair, I think he was assimilated sometime after he is 'Quarantined'/isolated in that hut, as The Thing had ample opportunity to attack and assimilated someone who had been segregated and isolated from the rest of the group.
Comment: I don't know... second, 3rd, 4th time _still_ scares the living daylights out of me. Especially home alone in the middle of the winter at night. Sends shivers up my spine.
Comment: Interesting take, but contradicted by evidence:  We see Blair touch Split Face with his pencil eraser, then put the eraser to his lips, an act which should be identical in outcome to sharing a joint with Palmer.  Put this together with the word of god statement from the producer that the shadow was intended to be Palmer, and we must conclude that either Blair/Fuchs was wrong, or the Thing *can* assimilate after infection with a single cell, but doesn't always *do* so, or you're wrong about when Blair was assimilated.
Answer: Another possibility is that they were all infected to a degree. The statement was made in the film that only a particle is needed to take over an entire organism.

Nauls handles the first shredded clothing
Blair's surgical gloves stop at the wrist and show blood from the split head corpse brought back from the Norwegian camp on his skin
MacReady uses a stick of dynamite to blow up flaming Palmer-thing and the wind blows fragments back towards him
And so on.

If it can simulate you cells at a time, what's to say you would be aware of the moment you were either infected or completely taken over? If it can simulate your brain a cell at a time, why wouldn't your memories be available? You aren't born knowing English, knowing coordination, knowing that we walking on our feet vs our hands.
Comment: Interesting take - VERY interesting.  I disagree with the idea that everyone is infected, but this is a clever argument.  It makes me wonder how you explain the fact that Clark (the dog handler, who was in close contact with the dog-thing) and Copper (the doctor, who was involved in the autopsy) were purely human when they died (which they clearly were).
Answer: I believe Norris was the first to assimilate. The shadow almost certainly is a match before Palmer. The confusion lies with the next two assured attacks. So I believe Norris was first....and then Palmer after macready makes the recorded tape explaining how Windows found a pair of shredded long johns...now I think we can believe it's Palmer who is second because right before Fuchs gets burned a shadow passed him in the hallway. The thing to remember is that the shadow was TALL...Palmer was taller than Norris! And as for Blair. Let's not forget that a piece of the "thing" escaped before the first dog pen burning. So obviously Blair was consumed most likely right before or after Fuchs was murdered. I say that because with what was built by the Blair "thing"...that would take days to make for sure! Anyone disagree with me?
Answer: BLAIR was doing the autopsy/dissection on the dog/thing, used his pencil to touch areas of the crap, then I saw him touch his lip with the pencil. He was already under assimilation when they stuck his ass in the utility shed, made believe he was crazy while building the escape mini-Viper.
Comment: Mac's hut is different from the utility shed Blair was locked in.  Mac's hut had stairs leading up to it, and inside, there was a bed, computer, clothes, pictures on the walls, etc.  The utility shed was....  a utility shed.
Comment: Shed - http://vignette2.wikia.nocookie.net/thething/images/4/44/US_Outpost_31_Tool_Shed_-_The_Thing_(1982).png/revision/latest?cb=20150629144131
Comment: Mac's hut - http://vignette2.wikia.nocookie.net/thething/images/e/ea/US_Outpost_31_Mac's_Hut_-_The_Thing_(1982).png/revision/latest?cb=20150629144609
Comment: I've always felt the exact same way. Each time I see the scene where he touches the thing with his eraser tip, then touches his lips,  I cringe.
Answer: I generally agree with Greyweather--it fits the evidence. Just a few additional points:

If each particle is its own organism, maybe each particle can choose who it infects. If we assume that, it would explain why Copper (who was massively exposed, but not infected) remained human--because the Thing(s) knew he would be dead soon and any change would have been right in front of everyone.
I also think the process must be gradual when just a few particles are involved. That would explain Norris's chest and stomach pains (as his internal organs were being transformed). It would also explain why an infected Palmer could pass a joint to Childs without the latter being immediately transformed.
However, I wonder why it took so long to infect Childs--either Childs had some special resistance or it chose not to infect him at that time. Neither seems likely. I would, therefore, suggest that Palmer was human at that time, and that Norris got infected first. I don't regard the producer's comment as meaning that Palmer was definitely first--only that they initially intended that. I think Carpenter is a better source, and he kept it open.
I think it's pretty clear that infection requires more than casual contact on the skin--the cells need to be in contact with mucus membranes. If touch were enough, everyone who petted the dog would be infected at that point, and the person who spent the most time with the dogs (Clark) would surely have been infected. That also makes sense with respect to Blair--if he was infected by touching the blood, why did he destroy the means by which the Thing(s) could most easily get to civilization? Why would he warn everyone? If we assume that skin contact does not infect, then that removes the difficulty, and Blair was transformed in isolation--probably before he told MacReady "I'm much better now."
About the eraser-lip contact: yeah, that actually seems stupid for Blair to do (though in the original story it is argued--incorrectly--that something so alien could not be harmful to any life on earth). However, maybe the Thing's cells won't adhere to something non-living (like rubber) and so there was no infection. Or maybe Blair washed his face afterward. But that gesture is the biggest problem in arguing that Blair is infected late (per the argument in 4).

Just my $0.02...
Comment: Point 4 is not true if you consider 2011's _The Thing_ to be canon, as a Thing fuses on skin-contact with one of the characters.
Comment: Hmmm....I was writing based on the original and only saw the 2011 version once. I have to say it didn't make a big impression on me, which would be why I didn't recall that part. I have mixed feelings about considering it to be canon--it just didn't have the same feel as the masterpiece original. But your comment makes me want to view it again.
Answer: With regards to Blairs pencil touch, I do not think he actually made physical contact with the eraser before touching it to his face. The shadow movement below it just seems to give the impression that it was close, very close, but did not actually make contact. I also tend to think that Blair would have wiped his face if anything had transferred from pencil to face. Another point, and I do not recall seeing it mentioned here, or elsewhere, is at the beginning of the movie, when the dog thing first makes contact with the members of outpost 31, it jumps up on Bennings, and proceeds to attempt licking his face. Anyone who has had a dog do that to them knows that there is going to be at least some success. Add to that the fact that the dog thing knew what was at stake, and a) would want to be as friendly, appealing, and seeking help as possible, and b) would also be looking to possibly spread as soon as possible. That would mean that the actual attempt at licking Bennings face would be more urgent, and the actions more frenetic. If you have ever been greeted by a large dog determined to greet you with "kisses" you would know what I am talking about. Bennings had to have had some exposure from that. I think the odds of his exposure that way, far outweighs Blairs odds of exposure via eraser.
Answer: Here's my timeline on the assimilatations of the characters.
Dog infects Palmer- I believe that was his shadow and not Norris's. I think it would take time for his cells to be replaced by the Thing's so it was safe to share a joint so soon afterwards. He probably didn't even know he was infected. His assimilation was overtime.
Bennings Strangled- Watch it
Norris- Sometime after the expedition to the Ufo. I don't think the Thing can assimilate memories and experience, and Norris was talking in science talk during that trip. I think the thing can only mimic people. It needs to learn names and distinctive personality traits. Additionally, I think his was assimilation over time like Palmer and he wasn't fully assimilated until after his first chest pain.
Blair- Although it's possible that he was already assimiliated by the time Mac was asking him questions, I think it's highly unlikely because of the simple fact he was eating when Mac came by and he didn't know he was coming. I'm not entirely sure on the Thing's needs, but I think it gains sustanence from the cells it absorbs and doesn't need food. And it wouldn't have wasted a valuable "oh I'm normal" moment like eating on the off chance someone would come by and see it.
Childs- Sometime after everyone goes out to administer the test to Blair. Although I personally believe he was human at the end.
Gary Shushed- Watch it
Nauls- If there's a sequel, his Thing should be the catalyst of the movie as we never see his body afterwards.
Answer: Personally I do not buy the whole particle infection theory. It is never shown in the movie. All the time when an assimilation takes place it happens with a direct contact (e.g. Windows, Garry, Bennings, probably the first one assimilated by the dog-thing, the shredded clothes suggest a violent takeover). The whole film wouldn't make sense with the theory as the first infected human could contaminate the food right before MacReady talks with Fuchs about the issue of particle infection. The whole team could be infected with this move.
In my opinion they do not fully understand the organism (neither does the viewer) and their lack of knowledge adds further to the paranoia. They even think sharing their food could infect them. But this is never confirmed.
Therefore also Palmer could be the first infected human as stated by the co-producer Stuart Cohen and sharing a joint with Childs would not be sufficient for an assimilation.
See: https://theoriginalfan.blogspot.com/2011/09/shadow-on-wall.html
Additionally Blair could not have been infected by raising the pencil to his mouth. Carpenter stated sometime that it was a mistake and not planned for the scene. So this cannot be regarded as evidence. Unfortunately I did not find the original source for his statement. It is also mentioned on IMDB.
See: https://thething.fandom.com/wiki/Blair
To sum it up: Assimilations are always shown with direct contact. The particle infection theory would prove the Things behaviour as highly unlogical. Why risk nightly violent takeovers and assimilating the dogs in the kennel when it could also "put some cells" in the dog food and human meals? We would not have such a masterpiece with that theory.
Comment: You reference a few interviews and quotes, could you [edit] these into your answer to back it up? When doing so indicate a quote with `>` and include links to interviews where necessary!
Answer: Palmer first via the dog while smoking a joint shortly after dog arrives.  Note his demeanor through the movie-laid back initially and then argumentative during the testing.


Change the color of specific words in Microsoft Word/Publisher

Question: I have a paragraph of text with 5 different colors. Is is possible to just change the color of black text to another color? If not, is there an easier way than just selecting each part of the text manually?
Answer: In the Document,

Press Ctrl-H
Click inside the 'find what' text box
Click 'more'
Click 'format' at the bottom
Select Font
Select the Characteristics of the text that you want to change and click 'ok'
Click inside the 'replace with' text box and repeat steps 3-5
Select the Characteristics of the text that you want the text to change to and click 'ok'
Now insert the Text you wish to replace the color of in the 'Find What' text box

If you wish to only replace the color, then there is no need to put any text in the 'replace with' text box.
Answer: Press Ctrl-F.
  type the text in 'find what' textbox.
  click find in .
  click main document.
  all matched text are slightly highlighted.
now go to home tab from the above blue ribbon.
  from the sub tab 'font' ,choose your font color.


Can I plant a tree into a concrete foundation to break it?

Question: Apparently, what used to be a foundation for a small house is now part of our backyard. The house is long gone, but the concrete foundation has been there for as long as anyone can remember. Is there a species of tree that I can plant on or near the foundation to purposely break it? Time is not a concern.
Comment: Asking "why" might be very relevant to the answer — What is the end result you are going for? Why do you want to employ a tree for this job? Removing a cleared foundation is easy work with the right equipment. But adding a huge, root entwined root system would seem to only complicate the project (not to mention possibly the tree/stump removal that follows). Also, what growing zone do you live in?
Comment: I can think of three big problems with the idea of carrying away "small bits of stone for 20 years". The first is that people will lose interest and the job will be half finished. The second is that remove concrete from underneath a tree is going to be difficult/impossible without removing the tree. The final problem is that if you are taking 20 years to clear a site, you have to put up with a building site for 20 years.
Comment: The aim is for the concrete to crumble, so that it could be carried away in small pieces. Nobody cares enough about the foundation to take a few days to properly remove it. Perhaps carrying small bits of stone for 20 years would have been more feasible. However, the foundation is within 50 feet from the actual residence. That is a deal breaker.
We live in zone 5.
Comment: You seem to be looking for a way to make it disappear without any real effort. I'm afraid that can't be done. Either remove it properly or think how it can be incorporated into your plans for the garden.
Answer: You could plant a large, broadleaved tree (Oak for instance) near the foundation, but I wouldn't advise planting it on top. Over the years, the roots may, or may not, advance sufficiently to crack the foundation that's there, but equally, they may choose to spread in a different direction. The other consideration is how close the obsolete foundation is to your own, current residence - if it means planting a large tree such as an oak within 50 feet of that, I wouldn't recommend it, for you will be putting the foundations of your own house at risk.
Comment: Even if the tree breaks up the concrete all that you end up with is part of your property has chunks of concrete buried deep down. Not a pleasant thing for a future owner to discover or you to remember later.


What are the small lumps in the mouth of the fish, and what is its function?

Question:
Today I was performing a fish head dissection to investigate the gas exchange process in biology. Then when I opened the mouth I noticed these small hard structures at the base, I assume they may be a form of teeth that allows the fish to grind hard shells of invertebrates and plant matter. Yet I was curious as to why some fish have this and others don't and what exactly it's function is. Also if you have a name I would highly appreciate it as I can label it in my lab book. Thank you so much for your time.
Answer: Yes those are teeth and some have them and some do not for the same reason some have sharp teeth wile others have flat scrapper teeth, it depends on their diet.
this kind of teeth are called molariform, and are used for crushing shellfish more than anything else. This slide show will help you, https://www.ru.ac.za/media/rhodesuniversity/content/ichthyology/documents/Anatomy%20Lecture%207.pdf


Will a VM backup of a SQL Server work for restoring the SQL database

Question: I am wondering if a VM backup will restore a SQL database with out integrity issues....  Ie…    we backup SQL nightly and keep 3 copies, we backup with VM and keep 14 copies....  if we had to restore day 10 from VM would we have any integrity issues, I know we could not do log recovery, but that point in time would be better than nothing.  We have completed a test restore and it seemed to work, but I would like the experts answers also.   Thanks
Answer:
I am wondering if a VM backup will restore a SQL database with out integrity issues

Maybe. If you have databases that span local volumes, then your VM backup must be "app consistent" by either using the Windows Volume Shadow Copy Service (VSS), or by ensuring write-ordering across the VM's volumes.
If you're not 100.000% sure of this, you can't rely on VM backups for database recovery.  You can always start with a VM backup and restore your SQL Server backups on it for a more robust recovery solution.
Answer: I've seen database servers go down in flames because the VM backup wasn't database-aware. While it MAY work, you'd best test it first to be sure -- restore the VM as a clone with a different name just to see if the DB comes online. (In disaster recovery, no backup is good unless you've restored it somewhere to prove it is good...)
I recommend you implement a two-stage backup process:

Backup the virtual machine's OS and test that the OS can be recovered. It sounds like you're doing this already.
Backup the databases separately, via a native SQL Server backup tool, and preserve them separately.

I recommend you do the SQL backups with a tool like the backup scripts in Ola Hallengren's solution.
In my production environments, we back up our database servers (physical and virtual) daily, but we use the Ola Hallengren scripts to backup the databases to a separate file server. We schedule the O. Hallengren jobs such that:

User Databases get a full backup once a week and differential the other days.
System databases get a full backup daily.
User Database logs get backed up every 1 to 30 minutes, depending on the server. (Production servers? Every minute. Dev servers? half an hour isn't a problem for them...)
All of this is configured to preserve two weeks of backups on the file server.

(We also schedule the DBCC and Index jobs those scripts create on a weekly basis.)
This means I can restore any of my databases to any point in time within a rolling two-week window Before I have to go get a tape restore from our backup engineer. Any further back and I can have the engineer restore the appropriate backup files from that file server and then manually restore the database from there -- rather than blowing out an entire server just to get one database (or one table on one database, Cthulhu-forbid...)
And I have two scripts (based on this) that build the series of restore database statements needed to recover via the files this produces. One just dumps all the full backups in the file share, then all the Diff backups, then all the log backups. The other is a bit smarter, in that it gets the most recent full, the most recent diff, and then the log files more current than that diff. This way, if I have to recover a crashed database or clone a database to another server, I just fire off those scripts, create the "Move X to path" statements since our system engineers never assign the same drive letters when deploying new servers (sigh), and I'm done.
Also, always remember to set your backup strategy to meet your company's RPO and RTO goals.
I also feel a need to reference the "Bad Backup Schedule" list, since it specifically mentions VSS snapshots.
Answer: Make sure that you see the snapshot reflected as a SQL Server backup in the SQL Server backup history and the errorlog file. You will also see messages like "I/O is frozen for database X", "I/O is frozen for database Y", etc. And subsequent "resuming" messages after the snapshot was established. Without those messages, the SQL Server data is not to be trusted.
Answer: Yes that is possible but as you noted, if this is a backup solution, you lose all capability to restore individual databases, point in time recovery, and of course as you know will lose any OS changes made.  However if you wanted to restore it, backup the SQL Server database so you have a backup of it now, or just continue using it, you're good to go assuming the VM was shut down and brought up properly.
The 'cleaner' method would be to backup the SQL Server on here, then restore it on your primary VM.  This way you know exactly what you're working with.  However reverting to a snapshot, if shutdown and started up properly, is perfectly acceptable too.
Just check the Hypervisor, OS, and SQL Server error logs to ensure it shut down and started up properly.
Answer: It will work, but you should only use it as a last minute backup before an upgrade to a newer version of SQL or something similar in case you need to rollback the OS and application versions.
For SQL backups you should use native SQL backups or a third party backup product that has a SQL client.


My Chinese Laoshi gave me a Chinese name "玉意" I don't know what it means

Question: My Chinese Laoshi gave me a Chinese name "玉意" I don't know what it means.. if anyone knows what my chinese name means... can you please explain to me?? My mandarin is still very limited so I could not ask my Laoshi directly...
Answer: 玉意, I assume you are female?
There was an actress of the same name in the 50s.
https://baike.baidu.com/item/容玉意
Maybe your Laoshi is a fan.
Anyway, 玉意 could be translated many ways depending on how 玉, (jadeite) is interpreted.
Besides being a semi-precious stone worn as jewellery it is revered by the Chinese, and in their culture jade symbolizes nobility, perfection, constancy, immortality, purity.
"The wise have likened jade to virtue. For them, its polish and brilliancy represent the whole of purity; its perfect compactness and extreme hardness represent the sureness of intelligence; its angles, which do not cut, although they seem sharp, represent justice; the pure and prolonged sound, which it gives forth when one strikes it, represents music" -- 礼记 -- "Book of Rites", (Zhou dynasty -- 1046 until 771 BC, (周; pinyin: Zhōu)
So Jade is more than a stone. Thus the meaning to be put to 玉 in your name would be nobility, perfection, constancy, immortality, purity. Take your pick.
Finally, 意 too could mean many things or meanings. But let's take the one which, to my mind, (no pun intended), is most suited to combine with 玉, and that is "thought"
So, 玉意 could mean "nobility, perfection, constancy, purity of thought"
Comment: yes I am a woman, my chinese full name is 王玉意 does the name sound strange or weird?
Answer: As my answer is rather long, I'll comment here.
王玉意, your given name is neither strange nor weird. Don't you trust your Laoshi?
王, or in pinyin, "Wáng"; also pronounced "Wong", (Cantonese), and "Ong", (Hokkien), is a very common surname. It is also very ancient as one might expect because it has the meaning of "monarch", or anything imperial. A famous figure from ancient China, 王昭君, (Wáng zhāo Jūn), was known as one of the Four Beauties of ancient China. Born in the Western Han dynasty (206 BC–8 AD), she was usually depicted as a "p'i-p'a", (琵琶), player, a four-stringed musical instrument, like a guitar.
Given my answer on 玉意, (with 玉 having 王 in there as well), the whole name 王玉意 is both graphically strong and intrinsically powerful.
Your Laoshi certainly has high expectations for you as you could say the whole name means -- "Imperial purity of thoughts"
BTW, is your Laoshi Cantonese? Because 王玉意 sounds "smoother", easier on the tongue, when pronounced in Cantonese.
Here is a musical tribute to 王昭君:-
https://www.youtube.com/watch?v=hff4jzAdBNs
It'll take years later for you to understand the song, but at least you'll get to hear how 王昭君 is pronounced.
Good Luck on your learning journey.
Answer: the name "玉意" is, . . . a little bit "odd", imo
"意" means "idea, opinion, sentiment, . ."
"玉" only, means "jade", "gem", "precious stone".
however, when it's placed before another character, it would means "a honorific adjective of addressing someone's body, speech & beheviour" (尊稱他人的身體或言行)

尊稱他人的身體或言行。如:「玉體」、「玉照」。三國魏.曹植〈七啟〉:「將敬滌耳,以聽玉音。」

http://dict.revised.moe.edu.tw/cgi-bin/cbdic/gsweb.cgi?o=dcbdic&searchid=W00000011670
so, the first "association" i have, when hearing this term, is "someone's respectable opinion"
last, rejecting one's teacher's recommendation is, . . . not good.
have fun :)
Comment: the full name that my teacher gave me is 王玉意 , does it sound weird ???
Comment: @littlesunflowerfield, depends on your original full name


Can I play PUBG on Remix OS?

Question: Is there any special task needed to run PUBG on RemixOS Android 6.0? I've downloaded and installed PUBG on RemixOS but after Tencent logo, a just black screen is coming. I've also installed Google Play Games properly on RemixOS. Is something missing?
Answer: I think u can't play with remix os its dead now try phoneix os as i see few playing on Phoenix os and nox player as well.

Can I play PUBG on Remix OS?


Create a Google Load Balancer with fixed IP to Istio Ingress Gateway in GKE

Question: I Have a Google GKE with 2 nodes and Istio installed.
It created automatically 2 load balancers with ephemeral IPs. I use one of them in CloudDNS (HTTPS) to redirect DNS to one of the ingress-gateways.
When I need to recreate the cluster there will be another Istio with another ips. Then, I have to change the ip in cloudDNS. It takes some minutes to this change to take effect.
I have to eliminate these minutes. For that we want to create a load balancer with a fixed IP. This ip will be fixed in CloudDNS. This way, when I need to recreate the cluster I will change load balancer to point to the new cluster istio ingress gateway. The changes wil take effect immediately.
Then, my question is: How can I create a load balancer with a fixed IP to my Istio ingress gateways?
I tried several combinations of TCP load balancer/HTTPS Load Balancer with a fixed IP pointing to the LB created to istio-ingressgateways but when I put the Fixed IP in Cloud DNS it does not work.
Answer: It seems that it is not possible at the moment, I found this link where is mention something about your issue.


Examples of Intentionally mucking the best hand?

Question: From what I understand from poker rules, It seems possible to intentionally muck the best hand. It seems unlikely as it would mean losing money... but could be some way to trick an opponent into being overconfident. Is there any example of someone doing that and it having some significant influence (allowing to recoup his /her loss or more) ?
Answer: The only situation I could think of where a player would gain from mucking a winning hand is collusion (cheating). For example, player A and player B join a tournament and they decide that they are both going to work together to help player B win. Player A, B, and a third player C get into a big pot and player A is betting very large. Player B calls the bets and so does player C. Player A is inflating the pot so player C puts more money into it, and if player C folds/loses player B will win the hand because player A mucks no matter what.
Answer: The definition of mucking a hand is to discard a hand, meaning the hand is conceded and is no longer in play. While there are circumstances where a hand can be retrieved from the muck, if a player releases their hand, IE folds their hand it is a done deal. (if the hand was not conceded by the player, the dealer accidentally mucking, some other player tossing it into the muck etc. it may be retrieved from the muck)
I draw a blank as to this comment:

but could be some way to trick an opponent into being overconfident.

To boil this down to an answer, there is no possible way to gain an advantage by mucking the best hand.
Answer: Under tournament rules, a player who folds (or even checks down in last position) the best possible hand after all the cards have been dealt is assumed to be cheating, playing for someone else's benefit. There is generally no such rule in live play, but I would certainly penalize a player for doing that.
Of course before all the cards are dealt, it's quite possible that folding the current best possible hand is the right play. For example, I remember a hand of Omaha/8 I played a while back: I was in the small blind and called (after 4 callers) with 8s9s9hTd. The flop came down 6d7d8c. I checked, and by the time the action got back to me it was 4 bets. I folded. Yes, it's the current nuts, but I've probably got a negative EV.


Recover data from a bad sector hard drive

Question: I have a 2TB hard drive with 0% health and it contains a lot of bad sectors. When I attach the drive with the PC, it shows the data inside it, but I cannot copy it or open it, when i try to do this, my entire pc slows down and after few minutes hard drive disconnects from the pc. Is there any possible way to recover the data from the hard drive? Thanks
Answer: When the OS finds a bad sector the data is lost and is not recoverable. I am sorry. That's why you need to backup. Do you have an external drive or use the cloud? If not then I hope that you did not lose any important data. Always backup even on a good HDD. I would personally replace the HDD if you got a lot of bad sectors but a few is not a problem by that I mean a small amount of bad sectors like 1 bad sector. If there is a lot then replace it like 1000 bad sectors.
Read more:
A few bad sectors are not an issue but do check if the bad sectors are increasingly very fast as this will be telling you that your HDD will die soon.
Tip: Your hard drive could last 1 minute to 5 years depending on how well you treat your hard drive. It also depends on where you got the HDD from. So always back up.
A few bad sectors are no issue just check through over time. The bad sector is a part of your HDD that is damaged from physical or software issues. Physical such as dropping the HDD and software for an example you HDD is trying to write to that sector but you get a power cut. So just backup your stuff more often on an HDD that is having bad sectors.
A sector is a small space on the HDD that is 512 bytes per sector.
When the OS finds a bad sector the sector will no longer be used and data to the sector is lost.
You cant fix bad sectors because when you fix them. It will go bad again but one bad sector can still be used at its current state of health.
Update just wanted to add something:
Having bad sectors is a bad thing because you get lower performance, less storage space and if it increases in a short time then your disk is failing although a few are not a problem.
Do note that bad sectors can damage your file system or your boot sector. So you may need to reinstall the OS.
You most likely got nothing to worry about if you got less than 10 bad sectors although if it's 10 or more I would replace it.
Comment: Hope this help. :)
Comment: Thank you so much for your detailed answer. My hard drive has 250 bad sectors and they are not increasing. The health of my hard drive 0%. Whenever I attach my hard drive to my computer, it shows up for some time and when I open it or try to copy any file, it freezes there and then it disappear. Is there any way to recover the data?
Comment: @AHMYTech. Hi. 250 bad sectors is a big number and I would not trust this drive. But it may last for a few more years but I recommend getting it replaced. You can't really fix bad sectors or recover from them but if there is data not in a bad sector then yes. You could clone your drive to a healthy one. Or upload your files to the cloud. Overall you can use this drive but for non-important data. When replacing the HDD make sure it is the right size such as 2.5 inches and the right type such as SATA. If under warranty give it in they replace it for you. :) Hope this helped.


Where are headers stored for civimail

Question: We're using Mosaico Templates for our newsletter. When the newsletter is published it comes with a legacy header that was not visible when composing the newsletter.  How do I get rid of that header?
I'm guessing the header is a remnant of a pre-Mosaico template that we used. I disabled a similar looking header in Administer>Communicatons>MessageTemplates but test versions of the Mosaico newsletter still contain the legacy header.
We're using CiviCRM 5.50.3 on Joomla! 3.10.9
Answer: Have you checked under Mailings - Headers, Footer and Automated Messages? Is that the header you're seeing?
Comment: Thank you. Yes, the legacy header which I was trying to delete was in Mailings - Headers, Footer and Automated Messages.  I found Mosaico templates that were created when the legacy header was active still reproduced the header even after I disabled it.  I found that in order to eliminate the header from the mail output I had to create a new template *after* disabling the header.
Comment: That's weird. I don't think it's supposed to work that way. So the header is showing up in the actual sent mail? If you look in the mailing report at View complete message, does the header show up there too?
Comment: Yes, Lars, before I found the header in Mailings>Headers, Footers and Automated messages the header was showing up in the mailing report at View Complete Message..  I thought that disabling that header would take immediate effect in all templates. Now I understand it takes effect only upon editing a template or creating a new template.

Where are headers stored for civimail


Craft CMS logo still showing on CP Login page

Question: We have uploaded a logo in the CP, but the CP Login page still has the craftcms logo under the login box. Perhaps a config setting to remove this that I don't know about?
Comment: Do you happen to be using a load balanced server setup?
Answer: As of Craft 2.5, by default you will see your Site Name in plain text above the login form, and a light Craft CMS logo below it. If you have Craft Client/Pro and upload a custom Login Page Logo from Settings → General, the plain text Site Name will get replaced with that logo, but the Craft CMS logo will remain.
The Login Page Logo was never meant to be used to white-label the CMS - even pre-2.5 if you uploaded a custom logo, there would still be Craft and P&T references in the CP footer (which hasn't changed).
Comment: @user1463467 We file the features under "System Branding" on https://craftcms.com/pricing, and back in e Craft 1.x days they were part of the "Rebrand" package, but never have we suggested it's a true white-labeling solution. If we ever allowed that it would cost significantly more than $299.
Comment: Didn't you advertise that a benefit of a Craft Pro license allows you to debrand it?
Answer: The logo is stored in craft/storage/logo/ which is a in a path that's often in your .gitignore


Missing Email Toolbar

Question:
I have a few older Word documents with the following toolbar showing. If I save them in Office 2016 the toolbar is hidden and I do not know how to restore it. Since I did not create the original documents I am not sure what version (probably 2010) and what options were used to create this.
Answer: There are no Toolbars in Word 2016 and there hasn't been Word 2003.
To add the ability to Send Emails from Word 2016 you can add the Send function to your QAT (Quick Action Toolbar), see image below, or add it to either an existing or custom tab on Word's ribbon. Also look at the other "Send ..." email functions that are available in the All Commands category of QAT or Ribbon Customization.
Comment: Send to Mail Recipient is what I needed. Adding this to the QAT and clicking on it showed the familiar toolbar and saving it kept it open.

Missing Email Toolbar


outlook 2003 error message

Question: In my outlook 2003, my messages are not going out to certain people.  My send/recieve message popup is there informing me of a problem but also a Symantec Email Proxy popup is reoccuring.  It reads: Your email message was unable to be sent because your mail server rejected the message.  550 Administrative prohibition.  My web guy fooled around with it for 10 mins and managed to get it to send to one of the ppl I couldn't send to... he then left.  The rpoblem is still there but my web guy isn't...unless I pay him to come in yet again!  Please explain how I can possibly fix this if you can.
Answer: That's an old issue with a few solutions which may/may not work. What I would do first if I were you is to update your Symantec virus protection and then boot into safe mode and run a virus Scan.

outlook 2003 error message


$\mathbb{Q}$ does not have least upper bound property

Question:
Let $\mathbb{Q}$ denotes the set of rational numbers. Find sets $E \subset S_1 \subset S_2 \subset S_3 \subset \mathbb{Q}$ such that $E$ has a least upper bound in $S_1$, but does not have a least upper bound in $S_2$, yet does have a least upper bound in $S_3$.
Comment: Please show us what you've thought of so far so that we might be able to guide you through it. Also, please don't ask anything in the imperative - we don't like being told what to do.
Answer: Take $E_0 = [0,1)$, $E_1=E\cup \{2\}$, $E_2=E\cup(1,2]$, $E_3=E\cup[1,2]$. Now take $E=E_0\cap \mathbb Q$, $S_i=E_i\cap \mathbb Q$.
Answer: Take $E = [0,1[$, $S_1 = [0,1[ \, \cup \, {2}$, $S_2 = [0,1[ \, \cup \, ]1,3[$ and $S_3 = [0,3]$. The inclusions are trivial, in $S_1$ the l.u.b. is $2$ because it is the only upper bound, in $S_2$ there is no l.u.b. because supposing $b$ was a l.u.b. for $E$ in $S_2$, then $b \in ]1,3[$ and $(1+b)/2$ is also an upper bound of $E$ in $S_2$, contradicting the choice of $b$ since $(1+b)/2 < b$. Similarly you can prove that $1$ is the l.u.b. in $S_3$.
P.S. I wrote intervals as if they were subsets of the reals but it is understood that $[a,b[$ denoted intervals containing rationals.
Comment: There are maybe more trivial examples to come up with, but the idea is to work out the fact that the l.u.b. of $E$ is not in $E$. Then you put $E$ and add a big upper bound to it (hence my construction of $S_1$), then you remove the upper bound property by taking an "open" interval (in the ][ sense, not in the topology one). Adding the endpoints to my "open" interval in $S_2$ brings back the l.u.b. in $S_3$.
Comment: you forgot to intersect the sets with $\mathbb Q$.
Comment: ... Read my P.S. The sets were supposed to be included in $\mathbb Q$ anyway, I think everyone got the point.


10 years UK ban, now married to UK national, can I apply for a spouse visa?

Question: I'm a Nigerian. I applied for UK visa in 2016 through an Agent and I was placed under V3.6 because the agent made a mistake in my company registration letter. Then I applied for the UK visa again in 2020 because my girlfriend was pregnant and she plan to give birth in UK. The visa was deny and my 10 years ban was activated. Now I'm married to my UK British wife and I have a son with her, Who is a British now. Do I have a solution to this problem? Can my UK 10 years ban be lifted now? Can I apply for spouse visa rather than the visitor visa have been applying for ? I have our marriage certificate now. I need to be in my spouse and son's country. Would my previous 10 years ban affect my spouse visa
Comment: Your situation is complicated, and a ban is very serious. Rather than relying on random people on the internet, you should consult a UK solicitor who's familiar with UK immigration. You can find one through https://www.lawsociety.org.uk or https://www.ilpa.org.uk.
Comment: What prompted the ban? You should have received a letter explaining the reasons.  Please edit the question to add an image of the letter with identifying information blocked out.
Answer: the best solution for such complicated case is to consult an Immigration Advisor , and to my best Knowledge that adviser -usually a Lawyer- would appeal the ban based on your case facts.
I found a case of a Nigerian citizen with TEN YEAR BAN TO ENTER THE UK OVERTURNED
[https://www.penningtonslaw.com/case-studies/ten-year-ban-to-enter-the-uk-overturned][1]
Comment: The link is dead. A lawyer or solicitor is not the same thing as an "Immigration Advisor"...whatever that is. Downvoted.


PHP read from uploaded text file?

Question: If I upload a text file via a form, is it possible to output its contents directly from the $_FILES variable rather than saving it onto the server first?  I know this is a security risk, but it will only be run on a local machine.
Answer: Doing
file_get_contents($_FILES['uploadedfile']['tmp_name']);

is valid however you should also check to make sure that the file was uploaded through a form and that no errors occurred during upload:
if ($_FILES['uploadedfile']['error'] == UPLOAD_ERR_OK               //checks for errors
      && is_uploaded_file($_FILES['uploadedfile']['tmp_name'])) { //checks that file is uploaded
  echo file_get_contents($_FILES['uploadedfile']['tmp_name']);
}

A helpful link is https://www.php.net/manual/en/features.file-upload.php
Comment: Hi, why should I check file via is_uploaded_file? Is there some security issue? What problem it can cause? Can you explain it to me or provide some link to post? Thank you
Answer: The file is saved to temp directory the moment it's uploaded, but you can use $_FILES['uploadedfile']['tmp_name'] to read it without having to save in a permanent place.
Comment: Doh, I was doing this all along, but the HTML was nothing that would be visible on the page.  I'm using chrome, so when I clicked view source, it showed me a re-loaded version of the page, where the text file had not been loaded:)
Answer: Unfortunately, no. At least not through the $_FILES variable. Sorry.
EDIT: It is always saved as the temp file in $_FILES and you'll always have to use that one for content.
Comment: Okay, fine, I'll just not post when I know the answer is bad news!
Comment: This answer is strictly true because the question asked specifically about the $_FILES variable but I think the other answers are correct for what the post seems to ask!
Comment: Yeah like Lukos said, you got it wrong, "Unfortunately, no" is incorrect. You can get the contents from an uploaded file without saving it

PHP read from uploaded text file?


What pipe has approx 5/8" (.625) ID?

Question: I need to make some spacers on a 5/8" axle shaft and I'm thinking if I could just buy a steel or even pvc pipe with 5/8" ID or slightly over that will be the easiest solution.  Is there a standard steel/pvc/conduit size that I can get from the getting spot what has a 5/8" ID?
Comment: 1/2" EMT and iron pipe are both *close*, but about 0.003" **small** - so if you have a lathe you could bore them out, but if you had a lathe you probably wouldn't be asking this question...
Answer: Depending on "how much space you need" and budget, purchasing "Plain Sleeve Bearings" might be the easiest way to get this done well if you lack tools to make your own. Such bearings are inexpensive, widely available, and come in many lengths and outer diameters with a bore that fits your shaft well.
Closest (larger) common thing I find is 3/4 PEX at 0.681 but that may not be "tough enough" - alternatively a steel tubing supplier (metal shop) may have more size choice in "not hardware store/home center" product.
Comment: Yes, your local hardware store should have a good selection in steel, brass, bronze, etc. No need to farmer-hack this.
Comment: Thanks, I saw the sleeve bearings but the home depot/lowes near me never seem to have the size I need for odd parts like that and I didn't want to have to wait for delivery.  Plus I would likely have to cut them anyway which would be harder than cutting pipe since they aren't long enough to hold in my pipe clamp.  I actually found some old 3/4" galvanized steel conduit in my scrap pile that I was able to cut for these, it's a hotdog down a hallway but it's good enough for the girls I go out with.
Comment: Try a real metalworrking supplier, such as McMaster-Carr or MSC, & online ordering. It's not much of a wait, really, and they have the stuff you actually need, not the random selection of junque that the hardware aisle at the BORGs (either color) have. Often at much more reasonable prices, too.
Comment: I just needed them to space out some new hazard fraught wheels on my homemade lawn tractor trailer.  If I bought something from a real supplier they would be the most expensive part of the whole trailer.

What pipe has approx 5/8" (.625) ID?


Can you adjust the spell angle in Skyrim PSVR?

Question: After my PS4 installed the update for Skyrim PSVR last night, the angle for aiming spells changed significantly. Some quick googling suggests that this was intentional with Update 1.4.4. However, I preferred the previous aiming system. Is there a way to adjust or re-calibrate the spell targeting angle?
Answer: After extensive playing and asking others, I never found a way to re-calibrate or adjust the spell angle. While proving a negative is difficult, I think it is safe to assume there is no way to adjust it.
Personally, I got used to the new angle after playing for a while longer.


Alternate definition of Entropy

Question: I am going through the book Computational Optimal Transport by Peyré and Cuturi.
In it (see Formula (4.1), P. 65/209) I came across the definition of the discrete entropy, which is not what I expected:
$$
H(P) = - \sum_{i,j}P_{i,j}(\log(P_{i,j})-1),
$$
with $P \in [0,1]^{n,m}$ being a coupling matrix, i.e. describing the transformation of discrete propability distributions.
What confuses me is the $-1$ in the sum and I would like to know, why it is included. Since  $\sum_{i,j} P_{i,j}=1$ it is shifting the result by $-1$.  Still it confuses me.
Comment: Did you confirm that this is indeed an error in the book? I'm having the same doubt as you.
Comment: It adds $+1$ to $H$, actually.
Answer: The obvious reason $-\sum_{i,\,j}P_{i,\,j}\ln P_{i,\,j}$ is a more common definition is that it's extensive, but we often don't care about that, so much as about relative entropies. In that case, one may as well add a constant $c$ to taste, giving $c-\sum_{i,\,j}P_{i,\,j}\ln P_{i,\,j}=-\sum_{i,\,j}P_{i,\,j}(\ln P_{i,\,j}-c)$. The choice $c=1$ has the unique attraction that the whole expression is just $-\sum_{i,\,j}\int_0^{P_{i,\,j}}\ln pdp$.
Comment: Does this has some computational advantage? I mean, things are already in a discrete setting, so do you see how such integral form can be beneficial?
Comment: @DaviBarreira It's a continuous function equal to a discrete sum, but no, the choice of $c$ isn't computationally important. But this integral representation provides an alternative motivation for Shannon entropy.
Answer: Adding to the answer by @J.G, one reason for adding the -1 term could be to have cleaner expressions for the partial derivative of the dual formulation with respect to the transport plan matrix $\mathbf{P}$.
If there was no $-1$ term, then the partial derivative (page 63 of Computational Transport by Peyré and Cuturi) would have an extra $\epsilon$ term. Having the $-1$ in the coupling entropy eliminates this $\epsilon$ term, leading to a simpler expression for the Sinkhorn iterations.
Comment: This does not provide an answer to the question. Once you have sufficient [reputation](https://math.stackexchange.com/help/whats-reputation) you will be able to [comment on any post](https://math.stackexchange.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/low-quality-posts/1676978)
Comment: @Suman Chakraborty. I disagree. This answer is actually far more valuable than the one of dirich1337 for instance.
Comment: I agree, the only thing I wanted to point out is that it is not an answer. Rather, it is a comment on another answer.
Comment: I actually had the very same question as dba had in the original post. J.G's answer was helpful in reminding that adding a constant doesn't really change anything. Certainly doesn't change the original goal of adding entropy, that is to make the transport problem strongly convex (which isn't explicitly mentioned in the previous posts).

 I think the simplified expression is more relevant to the original problem than the unique attractive point P.G mentioned.  Obviously, it's up to you guys where you want to place the answer, but I think others could benefit from this answer.
Answer: I think it might just be a strange error...
In Cuturi's Paper on Sinkhorn Distances entropy is defined in the usual way.
Comment: I don't think this answer is actually correct. If you look at the paper "Iterative Bregman Projections for Regularized Transportation Problems", by Benamou, Carlier, Cuturi, Nenna and Peyré, they also define entropy with "-1".

Alternate definition of Entropy


How can a shell script tell if it is running in an xterm window with 256-color support?

Question: I'm writing a shell script that I would like to use 256-color support when present.
In a just world, xterm would simply set the TERM environment variable to xterm-256color and I'd use tput colors to discover the support.
But we live in an unjust world.  xterm sets TERM to xterm even when launched with TERM=xterm-256color.  Is there anything I can do from within a shell script to discover whether the script is running with stdout connected to a tty running in a 256-color xterm window?  If so, I can set the environment variable myself.
Answer: You can check for xterm version - $XTERM_VERSION.  Though I am not sure from which version xterm started to support 256 colors.   Other terminals (for example gnome-terminal), behave similarly to xterm but also set COLORTERM variable to correct terminal name (gnome-256color).
Comment: `XTERM_VERSION` dates from [2005](https://invisible-island.net/xterm/xterm.log.html#xterm_205), while 256-color support dates from [1999](https://invisible-island.net/xterm/xterm.log.html#xterm_112), however packages may/may not have configured that.
Answer: Since most xterm-s are colorized these days, I would assume that the terminal has 256 colors, and make the script accept an option (perhaps -monochrome or -no-colors) otherwise.
BTW, I also see a reason for some power-user to force the -monochrome  behavior: on very slow connections (think of intercontinental ssh) it might be useful to disable colors to lower the bandwidth.
Comment: most term support only 16 colors.


Do elementary particles have a density?

Question: The SM supposes elementary particles are structureless unless composite objects like hadrons. For bosons, that can occupy the same state, we can define energy or mass density. The same happens but limited by Pauli principle. So, are energy or mass density for ensembles of bosons and fermions the only meaningful density for fields? Or are there reasons in the SM to consider electrons, fermions, even bosons as particles with size?The only size zero no infinite density particle I can oversee are massless particles. Thus, why stuff like classical electron radius are naive estimates of quantum sizes just as infinite density seems wrong? Is density energy quantum?And the density of a quantum or point particle?
Comment: A "bare" or non-interacting electron is a point particle, as far as we can tell. A "dressed" or interacting electron is not. It has a cloud of virtual photons, virtual electron-positron pairs, and other virtual stuff around it, giving it a non-zero effective size. Even photons have "structure functions" describing their virtual extent.
Comment: You answer yourself: the *mainstream model* standard model, has all elementary particles as point particles , no type of density can be defined on these. Density is a statistical measure after all, and single elementary particles are not subject to statistics, the way they are defined.
Comment: In classical mechanics, we define the density of point particles all the time, using Dirac delta functions, and statistics has nothing to do with it. The density is infinite, but when integrated over volume gives a finite mass.
Answer: The SM defines elementary particles as point like, with no spatial extent and no substructure.
You are saying that you can only think of massless particles (like the photon, gluon, graviton) as defined by the SM (point like) that have no infinite density.
Why do you think that fermions, that do have rest mass are different? You are basically saying that particles with rest mass must have infinite density if they are defined by the SM as point like.
Now you are saying that in this context (having infinite density if point like), massless vs having rest mass makes a distinction.
I must disagree. Energy and mass are the same, you can transform them. What does it mean that a particle does have rest mass? Because of the mass-energy equivalence principle, in your case, for energy density, it does not matter whether a particle does or does not have rest mass.
Now you are saying that it is OK to have a photon point like, and have finite density. But it is not OK to have an electron point like, and have finite density.
I disagree with the distinction because:

both particles do have stress-energy, photons have frequency, electrons have rest mass and kinetic energy
nobody has ever measured an electron at rest, rest mass is a theoretical value, calculated, and fits the theory of SM

Now basically, I believe that both massless and massive particles (elementary) are point like in the theory of SM. They both do have energy, and if you want the point like definition, then yes, their energy density is defined infinite. But to define energy density to a point particle is not possible, because of the HUP. You cannot restrict the particle to a volume of space after a certain size, without raising its energy (momentum) to infinity.
You can try to define these particles as point-like, but in reality they exist in spacetime, and QM fields exist throughout space, and these particles are excitation in those fields, which are not point like. That is the reason we distinguish near and far field. I will use photons for the example of massless and electrons for massive (gluons, quarks are in confinement, gravitons are hypothetical).
Now both photons and electrons do have energy, and create their own near field:

photons have stress-energy and create their own gravitational field
electrons do have their own EM field and their own gravitational field

Basically all elementary particles have their own force field. We use virtual particles to describe the math when we try to describe the interaction of these fields with other particles. So basically the size of these particles in reality is not point like.
If you like to use that view, then they do not have infinite energy density.
I do believe that maybe some day, when we will have figured out what elementary particles are made of (strings), then we will be able to understand energy density of elementary particles too.

Do elementary particles have a density?


Magneto and the loss of his powers

Question: Repeatedly it is said that Magneto lost half of his powers while trying to destroy some Apocalypse starship. Do you know the name of the comic, or is it just a fact mentioned - but never depicted - in the story?
Comment: "*Repeatedly it is said that Magneto lost half of his powers...*" - for the sake of a complete question (especially for those, like me, that haven't seen this mentioned previously) would you be able to cite some occurrences of this being said, and by whom?
Comment: Sure. In the 90's Fox cartoon and through all the Age of Apocalipse series. There's also several mentions in other Xmen adventures, perhaps in Onslaught's saga, but this I am not so sure.
Comment: I think in a more canonical timeline, Magneto is considered to lost his powers again Prof. X, and that's why Xavier is in a wheelchair. But here I just want to ask about Age of Apocalipse.
Answer: This happened in X-Men Chronicles 1: "Origins" (1995)
As Wikipedia says:

In the Age of Apocalypse, Ship was nearly destroyed by Magneto when it
  endangered the lives of his X-Men. This was after they successfully
  thwarted the plans of En Sabah Nur's Horsemen to take control of the
  United States nuclear arsenal. The battle between Ship and Magneto
  left the X-Men leader drained and unable to ever fully restore his
  magnetic powers.

From the referenced comic:

Magneto overloads his powers in an attempt to stop Gideon and avert the launch of nuclear missiles.
Later, while still weakened from his previous exertion, Magneto damages Apocalypse's ship.

The Wikipedia description seems a bit confusing, since Magneto didn't entirely destroy the ship, and calling it a "battle between Ship and Magneto" seems a bit inaccurate, but it does occur after the Horsemen try to take control of the nuclear arsenal, so....
Comment: I always thought that he lost his powers when travelling to the moon (and facing there Death). Thanks for the answer!
Comment: @user2820579 - If you tell me which comic that's in, I could see if that's the case.

Magneto and the loss of his powers


CDC Not working after 24 hours

Question: Was doing some testing with Change Data Capture and Heroku and now I am not receiving any events. This is against a brand new Developer Edition (DE) org. However, if I switch my connection to another org it works. What limit could I be hitting? Not seeing anything stick out in the /limits API in Workbench.
Answer: Limits rest api does not give accurate data (We faced this issue in prod and salesforce support team reverted with this comment). Your handshake might be failing.
Try with workbench to subscribe to Streaming push topic, for developer edition  there is a concurrent user limit (Client subscription) of 20.
Just click Streaming push topics from workbench , if you see error there then you will get to know what limit did you hit.

This is the limit you might be hitting.

CDC Not working after 24 hours


Photon: speed and mass

Question: Is it correct to think that the speed of light does not depend on the speed of light source because photons have no mass, so they have no the kind of inertia that is associated with mass, so they can not "feel" (acquire) the speed of the light source?
Answer: the photons will travel at the speed of light relative to both the moving light source and an object in another frame of reference. time dilation will bridges the gap so that both may co exist.
Answer:
Is it correct to think that the speed of light does not depend on the
  speed of light source because photons have no mass

In a certain sense, yes.
The Lorentz transformations guarantee that the speed $c$ is invariant; an object with speed $c$ in one inertial reference frame (IRF) has speed $c$ in all IRFs.
But an object with invariant mass $m$ cannot have speed $c$ in any IRF since, in that case, the particle's four-momentum
$$\mathbf P = \frac{m}{\sqrt{1 - \frac{v^2}{c^2}}}(c, \vec v)$$
would be undefined (when $v = c$, the denominator of the fraction is zero and division by zero is undefined).
However, (hand waving argument ahead...), if we examine the limit as $m \rightarrow 0$ and $v \rightarrow c$, it appears possible that there are zero invariant mass entities with speed $c$ and defined four-momentum.
And indeed, we find this to be the case for photons.
Comment: No mass means no inertia?
Comment: @Paul No: mass is a messy concept and you need to be careful to tell the difference between rest mass of constituent particles and the rest mass of a system - *rest mass is NOT additive*: a system of massless things can have nonzero rest mass if interacting. A fundamental particle is a *mass eigenstate* of the "mass squared operator" $E^2 - p^2$ and so has a sharply defined eigenvalue for this operator. In terms of more everyday things, a photon of energy $E$ confined in massless, perfectly reflecting box has a rest mass because has inertia *i.e.* it takes force to accelerate the box ....
Comment: @Paul .... against the light pressure of the wave reflecting from inside the box: the impulse needed to reach speed $v\ll c$ is $E\,v/c^2$ so the system could be said to have rest mass and certainly inertial mass $E/c^2$. Also, as source terms in the Einstein field equations, photons of energy $E$ always add effective gravitational mass $E/c^2$ to the $T_{0\,0}$ term in the stress energy tensor "source". So they have gravitational mass $E/c^2$ and indeed there are electrovac solutions of the EFEs where intense light acts on itself through gravity. So inertial mass = gravitational mass ...
Comment: @Paul (at least as far as classical gravity thinks) but rest mass gets muddy and a term strictly only applicable for a particle or system when you can define the $E^2-p^2$ observable. When we say in classical relativity that something has rest mass $m$, we're taking this last sentence as an assumption.
Answer: Is it correct to think that the speed of light does not depend on the speed of light source because photons have no mass, so they have no the kind of inertia that is associated with mass, so they can not "feel" (acquire) the speed of the light source?
No. Photons have an energy E=hf or E=hc/λ where f is frequency and λ is wavelength. The frequency and wavelength are there because photons have a wave nature. The speed of a wave doesn't depend on the speed of the emitter, it depends on the properties of the medium. Space is such a medium, with properties such as permittivity and permeability, wherein the speed of light is given as $c_0={1\over\sqrt{\mu_0\varepsilon_0}}$, see Wikipedia. This expression is somewhat similar to shear wave velocity $v_s = \sqrt{\frac {G} {\rho} }$, again see Wikipedia
As an aside, note that a photon has no rest mass because it isn't at rest. However it does have a non-zero "inertial mass". This is a measure of energy rather than a measure of mass per se, because when unqualified, mass is assumed to mean rest mass. See the last line of Einstein's E=mc² paper: "If the theory corresponds to the facts, radiation conveys inertia between the emitting and absorbing bodies". Radiation conveys inertia, which is why the photon has a non-zero inertial mass.

Photon: speed and mass