is this possible to change the tab page icon as if loading the page when I call function $.ajax() and on success or error again change icon to default? I need this because when the slow internet connection the user can see that something is loading and it will be wait for ending of process. In addition, I don't need the popup with the loading icon.
I have a web application that's branded according to the user that's currently logged in. I'd like to change the favicon of the page to be the logo of the private label, but I'm unable to find any code or any examples of how to do this. Has anybody successfully done this before?  I'm picturing having a dozen icons in a folder, and the reference to which favicon.ico file to use is just generated dynamically along with the HTML page. Thoughts?
My neighbor has asked me help with his laptop, an HP with lost power-on password. I tried inserting an Ubuntu cd to format the partition, but well... it doesn't even get there. Any ideas? Sources missing in /etc/apt/sources.list, how do I get them back? $x^2-y^2=2s$, s cannot be an odd integer How can we prove that if $x^2-y^2=2s$ holds, s cannot be an odd integer. What theorem in number theory should we use? What should I focus on when converting photos to black and white? When I look at the black and white photographs from professional photographers, I notice that they have a special look. Not a specific style—obviously each photographer has her own style—but a look which make them different from similar color photos, a special feeling, which makes them shine specifically as black and white and makes color irrelevant.  When I convert my own photos to black and white in Lightroom, they don't have any special look. They just look like any other of my photos, simply converted to black and white. I imagine that there are two reasons for that:   Some scenes are better for black and white. Talented and/or experienced photographers know which scenes would be beautiful in black and white, and shoot specifically those scenes. Moreover, they know how to adapt the scene itself and the lighting to black and white (for instance by not relying on the color contrast itself).  In my case, I don't think much about shooting for black and white. It comes only in post-processing, when I either think that the photo will look great in black and white (and very often, it doesn't), or I find the colors to be poor and turn the photo to black and white (which actually doesn't make the photo any better). Post-processing is much more complex than clicking on black and white button in an app. It involves not only adjusting black and white mix (i.e. raising or lowering the lightness of specific colors), but doing lots of other adjustments.  In my case, I do black and white mix, but other adjustments I do are similar to what I would do for a color photo: actually, I may even do them on a color photo, and only then turn it to black and white.   So, what should I take in account if I want to have decent black and white photographs? Are there specific techniques, tips, tricks or warnings for someone who usually shots in color and wants to start black and white photography?  Let me show some examples. Are those scenes not great for black and white photos in the first place? Or can they be salvaged through proper post-processing?  1.  First, a poorly done photo from Scotland with dubious composition and very poor colors that I was unable to correct in Lightroom.  The same image in black and white isn't much better. The difference between the trees and the grass on the hill is barely visible. Houses on the hill fade with the sky much more than in the original version.      2.  Here's a photo of a cute pet.  In black and white, the gap between the mouse's ear and the background is barely visible. There is absolutely no benefit compared to the original.      3.  Finally, an example of a much more contrasty picture. The black and white version is weird, since the lack of color makes it difficult to understand whether the soil is the actual sand or something else. I find the sky to be weird as well, and making the blue channel darker or lighter in Lightroom haven't changed that. How to catch and print the full exception traceback without halting/exiting the program? How is arccos derived? Stupid question but I need to understand:  If $ \cos = \dfrac{\text{adjacent}}{\text{hypotenuse}} $  What is arcosine? $ \text{adjacent} \cdot \text{hypotenuse}$? Is this the same for arcsine and arctangent? How can I store and retrieve a custom list in a blend file? I am trying to create a script that will allow me to generate a list and store it in the blend file. The list starts out blank and then strings get added to the list, resulting in: [&quot;test1&quot;,&quot;test2&quot;,&quot;test3&quot;] I create a PropertyGroup Class for the enum, define a new scene property as a CollectionProperty type with access to that enum Class, before appending a new item into the enum: import bpy  class item_set(bpy.types.PropertyGroup):     myItems = []     enums = bpy.props.EnumProperty(name=&quot;My Items&quot;, items=myItems) bpy.utils.register_class(item_set)  bpy.types.Scene.myItemSet = bpy.props.CollectionProperty(type=item_set)      newItem = bpy.context.scene.myItemSet.add() newItem.myItems.append(&quot;test&quot;)    I need to be able to add items to the list, save the blend file, re-open the file, run the script again and retrieve the list from the scene. However, the  states:  One thing to keep in mind is that after saving and reloading your blend-file, your new property will have disappeared...    ...To make the values you assigned in a previous session available again, you need to redefine the property. So after reopening the blend-file you need to rerun: bpy.types.Object.myProperty = bpy.props.StringProperty()   I can do the appending into and retrieval of the property values absolutely fine upon an initial run, but as the documentation states, the property is unavailable when trying to view it's contents on a reload of the file (after having run the script, saved and re-opened the file), but I am unsure how to redefine it without clearing all it's values. If I redefined the scene property, it would presumably also need the enum Class to be available, which would currently set myItems back to [] (empty). Do I need to change the way I am initially setting the items in the class or am I on entirely the wrong track with all of this? All I need to do is store a list in the blend file, so if there is a better way please let me know. Thanks. (I would hope, eventually, to be able to store sub lists [[&quot;a&quot;,&quot;b&quot;],[&quot;c&quot;,&quot;d&quot;],[&quot;e&quot;,&quot;f&quot;]], I'm just trying to get normal lists to work first.) What is the SE version of Seven Dirty Words? Caution: R-rated language  Some words, when present in a comment, make it eligible for instant, automatic one-flag deletion. Out of the , only      shit and fuck    appear to work this way. But then there are other, Stack Exchange-specific dirty phrases:    accept rate or accept-rate acceptance rate  what have you tried   whore    Are there other such words or phrases? Is there a complete list of them?     Some suspect words and phrases that do not suffice for automatic deletion:       accept an/the answer, thank you, voting to close, piss, bitch, idiot, cunt (often found on Stack Overflow as a misspelling of "count"). I want to create a wave made out of particles/dots. The wave should look like this:  I tried to achieve this effect by adding an ocean modifier to a plane. Then I added a particle system to the plane but now I don't know how to go on. How can I make the particles lay on the 'ocean' and move when the ocean is moving? PS: I know there is a way to do this with a material in the Blender Render. But firstly I want to create the whole thing in Cycles and secondly I want to have particles. View my questions with unaccepted answers Acknowledgements outside of document environment How do I add an acknowledgements section (maybe not specifically \section) outside of (before) my document environment?  in my .cls, there is  \def\@acknowledge{} ... \def\acknowledge#1{\booltrue{@ack} \gdef\@acknowledge{#1}} ... \def\ackpage{ \chapter*{Acknowledgments} \@acknowledge \newpage }   but it seems that I find problems when I put newlines in the  \acknowledge{folks in here}  (see  ) I know as a fact that I've gotten liquids larger than 3 ounces through the TSA scanner systems (such as sunscreen). I was scolded one time for bringing a shampoo container, but I was still ultimately allowed to bring that container through.  In any case, how often are liquids larger than 3 ounces ultimately confisticated, if I put them in a ziploc bag where they can be clearly seen? I am generating one report where I need to use background image. But I found that image always starts leaving some margin space to left side.    \documentclass{article} \usepackage{wallpaper} \usepackage{mdframed} \usepackage[top=2cm, bottom=2cm, outer=0cm, inner=0cm]{geometry} \begin{document}  Some content \ThisLRCornerWallPaper{1.0}{image.jpg} \end{document}    How can I use background image covering whole page? How to get my hover-menu back? Problem on Extremal Graphs: three independent paths The problem states that:     A simple (or strict) graph with $n$ vertices and $m&gt;\dfrac{3(n-1)}{2}$ edges, has two vertex   joined by three independent paths.   Any hints, ideas or useful results, to attack this problem? Remove a part of a list of names I have some files and each files have distinct name but all of them have the same "-statement" at the end like this:  flower-statement.mp3 leave-statement.mp3  ball-statement.mp3 goal-statement.mp3   So I want to remove this: -statement  Is that possible? I remember that the main character is trying to find the group that destroyed his home planet while he was on a mission. His planet was very difficult to live on and the people became expert in martial arts and were the best soldiers in the galaxy. They were mercenaries and often helped against tyrants. There was a very memorable section in at least one book about an initiation task that the main character had to do in that he had to survive in their wilderness for days. He was at some point surrounded in a old building by thousands of poisonous worm/snake creatures that he managed to survive until rescued by the leaders. Singular verb after two noun phrases joined by "and" that can be thought of as a single thing I am having trouble with the following sentence:      "The complexity and diversity of the new platforms is worrying us."   If "complexity" and "diversity" constitute two subjects, then the verb should presumably be "are"; however, the sentence feels more natural with "is". Is this correct? Is there a linguistic term for this occurrence?    The following questions address the general topic of compound subjects, but not specific cases like this:             And the following question seems to have somewhat inconclusive answers:         So this question is not really a duplicate of these three. What is the method to make files in a USB Flash Drive undeletable? Does these method work with USB 3.0 interface?  (I have surveyed some Flash Drive manufacturers, and I only see undeletable files for USB 2.0 drives, and not 3.0 drives. One manufacturer claimed that USB 3.0 cannot do undeletable file, so I am curious whether the claim is correct...) $$ \sum_{n=1}^{\infty} \frac{(\sin n+2)^n}{n3^n}$$  Does it converge or diverge?   Can we have a rigorous proof that is not probabilistic?   For reference, this question is supposedly a mix of real analysis and calculus.