Show that the order of any element $g \in G$ divides $n$, where $n$ is the order of a group $G$.   So far I have shown that: $G$ - finite group and let $g \in G$, therefore, the order of the subgroup generated by $g$ equals the order of $g$. Using Lagrange's Theorem we get that the order of $g$ divides $n$, which we had to prove. Is this a valid proof or am I missing something? Any ideas?

Proving this can be done as follows: consider a finite group G and elements $g_i \in G$ for some integer $i$. Now consider $\langle g_i \rangle = \{g_i^n: n\geq 0\}$, a generator. It can be proved that $\langle g_i \rangle \leq G$ and that the order of $g_i$ is equal to the order of $\langle g_i \rangle$, so $|\langle g_i \rangle| \leq |G|$.  We can now use Lagrange's theorem which states that if $H \leq G$ then $|H|$ divides $|G|$ and we're done. But...  Is there a simpler way to prove this fact?


I'm using the code below to get my equations numbered as (1a), (1b), (1c), (1d) and (1e).  \begin{subequations}   \begin{align}     a+b=c\label{eq1a}\\     b+c=d\label{eq1b}\\     c+d=e\label{eq1c}\\     d+e=f\label{eq1d}\\     e+f=g\label{eq1e}   \end{align} \end{subequations}   If I use the \ref{} command, I'm getting the output as  1a–1e  But, I need to get the final output as mentioned below  1a–e  I have tried many ways, but I can't get the required output. Any suggestion?

Suppose I have the following code  \begin{subequations}  \begin{align} a+b = c \label{eq.1}\\  d+e = f \label{eq.2} \end{align} \end{subequations}   I want now that upon giving the reference, it should appear as (1a-b). \eqref{eq.1} and \eqref{eq.2} will give output as 1a and 1b not what I want, which is (1a-b).


I trying to make a button with an image as a background like this:  HTML  <input type="image" value="submit" src="images/map.png" id="location" />    and This is the css content (in a seperate css file)  #location{ position: fixed; right: 10px; bottom: 20px; width: 80px; height: 80px; z-index: 2; background-image: url('../images/map.png'); }   and this is the call of my css file in the HTML file:  <link rel="stylesheet" href="css/style.css" />   The problem is that I got only a kind of an empty square with no picture inside...  What is the problem? Thanks in advance.

So, I can create an input button with an image using <INPUT type="image" src="/images/Btn.PNG" value="">  But, I can't get the same behavior using CSS. For instance, I've tried <INPUT type="image" class="myButton" value="">  where "myButton" is defined in the CSS file as .myButton {     background:url(/images/Btn.PNG) no-repeat;     cursor:pointer;     width: 200px;     height: 100px;     border: none; }  If that's all I wanted to do, I could use the original style, but I want to change the button's appearance on hover (using a myButton:hover class). I know the links are good, because I've been able to load them for a background image for other parts of the page (just as a check). I found examples on the web of how to do it using JavaScript, but I'm looking for a CSS solution. I'm using Firefox 3.0.3 if that makes a difference.


I need a Cycles volumetric material that appears to flow along a curved path. Specifically, I would like to stretch a texture along the direction of motion to mimic streamlines in fluid flow. I seem to keep running into the same problem: texture coordinates don't bend.  I originally wanted to model the flow with a particle system affected by a Force Field. While the particles (and their Object Instances) can be made to rotate to point in the direction of motion, the Object Texture coordinates remain constant for the lifetime of the particles.  I also tried mimicking the appearance with a beveled Curve and ticking the "Use UV for mapping" option, but UV coordinates do not support volumetric textures. That is, all coordinates are zero for all locations along and within the Curve shape.  I'm willing to try any method at this point, but utilizing the Compositor could be a problem given the complexity of the scene.  Two potential solutions come to mind but I don't know how to implement them:   Perhaps I'm missing a setting that allows Instances to retain their rotated coordinates? Generating the UV coordinates of a Curve and using Drivers or some other method (Python? OSL?) to apply them to the volumetric texture to stretch it along the tangent of the Curve.   Any other methods that could work? Even methods restricted to 2 dimensions are welcome.  A couple of reference images:    The plume is made of multiple curves, each erupted from the volcano in a different direction.  This effect is likely created with Photoshop or GIMP. Focus your attention on the way the texture bends along each "streamer".   Here is an OpenGL render I did with a stretched cube using a Particle Instance modifier. The particles bend along a path controlled by a Force Field. The effect I'm hoping to achieve would have the texture stretched along the long axes of these thin objects.

Im trying to create a volumetric material that uses a 3d texture. I need this volumetric to be animated along a curve. Right now, I have the material using generated coordinates. But the 3d texture does not bend with the object. Is there a way I can have a 3d coordinate space that is calculated before the bend of the object? Or perhaps a way to bend my coordinates to match the geometry?  Repro Steps:  -Create a cylinder with multiple divisions down its length.  -Rotate the cylinder 90* on the Y axis  -Scale the cylinder to 1,1,4  -Create a curve and add a curve modifier to the cylinder using the created curve   -In cycles create a musgrave texture with Generated texture coordinates as the vector input  -Create a colour ramp to clamp the texture values  -Create an emmisive shader and plug the colour ramp into the color of the shader  -plug the shader into the volumetric output  -notice how the texture does not curve with the geometry


What does the circled symbol below mean?

After I recently updated my phone about a day ago, this strange sign showed up on the top left that I have never seen before. Does anyone know what it means? Or how to get rid of it?


For transcoding video I need to use ffmpeg. I have tried to install but I have faced with problems. Is anyone that can help  with this case or can anyone offer any weblink or guide where I can follow the steps for correct installation?

Background :  I used ffmpeg to merge two videos side by side. First I install ffmpeg by following command as it suggest by Ubuntu itself.  sudo apt-get install libav-tools   or   sudo apt-get install ffmpeg   But then I realize it is not the correct version since it doesn't support for -filter_complex and few other functions.   After a few hours researcher I found  and I succeed with video conversion as well. As per that article, it is suggesting we need to build it our own.        Question :  What is easiest way to install that ffmpeg version (which is support for -filter_complex ) without following all those steps ?


I tried to install vlc using the software centre and something pop up saying that  This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.  And from the details:  The following packages have unmet dependencies:  vlc: Depends: vlc-nox (= 2.2.0~pre2+git20141011+r57575+24+12~ubuntu14.10.1) but 2.2.0~pre2+git20141011+r57575+24+12~ubuntu14.10.1 is to be installed      Depends: libavcodec-extra-56 (>= 6:11) but 6:11-1 is to be installed      Depends: libavutil54 (>= 6:11~beta1) but 6:11-1 is to be installed      Depends: libc6 (>= 2.16) but 2.19-10ubuntu2.1 is to be installed      Depends: libegl1-x11 but it is a virtual package      Depends: libfreetype6 (>= 2.2.1) but 2.5.2-2ubuntu1 is to be installed      Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-16ubuntu6 is to be installed      Depends: libgles1 but it is a virtual package      Depends: libgles2 but it is a virtual package      Depends: libpulse0 (>= 1:1.0) but 1:4.0-0ubuntu22 is to be installed      Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.6+git49-gbc62005+dfsg-1ubuntu1 is to be installed      Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.6+git49-gbc62005+dfsg-1ubuntu1 is to be installed      Depends: libstdc++6 (>= 4.9) but 4.9.1-16ubuntu6 is to be installed      Depends: zlib1g (>= 1:1.2.3.3) but 1:1.2.8.dfsg-1ubuntu1 is to be installed   I tried using command and same thing happened.  Any suggestion?

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


Doesn't is the contraction for does not.  From my knowledge, the sentence Doesn't Tom like Sally? is legitimate.  Why is this so?  If I expand the sentence, it becomes Does not Tom like Sally? which starts to not make sense.

Because "aren't" translates to "are not" I pose the question, can you use both interchangeably (in the context of "aren't we all?")? "Are not" sounds very grammatically incorrect in this situation. Can you say "you need not go there" as opposed to "you needn't go there"?   Basically, I thought you can say "you need not" instead of "you needn't" but that you can't say "are not" instead of "aren't" (in the context I've provided) because I've never heard the second.  My friend believes that if you can use one example interchangeably, you can use the other as well.  So,   Can you use example '1' interchangeably? Can you use example '2' interchangeably?


I've completed the Nether and reached the end (the sign) while digging. There is, apparently, no more things to do except buying the plane, which is very expensive.  The next step is, then, amass a lot of "money" to buy the plane? Or I'm supposed to do anything else? I have the lava bucket, which maybe can be used to make the X potion.

I've been buying iron mining machines for 3 days. I get 400 iron bars per minute right now, and the costs for the minimng machines is higher everytime.  This is going to last weeks until I can amass 9.000.000 iron bars, necessary to buy the plane.  Maybe I missed something. It is strange to me that the game turn so difficult to continue. There is anything I can do to improve my iron bars obtention rate?


My visible Disk Usage minus free space is out by 123GB.   Clarification: Externally booted disk repair show no errors. Permissions have been fixed. Time Machine has had local off with:     sudo tmutil disablelocal  UPDATE: Free space seems to be rapidly jumping around. 40GB then 10, then 5 then 30GB, minute to minute. Directory listings are consistent, only the hidden space varies to correlate with the free space. DriveDX shows drive is healthy. Note in DaisyDisk reads: "Unfortunately Daisy Disk is unable to locate these data. They are not available to users." as per attached image. In the time it's taken me to write this revision, free space started at 5GB, jump to 40, and is presently 18GB.  Using   root# du -x -sk /*   The results add up to about 325GB of my 500GB SSD, yet OS shows only ~40GB available.  Disk Inventory X show this missing space as: "Space occupied by other files and folders" 123.1GB) and reports it separately from the free space...  At one point I moved a 60GB folder off the system (to get running again) and after a restart only had 30GB free.  I can't even tell if it's swap space (though that should be in /private/var/vm) or Time Machine snapshots (but they're supposed to be in /.MobileBackups)  Daisy Disk reports the space as hidden, that's not helping me so far.  OS X 10.10.3, SSD 500.

My disk space usage doesn't add up. I should have used only about 80 gigabytes, but according to DaisyDisk about 25 gigabytes is taken up by hidden space. The mystery disk space seems to be classified as other in the About This Mac window.    I've disabled local Time Machine snapshots with sudo tmutil disablelocal and deleted /Volumes/MobileBackups/.  Does anyone know what the hidden space could be or how I could free it up?  Possibly related to .


In Indian restrooms, I have often seen a flexible water hose with a hand-release attached. My original assumption was that it is supposed to be used to clean the bowl if you have left 'skidmarks' after flushing, or for use by the cleaning personnel. However, recently I saw a reference in a travel blog that you are supposed to use it for cleaning yourself in the respective areas; similar to the water-spray system in toilets in Japan.  What is really the intention?  I would prefer an answer from someone that grew up in India, and really knows what the intended use is, not a guess from other travellers - I can guess myself.

I have noticed random bits of hose without proper fittings before I think for example in India and just assumed they are for use by the cleaners or for filling the water jug in .  But Now I'm travelling in Malaysia and Singapore and there are more western toilets than squat toilets in the places I've been yet proper hoses with proper fittings are very common in toilets:  (Hose next to a Western style toilet in my hostel in Chinatown, Kuala Lumpur.)  At one place in Singapore there were even signs on each cubicle door stating whether it contained a western or squat toilet, but also whether there was a hose! (I didn't take a photo of the sign, unfortunately)  This makes me think there is a use for the hose for clients, not just cleaners. But for what purpose? Should I know how to use it as a tourist? Please tell me it's not a kind of alternative to a bidet!  Possibly related is the fact that many toilet floors are awash with water. This can be a big problem if you're not wearing waterproof shoes or have to lower your trousers and keep them dry. Other than this toilets are pretty clean and I've seen both the hoses and the wetness in what I would regard as somewhat "fancy" places.


By observing how much the say hydrogen spectrum line was shifted we can tell whether the source is moving closer or further away, but then clearly cosmological redshift do not work this way so how can I tell them apart?

For a given black body radiation curve, would the changes to the spectrum resulting from cosmological expansion and those from Doppler effects be distinguishable on the basis of the shapes of the resulting curves alone? Or, put another way, starting from the same spectrum, can both processes produce the same observation (for suitably chosen magnitudes of expansion or velocity)?


I am attempting to copy files based on their modified date, as the file names do not include the date in them. Coincidentally, the files are the 22 newest files in the directory, so if I run the command ls -lt | head -22, the outputted files are exactly what I want to copy.   I had read , but the accepted answer didn't seem to work in Terminal, and it isn't exactly filtering by date, just by head.   I am running macOS Sierra 10.12.5.

How can I copy the 5 newest files from a directory to another in a "new to old" order.


I have read somewhere sometime ago (very specific, I know...), that it would not be correct to treat rate of change, i.e. any arbitrary $\frac{dy}{dx} \ $ as a fraction, and thus it is not possible to perform any algebraic manipulation with it. I should have questioned that when I have read it in the first place, I would not have been asking this question now then.  Anyway.. I have seen this "rule" being ignored many many times, e.g. $\displaystyle{\frac{dy}{dx} \equiv \frac{1}{\frac{dx}{dy}}} \ $ or $ \int a(y) \frac{dy}{dx} dx \equiv \int a(y) dy$. I don't understand how you can cancel $dx$ in the integral either, isn't it just a notation to say what to integrate with respect to?   I want to understand how is this possible. Thank you!

In the book Thomas's Calculus (11th edition) it is mentioned (Section 3.8 pg 225) that the derivative $dy/dx$ is not a ratio. Couldn't it be interpreted as a ratio, because according to the formula $dy = f'(x)dx$ we are able to plug in values for $dx$ and calculate a $dy$ (differential). Then if we rearrange we get $dy/dx$ which could be seen as a ratio.   I wonder if the author says this because $dx$ is an independent variable, and $dy$ is a dependent variable, for $dy/dx$ to be a ratio both variables need to be independent.. maybe?


Following is the proof of the above proposition given in my textbook.  Let, $\arccos{x}={\theta}_2$ and $\arcsin{x}={\theta}_1$  $$\sin({\theta}_1 + {\theta}_2)=\sin{\theta_1}\cos{\theta_2}+\sin{\theta_2}\cos{\theta_1}$$  $$\implies \sin({\theta}_1 + {\theta}_2)=x^2+(\sqrt{1-x^2})(\sqrt{1-x^2})$$  $$\implies \arccos{x}+\arcsin{x}=\arcsin{(1)}$$  $$\implies \arccos{x}+\arcsin{x}=\frac{\pi}{2}$$  Problem:  When, $\cos{\theta_1}=-\sqrt{1-x^2}$  and $\sin{\theta_2}=\sqrt{1-x^2}$  Then, $${\theta}_1 + {\theta}_2=\arcsin{(-1)}$$  $$\implies \arccos{x}+\arcsin{x}=-\frac{\pi}{2}$$  Doesn't it disprove the given proposition?

Verify that: $\arcsin \theta+\arccos \theta=\frac{\pi}{2}.$ (1)   How can one verify (1) when it is not generally true? We can rewrite (1) as      Verify that if $\sin u = \cos v$, then $u+v=\frac{\pi}{2}$.   What about $\sin \frac{2\pi}{3}$ and $\cos \frac{\pi}{6}$? $\sin \frac{2\pi}{3} = \cos \frac{\pi}{6}$, but $\frac{2\pi}{3}+\frac{\pi}{6} \neq \frac{\pi}{2}$.We may try to verify (1) as:  Let $\arcsin \theta=u$ and $\arccos \theta=v$, then $\sin u=\cos v = \theta.$ We can write   $$\sin(u+v)=\sin u \cos v+ \cos u \sin v,$$  which becomes   $$\sin(u+v)=\theta^2+ \cos u \sin v.$$  Now, $\cos u=\pm \sqrt{1-\theta^2}$, and $\sin v=\pm \sqrt{1-\theta^2}$. For $\cos u= \sqrt{1-\theta^2}$ and $\sin v= \sqrt{1-\theta^2}$, we have  $$\sin(u+v)= \theta^2+(1-\theta^2)=1,$$  $$\therefore u+v=\arcsin \theta + \arccos \theta = \arcsin(1)=\frac{\pi}{2}.$$ But $\arcsin(1)$ is also equal to $\frac{\pi}{2}+2n\pi, n \in \mathbb{Z}.$ What about that? And what about the cases when $\cos u = -\sqrt{1-\theta^2}$ and $\sin u = \sqrt{1-\theta^2}$ and the other way? Then $\sin(u+v)=2\theta^2-1=1\ \mbox{iff}\ \theta =\pm 1.$   I don't know where I am making a mistake, what assumptions are wrong, or where my reasoning goes wrong. Please help.


I want to create partition of my Hard Disk but the partition contains Ubuntu installed in it. I have GParted installed but since the partition contains Ubuntu I can't unmount. Is there any way I can create partition without losing the files that I have and with ubuntu still lying there?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


Is it right to use 'The' before a language, Like the Japanese, the Hindi?

Chen Guangcheng is a special student at the U.S.-Asia Law Institute at   the New York University School of Law. This essay was translated from   the Chinese.   Why don't they write: "This essay was translated from Chinese"? (Omitting the "the" before "Chinese".)


What is the intuition behind the formula $$P(A\mid B)=\frac{P(A\cap B)}{P(B)}$$ I have seen this formula around, but every site/book I look at does not really have a clear & cut explanation behind this formula.

What is some intuitive insight regarding the conditional probability definition: $P(A\mid B) = \large \frac{P(A \cap B)}{P(B)}$ ? I am looking for an intuitive motivation. My textbook merely gives a definition, but no true development of that definition. Hopefully that's not too much to ask.


As title says, how can I change the selected option of a select box using jQuery?  I have something like this:  <select id="v_lenguaje" name="lenguaje"> <option value="English">English</option> <option value="Spanish">Spanish</option> <option value="Italian">Italian</option> <option value="French">French</option> <option value="Japanese">Japanese</option> <option value=""></option> </select>   By default it shows 'English', and what i want is after an ajax call the selected option change. I tried many codes but it doesn't worked. Thanks

I have a drop-down list with known values. What I'm trying to do is set the drop down list to a particular value that I know exists using jQuery.  Using regular JavaScript, I would do something like:  ddl = document.getElementById("ID of element goes here"); ddl.value = 2; // 2 being the value I want to set it too.   However, I need to do this with jQuery, because I'm using a CSS class for my selector (stupid  client ids...).  Here are a few things I've tried:  $("._statusDDL").val(2); // Doesn't find 2 as a value. $("._statusDDL").children("option").val(2) // Also failed.      How can I do it with jQuery?     Update  So as it turns out, I had it right the first time with:  $("._statusDDL").val(2);   When I put an alert just above it works fine, but when I remove the alert and let it run at full speed, I get the error     Could not set the selected property. Invalid Index   I'm not sure if it's a bug with jQuery or Internet Explorer 6 (I'm guessing Internet Explorer 6), but it's terribly annoying.


Show that for all real $x$:  $$\arctan(x+1) - \arctan(x) = \arctan(\frac{1}{x^2 + x +1})$$  This is what I got so far:  $$\arctan(x+1/x) = \arctan(1/x^2 + x +1) \iff \\     x+1/x = 1/(x+1)^2 - x \iff \\     (x+1)^3-x^2-2x = 0$$  But then I get stuck and feel like there is something I'm missing or there is some smarter way of doing it.

$$ \arctan\left(\frac{1}{1+n+n^2}\right)$$  My professor wrote this as  $$\arctan(n+1) - \arctan(n)$$   I don't understand how this expression is right?


In the wordpress, how can i add a page/post in the 'primary' nav menu ? By code ? All i know from admin you can add it via appearance > menu.

Through API functions, I want to define a new , select it in the current theme, and then insert a few Pages as menu items. This is to be done for instance on a theme activation.  Through a (moderately painful) process of reverse engineering the database inserts and updates after manually setting up the Navigation menu and items, I've pieced together the following steps, where 'footer-nav' is the slug ID of the Navigation menu I'm creating:  if (!term_exists('footer-nav', 'nav_menu')) {      $menu = wp_insert_term('Footer nav', 'nav_menu', array('slug' => 'footer-nav'));      // Select this menu in the current theme     update_option('theme_mods_'.get_current_theme(), array("nav_menu_locations" => array("primary" => $menu['term_id'])));      // Insert new page     $page = wp_insert_post(array('post_title' => 'Blog',                                  'post_content' => '',                                  'post_status' => 'publish',                                  'post_type' => 'page'));      // Insert new nav_menu_item     $nav_item = wp_insert_post(array('post_title' => 'News',                                      'post_content' => '',                                      'post_status' => 'publish',                                      'post_type' => 'nav_menu_item'));       add_post_meta($nav_item, '_menu_item_type', 'post_type');     add_post_meta($nav_item, '_menu_item_menu_item_parent', '0');     add_post_meta($nav_item, '_menu_item_object_id', $page);     add_post_meta($nav_item, '_menu_item_object', 'page');     add_post_meta($nav_item, '_menu_item_target', '');     add_post_meta($nav_item, '_menu_item_classes', 'a:1:{i:0;s:0:"";}');     add_post_meta($nav_item, '_menu_item_xfn', '');     add_post_meta($nav_item, '_menu_item_url', '');      wp_set_object_terms($nav_item, 'footer-nav', 'nav_menu'); }   This seems to work, but:   is it a robust and elegant way of doing it? am I missing something totally obvious that would do all this in one line of code?


I have a realy strange problem in Ubuntu 11.10. I have by accident my password set to empty. If I wan't to install software now the system asks for a password, but I haven't one anymore. If I enter my old password it sais it's wrong and if I leave it empty it also does. Now I wan't to set my password back, but the system asks for the old password before I can change it. That password doesn't exist, so I can't do anything anymore! Can someone help me please?

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


I'm trying to figure out the difference between using prepared statements and and escaping/converting a variable into a string as follows:  $sql = "SELECT `user_id`, `user_name` FROM table WHERE `user_id` = ? and `user_name`= ?"; $sqlPrepare = $conn->prepare($sql); $sqlPrepare->bind_param('ss', $user_id, $user_name); $sqlPrepare->execute(); $result = $ $sqlPrepare->get_result();             if($result->num_rows ===0)                          {                         // Do work                          }   VS  mysqli::real_escape_string($whatever_vars_needed);  $sql = "SELECT `user_id`, `user_name` FROM table WHERE `user_id` = '".$user_id."' and `user_name`= '".$user_name."'"; $sqlQuery = $conn->query($sql);     if($sqlQuery->num_rows ===0)                          {                         // Do work                          }   as far as protecting against sql injections go, would they both serve the same purpose? And if so, wouldn't it be preferred to use the second method since it does save a bit of extra typing?  I realize that I'm using query vs prepare but even then I don't really see the difference if I'm converting the variables into strings?  Which is a better method?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I have  several shapesfiles which perfectly overlay but the coordinates reference system is unknown. I need to overly these with other data in a different coordinate system.  I tried initially to overlay with several projected and geographic coordinates systems associated with the area out of which two showed very close displacement (about 60m). Next i tried different datum with one of the 'promising' coordinates reference systems (a geographic coordinates system) and also changed the units but same results. Attached is a clip of one of the coordinate extents. I am yet to try the second 'promising' CRS but decided to put it out just in case i am missing something

I have a Shapefile but its coordinate system is Unknown, and there is no *.prj file.   How can I identify it now?


A noob to this. The goal is to export to an FBX file so that it can be converted to a WT3 file that can be used by Wikitude. I'm using Blender and was able to figure out how to apply a texture and material to the can. Then, the model is exported as an FBX file using Blender. However, I have two problems: 1. The top of the can is transparent and 2. The material (can print) isn't exported.  Any help and/or direction would be much appreciated.  Original Model:   Screenshot of what's happening:  Left: Blender showing that the material has been applied and that the top of the can is solid.  Right: Using  to view the FBX file. Note that there's no Duff label and that the top of the can is either transparent or not solid.  Blender file:   Note: There are many questions and answers saying that FBX files should only contain the model and not include textures. However, the  requires everything in an FBX file. Hence, the challenge that I'm having here. I might be misunderstanding the workflow in which case, please let me know.  Any help that I can get with both or either dilemma would be much appreciated. Thank you in advance!

So I have this shark model which I animated and ready to export it on fbx and transport it to Unity.  But When I put it on Unity, It looks transparent like this.    Many of the solutions online say that the problem is because of my faces, and they told me to recalculate it or something, but normals are just fine. Is there any other solution?  here's the blend file:


I was using Blender for some time without issue. Recently I have found I am unable to save even a brand new document.  I am given the error message: "cannot open file  for writing: No such file or directory".  I have seen a similar post before which simply recommended blender needs to be run with administrator privileges. The account that is unable to save is the administrator.  I have posted a query to the microsoft forums but I also wished to see if there is a chance this is a blender issue.  Thanks

I installed blender for the first time, so I have the latest version, 2.78c.  I played with it for a bit.  Then I discovered I couldn't save my work.  I uninstalled it and reinstalled it.  Rebooted.  Same problem.  After a little testing, I realized I CAN save to my NAS storage drive.  I cannot save on my C: drive.  Any project.  Any folder.  C: always fails.  If I run blender as Administrator, it will save to the C: drive.  But not as my normal userid.  So it sounds like a bug of some kind.  I am running Windows 10.  Bitdefender A/V.  I use OneDrive.  I have a 2TB drive installed.  All clean and purring nicely.  Is there a better way to install it?  Or some change I can make (other than always running as administrator)?    Sounds like a bug - but hopefully there's a proper solution.  Thanks,  Jerry


I have a SQL Server 2008 instance and one table is quite large (log data) so I delete old logs. Now I start to read articles on this problem, .  As I see it there is no solution! If I shrink the database and then rebuild the index, the database will be about the same size as before. If I don't rebuild the index, the database will shrink, but performance will be low, which is not an option.  So shrinking for production databases seems not to be an option. Is there any solution? Does deleting from the database make any sense? How do big companies delete log data from their databases?

This question is asked in various forms here but the question boils down to:  I know shrinking a database is risky. In this case, I've removed so much data and I'll never use it again.   How can I shrink my database? What files do I shrink?  What should my considerations be while doing this?  Should I do anything after? What if it is a large database? Can I shrink it in smaller increments?


I have a Nikon D5100, and would like to be able to hold a speedlight in my hand, or place it behind my subject. I'd like to avoid cables, but don't know which specific products I should get. I currently have an SB-400, which I'm willing to replace.  Any recommendations?

I want to start experimenting with off-camera flash and have a Nikon SB600 + D3000. I plan to upgrade my body in the next year so would like to purchase something which is:  a) wireless, and  b) will be compatible if I upgrade to a D7000 or the D300s/700 replacement when it comes out.  Any recommendations appreciated. Thanks!


So I want to be able to subtract a list to another list. For example, if I had two lists: x = [0,8,10] y = [1,7,9]  I would like to be able to basically subtract y[i] - x[i] using a FOR LOOP. So ultimately, inside the loop, it would go 1-0, 7-8, 9-10, and so on if the list is longer. Additionally, would there be any way to check if all or only one of the differences are equal to each other? Thank you.

Right now I have vector3 values represented as lists. is there a way to subtract 2 of these like vector3 values, like  [2,2,2] - [1,1,1] = [1,1,1]   Should I use tuples?  If none of them defines these operands on these types, can I define it instead?  If not, should I create a new vector3 class?


Im looking for a way to authenticate the users of our OpenSSH SFTP Server against a MySQL Database. This would be nice because I want to add users through a webinterface which will write in the MySQL Database. The reason for this is that I find it kind of a unpleasant solution to add a system user for every client that wants to download data. Also many of these users are going to download files from the same directories so it's absolutely useless to chroot everyone in his own home directory because they should be chrooted in costum directories.  I know I can do this with proftpd and SSL but if I can avoid using FTP I would do so.

is there a possibility to use a (mysql) Database to manage SSH login credentials instead of /etc/passwd ?  I know I could use ldap but I only want simple user management and ldap seems a little bit overpowered for this job.


I ran:  sudo apt-get autoremove && sudo apt-get autoclean  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. 1 not fully installed or removed. Need to get 0 B/37.6 kB of archives. After this operation, 0 B of additional disk space will be used.  **dpkg: error processing package at (--configure):  package is in a very bad inconsistent state**; you should  reinstall it before attempting configuration Errors were encountered while processing:  at E: Sub-process /usr/bin/dpkg returned an error code (1)   But it didn't tell me which package.  Any help would be appreciated.  Paul

I can't update my system because it freezes while installing a third-party update (zramswap-enabler)! Sometimes I get the following message in Update manager:  Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: E:The package zramswap-enabler needs to be reinstalled, but I can't find an archive for it.  I tried to remove the zramswap-enabler, but it's impossible because I get the following message: dpkg: error processing zramswap-enabler (--remove):  Package is in a very bad inconsistent state - you should  reinstall it before attempting a removal. Errors were encountered while processing:  zramswap-enabler E: Sub-process /usr/bin/dpkg returned an error code (1)  Actually I would really reinstall that package, but it is unable to do it! If I remove this third-party PPA then the system is warning me about a very very serious problem. So why can I not install/reinstall/remove/update this package and why freezes the updater if I try to update?


I have a folder. Inside of this folder is an executable called python. When I try to run python from the terminal it instead runs the python interpreter. How can I run the file called python?

How do I add a directory to the $PATH in Ubuntu and make the changes permanent?


Hilbert's Nullstellensatz asserts, that if $k$ is  an algebraically closed fields, $I \subset k[x_1,\dots,x_n]$ is an ideal, then $I(V(I)) = \sqrt{I}$. So every polynomial that vanishes on the variety defined by $I$ is actually in the radical of $I$.  Obviously we always have the inclusion $\sqrt{I} \subset I(V(I))$.  Of course this is not true, if $k$ is not algebraically closed, the standard example is $f = x^2 +1  \in \mathbb{R}$. Then $V(f) = \emptyset$, i.e. $I(V(f)) = k[x]$.  My question is: Are there any other examples where the Nullstellensatz does not hold, but $I$ actually has zeroes? Or is this the only class of counterexamples?

I want an example (with details, please) showing that Nullstellensatz may be false over non-algebraically closed fields. Thanks in advance!


Recently I switched to a DVORAK keyboard layout & wish to change the current key combination for copy & paste from Ctrl+C,V to Ctrl+J,K to allow more ease of use.

I've been looking all over the configuration menus and googling all over the web for how to configure keyboard shortcuts for Copy and Paste in the Unity window manager.  Is there some hidden place somewhere to configure this?  In Gnome Desktop on Lucid, I had it configured so that using the Ubuntu system keyboard/mouse, I could use Win+C/Win+V to copy and paste everywhere on the Gnome desktop, including in Firefox and gnome terminal; then when I moved the mouse to my Mac desktop*, the same keystrokes would copy and paste.  I would really like to keep this consistency.  Ctrl+C is obviously inappropriate as the "copy" key in any sort of terminal program.  (Any Ctrl characters, actually.)  * I am doing this by running Synergy server on Ubuntu, and the Synergy client on a Macbook.


I got several .obj files from a face and i want too animate them like keyframing. However keyframing does not work since the .obj files might differ in small details. My simplest approach is: make a animation based on showing each .obj just a few miliseconds. I need to do this with python since this should be automated. (In the end someone will give me a video, i split the video in frames and get for every frame a .obj file from the face (some Machine-Learning stuff behind there) and then i rebuild the "video" but in 3d. Is this possible with the python-api from blender ? And when yes, where would i start? Thanks.

I have an obj sequence of a fluid simulation from Realflow. I've found a few tools that can import an obj sequence into blender, but most are outdated and don't work. Are there any scripts or plug-ins that can do that?


I have been using ubuntu and ubuntu based distros for quiet some time. However, every 2 or 3 months I reinstall (mainly change the distro to another one to test it) and I also install these systems on other laptops/PCs of friends.  The time-consuming part is where I change every bit to recreate my own settings that I find perfect for daily use. (meaning....icons, panels, conky, shortcuts, etc..)  Is there a way to create a live USB pendrive with all my own settings and install it from there? Saving the time of reconfiguring my system every time I install it on my computers of those of my friends?

If I want to make a backup of everything I have done since the fresh install of Ubuntu, what are the possible options? What all should I backup? I want to get all the settings that I changed, all the packages I installed, etc.


I need hint in finding the integral of $$\int \frac{x^2}{(x \sin x + \cos x)^2} dx $$ I tried dividing the term by $x^2\cos^2x$ and then substituting $\tan x$.

The question:      Compute$$ \int \frac {x^2 \, \operatorname{d}\!x} {(x\sin x+\cos x)^2} $$   Tried integration by parts. That didn't work.  How do I proceed?


I've just installed Ubuntu 13.04 and added custom upstart scripts. These scripts work well and are already in use on other hosts (not Ubuntu).  The problem is, upstart doesn't produce any log of what it does. The only logs are daemon output logs in /var/log/upstart/. When jobs are started or stopped, no log are created. When a job is killed or exits 1, it is respawned, but there is no log of the respawn event in /var/log/*. log-priority is message, but setting it to debug doesn't change anything.  How can I have upstart produce logs of what is does on raring ?  Thanks for your help.  Arthur

On Ubuntu 12.04, I can find Upstart log messages in /var/log/syslog.  Commands:  # initctl log-priority info # initctl emit hello   Log:  Apr  1 01:56:56 precise64 kernel: [ 8365.820425] init: Connection from private client Apr  1 01:56:56 precise64 kernel: [ 8365.821130] init: Handling hello event   On Ubuntu 13.10, the messages do not appear in syslog or anywhere else under the /var/log directory, although commands like logger hello work as expected. Should I be looking for them somewhere else? Is there a configuration setting I need to change somewhere?  There’s a  from somebody who seems to be having the same problem on Ubuntu 13.04, and more  and  that may also be describing the same problem. Unfortunately, these questions offer no leads for the problem.


The DMG describes enchanted weapons, but does not say the prices for most. I'm wondering if there is is a scale or chart, or can you only buy some of them? If possible, can you provide an example?

In 5e, magic items aren't as common or as varied as in older editions, but that also means it is hard to place prices on them.  As DM, NPC's can't really sell a magic item because we don't know the prices for these items. While it is stated that they are rare and usually unpurchasable and unsellable, but I still have to have some basis on what to price them.  So is there a way to find buying and selling prices for magic items in 5e?


I have an assignment and I'm confused which bash configuration file to edit.  I'm supposed to edit a bash configuration file and change the PS1 prompt and add an environment variable that searches ~/scripts whenever a root user enters a command. I am then supposed to copy it to the appropriate directory so all new created users will also have the variables.  I can do the first part fine, but am not sure which configuration file I am supposed to be editing. Based on the second requirement, I'm editing ~/.bashrc, but then I'm stuck on the second part of which directory to copy to.  NDG says that all files in that directory with a .sh extension are automatically executed in /etc/profile.d/, so I went ahead and copy/renamed ~/.bashrc to something like bashrc.sh there. But when I test it with a new user profile, there is an empty prompt in terminal.  Hopefully someone here can help me, thanks.    The exact wording of the assignment   In the appropriate bash shell configuration file, configure the primary command line prompt so that it displays your surname, followed by @, the host name, and the working directory. Create a directory named ~/scripts In the appropriate bash shell configuration file, change the appropriate environment variable so that the system also searches the newly created ~/scripts directory when the root user enters a command. Copy the bash shell configuration file that you modified the steps above, to the appropriate directory so that whenever a new user is created, that user will also have these environment variable values.

How can I set up desktop defaults, much like most distributions do, for every new user? (ex. default wallpaper, apps, etc)


Evaluate: $$\int_0^{\infty} \frac{x-1}{\sqrt{2^x-1}\ln(2^x-1)}\,dx$$    I am not sure where to start or what should be the best approach towards this problem. I tried the substitution $2^x-1=t^2$ but that seems to make things more worse. Using this substitution, I got: $$\int_0^{\infty} \frac{1}{\ln^2 2}\frac{\ln\left(\frac{1+t^2}{2}\right)}{(1+t^2)\ln t}\,dt$$ I don't see how to proceed after this. :(  Any help is appreciated. Thanks!

Consider the following integral: $$\mathcal{I}=\int\limits_0^\infty\frac{x-1}{\sqrt{2^x-1}\ \ln\left(2^x-1\right)}dx.$$  I tried to evaluate $\mathcal{I}$ in a closed form (both manually and using Mathematica), but without success.   However, if  is provided with a numerical approximation $\,\mathcal{I}\approx 3.2694067500684...$, it returns a possible closed form:  $$\mathcal{I}\stackrel?=\frac\pi{2\,\ln^2 2}.$$ Further numeric caclulations show that this value is correct up to at least $10^3$ decimal digits. So, I conjecture that this is the exact value of $\mathcal{I}$.     Question: Is this conjecture correct?


Accidentally a bridge rectifier was installed backwards and the capacitor bank was exposed to reverse voltage, not for too long, maybe 20-40 seconds. There were a few different brands and values of electrolytic caps being used, 1 or 2 types became very warm to the touch after the exposure and I removed these. The rest were still cold, surprisingly the ones to get warm were cheap caps, and the ones that seemed unaffected were all better quality ones, the warming didn't seem to be related to the values and ratings. I have powered up the circuit with the remaining caps after correcting the reversed bridge rectifier, after running into a load for a while they have not shown any physical signs of failure/damage (heating, bulging, leaking etc.) Do you think these caps are still to use i.e the performance has not have been considerably degraded  in some way(increased leakage, decreased capacitance, decreased life span)?

I know that I mustn't connect an electrolytic capacitor reversely. It will explode if I apply the reverse voltage long enough.  But, what happens if the reverse voltage is applied for a short time? For example, a fault occurs in the circuit and the capacitor becomes reverse biased or exposed to AC voltage for a short time, but it still looks OK from outside. Does the internal physical and chemical structure of the capacitor change permanently? Would it still have the rated capacitance, voltage and life time? Is it okay to keep it using if it doesn't explode? I feel that the answer is "no", but I'm looking for an explanation for it.


I have a friend who acts horribly mean to people but whenever he needs something from the person he has been mean to, it is like he becomes another person. He acts extremely nice.However, even if he does get the thing he wants he instantly goes back to being mean. I have been trying to find a word that describes this person but I can't seem to find it. Any ideas?

I know that I came from a country where inventing words or phrase for something is common. I always hear this phrase when they say it:     you're so feeling close   to denote that someone pretends to be your close friend or vice versa. I'm not just that confident that the usage of this phrase is valid. I believe that we're the only one who used this.  A singled word or phrase will do.


Lets assume we have 2 database tables (entites). The first is named A and the second one is named B. There are 1:N (where N > 0) relationship (so every record in table A is in relation with 1+ records in B table).  Table A (for simplicity assume there is just id in this table, other table columns are not relevant for this question)  Table B    id (bigint) <- primary key defaultForA (boolean, default = false) a_id (bigint) <- foreign key for table A record   Is it possible to set table contraint that will check there is only one truthy value in defaultForA column for every present a_id value? For example we have 2 records in table A (with IDS 0,1)  And 4 records in table B  id, defaultForA,a_id  0,true,0  1,false,0  2,true,1  3,false,1  This is completely fine state. For each A record I have one "default" value from B table The constraint should not allow me to add following record to table B  4,true,0  Because there is alredy record linked to record 0 in table A that have defaultForA property set to true

I want to have a one-to-many relationship in which for each parent, one or zero of the children is marked as a “favorite.” However, not every parent will have a child. (Think of the parents as questions on this site, children as answers, and favorite as the accepted answer.) For example,  TableA     Id            INT PRIMARY KEY  TableB     Id            INT PRIMARY KEY     Parent        INT NOT NULL FOREIGN KEY REFERENCES TableA.Id   The way I see it, I can either add the following column to TableA:      FavoriteChild INT NULL FOREIGN KEY REFERENCES TableB.Id   or the following column to TableB:      IsFavorite    BIT NOT NULL   The problem with the first approach is that it introduces a nullable foreign key, which, I understand, is not in normalized form. The problem with the second approach is that more work needs to be done to ensure that at most one child is the favorite.  What sort of criteria should I use to determine which approach to use? Or, are there other approaches I am not considering?  I am using SQL Server 2012.


newb here, I've got following code and was wondering how to grasp the class-concept. I realize I cannot call a non-static method from main. So what exactly is it I am doing here instead? calling the isSameName-method through an object of the non-static Person-class, through the main-method? I also don't understand the relationship between the class-objects, as my object kira is not relevant, but can still use it to call the method with my relevant parameters class Person {     private String name;     private int alter;      public Person(String name, int alter) {         this.name = name;         this.alter = alter;     }      public String getName() {         return name;     }      public int getAlter() {         return alter;     }      public boolean isSameName(Person a, Person b) {         return a.getName() == b.getName();     }       public static void main(String[] args) {         Person tom = new Person("Tom", 23);         Person kira = new Person("Kira", 34);         Person tim = new Person("Tom", 45);                  System.out.println(kira.isSameName(tom, tim));     } }  would be grateful for any help, and sorry if questions like this were asked a thousand times, I still have problems finding the right words for my search, as I don't know how to even call my problems

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I decided to switch Windows to Linux. So I downloaded Ubuntu 18.04. I made a bootable USB drive and installed Ubuntu on it.   After successful Ubuntu installation it says reboot your device. After rebooting about 1 minute later a purple screen appears and after another minute a black screen appears.  My computer configuration:   Company : HP Ram : 4 GB Prosessor:and a4 vision Graphic card : amd radeon

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


Where [have you been/were you] yesterday?   If I choose the option "Where have you been yesterday?" then my answer was marked wrong and were you is considered as correct one. But have you been does make sense because its the action of just recent past so using present perfect here sounds fine to me.   Suggestions please.

I have read an interesting book yesterday and underlined the new words which are simple but effective.    Present perfect tense specifies an action that has recently finished. The above sentence is present perfect if I am using have (I believe).  But in my book have is given as error and the sentence is corrected by removing have. I believe by removing have we are changing the tense to simple present. But simple present does not indicates an activity that is finished.  I am not sure why have is error in the above sentence. Please suggest.


How do I check convergence for this? $$\sum _{n=1}^{\infty }\:\arctan\left(\frac{1}{n^2+n+1}\right)$$  I don't think I should be using the series integral test, since we haven't studied it at the lecture.  I tried using other tests but I can't seem to figure out this one. Anyone have any hints/ideas?

This is from a GRE prep book, so I know the solution and process but I thought it was an interesting question: Explicitly evaluate $$\sum_{n=1}^{m}\arctan\left({\frac{1}{{n^2+n+1}}}\right).$$


I have a database named "A" which has three schemas "B","C" and "D". I want to take backup of schema "C"  and restore the data to Schema "B"? not sure how to do this as I am new to Postgres. pls help with commands.

How I can copy my public schema into the same database with full table structure, data, functions, fk, pk and etc. My version of Postgres is 8.4 P.S. I need to copy schema NOT database


I'm trying to follow this document  to create an accordion section that resembles a page layout. This is the code:  <template>     <lightning-card  title="Hello">
{activeSectionsMessage}
         <lightning-accordion allow-multiple-sections-open                                 onsectiontoggle={handleSectionToggle}                                 active-section-name={activeSections}>         <lightning-accordion-section name="A" label="Accordion Title A">
This is the content area for section A.

Donec vitae tellus egestas, faucibus ipsum ac, imperdiet erat. Nam venenatis non ante at sagittis. Integer vel purus eget nunc semper placerat. Nam tristique quam leo, et posuere enim condimentum quis. Ut sagittis libero id lectus tempor maximus. Nunc ut tincidunt eros, a hendrerit leo. Suspendisse quis fermentum dolor. Nulla euismod consectetur leo, id condimentum nunc consequat quis.
             </lightning-accordion-section>              <lightning-accordion-section name="B" label="Accordion Title B">
This is the content area for section B.

Nam at elit et justo scelerisque ullamcorper vel a felis. Mauris sit amet lorem sed est sagittis blandit nec ac turpis. Ut a mi id turpis pharetra ornare. Nullam rhoncus feugiat nunc, ac pulvinar felis pulvinar at. Nullam efficitur aliquet justo et ultricies. Maecenas eu felis aliquam, tincidunt elit at, suscipit leo. Duis ut urna nec nibh hendrerit lacinia. Sed non auctor libero. Sed pellentesque tempor mollis.
             </lightning-accordion-section>              <lightning-accordion-section name="C" label="Accordion Title C">
This is the content area for section C.

Nulla ornare ipsum felis, vel aliquet dui blandit vel. Integer accumsan velit quis mauris pharetra, nec sollicitudin dui eleifend. Cras condimentum odio mi, nec ullamcorper arcu ullamcorper sed. Proin massa arcu, rutrum a ullamcorper nec, hendrerit in sem. Etiam tempus eros ut lorem tincidunt, id condimentum nulla molestie. Morbi hendrerit elit pretium, ultrices neque non, ullamcorper justo. Quisque vel nisi eget eros efficitur semper. Nulla pulvinar venenatis quam vitae efficitur. Nam facilisis sollicitudin quam ac imperdiet.
             </lightning-accordion-section>         </lightning-accordion>     </lightning-card> </template>   Result:   I want to change the color of the title "Accordion Title A/B/C" to be grey, exactly like in a page layout.  i don't understand what i am missing but i cant change the background of it.  i simply tried to do  .slds-accordion__summary {     color: red; }   without success.

Say we have a LWC with the following template in a component named example:  <template>     <lightning-textarea class="test"></lightning-textarea> </template>   And some css to go with it:  .test textarea {     min-height: 500px; }   The expected behavior is that the lightning-textarea will be 500px tall because the nested textarea has been made 500px tall.  The actual behavior is that nothing happens. The reason for this is that the compiled css will be:  .test[c-example_example] textarea[c-example_example] {     min-height: 500px; }   And the compiled (relevant parts of the) html will be:  <lightning-textarea c-example_example lightning-textarea_textarea class="test">     <textarea lightning-textarea_textarea></textarea> </lightning-textarea>   It's obvious that the  has scoped the textarea element to its parent, lightning-textarea and not our example component. This is an issue because the CSS processor has appended [c-example_example] not only to the .test part of the selector, but textarea as well.  It makes sense that CSS would be scoped downward, which is how Aura components handled scoping, but in LWC it's actually entirely isolated, so neither parent nor child elements can target it.  Is there any way around this? Or plans to support targeting child components? Being able to override and tweak the CSS of the standard component library was a very handy feature of Aura components, allowing customized appearances without having to rewrite the base component from scratch.  On top of that, this means that you can't reuse your own components in different contexts, giving them different styles in each. The component itself must be responsible for  all of its styling. While this is possible it requires a lot of conditional class assignments which is frustrating.


I'm having a bit of a trouble with the curve modifier. The object seems to not be following the curve. I have checked other threads and posts about the similar problem, and I followed their given solutions. Still, the issue remains. What do you guys think might be the problem to this. I have provided a screenshot with my blend file.

Every time I think I have the curve modifier mastered, it throws me a another curve ball (no pun intended).  Why in  can I not get the lights to follow the spiral curve? When the modifier is activated, the lights are stretched and distorted along the curve.  I created the curve by converting it from a mesh (string of verts). Why does it not display like a normal Bezier? Is that related to my problem?  I am following all the "rules" that I am aware of, as detailed here: . The curve seems to run in the correct direction. The origin point is at the first point of the curve. The curve modifier on the lights is set to -Y which is the local orientation of the curve's direction.  What am I missing?


I took a few photos this weekend of a mountain range, and the sun was up above them, off to the top right for most of the photos. I was taking these photos (moving the angle around and whatnot) for about 5 minutes in total. Would this damage the sensor, or is it more like "don't aim the camera directly at the sun"?

I want to experiment taking photos in which the sun appears. I'm afraid of what might happen if I take one with a narrower angle (where sun would be bigger). Can the lens act as a magnifying glass and burn the CCD or CMOS sensor?  Under which circumstances (zoom, exposure, aperture, etc...), can the sensor be damaged by the sun?


Let $f_{k+1}(x)=f_{k}(\cos x)$ and $f_{1}(x)=\cos x$ then $\lim_{k\to\infty}f_{k}(x)=0.73905\cdots$  I was just piddling around with the calculator one day. I don't know what happened but I just happened to take the cosine of a single number (in radians) repeatedly. It converged to a single value $0.739085133\dots$ It converged to this same thing for every number I tried. Like for example, the cosine of the cosine of the cosine of the cosine$\dots$ of any arbitrary value is equal to that.  Please tell me if I have made a new observation, or if it's just a false alarm.

The following question comes from Chapter 6.4, Exercise 4 on page 156 in the set of notes .     Using Exercise 2 and 3, show that while $f: \mathbb R \to \mathbb R$ given by $f(x)=\cos(x)$ does not satisfy the condition of the Contraction Mapping Theorem, it nevertheless has a unique fixed point.   The "Exercise 2 and 3" mentioned in the question (which I've already done) were        Extend the Contraction Mapping Theorem by showing that if $f$ is a mapping of a complete metric space $(X,d)$ into itself and $f^N$ is a contraction mapping for some positive integer $N$, then $f$ has precisely one fixed point.   Use the Mean Value Theorem to prove the following:      Let $f: [a,b] \to [a,b]$ be differentiable. Then $f$ is a contraction if and only of there exists an $r \in (0,1)$ such that $|f'(x)|\le r$, for all $x \in [a,b]$.      Can anybody please show me how to use those to show that $f(x)=\cos(x)$ has a unique fixed point?  I know, from a Numerical Analysis course, that this fixed point can be found using a method such as Newton's Method, but I am not sure how to prove that it actually exists (and is unique).


I have looked through all the other questions which might have received answers to the question I am currently posting. However, after trying all their recommendations I am still stuck with the same issue.   I have downloaded data which provided shape files with are set within the coordinate reference system (CRS) as EPSG:4230 - ED50. I need this shapefile in the CRS of EPSG:4326 - WGS 84.  I have tried adding new vector layer with the downloaded data shapefile. I then saved the file with the CRS that I desire. When I upload it again it still is recorded as EPSG:4230 - ED50, does anyone know why I cant change it. I am using QGIS versions 3.2

How do I change the projection of my shapefile using QGIS? The default projection is set to EPSG:3003, I want to change it to WGS84 EPSG:32632. When I do a reprojection or I change projection in the properties mask I don't have the correct result. On the left, I have the plan coordinates but they are not correct for the EPSG shown on the right:


I want to open a user login form in popup after click on user link same as under login form I have create new account link I also want this to popup.. I have used 2-3 modules like modal_form colorbox etc. Its not full-filling my need. Because I need to customize my login form.

I have a form and I am using Drupal 7. I need to show this form in a popup when a user clicks a link. The user should then be able to complete the form whilst in the pop up window. I can use anything like  or modals or anything. I just wanted to know which is the better option and what options do I have for Drupal.


How do I type special characters (Alt+0???) in Windows on a laptop without any kind of numeric keyboard (even not one accessed by FN)?  Right now I am using the NT 4 charmap (the XP one sucks), but does anyone know of a more efficient way?

How do i type ♣ (alt+5) and ♥ (alt+259) and other characters like it on a keyboard w/o a numberpad? using the numbers 1-9-0 doesnt activate those characters. Note i want to TYPE and not use that windows program to select/copy/paste


I encounter a curious sequence $a_i$ which is defined below. I wonder if it has a name and has some closed form.  Let $r, q$ be positive integers. (Assume further that $q$ is a prime power if necessary.) The sequence in question is defined by $$ a_i = \lvert\{\, (e_1, \dotsc, e_r) \in [0, q)^r : e_1 + \dotsb + e_r = i \,\}\rvert \quad (i \geq 0)$$ where $[0, q) = \{0, 1, \dotsc, q - 1\}$.   What I can see is the followings.   $a_0 = a_{r(q - 1)} = 1$ $a_i = \binom{r}{i}$ if $q = 2$  $a_i = 0$ if $i > r(q - 1)$.    (In addition, the identity $\sum_{i = 0}^{r(q - 1)} a_i = q^r$ probably holds judging from the situation I encounter.)

I'm working on a card game, which uses a non-standard deck of cards. Since I'm still tweaking the layout of the deck, I've been using variables as follows:  Hand size: $H$ Number of suits: $S$ Number of ranks: $R$ Number of copies of each card: $C$    Thus, the total number of unique cards in the deck is $S*R$, and the absolute total number of cards in the deck is $S*R*C$.  Since there are duplicates for each card, I'm trying to find the number of unique hands of size $H$ that are possible for given $S$, $R$, $C$, and $H$. If I'm remembering correctly, ${S*R*C\choose H}$ would over count the number of unique hands in this case.  How would I handle this calculation with duplicate cards?  EDIT: As an aside, how would calculations of unique number of winning hands be different with duplicate cards? I'm thinking of having general types of winning hands, such as $N$-flushes, $N$-straights, $N$-of-a-kinds, etc (restricted to $1 \le N \le H$, naturally).


So I'm running a VM somewhere and want to know what hypervisor the host is running. Any way to check whether it's running KVM or in a container?  The vm is running Ubuntu

I have command line access to a Linux machine which may or may not be virtualized. I want to determine what kind of virtualization technology it runs on, if any (VMWare, VirtualBox, KVM, OpenVZ, Xen, ). This isn't a hostile environment: I'm not trying to work against a VM that is trying to disguise itself, I'm diagnosing a flaky server that I know little about.  More precisely, I'm helping someone diagnose the issue, I'm not sitting at the helm. So I have to convey instructions like “copy-paste this command” and not “poke around /proc somewhere”. Ideally, it would be something like lshw: an easily-installable (if not preinstalled) command that does the poking around and prints out relevant information.  What's the easiest way of determining what virtualization technology this system may be a guest of? I'd appreciate if proposals mentioned which technologies (including bare hardware) can be conclusively detected and which can be conclusively eliminated. I'm mostly interested in Linux, but if it also works for other unices that's nice.


I am using VideoLAN on Windows to play a list of videos (Ctrl + L) in the background - I am only interested in listening the sounds of those videos. But VideoLAN will switch to the VideoLAN window everytime it plays a new video in the playlist. And that is really annoying because I need it to play videos in background so I can keep doing what I am working at (editing text files, writing a blog etc). Is it possible to stop VideoLAN to switch to the VideoLAN window?

I'm using VLC media player which can play almost all kinds of audio and video formats. While listening to audio, I keep VLC in minimized mode and can work on other windows. But when I select to listen video songs mixing with audio songs, VLC is maximizing itself to play every video song in the playing list, which is really annoying in the middle of work.  So how can I keep always VLC player in minimized mode while playing a list of songs mixed with audio and video songs?


I have a hashtable declared as :  Hashtable<Integer, ArrayList<String>> writeData = new Hashtable<>();   I want to access the contents of writeData so as to print them one by one. I don't know what the keys are. So printing them using the keys is not a good idea. Is there a better way to implement Hashtables?

If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it,  what is the most efficient way of going through the map?  Will the ordering of elements depend on the specific map implementation that I have for the interface?


Question 7 in Munkres's Topology Reads:  "Let $\mathbb{R}^\infty$ be a subset of $\mathbb{R}^\omega$ consisting of all sequences that are 'eventually zero...'"  I am trying to understand what's the difference between $\mathbb{R}^\infty$  and $\mathbb{R}^\omega$. What does the superscript $\omega$ suggest about the space $\mathbb{R}^\omega$ ?   I believe $\mathbb{R}^\infty$ refers to the product topology (or Box Topology) of $\mathbb{R}$, while $\mathbb{R}^\omega$ $\textit{is}$ $\mathbb{R}^\infty$, but also holds the property that any sequence is eventually zero...   Is this correct? I have not seen the formal definition of either of these and in this case, I believe the definition directly leads me to answer the problem: " What is the closure of $\mathbb{R}^\infty$ in $\mathbb{R}^\omega$ in the box and product topologies?"

I know $R^\omega$ is the set of functions from $\omega$ to $R$. I would think $R^\infty$ as the limit of $R^n$, but isn't that $R^\omega$? The seem to be used differently, but I can't tell exactly how.


How to clean-up or remove the orphaned workflows in a  site collection?   I have created a SPD 2010 reusable workflow and deployed in SP 2013 environment. But for some of the sub sites and some document libraries I am unable to trigger this workflow.   So I want to delete the existing workflow instance which is associated with the content types from this site collection.  Is there any PowerShell script to do this job?

I am having a SPD 2010 workflow created and deployed in my site collection and  published globally as a reusable workflow. I have configured the workflow in my document library by associating it with my custom content types.  How will I ensure that the workflow has been triggered successfully using PowerShell?   I have 158 sub sites in my site collection and having 10 document libraries so I can not verify whether the workflow instance been triggered successfully or not in all the document libraries and all sub sites. So I have to write a PowerShell to get the column name of workflow  instance.   How to get the workflow instance column name from the  document library.


I am getting to different results when searching using the  & Ask question suggestions ("Questions that may already have your answer")  Because each search is provided to help finding the proper required content/question asked.  Then why a difference is maintained?

This is a search result for         I realize (from seeing the above search results) that my question hasn't been asked before. But as soon as I start typing, all the relevant results appear in the Questions that may already have your answer (which should've appeared on my first search!!)        Just for fun,         I no longer bother with searching first and just start typing my question instead.   Why does the [Questions that may already...] functionality work better than the search bar?


We are in an impartial hearing to get special education for our son.  The school social worker testified a tremendous load of lies, distortions and nonsense.  She (having set herself up as an armchair expert on everything in the DSM-5) didn't see any outward signs of OCD or anxiety in the child => therefore the highly qualified experts' diagnoses (made after careful work-ups) must be total B.S., and the child's parents must be delusional.  I need to describe her (or her statements or her attitude) in my written closing argument.  Know-it-all feels too informal for this kind of document.  Unhumble isn't a word.  Dismissive only covers part of it.  I want to get at the arrogance of the ignorant.  Well, not exactly ignorant.  It's a person who thinks that from a two-week unit in one college course she has now mastered everything there is to know about a complex psychiatric condition.  Her knowledge is at the level of a dabbler, but being an anti-snob, she thinks that her down-to-earth intuition and street smarts make her better qualified than the highly trained specialists.  (Whom she laughs at.)  It's okay to pull in a character from popular culture who fits this description, perhaps with some sarcasm.  Sometimes such an approach is very effective.  See .  If you come up with something really good that is a different part of speech, e.g. a verb, that's okay, I'll try to work with it.  I was asked to give an example sentence.  I'll try, but really, I would rather put together a sentence around a particularly effective word or phrase that really gets the idea across.  In her conceited ignorance, Ms. X dismisses the child's OCD, on the assumption that if the symptoms are not trotted out in her office, the condition must be a figment of his parents' imagination.  (In a separate sentence I'll give a statistic about how long, on average, it takes OCD to get diagnosed, because it can be so well hidden.)  Note 1: the answers suggested to the OP who was looking for  did not have the formal tone I need.  Note 2: Quack, etc., don't work here. If I take my son to see a doctor or therapist, and I think the person is a quack, that's different from the current situation. I would be paying the quack. Here, the social worker is a gatekeeper who is preventing the child from getting needed services and accommodations. She is the queen who gets to decide who gets what, and she can do so in a completely arbitrary way.  Note 3: Charlatan doesn't work because she isn't pretending to be an expert on OCD, etc. She just assumes she has enough knowledge of the subject to say "I did not see any evidence of OCD" => "therefore the parents are blowing a little bit of normal adolescent anxiety out of proportion". Pretentious is a little different from pretender. Pretender doesn't work, for the same reason as for charlatan.   She hasn't made unjustified or false claims or statements about her personal status, abilities, or intentions.  She just thinks she knows better than the experts (whom she thinks have been manipulated by the horrible, Machiavellian parents).  Note 5: Please don't get too sophisticated on me!  If I use a word the hearing officer doesn't know, I'll have to explain it, and then I'm back at square one!  Anyway, I'm glad the question got reopened, I'm seeing a number of promising ideas here.

Both my husband and my sister are know-it-alls who try to do everything without knowledge or ability to do so.  My husband wants to remove my dogs sutures to save money.  My sister's motivations are often the same--to save money.  What is this person called?


I need some advice on what I can do, and how much hope is left on this case-  A couple of months back, I finished my Media GCSE and got a C. It's alright, I guess, but I hoped for a little higher. It turns out I got 2 points off a B. What dragged me down was my Horror Movie Trailer Coursework- I had to make a horror movie trailer.  I decided to do mine a bit differently- I made a basic engine in Unity and built a 3D Horror world around it. It was made out of assets made by me, including textures, code and I worked solo on it completely. It turned out great, and it wasn't the trailer itself that my teacher had a problem with. It was the fact that he didn't believe it was mine, and I got under half marks because of this.  The trailer was owned completely by me- I owned the textures, code, I did the editing- everything. But because it was made in Unity and the graphics were pretty well, my teacher wasn't buying that it was mine. There was quite a time frame before me submitting my work and getting the results back. I didn't think this problem would arise, so I deleted my work, and the project is gone due to a change in laptop. Now, I have no evidence of it.  I believe that the coursework was marked unfairly, but with no evidence of the coursework, and as I've already received the C, I'm not sure what I can do about it, but I really badly want that B.  Can I not bring it up with the school? Could I write a complaint letter or something? I just don't know what I can do- I'm a bit lost. I hope you can help me, and sorry if this is the wrong place. I was just disappointed in getting a C when I should have a B.

This year I have decided to take a Computer Science course on FLVS, an online learning institution. Throughout the whole year, I worked well, and I had a lot of fun with the course. I was close to finishing the second semester of it, and I randomly lost access to the course. I was surprised to find out that they took a some of my assignments (about 6~7), and they flagged me for academic integrity, claiming that I used the answers from an online answer source. Another problem is that because it's so many assignments, they have kicked me out of the course, without me even communicating with them the issue. My teacher had no idea about this, and she can't do anything about it. She told me to talk to academic integrity themselves. I now have a 0 for the course, and I'm very angry, and I have no idea what to do. I can show them I didn't cheat by answering on the phone any questions they have, and I've already studied for the exam and I plan on taking it, and I'm very confident I can get a good grade. I've also used the knowledge I've learned from the course, and I've created iPhone applications as well as games and other software. I've left the academic integrity team a message stating that I need to speak with them ASAP, but how can I communicate to them that I didn't plagiarize the work?  UPDATE: I have done some research as to how I present my case, and I found a couple things regarding appeals. FLVS claims that its so called "academic integrity" team is fair and not biased and they utilize a lot of technology to ensure that their claims are as factual as possible, such as . I have found a Customer Support number that I can voice my concerns to, so I'm going to present my case to them. UPDATE #2: After speaking with customer support (see update above), the person on the other line wrote down my grievance in an email, and she sent it to the academic integrity people. I also received a copy of the email. She told me she's sorry for my problem and that I should expect a call in the next 48-72 business hours. Hopefully I will fix this. UPDATE #3: We had a long talk with the academic integrity team yesterday, and apparently (I had no knowledge of this) they claim I have copied work from my twin brother Varun from about 20 assignments. Going through these assignments, there seems to be evidence of similar code, but that's because certain instance variables and functions had to be created as per the assignment's instructions, but the overall design of the program is different. They also say that we had the same typesetting (meaning me and him had the same spacing and tabs and white space), although we're both very experienced programmers, and we follow the conventional format of tabbing and spacing. I'm most likely going to court :D. UPDATE #4: This is the best part. After talking we academic integrity before (see above update), we decided to check all of the assignments she flagged and come up with legitimate reasons as to why I didn't cheat on them. After coming up with a long list, we sent an email to the academic integrity people and told them that we came up with a lot of reasons as to why we didn't copy, so she said that she would call us in a couple of days. After 2 days, she sends another email stating that her reasons are legitimate, according to her "boss", and that she won't discuss the issue any further. I am now super angry about this, and I have legitimate reasons as to how I didn't cheat. She won't tell me anything, and my teachers haven't returned any of my calls. I really hate FLVS.


I think I've established a self-contained dwarf fortress, and want to see what it would become without my intervention.  The problem is,  automatically stop the game, and I have to unpause it later manually. How can I keep the game running until the doom of my fortress?

Is it possible to prevent DF from pausing every time something comes up (liking hitting gold or whatever). The reason is that I am doing extensive mining and I want to leave the process unattended till it is over.


One thing that bugs me when using the mobile site is you can't see the views of a question anywhere (even though you can rank questions by views on your profile!). Can this be added somewhere?

I'm using an iPhone, but I would imagine it's the same for other mobile devices as well.  If you browse to any stack exchange site, you get a very well made mobile site.  The only gripe that I have is that I can't find any way to view the number of visitors to my questions?  Am I missing something or could this possibly be integrated into the mobile renderer?


If I asked a question and it was flagged by others, will I receive a message?

Is it possible to see if my post was flagged. The only way as I see it, if you see your post has got deleted, them may be someone might have flagged it for moderation. But is there other way to see if your post was flagged for moderation.   I am wondering if someone's is repeatedly flagged for posts, maybe he can be assigned a badge(bad one :) )  But right now, I want to know if it is possible to see how many posts of mine were flagged.


I've looked around for an algorithm to solve this problem, but I can't seem to find anything.  In a game I am working on, data is held in a grid. Certain squares within that grid can be set as walls, so that the user can create buildings.  What I am wondering is how could I write an algorithm to determine which parts of the grid were indoors, that is to say, within a building, and which parts are outdoors. Thank you in advance for any advice.

Given a set of tiles on a grid, I want to determine:   If the tiles make an enclosed figure If the tiles make an enclosed figure when you count the sides of the board as an edge of the figure If either of the previous two statements are true, which additional tiles fall inside the enclosed figure the initial tiles form.   The player will begin by pressing down on one tile, then dragging their finger to other tiles to create a chain of same-colored tiles. I will check as I go to see if the next tile is valid. Ex. If the player begins on a red tile, their only next valid move is to an adjacent red tile (diagonals do count). When the user lifts their finger, I need to be able to check for the 3 items above.   So my initial thought was that, since I was checking for the validity of the chain each time I went, when the player lifted their finger I could check if the first and last tiles were adjacent. (I already know they're the same color.) If they were adjacent I had a hunch that I'd made an enclosed figure, and I was going to come here to try and see if I was missing something big, and to get some kind of logical/mathematical proof that my hunch was correct (or an example proving it incorrect.)  But that's when I thought of item number 2: I also have to account for chains which use an edge of the board as a side of the enclosed figure. In that case, the first and last items in the chain would not be adjacent, but I would still have an enclosed figure. So now I'm back to square one, a bit.   What can I do with this chain of grid coordinates to figure out if they make an enclosed figure or not? And once I do know I have an enclosed figure, what's the best way to get an additional list of all tiles that fall inside its bounds?      Above I've drawn pictures of what I expect the 4 possible results of this test can be.    The chain does not make an enclosed figure. The chain does make an enclosed figure. If you count the sides of the board as an edge (or more than one edge) of the figure, the chain does make an enclosed figure. The chain does make an enclosed figure, but there are extra data points (validly selected by the user as part of the chain) which are not a part of the figure that is created.    Case 4 is the trickiest, because you'd have to extract the "extra" chain links to find the enclosed figure and the pieces that fall inside it (but not around the "unenclosed" area).  So... Anyone have an idea of a good way to solve this, or just a starting point for me? I'm kind of going in circles at this point and could use another set of eyes.


I am having one query.That query is having an input,If the input found in Database then it will return sum value. If the input is not found in db then it will throw exception.  String Query="SELECT SUM(tot) FROM Test where Id=?";  double sum = getJdbcTemplate().queryForObject(         Query, new Object[] { Id }, Double.class);  return sum;   If the Id present In db then It will return sum value.Otherwise It will return NullPointerException.I want to Handle that exception.If I got NullPointer then I want to set Sum value as 0.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a classified LiDAR point cloud for an area of 250*250 square meter, with 1 meter resolution. It has a 5 lakhs points with an average point density of 9 (means around 9 points within a pixel).  Now, I created a Canopy Height Model (CHM) model from the LiDAR point cloud and want to identify individual trees and segmenting their crowns. How can I do that?

I am looking for a method to process a remote sensing image and extract the crown areas of the individual trees from the image.   I have both visual wavelength areal imagery, and lidar data from the area. The location in question is a desert area, so the tree cover isn't as dense as a forest area. The resolution of the aerial imagery is 0.5 feet by 0.5 feet. The lidar resolution is approximately 1 x 1 feet. Both the visual data and the lidar come from a Pima County, Arizona dataset. A sample of the type of aerial imagery I have is at the end of this post.   This question  seems to be the same issue, but there does not seem to be a good answer there.  I can obtain a reasonable classification of the vegetation types (and information about the overall percent cover) in the area by using the Iso Cluster classification in Arcmap, but this provides little information on individual trees. The closest I have to what I want is the results of passing the output of the isocluster classification through the Raster to Polygon feature in Arcmap. The problem is that this method merges near by trees into a single polygon.   Edit: I probably should have included some more detail about what I have. The raw datasets I have are:    Full las data, and a tiff raster generated from it. Visual imagery (like the sample image shown, but covering a much wider area)  Manual direct measurements of a subset of the trees in the area.    From these I have generated:    The ground/vegetation classifications. The DEM/DSM rasters.


Find the first digit (the left one) of the number $2016^{2016}$, not by actually compute it. I know the solution is 7, thanks to Wolfram Alpha's power, but I did not succeeded in finding it.   Question number two: how may i calculate log values used in solving this?

Can anyone help me find the first digit of $2015^{2015}$?  It is easy to find the last digit but I have no idea for the first digit.


Given a number $n \in \mathbb{N}$, large enough. Can we say something about a sequence $$\{\gcd(n - i, n + i)\}_{i = 1}^k,$$ where $k$ is integer greater than $0$ and less than $n$?  Sorry for too general question, I'm just looking for some theorems involving expressions like the one above, or reference where can I learn about it.  Thanks!

I want to show that for $\gcd(a,b) = 1$ $a,b \in Z$   $\gcd(a+b, a-b) = 1$ or $\gcd(a+b, a-b) = 2$ holds.      I think the first step should look something like this:      $d = \gcd(a+b, a-b) = \gcd(2a, a-b)$   From here I tried to proceed with two cases. 1: $a-b$ is even, which leads to $\gcd(a+b, a-b) = 2$ 2: $a-b$ is odd, which leads to $\gcd(a+b, a-b) = 1$  My main problem I think is, that I do not know how I should include $\gcd(a,b) = 1$ in the proof.  Any help is appreciated. Thx in advance. Cherio Woltan


The title should explain the problem.  \documentclass[justified, symmetric]{tufte-book} \geometry{paperwidth = 8in, paperheight = 10.5in, right = 2.2in, marginparwidth = 1.5in} \usepackage{ifthen, lipsum, showframe} \begin{document} %  ------------------------------ \textbf{\thepage} \marginnote{A margin note} \par \lipsum[1-5] \vspace{0.5cm}  \textbf{\thepage} \marginnote{\raggedleft A margin note} \par \lipsum[6-9] \vspace{0.6cm}  \textbf{\thepage} \marginnote{\ifthenelse{\isodd{\thepage}}{A margin note}{\raggedleft A margin note}} \par % <---- this note should be on the left side of the margin \lipsum[6-9] %  ------------------------------ \end{document}   The wrong page numbering also results in a wrong display of the margin note:    To be fair, a simple \clearpage before the third margin note solves the problem, but having to solve things manually is both impractical and annoying.

As I  and found out the command \thepage doesn't always output the correct page number.  The proposed alternative is to use \pageref{here}\label{here}. But this seems too unhandy, because I have to change the label every time I want to get the current page, which makes it impossible to just replace it by a simple new command.  P.S.: In the end I want to define this:  \newcommand{\see}[1]{\cref{#1}\ifthenelse{\equal{\pageref{#1}}{\thepage}}{}{ on \cpageref{#1}}}   where the part on \cpageref{#1} should only be output if it is not the current page.


im creating a list of links out of an AJAX call that will do a $.each and append elements to a div. In terms of design everything is fine but as you can see im creating a favorite script with that . When i click that  nothign happens, i tried to put a z-index:100 and still nothing it wont trigger the click(). I did it in HTML and it worked but when i switched it to the $.each it stopped working. $.ajax({             method: 'post',             url: myurl,             data: {obj},             dataType: 'json',             complete: function (data) {                 if (data.responseJSON != 'fail' && data.responseJSON) {                      $.each(data.responseJSON, function (index, value) {                         $('#'+id).append('' +                             '
\n' +                             '       '+value[4]+'\n' +                             '       \n' +                             '
'                         );                     });             }         });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


how can I deploy an mvc application, without publishing the aspx view files. Is there a way to publish the generated dll assemblies?   In the project file is an option "MvcBuildViews", which builds these dll files. But they are build in a temp directory and not used in the publishment process. Is there a way to include these files?   best regards

Based on this question  and using code found  I'm trying to load views that are embedded resources in a separate DLL project, and the original question's author says he has had success doing this - but I can't get it to work as it seems the MVC view engine is intercepting the request and still looking at the file system for the view. Exception:  Server Error in '/' Application. The view 'Index' or its master could not be found. The following locations were searched: ~/Views/admin/Index.aspx ~/Views/admin/Index.ascx ~/Views/Shared/Index.aspx ~/Views/Shared/Index.ascx ~/App/Views/admin/Index.aspx ~/App/Views/admin/Index.ascx ~/App/Views/Shared/Index.aspx ~/App/Views/Shared/Index.ascx    I am using a CustomViewEngine, like Rob Connery's /App structure one as follows:  public class CustomViewEngine : WebFormViewEngine     {          public CustomViewEngine()          {              MasterLocationFormats = new[] {                  "~/App/Views/{1}/{0}.master",                  "~/App/Views/Shared/{0}.master"                  };               ViewLocationFormats = new[] {                  "~/App/Views/{1}/{0}.aspx",                  "~/App/Views/{1}/{0}.ascx",                  "~/App/Views/Shared/{0}.aspx",                  "~/App/Views/Shared/{0}.ascx"                  };               PartialViewLocationFormats = ViewLocationFormats;          }     }   Here are my routes:      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");      routes.MapRoute("Home", "", new {controller = "Page", action = "Index", id = "Default"});     routes.MapRoute("Default", "Page/{id}", new { controller = "Page", action = "Index", id = "" });     routes.MapRoute("Plugins", "plugin/{controller}/{action}", new { controller = "", action = "Index", id = "" });     routes.MapRoute("Error", "{*url}", new { controller = "Error", action = "ResourceNotFound404" });   In my  I'm checking to see if the path starts ~/plugin/ and then using the dll filename convention plugin.{controller}.dll  Any suggestions?  UPDATE: By the time the routed request for say http://localhost/plugin/admin is getting to the VirtualFileProvider it doesn't have any View attached at the end. So in the VirtualFileProvider's Open method the virtual path of ~/plugin/admin is being passed in when it should be ~/plugin/admin/Index.aspx as defined in my route above. Have I messed up my routes or am I right to be expecting this to happen?


prove or disprove the following statement:  There are infinitely many integers $n$ such that  $φ(n)=n/3$. where $φ(n)$ is Euler Phi-Function.  Could you please help me with the prove of this , I try it many time but I do not how can I start to prove it or disprove?.

I need help finding all $n$ such that $\phi(n)=n/3$.    I understand how to do it for $n/2$ but not for $n/3$. Thank you.


I like using Stack Exchange websites. I often find myself clicking on hot network questions and that time is frequently not spend productively.  Is there a way when I use Firefox to hide that element from the page?

This may sound like a 'first world problem', but I am quite easily distracted by the 'Hot Network Questions' sidebar, as I find them quite amusing and some of them quite intellectual  But where the problem lies is that, even at work, if I google something up and find a solution on Stack Overflow, to some random problem I am working at, I (always) get distracted towards them (Hot Network Questions), and end up reading the whole Qs as well as As of that respective question, and this is adversely affecting my productivity.  Any suggestion would greatly help.


I want to migrate from windows to Ubuntu, so I decided that I want to install Ubuntu 16.04.  I have a hard drive with 5400 rpm and 16 GB RAM, how big should swap partition be?  I don't know the purpose of swap partition, but I've heard that is a need for hibernate and other stuff.  Thanks in advance for answers!

I'm going to install 64 bit 14.04 on a new machine with something like 1 to maybe 128GB RAM and even more RAM later. How much space should I allocate to the swap partition?   And especially: WHY those recommendations for these numbers?    (None of the existing answers  and  explain any of the why and are a bit dated if we look at 1GB or RAM and up)


I have two decimal values which are 865 and 720. I subtract the two, divide by 10, then round the result. Why is this coming to 14 instead of 15 when the value needing to be rounded is 14.5?  Here's the code:  public decimal CalculateExpoDollars(decimal previousYearActual, decimal goal, decimal currentYearActual) {     if (currentYearActual < goal && currentYearActual >= previousYearActual)         return 0.00m;      return Math.Round((currentYearActual - previousYearActual) / 10); }

According to the documentation, the  method uses a round-to-even algorithm which is not common for most applications. So I always end up writing a custom function to do the more natural round-half-up algorithm:  public static decimal RoundHalfUp(this decimal d, int decimals) {     if (decimals < 0)     {         throw new ArgumentException("The decimals must be non-negative",              "decimals");     }      decimal multiplier = (decimal)Math.Pow(10, decimals);     decimal number = d * multiplier;      if (decimal.Truncate(number) < number)     {         number += 0.5m;     }     return decimal.Round(number) / multiplier; }   Does anybody know the reason behind this framework design decision?  Is there any built-in implementation of the round-half-up algorithm into the framework? Or maybe some unmanaged Windows API?  It could be misleading for beginners that simply write decimal.Round(2.5m, 0) expecting 3 as a result but getting 2 instead.


I have a div which I want to align at the bottom of the page. For that I have used the following --

   This code is aligning the div at the bottom but it is not wrapping the words inside the div.

Say I have the following CSS and HTML code:    #header {   height: 150px; }

Header title
   Header content (one or multiple lines)
     The header section is fixed height, but the header content may change.  I would like the content of the header to be vertically aligned to the bottom of the header section, so the last line of text "sticks" to the bottom of the header section.  So if there is only one line of text, it would be like:   ----------------------------- | Header title | | | | header content (resulting in one line) -----------------------------   And if there were three lines:   ----------------------------- | Header title | | header content (which is so | much stuff that it perfectly | spans over three lines) -----------------------------   How can this be done in CSS?


In an Article  I saw this C++ expression:  object.template fun<arg>()   can anyone explain it?  EDIT: Thanks Mark, I see now that is is indeed a duplicate. But as it is just a side note in a long more comprehensive answer I will just condense the specific answer here in an example.  #include <iostream> using namespace std;  template <typename T> struct A {         T y;         void write()         {                 y.T::template print<int>(); // GOOD:  I have seen often                  y.template print<int>();    // GOOD:  shortcut, I did not know                 y.print<int>();             // ERROR: I have seen this work on old compiler         } }; struct B {         template <typename T>         void print() {cout << "print b" << endl;} }; int main () {         A<B> a;         a.write(); }

In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template<typename U> struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion<U> dummy;      };     template< > struct inUnion<T> {     }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> {     // ...     template<typename U> struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template< > struct inUnion<T> {     }; };   The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?