What causes still objects have lines in them when lighting is being changed?

First, here is what I'm talking about (I changed the contrast to make it more visable, since it's not really visible in still images):    Ingore the chat box, I was spamming buttons to see which one took a screenshot :P  Hopefully you can see clearly what I'm talking about. Basically, those lines in the sky (they're only visible in the top part of the image). This seems to occur for me any time I use a still object and move lighting across it (the faster the light, the more the lines are visible to the player). What causes this? It seems to happen in lots of games though (especially in the sky, since it's pretty much still). Is there any way to remove them (I'm not looking for API specific because it seems to occur in all APIs)?


JavaScript Closures X Self-invoking Functions

I'm a JavaScript newbie. Recently I'm learning about JavaScript closures and I'm stuck at the following section: <!DOCTYPE html>
JavaScript Closures

Counting with a local variable.
  <button type="button" onclick="myFunction()">Count!</button>
0
       I understand that the add() function is a self-invoking function and a closure at the same time so it will invoke itself once the webpage is load. The counter will initialize and return 1 immediately. And whenever i press the button (calling the add() function). It should be initialize again and return 1 again. But it turns out my logic is wrong, the counter keeps increasing by 1 when i press the button. I don't understand why as i thought var counter = 0; will be recognized every time and also isn't the variable inside the function should have local scope so after it has executed the counter variable will be destroyed?


Unable to Login after Switching to Local Account in Windows 10

I was trying to rename my User folder in Windows 10, version 1909, OS Build 18363. 418 to my correct first name. I opened an Administrator Command Prompt and used the command "net user Administrator /active:yes" and it completed successfully. I then rebooted Windows and logged in as Administrator which is not associated with Microsoft. I opened Windows Explorer and I renamed the User folder from "denni" to "Dennis". When I tried to sign out and sign back in as myself, I get the message that Windows was unable to sign me in and to try to sign out and sign in again. Every time I tried I would get the same message. I renamed the folder name back to the original name again and was able to log back in.   I asked a question about the above on Super User and Ramhound replied "You cannot rename the user profile directory using the method you describe. What you can do is disassociate your account from a Microsoft account, you will be prompted to assign profile name, select the desired name at this time. After you logout and back into the profile reassign the Microsoft account of you so desire." I am not a computer novice, but I am new to Windows 10 and this is a new install. I had no idea how to "disassociate your account from a Microsoft account", so I googled it. I disassociated my account by switching to a local account then rebooted and logged back in.   I changed the User folder name, but cannot figure out how to reassign the Microsoft account. I have searched google and it said to go to Accounts, then Email and Accounts and Sign in with a Microsoft account. There is no Sign in with a Microsoft account option available, only Add an account and Add a work or school account. These sites must be using an older version of Windows 10. Now I'm locked in this local account. One of the things I saw while googling was to Add an Outlook account. I did that after I took the photo included and a lot of the options from my Windows 10 show up, but still no way to sign in with a Microsoft account.  I sure would appreciate some help getting out of here. I don't know what to do now! Please help! Thanks in advance!


Should I remove my post or should I give my solution there?

I've just asked something here:   In the meantime I figured it out myself, so I don't know what is the proper process at times like this?


How should I go about installing Chrome on ubuntu 14.04 32bit?

I would like to install Chrome on Ubuntu 14.04 32bit, but it's no longer supported.


Choosing $101$ numbers from $\{1, 2, \dots , 200\}$.

I want to prove that if you choose $101$ numbers from the set $\{1,2,3,4,\dots ,200\}$, there are always two numbers such that one divides the other with no remainder. The prove should involve the "pigeonhole principle".  I am not sure how to define the pigeonholes and how to define the pigeons. Any assistance with the proof will be most appreciated.  Thank you.


How can I repair this door and deadlock?

Some time ago I closed my front door (rather forcefully) while the deadbolt was sticking out partially.  This loosened the deadbolt, and the top screw no longer held. In addition, it cracked the door on the interior side. I've attached a picture showing the damage.   The door works mainly, though it can be difficult to lock sometimes, especially when the weather gets colder.  I'm currently renting, and will soon be moving out of this house, once I buy a house. I would like to repair this door myself, and I'm hoping I don't have to replace the entire door.  Is this something that can be repaired? If so, how? I realize that a new deadbolt is probably needed, but how can I repair the wood damage around it?


number of folders in a directory (recursive)

I would like to print the number of folders (recursive, excluding hidden folders) in a given CWD / current directory.  What command, or series of commands can I use to ascertain this information?


Is there a way to see a detailed report of how I collected my reputation on a specific site, grouped by the way of achievement? E.g.  +100 from being a network user +450 from upvoted questions +300 from upvoted answers -80 from downvotes +45 from accepted answers -200 from bounties   Ideally I would also like to be able to drop down each section to see the specific questions / answers.


Is $\lvert a-b\rvert\le\lvert a\rvert+\lvert b\rvert$ always true?

I wonder if $\lvert a-b\rvert\le\lvert a\rvert+\lvert b\rvert$ is always true.  I think it is true, but I don't see how to prove this mathematically.  Thanks.


Single Image Render Fail -- cycles and internal Blender 2.71 and 2.66

I figured it out  but I do have a follow up question...  I answered my own question. If you have images or footage loaded into the Video Sequence Editor, it will only render the frames from that footage. There may be a way to circumvent this, but I don't know how to do that. At any rate, the frame I wanted to render was past the footage, so it rendered a blank frame. As far as I know, I have to get the footage out of the Video Sequencer in order to render the scene.   I found this answer when I went to find a backup of this file and the backup file opened to the Video Sequencing preset and I remembered this little tick. If someone knows how to circumvent this problem so I don't have to delete the footage, that would be great.    Original post:  I looked around to see if this question has already been asked and one fellow had the exact same issue, but was scolded for being too vague and the question was closed. I could understand his question and know his predicament and can only hope I can be specific enough here to ask the same question. I have a good bit of time invested in this blend file and I hope I won't have to redo it.   So, here's the situation:  1) I have a blend file with a lot of objects, materials, and textures, including two character rigs. I have a blocking run saved in the Action Editor of the Dopesheet and would like to render one of the key frames from it to act as a reference in another scene I'm setting up.   2) I have tried to render a single image file from this scene a) by selecting the Render Image selection from the Render menu in the 3D Viewport, b) by clicking the Image Render icon in the Render tab of the Object Properties window, and 3) by hitting the F12 button on my Macbook keyboard. None of these produce the result I'm looking for:  a single image of the keyframe from the scene in this file.  3) I have tried to render the single image in versions 2.661 and 2.71 of Blender as indicated in #2 and have achieved no different result.  4) The problem seems only to be with this file and no others that I checked.  5) I closed all applications on my computer and rebooted. No change with this file.  6) I have not had this issue with this file before. I do not have this issue with other files with the same scene (i.e., as described above with multiple objects, etc. -- same scene, shots are in different blend files)  7) The result I get (see link below for screenshot) the gray and white checkerboard that shows while an image is rendering.  The Screen I get when I try to render a single image file ()  8) Recently, I read a post in Blenderguru that made suggestions about changing settings in the Light Paths and Performance tabs to reduce render times. I made these changes in this particular file and other files. I have not had this same problem in the other files. In those files I can render the image with no problem. See link below for screenshot.  Light Path and Performance tabs in the Render Panel of the Object Properties window. ()  9) I recently installed Blender 2.71. I still have 2.661, so I tried the files in both versions of Blender. My other files will render, but the one in question won't. I get the result explained above. I have also tried to render it in the Blender Internal Engine -- same result.  10) I have tried to look over settings in the Render panel of the Object Properties window and in the User Preferences. I am not an expert user of Blender or a computer programmer, so most of the options are Greek to me. If I accidentally changed settings, I don't know which ones those would be.   11) If I can't find a solution, I will have to redo the 5 hours of blocking I already put into this, a scene I am quite happy with.  I've tried to be thorough and specific. If I haven't been, so be it. I really appreciate it if someone knows what I could do to fix this or has any suggestions.


How to change a minecraft player's gamemode when they are in a specific area?

I just made a minecraft server and was wondering if in the server it would be possible to change a player's gamemode when they visit someone else's building(s) (this excludes the owner of the building).  I used the /testfor command but I'm not sure how to select a specific land and change the game mode of the player on it.


Hi Blender Community,   I have a noob question. I've noticed that when I bevel a cube, the bevel turned out to be evenly distributed. However, when beveling a rectangular box, I am noticing the bevel is scaling in proportion to the long and short length of the box.  I figured that if I then try and rotate them locally, it might do the trick. But I've come to realize that unless there is a menu that I can punch in the numbers directly, I wouldn't be able to know for sure if the angle is exact.   If you all can help shed some light on a method that worked for you, please let me know!   I'll attach a photo so that the problem is easier to understand.   Thank you!


Can't install Ubuntu on new windows machine

Ubuntu won't install. Have a new computer with Win 10. Have formatted the drive to add a partition for Ubuntu 18.04. Used Rufus to get Ubuntu onto a USB Stick. With USB Stick in place, I reboot and get the message: "Couldn't get size: 0x8000...". Anybody have a fix for this?


Is there a word for people who deliberately disregard standard spelling?

These days, a majority of youth hate spelling here in India, not because they find it hard to grasp but because they think it is cool to deviate from standards and follow their own spelling whims. Any attempt to reason with these people is met with contempt. I was wondering if there was a word or term for intentional bad spellers.  My quick Google search threw up a word called  to refer to bad handwriting and/or bad spelling. I am not sure if we can derive cacographer from that word and use it for intentional bad spellers.


I have a house with an old phone system that was deactivated by the previous owner and I want to use it. There is a punch down block in the basement with a rat's nest of wires around it. How do I figure out what needs to be connected to what? Also, how do I find out which wire leads to which phone jack?


Is there a thumb-rule for designing neural-networks?

I know that a neural-network architecture is mostly based on the problem itself and the types of input/output, but still - there's always a "square one" when starting to build one. So my question is - given a input dataset of MxN (M  is the number of records, N is the number of features) and a C possible output classes - is there a thumb-rule to how many layers/units should we start with?


How to generate a random number between 1 and 10 with a six-sided die?

Just for fun, I am trying to find a good method to generate a random number between 1 and 10 (uniformly) with an unbiased six-sided die.  I found a way, but it may requires a lot of steps before getting the number, so I was wondering if there are more efficient methods.  My method:   Throw the die and call the result $n$. If $1\leq n\leq 3$ your number will be between $1$ and $5$ and if $4\leq n\leq 6$ your number will be between $6$ and $10$. Hence, we reduced to the problem of generating a random number between $1$ and $5$. Now, to get a number between $1$ and $5$, throw the die five times. If the $i$th throw got the largest result, take your number to be $i$. If there is no largest result, start again until there is.   The problem is that although the probability that there will eventually be a largest result is $1$, it might take a while before getting it.  Is there a more efficient way that requires only some fixed number of steps? Edit: Or if not possible, a method with a smaller expected number of rolls?


Can anyone please elaborate Number precision and overflow in JavaScript?

I was looking at Number.isInteger() on . I came upon this example -  Number.isInteger(5.000000000000001); // false  I changed the value to 5.0000000000000001 and if I execute the same method on the console, the result is:  Number.isInteger(5.0000000000000001); // true  Also 5.0000000000000001 === 5 comes out to be true.  Can someone please explain what's happening here?


Setting a default program for extensionless files

I'm using Windows 8.1.  To open extensionless files, I have to double click/right click -> Open With on the file, then scroll down until I find whatever it is I think I need, usually notepad/notepad++, a hex editor, or an image editor/viewer. I tried to set a hex editor as the default program for extensionless programs, but I can't. I found an article from 1999 recommending the registry editor, and that would work, but this hex editor wasn't actually installed (it's just an .exe) and doesn't have anything in the registry. I don't have any reference for how to set it as a default program for the . extension in the registry.  After searching around a bit more, I found that, on win8, you can change file associations in Control Panel\Programs\Default Programs\Set Associations. And while I did see the . extension there, I can't seem to set a default program for it. The . extension is only there because I added in the registry, as ".".  Another method I tried is making an extensionless file, then going to its properties and setting the default program there. Unfortunately, the button to set the default program just isn't there.  Is there any way to accomplish this? And, for that matter, is there a reason I shouldn't be doing this? It seems awfully complicated, and I'm afraid it's for a good reason. The only article I can find that explains how to do this is from before Windows 2000 came out, which isn't a good sign.


Consider a metric $g_{\mu\nu}(x)$ and a hyper surface ${\cal H}$ defined by $~f(x) = c$. One (or at least I) usually finds the "induced metric" on ${\cal H}$ by solving$~f(x) = c$ for one of the coordinates and plugging it back into the metric to give us $\gamma_{ij}$. For null hypersurfaces, I seem to be finding that the resultant induced metric is singular.         Is it true in general that the induced metric as defined above is singular on a null hypersurface?   How does one define the induced metric on a null hypersurface?


In some figures I create for my thesis I want to replace the labels and such using the same font and size as in the rest of the thesis. A couple of month ago I already used psfrag and pstool (with pdflatex). But now I cannot get it working. I did not changed any files (using a version control system, so I'm pretty sure).  The following mini example produces the same error as in my thesis:  \documentclass{article}  \usepackage{pstool}  \begin{document}    \begin{figure}      \centering   \psfragfig*{Inverses_Pendel}  \end{figure} \end{document}   In the same directory are the files Inverses_Pendel.eps and Inverses_Pendel.tex. Inverses_Pendel.tex contains the following content:  \psfrag{T}[cc][cc]{$Test$}   And here is the error:     Package pstool Warning: Execution failed during process:   ps2pdf   "-dAutoFilterColorImages=false" "-dAutoFilterGrayImages=false" "-dColo   rImageFilter=/FlateEncode" "-dGrayImageFilter=/FlateEncode"   "-dPDFSETTINGS=/pre press" "Inverses_Pendel-pstool.ps"   "Inverses_Pendel.pdf" This warning occurred on input line 7.      ! Missing $ inserted.                     $ l.7 \end           {figure} ?  ! Emergency stop.                     $ l.7 \end           {figure} End of file on the terminal!   It's such a generic error, I don't even know where to start searching.  I'm using MikTeX 2.9. I'm passing the -shell-escape option.


How to know if 'uncouthed' is a word or not?

I wanted to know if 'uncouthed' is a word or not. I didn't find anything when I searched for it in dictionaries. All I got was the word 'uncouth'. However, when I searched it in Google Books, it showed a lot of books where this word is used. So what's the best way/website to know if a word exists or not.


Appended table row not responding to onClick

I've created a table that contains several rows with input fields. In the last 'td' of my second to last 'tr', I've added two divs that control adding or removing a table row. Take a look at my (very basic) code.

Name	Job	Time

<input id="name"/>	<input id="job"/>	<input id="time"/>
+

   Pretty simple right? Using jQuery I added an onClick event on the 'addPerson' div inside my table. Here's my (again very basic) code:  $("#addPerson").on('click', function(){     //append a new row });   Appending the new row works, a new row is added before my last row ('calcRow') and is almost identical to the second to last row. The only thing different is that the new second to last row has a second div ('removePerson') next to the already existing div ('addPerson') and the 'addPerson' div from my old second to last row is removed.  Now to my problem, when I click on the 'addPerson' or 'removePerson' nothing happens! I've created a fiddle to show the issue:    I've tried '.live' and '.click' instead of '.on', but nothing worked so far. Do I have to bind the event in some way, or is my code just faulty?


Login network administrators automatically in multisite networks

OK, I have  and it works, thanks to @seamus-leahy, but not exactly as I want, and not only because of this function. I use it in a multi networks installation and all networks in this configuration works like separated WP installations, so the network example.com will not recognize and log in automatically the network administrator when he/she is logged in on the subsite.example.com, but was previously logged out from the example.com. This means that the network administrator, in the context of multisite networks particularities and this absolutely necessary for my multi network function,  also cannot access the main network example.com. How to solve this?


Prove that a graph that has a Hamilton circuit

How can I prove this:  Let $G$ be a simple graph with with $n\geq3$ vertices and $m$ edges. If $m\geq \frac12 (n^2 - 3n +6),$ then $G$ has a Hamilton circuit.


There are a number of deleted scenes (specifically in the prequels) that add a lot of interesting information to the backstory of events and characters in the films.   One that jumps out at me is the meeting in Episode 3 between many of the founders of the Rebel Alliance.     However, there is a scene where Shaak Ti is killed by General Grevious.    But she appears in the video game, The Force Unleashed. I realize though that the Force Unleashed is considered non-canon as of now but I'm still curious considering that these seem to both be from lower sources of canon and were both created before the Disney buyout.  What is the canonicity and status of these scenes? Obviously they can't be considered G Canon because of times where we have alternate scenes that contradict the locations/characters of actual movie scenes.


I want to know how to type the middle symbol below. I tried detexify but it didn't get what I wanted.


Search for a file inside a tar.gz file without extracting it and copy the result to another folder

I need to search for a file inside a tar.gz file without extracting it. After that, I need to copy the file that was searched (if ever there is) to another folder.  So far I have this, but the copy part of this line gives me an error.  gunzip -c file.tar.gz | tar tvf - | grep filename | -exec cp {} /folder/another_folder \;   Or is there a better way to search for a file inside a tar.gz file without extracting it?


Can I sync with my iOS4 device such as iPhone 4 and iPad?

If Ubuntu can't do this natively, are there any workarounds?


query parameterization to avoid SQL injection

I am new to this, can anyone help me please?  it was said to me that SQL injection exploit can read sensitive data from the database with this way of coding. and I need to parameterize the SQL queries so that the application is not vulnerable to SQL Injection. can someone help me with that?  if(isset($_GET['n']))       {       $id=$_GET['n'];  $query= mysql_query("select * from announcements where announce_id=" . $id);  while($row= mysql_fetch_array($query))   this should do this for example: announcement.php?ann=223  thank you very much


Legendre symbol, second supplementary law

$$\left(\frac{2}{p}\right) = (-1)^{(p^2-1)/8}$$ how did they get the exponent. May be from Gauss lemma, but how.  Suppose we have a = 2 and p = 11. Then n = 3 (6,8,10), but not  $$15 = (11^2-1)/8$$  n is a way to compute Legendre symbols from Gauss lemma: $$\left(\frac{a}{p}\right) = (-1)^n$$


Screen lock is off in the privacy settings, but it keeps on showing after the screen goes blank after 10 minutes.  I just want the screen to go blank after ten minutes without having to press esc every time I get back to using the PC.  I am using Ubuntu 18.04.2 LTS and it's simply great, except for this little irritation.


I have Windows 10 and Ubuntu installed on my system. My grub bootloader is all of sudden missing and I am directly logging in Windows 10 without getting an option to choose between Ubuntu and Windows 10. What should I do? I tried this bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi, but it is not working.


Arithmetics of cardinalities: if $|A|=|C|$ and $|B|=|D|$ then $|A\times B|=|D\times C|$

Suppose that $A, B, C$, and $D$ are sets with the cardinalities related as  $|A|=|C|$ and $|B|=|D|$. Prove that the cardinality of $A\times B$ is equal to the cardinality of $D\times C$.  I know that I must prove the bijection of the function $f: A \times B \to C \times D$, but I am not sure how to say this? Can anyone help me?


Difficulty in evaluating a limit: $\lim_{x \to \infty} \frac{e^x}{\left(1+\frac{1}{x}\right)^{x^2}}$

The limit I have to evaluate is this -  $$\lim_{x \to \infty} \frac{e^x}{\left(1+\frac{1}{x}\right)^{x^2}}$$  I first checked if L'Hopital's rule applies here. The limit of both numerator and denominator is $\infty$. But differentiating the denominator yield a even more complicated expression.  I am not getting how to approach this question using some other method. Thank you.


I am hiding a field using hook_form_alter, because I only want to be able to edit this field in views. then, I used the  to display this field. Now, my problem is that when I press the save button, all of my nodes are saved.  Is there any way to only save nodes where this field has been edited?


When Agent Smith is destroyed by Neo, how can he survive, how can he still exist? Do some or all machines have a physical body? Smith gives a rough explanation, but that simply explains that it was both unexpected by him to be destroyed and to survive this:      Something that I knew was impossible, but it happened anyway. You destroyed me, Mr. Anderson. Afterward, I knew the rules, I understood what I was supposed to do, but I didn't. I couldn't. I was compelled to stay. Compelled to disobey. And now here I stand because of you, Mr Anderson. Because of you, I'm no longer an agent of this system. Because of you, I'm changed, unplugged, a new man, so to speak, like you, apparently free.   So, what happened?


Uniform random variable as sum of two random variables

Taken from :  Show that it cannot be the case that $U=X+Y$ where $U$ is uniformly distributed on [0,1] and $X$ and $Y$ are independent and identically distributed. You should not assume that X and Y are continuous variables.  A simple proof by contradiction suffices for the case where $X$, $Y$ are assumed discrete by arguing that it always possible to find a $u$ and $u'$ such that $P(U\leq u+u') \geq P(U\leq u)$ while $P(X+Y \leq u) = P(X+Y \leq u+u')$.  However this proof does not extend to $X,Y$ being absolutely continuous or singular continuous. Hints/Comments/Critique?


What relative pronoun should I use here? which or that?

Can I change "which" to "that" as it is a Restrictive Clause?     Catholics were aligned with Southerners in the Democratic Party at midcentury, a coalition which was exceedingly unfavorable to Catholics on the issue of public aid.    EDIT I have read the question , but "a coalition" is a modifier or additional information of "Democratic Party" so I think it is better to use "that" instead of "which" to make the sentence restrictive clause. Can I use "that" instead of "which"?


here is a set of data about core competency evaluation on public health of two age groups,the evaluation has 5 levels,so it's ordinal. and I'm tired of analyzing data with comparing their means.I'm wondering if there is a more advanced statistic methods to cope with these data?Many thanks!!!


Is it possible to install Ubuntu without a CD or USB drive?

So basically as it stands I have a laptop which has no cd/dvd drive, and I don't have a usb drive.  The laptop has windows 7 installed with ubuntu 11.04 installed through wubi.  What I want to do is remove windows completely, and make ubuntu the only OS installed on the system.  Is there a way to do this without re-installing ubuntu? (i.e. can I take my wubi install away from windows?)  or is there a way to from inside ubuntu have it run the ubuntu iso somehow so I can just wipe the system and install it fresh? (even if it means I need to have an e.g. 2gb partition just for the image to reside in).


How can I change what keys on my keyboard do? (How can I create custom keyboard commands/shortcuts?)

I want to change the key bindings on some of the keys on my keyboard.  I want some to run commands and others to activate different keys.  What applications can I use to do this?      Index:       (from within System Settings)             I'm still looking for answers using dconf and any other method.


Has the universe we live in started as a black hole that is imploding?

As discussed in , as far back as the 1960s it was suggested that the Schwarzschild metric can be smoothly joined to a de Sitter metric. For example the idea has been used by Lee Smolin in his ideas idea for black hole evolution.  If the suggestion is true it means that matter falling into a black hole would emerge into a de Sitter spacetime arguably comparable to our own.  So has the universe we live in started as a black hole of this type?  Is it possible to prove that the big bang was a black hole of this type?


How does a variable declared in switch statement out of case work?

Code :  #include <stdio.h>  int main (void) {     int a = 1;      switch(a) {         int t= 4;     case 1:         printf("%d", t);         break;     default: //Does not mean anything just for clarity         break;     } }   Result in C11 gcc: 1  Question: Why is this working? Isn't the compiler supposed to give an error? if a is 1, shouldn't it just jump to case 1? Why is it printing 1?


Main Reference + Appendix with "Other Sources"

I need your help with references. I have 1 main reference section, and I want to include a second list of references as an appendix. For the main reference I use:  \newpage  \bibliographystyle{plainnat}  \bibliography{library}   The problem is that I don't know how to include the second list using a different bib file, and then calling the function \nocite{*} to show every sources inside the file.   I have the appendix part workout. I need your help to design the function to call the second bibliography, and that does't interfere with the main reference:   \newpage  \appendix  \section{Other Sources} \label{app:ReferencesB}   In addition, I will prefer that the word References is not shown after Other Sources.  Thank you so much!!


Why does zsh variable assignment without quotes fail to trim whitespace?

I'd like to obtain the size of a file, but pesky leading indentation gets brought along. Consider the following two scenarios: ❯❯❯ printf "Size: %s\n" $(wc -c < <(echo test)) Size: 5  Here wc is being provided with an file descriptor being sent "test\n" so it produces an output of 5 bytes. This is as expected. ❯❯❯ SIZEVAR=$(wc -c < <(echo test)); echo $SIZEVAR | xxd 00000000: 2020 2020 2020 2035 0a                          5. ❯❯❯ printf "Size: %s\n" $SIZEVAR Size:        5  Here we see things start to fall apart when using a straightforward variable assignment to cache the output of wc. I've lost the "whitespace trimming operation"! I have double-quoted neither the shell interpolation upon variable assignment nor the variable upon use. How can I force the variable assignment to trim? Perhaps with a printf? Is there a less ugly or at least more concise way to achieve it?  Originally I thought this was bash behavior but it turns out this behavior is due to zsh. bash behaves as expected. Leaving question open because I'm still very curious why zsh behavior diverges here and I'd love to know the root cause.


I'm still learning the new 2.8 layout. I screwed up my interface somehow and I can't scroll in / out.   I try doing load startup file, but it resets me back to the default cube.  How can I reset the interface while keeping the model I've been working on ?


How to set same identation for `tabular`'s on different, but successive, pages?

How to set same identation for tabular's on different, but successive, pages?   I've two tabular's, each on different, but successive, pages of the document.  To have same identation, I've tried the \noindent, but this doesn't seem to help.  As can be seen on the image, the identation are slightly different.  What mechanism can I use to get same indentation?    \noindent\begin{tabular*}{\columnwidth}[h]{rlrrl} \toprule \multicolumn{5}{l}{\textbf{30s: Environmental Information}} \vspace{5pt} \\ \textbf{Value} & \textbf{Mnemonic} & $\delta$ & $\alpha$ & \textbf{Description} \vspace{5pt} \\ 0x30 & {ADDRESS} & 0 & 1 & Get address of currently executing account. \\ 0x31 & {BALANCE} & 1 & 1 & Get balance of the given account. \\ 0x32 & {ORIGIN} & 0 & 1 & Get execution origination address. \\ 0x33 & {CALLER} & 0 & 1 & Get caller address. \\ 0x34 & {CALLVALUE} & 0 & 1 & Get deposited value by the instruction/transaction. \\ 0x35 & {CALLDATALOAD} & 1 & 1 & Get input data of current environment. \\ 0x36 & {CALLDATASIZE} & 0 & 1 & Get size of input data in current environment. \\ 0x37 & {CALLDATACOPY} & 3 & 0 & Copy input data in current environment to memory. \\ 0x38 & {CODESIZE} & 0 & 1 & Get size of code running in current environment. \\ 0x39 & {CODECOPY} & 3 & 0 & Copy code running in current environment to memory. \\ 0x3a & {GASPRICE} & 0 & 1 & Get price of gas in current environment. \\ 0x3b & {EXTCODESIZE} & 1 & 1 & Get size of an account's code. \\ 0x3c & {EXTCODECOPY} & 4 & 0 & Copy an account's code to memory. \\ \end{tabular*}  \noindent\begin{tabular*}{\columnwidth}[h]{rlrrl} \toprule \multicolumn{5}{l}{\textbf{40s: Block Information}} \vspace{5pt} \\ \textbf{Value} & \textbf{Mnemonic} & $\delta$ & $\alpha$ & \textbf{Description} \vspace{5pt} \\ 0x40 & {BLOCKHASH} & 1 & 1 & Get the hash of one of the 256 most recent complete blocks. \\ 0x41 & {COINBASE} & 0 & 1 & Get the block's beneficiary address. \\ 0x42 & {TIMESTAMP} & 0 & 1 & Get the block's timestamp. \\ 0x43 & {NUMBER} & 0 & 1 & Get the block's number. \\ 0x44 & {DIFFICULTY} & 0 & 1 & Get the block's difficulty. \\ 0x45 & {GASLIMIT} & 0 & 1 & Get the block's gas limit. \\ \end{tabular*}


The epsilon-delta definition of continuity

As we know the epsilon-delta definition of continuity is:  For given $$\varepsilon > 0\  \exists \delta > 0\ \text{s.t. } 0 < |x - x_0| < \delta \implies |f(x) - f(x_0)| < \varepsilon $$  My question: Why wouldn't this work if the implication would be:  For given $$\varepsilon > 0\ \exists \delta > 0\ \text{s.t. } |f(x) - f(x_0)| < \varepsilon  \implies  0 < |x - x_0| < \delta ?$$


Limit of Poisson random variables with parameters tending to infinity

I have two independent Poisson distributed random variables: $\xi$ with parameter $\lambda$ and $\eta$ with parameter $\mu$. I need to show that $${{(\xi - \lambda) - (\eta - \mu)}\over{\sqrt{\xi + \eta}}} \rightarrow N(0,1)\:as\:\lambda,\mu\:\rightarrow\infty $$ where $N(0,1)$ is standard normal distribution. I've tried to do it using the fact that Poisson distribution with parameter $\lambda$ can be approximated by Normal when $\lambda$ is large enough, but i am confused with calculatng the ratio of random variables.Will be very glad for any hints.


Are aerosol cans allowed and safe, in checked luggage?

Is it allowed to carry aerosol spray cans (deodorant, insect repellent, waterproofer, spray paint, i.e. any common thing you can think of that typically comes in spray bottles) in the checked luggage on airplanes?  Is it safe to do so?  My concern is that pressurized containers may not be allowed due to the potential pressure decrease on the plane.  Answers applicable only to US domestic flights are also welcome.


what is the recommended smallest value of AIC or BIC?

to now how small it is! in addition what value of AIC and BIC are the minimum value it get manly for categorical data analysis


Is the EBP register (base frame pointer) only for Debugging in x86?

Learning x86 assembly and the frame pointer is blowing my mind a little. I learned from this  that EBP makes life awesome for debugging.  That's great, but I was curious, "What else is EBP used for?"  Looking at the  Wikipedia article, EBP is necessary for dynamic stack allocation.  As I've always been under the assumption that dynamic allocation goes on the heap. So, why would I want to use dynamic stack allocation - why isn't the heap good enough?  And, how is EBP useful for this?


Long site name hides the diamond in profile page Communities

Normally we see the sites where the user has a diamond in the Communities section of their profile:        However, when the site name is lengthy and causes text overflow, the diamond is hidden:        (The  is a moderator on Personal Finance & Money Stack Exchange)  Can this please be fixed so that we'll see the diamond regardless of the site name length?


My Ubuntu 15.10 freeze on my HP 15 Notebook

Recently I installed full Ubuntu 15.10 in my HP 15 Notebook with Windows 8.1 (before), all was fine, but it began to fail, when I'm watching a video in youtube or only use the note writer, the screen freezes and I can't do anything.  I have to shut down from the switch, after the laptop turned on, the screen remains dark and can't do anything, I must return shut down the pc and switch on to make it work again.  My processor is Intel(R) Pentium(R) CPU  N3540  @ 2.16GHz,my baseboard is a Hewlett-Packard,Product Name: 2213,Version: 57.51, and the video card is Intel, in the terminal says Intel Atom Processor Z36xxx/Z37xxx Series Graphics & Display.  Thank for your time community.


Is there a connection between color temperature concept and Hershel's color temperature experiment through which he discovered infrared?

I just watched a Cosmos episode about Hershel's experiment, of which i think i was not aware. According to it, red light temperature is higher than blue (measured in celsius). As far as I know, however, color temperature is measured in kelvins, and blue has higher temperature than red. Are these two separate concepts?


How can two vectors be dependent in one field and independent in another field?

I have some basic thing I don't understand.     How can two vectors be dependent in one field and independent in another one?   For example, assume I have the following two vectors: $u = (1-2i, 3+i)$, $v = (2-5i, 7-i)$. Is it possible that they are dependent above $\mathbb{C}$ and independent over $\mathbb{R}$?  What I had in mind is that if two vectors are dependent, that means that there exists a scalar $\alpha$, such that $u = \alpha v$ and if $\alpha \in \mathbb{C}$ then they are dependent only in $\mathbb{C}$. Is that correct?


How to mount USB 3.5 inch floppy drive and read MS DOS Disk

I am running Ubuntu 14.04 64 bit.  When I plug in my USB floppy drive Ubuntu tries to automount the drive and I get the same error message if there is a disk in the drive or not. The USB Floppy drive works on another laptop that is running Windows 7.  "Error mounting /dev/sdb at /media/dave/disk: Command-line `mount -t "auto" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb" "/media/dave/disk"' exited with non-zero exit status 32: mount: no medium found on /dev/sdb"  I am not sure how to go about troubleshooting this one.  --Dave


I can't make a Google account in Pokemon GO i can only make a Pokemon go trainer club account and on my phone that's not works... Are there someone whit the same problem or is it only me? What are I'm doing wrong and are there someone out there there can help me? I hear thousand of things about Pokemon GO and I will very very very like to play it, but I can't, plzz help me😢


Want to Understand which VISA we have to apply

I am at UK on work permit for 88 days, i want to invite my wife and kid from India to spend 2 weeks in UK to see all historical places here, which VISA i have to opt for them.


My CD drive is broken,so I can't install Ubuntu from a CD.  Are there any workarounds for that?


Automatically generate comment with link to a "what does downvoting mean?" post when a user with <50 rep has a question downvoted

Problem People post a bad question, for any of the following reasons:  Not researched Off topic Poorly written/formatted No sign of any attempt to solve problem Classic help vampire question etc  This gets downvoted and often without comments. It's exhausting and tiring work to constantly coach newbies about how to improve their question, because most don't bother to update and oftentimes the only response you get back is "f you why u so mean" types of feedback. Suggestion Whenever a question from a user with less than 50 reputation receives a downvote, automatically generate a comment from the Community user which says:  Welcome to Stack Exchange! You might have noticed your question received a downvote. Voting here is anonymous, but you can find possible reasons for this  as well as suggestions for how to improve your post. You may also find it helpful to read the [FAQ] to better understand what types of questions are on/off topic.  Note the link to "here" can link there or to a more comprehensive "what does it mean when I got downvoted?" post. The [FAQ] link would be to the site on/off topic section. Reason this resolves problem If I downvote a question, I want to help users learn but I am not going to try to search for the diamond in the ruff constantly. I don't think I'm alone in this. Adding customized comments is a lot of work. There are a ton of crap questions posted on SE. Honestly, I don't care that I'm "supposed" to be willing to post personalized, "how to improve your post" comments. It's a pain to constantly put these on questions when the majority of the time they get ignored anyways. Another problem is that if you do post a comment trying to help, you often get attacked by the asker and blamed for all the other downvotes. This is frustrating and not a positive reinforcement. But I will upvote a comment that gets autogenerated as a "support" type of thing, because it is very easy and painless. And, honestly, if someone gets a comment like that explaining how to improve their post and doesn't bother to update their post or request clarification I really, really, really don't care about their feelings being hurt.


In  R P Feynman relates a story where his father told him that, even though we know the word "inertia" and what it means, nobody knows why inertia happens. Is that still true?


How can I get this recycled plastic material with a procedural shader?


How to extract date from string in Python

I have strings in following format:  Friday January 3 2020 16:40:57 Thursday January 2 2020 19:26:19 Sunday January 5 2020 01:24:55 Tuesday December 31 2019 17:31:42   What is the best way to convert them into python date and time?


I have two PC3200U modules and two PC2700 DDR modules. My mainboard supports both types and has 4 slots which are each color coded. So if I put each pair in the slots of the same color I'm good right? Would there be a performance increase if I used the exact same RAM modules like 4x PC3200 or 4x PC2700?


How to associate file type with MacOS X App without launching it first?

I would like to associate the last installed version of my Mac OS X application with a certain type of file. A little experimentation shows that the info.plist file seems to be read and interpreted by the operating system when launching the application, not when dragging the application bundle to the disk.  does not say much on that topic.  Is there any way, using a simple .dmg image as installation medium, to make sure the system associates that particular file type with my newly installed app without having to launch it first?  I should clarify that I want this to be done automatically during the installation (I don't want my users to have to do it themselves).


Best solution to protect PHP code without encryption

First of all, I'm not looking for miracle... I know how PHP works and that there's not really way to hide my code from the clients without using encryption. But that comes with the cost of an extension to be installed on the running server.  I'm looking for something different though... I'm not looking to encrypt my code or even obfuscate it. There are many PHP scripts without encrypted/obfuscated code but they are commercial applications. For instance, vBulletin and/or IP.Board forum applications.  I just want to know what approach do these guys use for their applications...  I'm also open to any other suggestions.  Please note that I'm a single person and not working for a company. My product is also very specific, it won't sell that much. I just want you guys to know that I can't afford to consult a legal professional either to sue someone or prepare a commercial license. I'm just looking for a simple way to protect my simple product, if it's indeed possible, somehow...


I need to take the output of command and make it the name of a file using a script

I am working on a way to integrate our Linux machines into our SCCM Reports. One of the things we would like to do is verify the swap size on the machines.   I know that I can get the swap amount on the machine by running  cat /proc/meminfo | grep SwapTotal   Unfortunately, SCCM can't run these commands, but our SCCM Administrator says that if I can create a file in a folder, he can read that file into the report as long as it has a special ending.  I would like to take the information from that command, and pipe it to the filename, so if the swap was 6000, the file would be named 6000.swap  Can anyone point me in the direction of where I can find how to do this?  Thanks!


Converting vintage lense to digital camera

I have a Canon Rebel EOS Rebel sl1 100D camera. I have an older Sigma APO 170-500 lense.  Can this be used on the digital camera with an adapter and which adapter? I have looked everywhere and frankly not experienced enough to understand most of what I'm reading other than you can but the autofocus won't work have to do manual. I don't want to ruin my camera plus I can't find anywhere which adapter it would be if I do try to do this. Anyone's help I would appreciate. Thanks


How to manage permissions on a shared volume for OSX and ubuntu

On my mac I'm using an unjournaled HFS partition to share files between OSX 10.8 and Ubuntu 12.04. It was a nice thought at first, because Time Machine will automatically backup the volume in OSX, but I soon noticed that OSX and Ubuntu mess with the permission in a way that makes things messy for me. So, in order to fully view and change files, I keep using chmod to apply permissions that will allow me to fully use a document. But I don't understand why I have to keep applying changes over and over. Is possible to set some kind of permission permanently so that both operating systems will respect permanently? I guess 777 will work, but I thought that this is not a smart thing to do. But as long as  'others' does not get full access (third seven), I see a lock icon on the file in ubuntu.


How do I know if my Windows 7 Professional product key is original?

Our company Wants to buy 30 Windows 7 Professional OEM licenses. Somebody gave us some packages like this:     How can I be sure if this Windows 7 Professional package is original? How many users can use this Windows? He gave us for 30 clients but what happens if we install this package for more than that? How can I find the number of users that can be installed with this? How can I check the product key before installing Windows?


High density disk bay rack chassis - why such a big difference in price?

We're looking for a chassis with 45-60 bays for SAS/SATA disks and we found some 60-bay enclosures at ~ $11000 (see  and  for example - there are others as well).  However we found  which have 45 bays (or 36 bays as server chassis) for $1700.  We think that the price difference is way too big (the price/bay is more than triple). Why is this?  I do NOT ask why the SAS enclosures are so expensive but why are so big differences between the prices of the SAS enclosures of different kinds. I think that's a different question from .


What is the javascript MIME type for the type attribute of a script tag?

What is the  type of javascript?   More specifically, what is the right thing to put in the "type" attribute of a script tag? application/x-javascript and text/javascript seem to be the main contenders.


arithmetic mean of a bounded sequence converges?

I have learnt that the means of a convergent sequence also converges. However, I am wondering whether can we say the means of a bounded sequence converge? or any other counterexample?     Let $(a_n)_{n\in\mathbb N}$ be a bounded sequence. Then $\displaystyle \overline a_n=\sum_{k=1}^n \frac{a_k}n$ converges?   The following is my thinking so far. As $(a_n)_{n\in\mathbb N}$ be a bounded sequence, $\displaystyle \overline a_n$ is bounded as well, if it is monotonic then it converges. But $\displaystyle \overline a_n$ is not always monotonic.  I also tried Cauchy criterion, but it is massy to deal with averages.


Ubuntu Gnome 16.04 Software Updater often failed

Just want to ask, why my software updater always says failed to download repository, the dialog box like this    My internet is working fine i already checked, i am on Ubuntu Gnome 16.04 using Dell Vostro Laptop


Is the bowcaster that Chewbacca uses in The Force Awakens the same one he used in the Original Trilogy?

In the Original Trilogy, Chewbacca's bowcaster seems pretty similar to a normal blaster, with the blast only affecting the person it hits.  However, in The Force Awakens, his bowcaster seems much more powerful, creating explosions that affect multiple targets.  Are these meant to be the same bowcaster, and if so, why the apparent change is power?  My question is related to this , however, I would like an answer based on Canon, not Legends, works.


Time pdf of number of poisson proscces events

I know that the time between two events distributes exponentially with parmeter lambda, but, how will the time distributes between n events for example? I would guess there should be a simple connection like pdf of exp(lambda/n) but I cant get something mathematicly (my intuistion may be wrong and there is not such connection)


Installation procedure for numpy and other python-3.4 packages on ubuntu 14.04

I am new to ubuntu and installed ubuntu 14.04 32 bit on my LENOVO hinkpad T410 machine with windows 7 two days ago but since then trying download and install python-3.4 packages (NUMPY, SCIPY) on ubuntu and not getting results. I have Downloaded IDLE through ubuntu software centre but numpy neither run for me from ubuntu software centre nor from commands.      sudo apt-get install python-numpy   it gives me:      E: Unable to locate package python-numpy_1.8.1-1ubuntu1_i386     E: Couldn't find any package by regex 'python-numpy_1.8.1-1ubuntu1_i386'   I also tried:      pip install python-numpy   but it results:      Could not find any downloads that satisfy the requirement python-numpy     Cleaning up...     No distributions at all found for python-numpy     Storing debug log for failure in /home/sibte/.pip/pip.log   Any guide for the very beginners to ubuntu.


Let $p$ be a prime. Prove that $Sym(p)$ is generated by any transposition and any p-cycle. Without loss of generality, we may assume the p-cycle to be $(1\space 2\space \dots\space p)$ just by 'relabelling' the entries with a bijection in any p-cycle. Again, without loss of generality, we actually want to prove that $Sym(p)=<(1\space k), (1\space 2\space \dots\space p)>$, where $k$ can take any value from $2$ to $p$, because even if the first entry of the transposition is not '$1$', say, it's '$2$', then since $(1\space 2\space \dots\space p)=(2\space 3\space \dots\space p\space 1)$, we can again 'relabel' the entries with a bijection.   Since we already know that $Sym(p)=<(1\space 2), (1\space 2\space \dots\space p)>$. Why do $(1\space k)$ and $(1\space 2\space \dots\space p)$ generate $(1\space 2)$ for arbitrary $k$?


I've got the following tex code:   [...] \usepackage{array} \usepackage{tabularx} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} [...] \begin{tabular}     {|m{.465\textwidth}|C{.1\textwidth}|C{.1\textwidth}|C{.1\textwidth}|C{.1\textwidth}|}     \hline     & trifft völlig zu & trifft eher zu & trifft eher nicht zu & trifft gar nicht zu \\[10pt]     \hline     Das Thema ist für mich wichtig. & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ \\[10pt]     \hline     Der Vortragende war kompetent. & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ \\[10pt]     \hline     Die mediale Aufbereitung (Folien) war gut. & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ \\[10pt]     \hline     Der Vortrag war zu komplex. & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ \\[10pt]     \hline     Der Vortrag war fesselnd und lebendig. & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ \\[10pt]     \hline     Der Vortrag war verständlich und gut aufgebaut. & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ & $\bigcirc$ \\[10pt]     \hline \end{tabular}\\[10pt]   I would also like and expect that the rightmost column is also vertically centered, but it is aligned at the top.   Does anyone know how to get the rightmost column to be vertically centered?  Thanks for your help.


Custom command for drawing a lens in tikzpicture

I wanted to draw a convex lens in tikzpicture. I'm fairly new to writing these commands, so I drafted the following. % Convex lens  % \convex[R0,R1,w,h] at (x,y); \def\convex[#1,#2,#3,#4] at (#5,#6){     % circle-circle intersection maths     % with adjustment for clipping at specified height     \def\R{#1};\def\r{#2};\def\d{(\R+\r-#3)};     \def\x{(((\d*\d)-(\r*\r)+(\R*\R))/(2*\d))};\def\c{(\d-\x)};     \def\y{sqrt((\R*\R)-(\x*\x))};\def\yh{min(\y,#4)};     \def\g{asin(\yh/\R)};\def\p{asin(\yh/\r)};          % sphere0 curves     \draw ({#5-\x+\R},#6) arc (0:\g:\R);     \draw ({#5-\x+\R},#6) arc (0:-\g:\R);          % sphere1 curves     \draw ({#5+\c-\r},#6) arc (180:180+\p:\r);     \draw ({#5+\c-\r},#6) arc (180:180-\p:\r);          % connecting lines (if clipped)     \def\xg{\R*cos(\g)};\def\xp{\r*cos(\p)};     \draw ({#5+\xg-\x},{\yh}) -- ({#5-\xp+\c},{\yh});     \draw ({#5+\xg-\x},{-\yh}) -- ({#5-\xp+\c},{-\yh});     }  This works, but I'd like to improve it a bit. Specific questions follow.  Does it make sense to pass R0, R1, w, and h in this way? Is there a more standard way to pass arguments that is more in line with tikz/pgf philosophy? How can I pass optional arguments such as thick to my \draw commands? It seems like \def does not allow optional arguments. Is there another command I can use to define my lens? Is there a better way to do this math in tikz/pgf (i.e. can it be done in fewer commands/with less braces and parentheses)?


How to delete a comma before (Author A, Author B, and Author C) to (Author A, Author B and Author C) for citing a book chapter in an edited book

I am using the MWE from  where I need to cite a book chapter in an edited book.  From:  Author A, Author B, and Author C   to:  Author A, Author B and Author C   I tried:  \setunit{\addcomma\space}%   Basically, from:    to     My full MWE:  \documentclass{article} \usepackage{xpatch} % \usepackage[style = authoryear-comp, maxnames = 99]{biblatex}  \usepackage[backend=biber,  % style=authoryear,   style=authoryear-comp, % citestyle=authoryear,  dashed=false, maxcitenames=2, maxbibnames=99, giveninits, uniquename=init]{biblatex}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{csquotes}  \usepackage[unicode,colorlinks,citecolor=blue]{hyperref}  % \renewcommand*{\finalnamedelim}{\addspace\&\space} % \renewcommand*{\intitlepunct}{\space} \renewcommand{\labelnamepunct}{\space}   % \DeclareFieldFormat[article, incollection, unpublished]{pages}{#1} \DeclareFieldFormat[article, incollection, unpublished]{title}{#1} % \renewcommand{\bibpagespunct}{\ifentrytype{article}{\addcolon}{\addperiod\addspace}}  \DeclareNameAlias{sortname}{family-given} \DeclareNameAlias{editorin}{given-family}  \newbibmacro*{byeditor:in}{%   \ifnameundef{editor}     {}     {\printnames[editorin]{editor}%      \setunit{\addcomma\space}%      \usebibmacro{editorstrg}%      \clearname{editor}}}  \xpatchbibdriver{inbook}   {\usebibmacro{in:}%    \usebibmacro{bybookauthor}%    \newunit\newblock    \usebibmacro{maintitle+booktitle}%    \newunit\newblock    \usebibmacro{byeditor+others}}   {\usebibmacro{in:}%    \usebibmacro{bybookauthor}%    \newunit\newblock    \usebibmacro{byeditor:in}%    \newunit\newblock    \usebibmacro{maintitle+booktitle}%    \newunit\newblock    \usebibmacro{byeditor+others}}   {}{}  \xpatchbibdriver{incollection}   {\usebibmacro{in:}%    \usebibmacro{maintitle+booktitle}%    \newunit\newblock    \usebibmacro{byeditor+others}}   {\usebibmacro{in:}%    \usebibmacro{byeditor:in}%    \setunit{\labelnamepunct}\newblock    \usebibmacro{maintitle+booktitle}%    \newunit\newblock    \usebibmacro{byeditor}}   {}{}  \xpatchbibdriver{inproceedings}   {\usebibmacro{in:}%    \usebibmacro{maintitle+booktitle}%    \newunit\newblock    \usebibmacro{event+venue+date}%    \newunit\newblock    \usebibmacro{byeditor+others}}   {\usebibmacro{in:}%    \usebibmacro{byeditor:in}%    \setunit{\labelnamepunct}\newblock    \usebibmacro{maintitle+booktitle}%    \newunit\newblock    \usebibmacro{event+venue+date}%    \newunit\newblock    \usebibmacro{byeditor+others}}   {}{}    \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @incollection{lennon1965,   author    = {John Lennon},   booktitle = {A book with articles},   editor    = {Paul McCartney and John Lennon and George Harrison and Richard Starkey},   title     = {This is my article in this book},   year      = {1965},   location  = {Liverpool},   pages     = {65--87},   publisher = {Cavern Club}, } @incollection{deborah123,   author      = "Deborah Lewis and Marie O'Boyle-Duggan and Susan Poultney",   title       = "Communication skills education and training in pre-registeration BSc Nursing",   editor      = "David W. Kissane and Barry D. Bultz and Phyllis N. Butow and Carma L. Bylund and Simon Noble and Susie Wilkinson",   booktitle   = "Oxford Textbook of Communication in Oncology and Palliative Care",   publisher   = "Oxford University Press",   address     = "Oxford",   year        = 2017,   pages       = "149-154",   Edition = "2nd edn" } \end{filecontents*} \addbibresource{\jobname.bib}  \begin{document} \nocite{*} book done \parencite{deborah123}.  \printbibliography \end{document}


Book series with a double planet system and poisonous bubbles that float around

I read this book many years ago. It is set on a double planet with a shared atmosphere. The people on the planet have a caste system, they are either military or thinkers. There are giant trees on the planet, which are used for almost everything, building materials as well as an energy source from the crystals the trees form.  There are also poisonous bubbles that float around. The inhabitants were able to destroy them with ranged weapons, but the bubbles became more dangerous which forced the mass migration of the inhabitants to the adjoining planet via balloons made from and powered by the giant trees.  There is also a sequel where the main character from the first book travels through space to another planet in the system using a more advanced rocket based off the trees.


I have a question about fabric server mods

When making a fabric server and adding mods to it, do you have to download the mods the server has in order to even join your Minecraft server?


Is it grammatically correct to use the word 'your' before a verb in present progressive tense?

Can I say:     I understand your wanting to wait a while longer.   I have heard it being said, but how correct is it?


A safe way to divide two floating point numbers?

What is the safest way to divide two IEEE 754 floating point numbers?  In my case the language is JavaScript, but I guess this isn't important. The goal is to avoid the normal .  I've read that one could use a "correction factor" (cf) (e.g. 10 uplifted to some number, for instance 10^10) like so:  (a * cf) / (b * cf)   But I'm not sure this makes a difference in division?  Incidentally, I've already looked at the other floating point posts on Stack Overflow and I've still not found a single post on how to divide two floating point numbers. If the answer is that there is no difference between the solutions for working around floating point issues when adding and when dividing, then just answer that please.  Edit:  I've been asked in the comments which pitfalls I'm referring to, so I thought I'd just add a quick note here as well for the people who don't read the comments:  When adding 0.1 and 0.2, you would expect to get 0.3, but with floating point arithmetic you get 0.30000000000000004 (at least in JavaScript). This is just one example of a common pitfall.  The above issue is discussed many times here on Stack Overflow, but I don't know what can happen when dividing and if it differs from the pitfalls found when adding or multiplying. It might be that that there is no risks, in which case that would be a perfectly good answer.


On Windows 7, is there a command prompt line that can start cmd as an administrator?

On Linux, we can use  sudo bash   to run a shell as the superuser.  On Windows 7, we can use     Start menu -> (in search box, type) cmd -> Right click on search result and choose Run as Administrator   to run a command prompt as an administrator. Is there also a command prompt line that is like Linux's sudo or su so as to start a shell as an administrator?


Does Ubuntu 15.10 or 15.04 work on a MacBook Pro 9,2, has anyone installed it successfully?


I cannot get the title of a folder on my desktop to display the name.  Is there a way to get this working in 14.04?  This (from a Mac) is what I am trying to get to:    This is what my Ubuntu 14.04 Desktop looks like, with two folders.  Those folders do not have labels, so I don't know which is which.


I'm trying to print records from line number from 10 to 15 from input file number-src. I tried with below code but it prints all records irrespective of line number.   awk '{ count++ if ( $count >= 10 ) AND ( $count <= 15 )  {   printf "\n"  $0  } }' number_src


I'm using LaTeX/LyX for some while now and also to create my CV. So far, no problem. Recently, I made some new photos and I noticed that when I insert them in the CV template, that the image will get turned by 90°. No matter which size I choose. Do I use the former image, then it's no problem. I tried to turn the image by 90° on its own but no change. Anybody an idea?  edit: My preamble:  % adjust the page margins \usepackage[scale=0.75]{geometry}  \moderncvtheme[blue]{classic} % possible themes are "classic" and "casual" % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)  % required \firstname{Name} % required \familyname{Surname}  % optional, remove the line if not wanted \title{Curriculum Vitae}  % optional % \address{street and number}{postcode city} % '\\' adds a line break \address{Street}{Zip Code City\protect\\[0.1em] Country\protect\\[0.2em]}  % optional \mobile{+number}  % optional \email{person@provider}  % optional % \photo[height]{name} % 'height' is the height the picture is resized to % 'name' is the name of the picture file \photo[90pt]{image}  % optional \quote{}  \setlength{\hintscolumnwidth}{3.6cm}    The LyX Version is 2.1.4, 24. July 2015 Tried *.jpg and *.png. With the former image it worked even without the specific file type.  part of the log file:  This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238)  (format=lualatex 2018.10.13)  29 JAN 2019 20:50  restricted \write18 enabled. **file-name.tex (./file-name.tex LaTeX2e <2016/02/01> Babel <3.9q> and hyphenation patterns for 1 language(s) loaded.  (/usr/share/texlive/texmf-dist/tex/latex/moderncv/moderncv.cls Document Class: moderncv 2015/07/28 v2.0.0 modern curriculum vitae and letter do cument class (/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo File: size12.clo 2014/09/29 v1.4h Standard LaTeX file (size option) ) (/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2015/08/02 v2.2a e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count79 ) (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive ) Package xcolor Info: Driver file: pdftex.def on input line 225. (/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)


How can I add a new line to an array? The array is currently empty. I tried this but it didn't work string[] testarray; testarray[0] = "Lorem ipsum dolor sit amet"; testarray[1] = "example text 1";  int i = testarray.Length; i++; testarray[i] = "example text 2";  Thanks


Javascript: What is a nice curry example?

I noticed that if you apply this code:  var curry = function(x) {     return function(y) {         return x + y;     }; };  console.log(curry(3)(2));   You could apply the sum of 3+2, this is what is called "Curry", but I don't find it very useful, I would like to know, if there are many others good examples and cases to use it


Is the structure "This is because... and so..." grammatically correct?

For example, in the sentence:     This is because he was smart, and he worked hard, and so he was very rich.    Is this structure correct? If not, how can the sentence be corrected?


The Edit Answer Draft button is broken.    Press Back with text in an answer box. The Edit answer draft bar does not appear.     Seems like an onBackPressed() issue.  Also:   Press ← with text in the answer box The bar appears. Click the bar The answer box is blank.   Seems like the answer isn't properly carried between the Fragments.  Either way, you lost everything you wrote.  Can somebody test this? And especially without a confirm dialog, it is a brush of the finger to lose a long post of code or something.   I hope this report will help because I like the app (I'd say 4/5 stars) but the bugs are preventing a solid 5 stars.   Stack Exchange 1.0.73 Samsung Galaxy S II Skyrocket I727 Android 4.1.2


NullPointerException on adding strings to TreeSet

My problem is that I can't find mistake in this code. I want to fill  a field of my program(Set of strings) in constructor with Strings readen from a file.    `  public AnagramUserInput(){     Set<String> result = new TreeSet<String>();     Set<String> lexic = new TreeSet<String>();     File lexicon = new File("C:/Users/Konstanty Orzeszko/Desktop/do testu/english_words_WIN.txt");     try{         BufferedReader br = new BufferedReader(new FileReader(lexicon));         String word;          while(((word = br.readLine()) != null)) {             this.lexic.add(word);//Exception is throwned right in this line          }         br.close();     }catch(IOException exc) {         System.out.println(exc.toString());         System.exit(1);     } }`   Could you tell me what is wrong/how to fix it? Thanks a lot.


How to host my existing website with Google Drive

Google has given me 15GB of storage. Can I host my own website having my own domain?


DigiCert says "Your server is not sending the right intermediate certificates" for Stack Overflow

We have tight security setting our our network, that seem to be preventing Stack Overflow from loading. I did some digging and found that the static page that supplies the CSS and other static content to Stack Overflow is a HTTPS address. So my first step was to change this to a HTTP address and WAM! the site loads.   So I went to DigiCert's  to check the SSL certificate (of www.stackoverflow.com), and it returns the following error:     Your server is not sending the right intermediate certificates.   Any ideas?


Novice in Blender, sorry:)  Why do I have this view of chimney on the house?   I've extruded the hollow region. On the video tutorial that I followed, everything is ok with chimney view  What may be the problem?


Why aren’t the electric and magnetic components of an EM wave complementary?

Every visualization of an electromagnetic wave is essentially some variation of this picture:    In every one of these graphs, both the electric and magnetic components are shown as being sine waves with the same phase angle. However, it is just as frequently stated that the amplitude of a magnetic field is related to the derivative of the electric field at any given point in space and/or time. Shouldn’t it follow, then, that the magnitude of any given point along the magnetic wave should peak when the corresponding point along the electric wave is at 0? In other words, if the electric component of an EM wave were a sine wave (with no phase angle), shouldn’t the magnetic component be a cosine wave (also with no phase angle)?


Euler Product formula for Riemann zeta function proof

In class we introduced Reimann Zeta function  $$ \zeta (x)=\sum_{n=1}^{+\infty} \frac{1}{n^x}  $$ And we proved its domain was $D=(1,+\infty)$  Now Euler proved that   $$ \zeta(x)=\prod_{p\text{ prime}}\frac{1}{1-p^{-x}} $$  By saying $$ \zeta(x)=1+\frac{1}{2^x}+\frac{1}{3^x}+...   \\ \zeta(x)(\frac{1}{2^x})=\frac{1}{2^x}+\frac{1}{4^x}+... \\ \zeta(x)(1-\frac{1}{2^x})=1+\frac{1}{3^x}+\frac{1}{5^x}+... $$  And so on for every prime number.  However this proof isn't a 'rigorous proof' as my professor says. Why is that and how would one prove this rigorously? Any reference would be helpful.  I have seen on wikipedia that to make the proof rigorous we need to observe $\mathfrak{R}(x)>1$ Is that the real part of x or something else?


How to disable chaining in Gmail for specific set of letters?

I'm sending some letters to subscribers, and they are chained in Gmail, since subject is the same.  The question is: how can I disable this feature without changing subject and without changing settings in Gmail interface?  Maybe there is specific header I can send, which is respected by Gmail?


set specific dimension or minimum upload size

How can I require specific dimensions for an image for an upload form? For example, I want to set the image to be uploaded in 350x200px, or show a notice to the user if the image size is not correct.  Alternatively, can I set a minimum upload size?


Help re-applying after Uk visit visa refusal

My refusal letter states that I provide more information on where my monthly expenditure of £200 comes from, I though did explain in my application letter that I am a student and all my support comes from my uncle since he sponsors me throughout my university education. The monthly expenditure is what I use to get by as a student whilst in school. I got a letter of sponsorship from him explaining he will cover my costs.(bank statements included)  As I reapply what other information or documents should I provide to satisfy the ECOs and what mistakes should I watch out for?


If for a prime p $1+\frac{1}{2}+\frac{1}{3}+\ldots + \frac{1}{p-1}=\frac{a}{b}$ then show that p divides a. Moreover if $p>3$ then $p^2$ divides a.

Here is a problem from Hersteins Topics in Algebra:     If $1+\frac{1}{2}+\frac{1}{3}+\ldots + \frac{1}{p-1}=\frac{a}{b}$ for a prime $p$, then show that $p$ divides $a$. Moreover if $p>3$ then $p^2$ divides $a$.    I am able to prove the first part by writing  $$1+\frac{1}{2}+\frac{1}{3}+\ldots + \frac{1}{p-1}=\frac{(p-1)!+ \frac{(p-1)!}{2}+\frac{(p-1)!}{3}+\ldots + 1 }{(p-1)!},$$ where we can show the numerator to be congruent to $0$ mod $p$. I can't seem to crack the second part. Thanks in advance for any help.


Lately, I've been trying to create a Bash script to capture a webcam photo when a fail attempt to login is registered. First of all, I found 2 guides related to this (links at the end), they explained how to create script etc.. It was going pretty good until I noticed my System (Archlinux, Fresh installation) doesn't have PAM's common-auth file. I've checked the entire /etc/pam.d/ directory and still can't find the file or a file with same contents.   My Script so far:  #!/bin/bash  # Let's watch our thief's face n.n   ts=$(date +"%m_%d_%Y_%H_%M_%S")  ffmpeg -f video4linux2 -s vga -i /dev/video0 -vframes 3 /home/haoa2/Logins-Fail/login-$ts.jpg  exit 0   My /etc/pam.d/ directory contents:  chage, chfn, chgpasswd, chpasswd, chsh, groupadd, groupdel, groupmems, groupmod, login, newusers, other, passwd, polkit-1, rlogin, rsh, shadow, slim, su, sudo, su-l, system-auth, systemd-user, system-local-login, system-login, system-remote-login, system-services, useradd, userdel, and usermod  , and a .  (Note: I know there is a related answer out there, but this quetion is more about the PAM's file rather than Scripting.)


Any elementary proof for Euler's product formula for sine

Is there a proof for the following fomula of Euler which does not use complex analysis or fourier analysis? $${\sin (\pi x)} = \pi x\prod_{n=1}^\infty\left(1 - \frac{x^2}{n^2}\right).$$  Suppose that the student studied "Introduction to Real Analysis" by Bartle & Sherbert and they just learned what the convergence of an infinite product means.  Then is there a proof that is suitable for them?


What can I do if I'm a level four vampire and even guards come after me

Guards and citizens come after me for being a vampire and I can't sneak into a house or use invisibility without them waking up what do I do


I have made a character with particle hair. The hair is dynamic and it works fine. I want to attach beads to a strand, so that it moves along with the strand of hair. However, I can not find the right button to do this. If this is possible, how can it be done?


How large should a Diffie-Hellman p be if the messages are encrypted?

How large should the prime $p$ and generator $g$ values be in a Diffie-Hellman handshake if the messages are encrypted.   If the key that encrypted the Diffie-Hellman messages becomes compromised, then does that compromise the key generated using Diffie-Hellman?


Creating DEM from vector contours using GRASS and R?

I want to convert vector contours to a DEM. From other posts, I wanted to use the Grass r.surf.contours tool.  Initially, I converted the vector contour layer to a rasterized contours using the rasterize (vector to raster) tool. The contours rasterized well but there was 0 values between them.  I have tried the Grass plugin but it isn't giving me good results.  I suspect it is because of the 0 values.   How do I strip these out?


I want to view the fonts that are installed on my system. Specifically, I want the client-side (fontconfig) fonts, not the old-style X11 bitmap fonts on the server (for which xfontsel does an adequate job). I guess what I'm looking for would be called a font viewer or font gallery. I want to see a bit of sample text for each font, ideally configurable sample text.  Being able to filter by font name, available character sets and other characteristics would be a plus.  A search of packages in Debian wheezy found gnome-font-viewer and kfontview, but they can only display a single font. I'd rather avoid depending on software that isn't widely available, including on the current Debian stable and Ubuntu LTS.


In the new server.properties file, there is a line called op-permission-level, which is set to 4 by default. What does it do?


BAD signature when trying to verify SHA256SUMS for Bionic Beaver ISO

I am attempting to verify my download of Bionic Beaver on Windows 7.  I feel like I am missing something very obvious.  I went to  and clicked on both SHA256SUMS and SHA256SUMS.gpg  It seems like this does not download the files, but opens the text in the files in new tabs.  I used Ctrl-A and then copied the text into Notepad, naming the files SHA256SUMS and SHA256SUMS.gpg.  I made sure that windows didn't add any weird extensions when saving.  I manually downloaded both keys I used from https://keyserver.ubuntu.com, one with fingerprint  C598 6B4F 1257 FFA8 6632 CBA7 4618 1433 FBB7 5451   and the other with fingerprint  8439 38DF 228D 22F7 B374 2BC0 D94A A3F0 EFE2 1092   After I downloaded both keys I certified them with my personal key using Kleopatra, after verifying the key fingerprint with those at .  When I ran   gpg --verify SHA256SUMS.gpg SHA256SUMS   I got   gpg: Signature made 11/29/18 16:27:43 US Mountain Standard Time gpg:                using DSA key 46181433FBB75451 gpg: BAD signature from "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.c om>" [full] gpg: Signature made 11/29/18 16:27:43 US Mountain Standard Time gpg:                using RSA key D94AA3F0EFE21092 gpg: BAD signature from "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@u buntu.com>" [full]   When I ran   gpg --verbose --verify SHA256SUMS.gpg SHA256SUMS   I got  gpg: armor header: Version: GnuPG v1 gpg: Signature made 11/29/18 16:27:43 US Mountain Standard Time gpg:                using DSA key 46181433FBB75451 gpg: using pgp trust model gpg: BAD signature from "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.c om>" [full] gpg: binary signature, digest algorithm SHA512, key algorithm dsa1024 gpg: Signature made 11/29/18 16:27:43 US Mountain Standard Time gpg:                using RSA key D94AA3F0EFE21092 gpg: BAD signature from "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@u buntu.com>" [full] gpg: binary signature, digest algorithm SHA512, key algorithm rsa4096   I tried copying the data from SHA256SUMS and SHA256SUMS.gpg tabs over TOR instead, in case it was a local network problem, but no dice either.  What am I missing here? Is there some way to download the SHA256SUMS and SHA256SUMS.gpg files directly, as opposed to copying the data into a text editor and saving it?  Any help would be very appreciated. I am very confused and frustrated at this point.


How can i split an Excel (.xls) file that contains multiple sheets into separate excel files?

I have an excel .xls file that contains 10 sheets. I want to split all of those sheets as separate .xls files. Does excel have any option to export a sheet into a separate .xls file?


I'm having a problem automatically assigning weight to my mesh. I have been following this tutorial  to teach myself how to create an armature and when I get to the section for assigning automatic weights I get the error "failed to find a solution for one or more bones." I do everything it suggests in the order it suggests it and everything up until that point works, as such when I continue with the tutorial the bones are not associated with the rig and I cannot move the mesh around.  I have been looking at other similar posts about the issue and have tried removing doubles, joining the meshes eyes to the rest of the body, turning Axis mirror on and having Bone Envelopes turned on. However none of the ideas solved the problem.  Any ideas as to why this is happening would be greatly appreciated.  It is also a MakeHuman model but I removed the rigging provided by the MakeHuman software manually.  To clarify that this is not a duplicate as it has been suggested. I followed what the solution provided by Shady Puck suggested and removed the armature modifier and instead applied a Decimate modifier. I selected Planar and set the angle limit to 6.4 degreees. I then proceeded to select the mesh then holding shift selected the armature and pressed Ctrl + P and selected "With automatic weights" but the same error message "Bone Heat Weighting: failed to find a solution for one or more bones" still appeared. I then followed the advice of the next answer given in the same link (to set the origin) and still the same error message was displayed.  This is the almost working rig however the left leg (when facing the front) does not operate correctly.  when using the controls to move the rig.


How do I integrate Github files to Orange for ML?

I am currently trying to make a facial recognition workflow with Orange but since the widgets are still prototypes they are not all available in Orange. I found the Github files for the widgets but don't know how to install this so that I can see and use the widgets in Orange.


72 DPI or 300 DPI - Which Is Better For Web And Print Both?

Firstly, this may seem like a repetitive post. But please help me clear my doubt. It's based on my particular use case.  I am making a website where images will be available on web, but they can also be saved by users and printed. So I was wondering how much DPI should I choose.  I decided to google it out. But I am super confused right now, because I am getting completely different answers to this question.  Use Case:   Adobe photoshop file (.psd) High resolution photograph 1000 px by 1000 px Saved as .jpg Upload to website as well (file size not an issue) Photo can be saved via website and printed   There are 2 different websites I found giving me different answers.  Website 1: 300 DPI  Print - 72 DPI < 300 DPI  Source:   "Print: 300dpi is standard, sometimes 150 is acceptable but never lower, you may go higher for some situations."  With examples of 300dpi and 72dpi.  Website 2: 72 DPI  Web - 72 DPI = 300 DPI Print - 72 DPI > 300 DPI  Source:   This author shows an example of how 72 DPI and 300 DPI look when printed. And guess what, the 72 DPI image looks bigger. How???  Please search for: "Remember the three images I showed you above with different DPI values that look exactly the same on the web? Here’s what they’d look like printed:"  Sorry, but I don't understand what is going on here. Someone please care to explain?? Thanks in advance!  PS. Researching about this confused me even more. Haha. 😱😁


Please help me out to find the limit of this series $$\lim_{n\to \infty} \sum_{i=0}^n e^{-n} \frac{n^i}{i!} $$  Upper Limit is easy to find , how to find exact limit


Are 64-bit processors "faster" than 32-bit ones, simply because they are 64-bits?

I have pondered that some say "32-bit is old news" because you are limited in RAM without cutting around, such as with . Assuming first that the following factors weigh in on the processor's speed itself:   Microarchiterual design, meaning things like cache size, implementation of microcode (if applicable), data/address bus and register connections, and, of course, design principles or structures. . Bus speeds, such as FSB speeds (front-side bus) and the related such. Special features, like parallelism, "hyper threading", "compute units", off-loading work with a co-processor or background processor, multi-core environments, etc.   Assuming (and we know all of those things weigh in on speed factors) the processor is 32-bit, would the fact that it is alone 64-bit make it faster just because of increased bit-width, memory addressing, size, etc.?  Basically, with two identical processors, would the 64-bit one be faster generally in machine code decoding, fetching, accessing memory, MMIO, computations, etc., than the prior 32-bit clone?


I want to center the content of a div in the vertically in the middle, and tried different examples mentioned in previous articles.  My DIV looks like this:    The content should be in the middle.  I have the follwing HTML

                  Tailoring Groups:         <select id="cbTailoringGroups"></select>

   And the follwing stylesheets:          #tailoringCategory {             position: absolute;             top: 20px;             left: 20px;             /* width: 635px; */             width: 30px;             height: 30px;             font-family: 'Arial';             padding: 4px;             background: #FFFFFF;             border: 1px solid;             border-radius: 10px;             z-index: 1;             overflow: hidden;             display: table-cell;             vertical-align: middle;         }          #centerContent {             display: table-cell;             width:100%;             height: 100%;             vertical-align: middle;         }   I cannot get it to work   Can s.o. tell me how to do this? The DIV content is hidden and will be expanded by mouseclick                   var expandedTailoring = false;                 $("#btnMenu").click(function () {                     if (expandedTailoring)                     {                         $("#tailoringCategory").animate({ width: "30" });                         expandedTailoring = false;                     }                     else                     {                         $("#tailoringCategory").animate({ width: "670" });                         expandedTailoring = true;                     }                  });   When i add display: table to the parent div i get the following even i haven't the div expandet:    This is with the following CSS:          #tailoringCategory {             position: absolute;             top: 20px;             left: 20px;             /* width: 635px; */             width: 30px;             height: 30px;             font-family: 'Arial';             padding: 4px;             background: #FFFFFF;             border: 1px solid;             border-radius: 10px;             z-index: 1;             overflow: hidden;             display: table;             vertical-align: middle;         }          #centerContent {             display: table-cell;             vertical-align: middle;         }   At the beginning only the Menu Icon should be shown (width 30px collapsed div) - and without using table it is.


Sockets: Discover port availability using Java

How do I programmatically determine the availability of a port in a given machine using Java?  i.e given a port number, determine whether it is already being used or not?.


I want to add some points that represent coordinates (in shapefile) onto geotiff image which is earth basically. I used command line:  gdal_rasterize -burn 200 -ts 1000 600 -ot byte -l point point.shp land.tiff   but this just gave me a black backgrounded image with red dots. I'm new with gdal and gis so maybe my way could be a little bit wrong. Maybe ı should use gdal_grid but ı don't know how


What are best practices for creating a duotone?

Any duotone experts out there? What would be your main tips to create duotones?  Other than using a light and a dark color and mapping them to light and shadows. I'm interested especially in print outputs and not just on screen results.   I either use the duotone mode and curves, or use the channels to create a DCS if I need to make something from scratch. Are there other approaches?


I am facing a interesting issue in SharePoint Online: when I view detail of a list item, it's created by field is showing blank.   This is how I see it:    What could be the possible reason? How can I find who created that item?


JavaScript for "Hamburger menu" not working

I have included the code from my JavaScript file and the header.html which gets loaded into index.html with the help of

. I have all my "script src" before the closing body tag in index.html. When I try to press the button I receive the following error:  Uncaught TypeError: Cannot read property 'addEventListener' of null  I am aware that this has something to do with the way I am loading my html files. Is there a way I could solve this issue? I am trying to keep the code redundancy more or less low and copying the whole header into every html file is not an option.   /* -- Loading assets -- */  $(document).ready(function() {   $("#header").load("assets/header.html");   $("#footer").load("assets/footer.html"); });  /* -- Mobile hamburger menu --*/  const hamburger = document.getElementById('hamburger'); const navList = document.getElementById('nav-list');  hamburger.addEventListener('click', () => {   navList.classList.toggle('show'); }); /* Seperate header.html file that gets loaded into index.html */
&lt;ŽF&#47;&gt;
    <button class="hamburger" id="hamburger">        </button>

Link1

Link2

Link3


My channel:    See pictured.  I've tried methods in various videos and in the Help section, but all that appears to change is how my name appears when commenting on videos, not the actual channel name itself (as pictured, and circled).  Getting quite frustrating, b/c I feel I am losing out on potential viewers / subs b/c this will not allow me to adjust to something more "themed" for my channel.


How to check if folder is empty or have folder file use shell-script?

i have a question  i try some function like     DIR=/path/tmp/      if [ -d "$DIR" ]; then     and     if [ -f "$DIR" ]; then    but only check /path/tmp this path  how can i do?


i need to make a comparison between directory containing the image of some running process. when i use GetProcessImageFileName() the function give me a path with something like "\Device\HarddiskVolume3...." (i'll call it DevPath), instead of "C:..."(i'll call it C_Path) i need to make comparison with other C_Path style path, so i should translate in the other kind of path, is that possible?  since i don't really need the drive letter, if is too troublesome to make a correct path translation could i simply read only the part of char after the N° backslash? making somethinglike  (Pseudocode)  if(  ReadAfter3Backslash(DevPath) == ReadAfter1Backslash(C_Path))...   now the second question is: the DevPath have everytime exactly 3 slash before starting with "normal" directory? if a full translation isn't viable will this work?  PS: i know that exist the function QueryFullProcessImageName() that can give the "C..." path style but i'v got a lot of problem with that function, it currently crash and is hard to make it portable to pre-vista OS. since this seemes to be a more difficult way to solve my problem i'm ignoring it until i have hope with translation solution.


Is there a way of easily identifying which mesh face a UV face corresponds to?

Is there any simple way of telling which UV face corresponds to which 3D model face?  I created a room (in V 2.71) with a doorway and a window out of a hollowed cube and generated a UV mapping for it with "Smart UV project" but it is not obvious to me how to tell which face is, say, the floor or the left face of the door frame. I can highlight them in the main window to see which face gets highlighted in the UV window, but that's laborious and confusing.   And if my model gets a little more complicated, say I had more rooms and interior doorways, I know I'll end up with lots of tiny thin rectangles on the UV map often placed in really weird locations that don't correspond to the floorplan. Telling which is which will be really hard.  How is this done on complicated models?


In the standard PrintDialog there are four values associated with a selected printer: Status, Type, Where, and Comment.  If I know a printer's name, how can I get these values in C# 2.0?


NullPointerException on setting date from Notes document

I am getting the following nullpointer exception in my code:  fieldName = "created"; Date startDate;  DateFormat df = new SimpleDateFormat(this.dtFormatShort); startDate = df.parse(doc.getCreated().getDateOnly() + " " + doc.getCreated().getTimeOnly()); //here I get the error customer.setCreated(startDate);   I am using similar code across my app but there I do not nullpointer exceptions.  is the error related that I am not calling the constructor for the Date object first? and why does the exception not occur on other places of my app?


Does this qualify as a prepared statement capable of preventing an SQL Injection Hack?

Please comment on the following code, I need to know if this is what you would consider a prepared statement.  My server will not accept question marks as placeholders, it gives me an error when I tried so I ended up doing it this way which does work but I am concerned about getting hacked.  Thank you in advance.  // // Insert data into database // $sql = "INSERT INTO users (username) VALUES (:username)";                                          $stmt = $link->prepare($sql);                                               $stmt->bindParam(':username', $Param_username); $Param_username = $username;               $stmt->execute();


Javascript - two identical objects failing not equals check

I'm using the scrollBehavior(to, from, savedPosition) function of vue-router.  I have the following output for to.params:  {videoId: "18764"}  and the following for from.params:  {videoId: "18764"}  however the following console.log(to.params !== from.params)  returns true  Why is this?


What is the difference between 'tube' and 'tubing' in technical writing?

I write technical documentation. Our products include fluid conduits. People call them tubes, tubing, hoses, lines. When would the word tube be insufficient and tubing be required?


Do you say content is in a website or on a website?

Possible Duplicate:             Which is best in your opinion?   "You can find this content on the X website." "You can find this content in the X website."  "I posted the comment on FB." "I posted the comment in FB."  Thanks for your opinions and advice!


I currently own a Sony z1 and had not hqve any troubles with an otg storage device. But I coulndt make the same storage device this to work with my galaxy ace. ROOTED Version 2.3.6  I have so far scoured google for answers but have found no satisfactory info.  So id like to know if there is any kind of step/procedure the I can do to make it work?  Im a fan of keepong old stuff from trash unless they really stop working specially electronics. Pls help


chip select on one to one spi connection

I connect an imx233 (master) and atmega168a (slave) through SPI. I am trying to debug the communication. I have problem with imx233's chip select, therefore I connect CS of the AVR onto the ground. Could anyone tell me if I really need to use chip select as I have only one slave? I asked that question on different forums and some says I have to have the CS, some says it is not necessary if I have only one slave and connect the CS onto the ground.   I would be grateful if someone can clear my mind if I really need to have the CS on one to one SPI connection or not? and why?


How can I find the files for installed programs

Where are the files of my installed programs located?  I would like to collect all of them in one "install" folder so that I can reinstall them any time I want, just as I can do in Windows.


Usually the mean value theorems (including the general one) is extended from the rolle theorem by introducing a function.   Does this function has anything to do with geometric transformation?  Can geometric transformation or change of variable be used to (find the function) to derive the mean value theorem?   What is the intuition behind considering such functions applying rolle theorem on which yields the mean value theorem or the general mean value theorem?


bash adds single quotes to > (redirect) during variable expansion (breaking my redirect)

After research, Im not certain this is possible in a bash script. The most likely reason ive found is due to bash's order of shell expansions. (maybe?) What i would like to happen, Is the ability to enable/disable redirection (>) of a statement via a prior variable. for example: the printf output below should be (redirected >) based upon what the variable $SendGrafana contains. However this example code does not work: SendGrafana=" > /dev/tcp/192.168.1.242/5062"  awk -v vars="$vars" 'BEGIN{printf "output.api %s \n", vars;}' $SendGrafana  i was hoping the code above would work just like this: awk -v vars="$vars" 'BEGIN{printf "output.api %s \n", vars;}' > /dev/tcp/192.168.1.242/5062 Additionally- When i run the script with set -x (for debugging),  i see that single quotes (') are being wrapped around just the redirect (>) , which i assume is the problem, as nothing gets sent to my netcat listener.  I have read that this is only for user readability when using set -x, however the problem remains. Here is the relevant output with set -x enabled: + awk -v vars=3 'BEGIN{printf "output.api %s \n", vars;}' '>' /dev/tcp/192.168.1.242/5062  (note the '>' ) I have tried many methods, both at the variable declaration as well as at the variable expansion, but all fail to redirect the output to 192.168.1.242:5062 when script is called. Thank you  EDIT BELOW-  (adding this part which was in my comments, as i was trying to keep the question brief, but was suggested it should be here): To add some more context: the reason im even using this $SendGrafana variable, as opposed to no variable and literally  > /dev/tcp/192.168.1.242/5062 after each awk statement- is so i can easily set $SendGrafana= " " , and my script will output to STDOUT (and not send to 192.168.1.242 via > /dev/tcp/192.168.1.242/5062).  I need the output on STDOUT ONLY during debugging / test adding new statements.


Would it be possible to grab my Spiritual Weapon and make a melee attack with it?

If I cast spiritual weapon, would it be possible to grab it and make a melee attack with it?  Of course the attack would take my action and I would have to use my strength modifier to hit because I am physically swinging it, but is it possible to do that? Could I even just grab it and run thirty feet, then release it so it can move and attack for my bonus action?


What are some important applications of the Erdős-Szekeres Theorem?

Erdős-Szekeres Theorem: Any finite sequence of $n^2+1$ real numbers contains a monotonic subsequence of length at least $n+1$.  I was wondering what are the most important applications of the Erdős-Szekeres Theorem.  For example, I have seen the use of the theorem in monotone sequences where one can claim that any sequence contains a monotone subsequence. In other words, one asserts that it is always certain to find ordered substructures of large disordered structures.  Does anyone know any other applications of the above theorem?  Thank you.


Final Code I used for this. Thanks to @hakre.  Code(will real variable name):                       $sqlrequest = mysqli_query($conn,"SELECT COUNT(*) AS id FROM skillstable");         $skillstablecount = mysqli_fetch_array($sqlrequest);          $endfor = $skillstablecount['id'];          $sqlrequest = mysqli_query($conn,         "SELECT * FROM skillstable             LEFT OUTER JOIN char_" . $infochar['name'] . "_skills             ON skillstable.skillname = char_" . $infochar['name'] . "_skills.skillname             WHERE char_" . $infochar['name'] . "_skills.skillname IS null;");          for ($x=1; $x<=$endfor; $x++){         array_push($nonrankedskill,mysqli_fetch_array($sqlrequest));         }           ?>   extracting information from array like this:  $nonrankedskill[rownumber][columnnumber];     i'm trying to figure out how to do this but my search have been unsuccessful so far.  I'm using php and MySQLi to compare two table a get the output of the difference between two table based on two column.  rankedskill:  id    skillname    subskill    rank 0     walk         slow        2 1     walk         fast        4 2     run                      1 3     jump                     7   generalskill:  id    skillname    othercolumn1 0     walk         something 1     fight 2     jump 3     dive 4     fly 5     run                           Output wanted:  $nonrankedskill = array();   I want this variable to contain everything from the column "skillname" in tabel "generalskill" that is not contained in table "rankedskill". I should have at the end "fight", "dive" and "fly".  Could anyone refer me to some documentation on a way to achieve this? or explain me how to do it?