body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
Is there any way to change the appearance of the Lock Screen on Ubuntu 13.10 (unity)? At current its simply a black screen with a tiny clock on the upper right corner. I would like to change this to another image or maybe even change the position and size of the clock if possible. Note: I would like to change the look of the screen when its in the "locked" state as I already have my login screen set how I want, but now I want to adjust the look and feel of the screens while they are locked (pre-password prompt). Im looking for a "locked" screen more akin to what is seen in Gnome3 and Mint with a large clock and other things displayed. Also, that answer only applies to GDM, not LightDM, which handles the lock screen now.
Is there any way to make the login screen from a locked session (either by using Ctrl+Alt+L or from a screen timeout) look like the login screen when you're starting a new session? I hate that everything on the lock screen aside from the password input is black.
For each natural number $n$, let $$ x_n \colon= \frac{1}{\sqrt{n}} \left( \frac{1}{\sqrt{1}} + \frac{1}{\sqrt{2}}+ \cdots + \frac{1}{\sqrt{n}} \right). $$ Then is the sequence $\left( x_n \right)_{n \in \mathbb{N} }$ convergent? And if so, then how to find the limit of this sequence? I'm just not sure how to proceed.
Evaluate the limit : $$\lim_{n \to \infty } {1 \over {\sqrt n }}\left( {1 + {1 \over {\sqrt 2 }} + {1 \over {\sqrt 3 }} + \cdots + {1 \over {\sqrt n }}} \right)$$ I can use the sandwich principle, certain convergence criteria, Cesaro mean theorem, limit arithmetic.. things around this area. Any help would be greatly appreciated, thanks! Sorry for not elaborating more at the beginning, rookie first-post mistake I suppose. :)
When 's ability is triggered due to combat it is placed on the stack. My assumption is that the stack does not resolve till the second main phase and only after all players have passed. Is this correct?
What happens if I dip below 1 life from an effect that will also heal me after the damage is dealt? For example: If I bolt myself while I'm at 3 or less with a on the board? Will I die while at 3 or less if I -2 , targeting myself? Will I die if a creature with my on it damages me? Will I die if I target myself with enough damage to 'kill' me with a ? and so on and so forth. You get the idea. I'm pretty sure there's a relatively simple answer that I just don't know about.
If a flight is delayed, and they announce in advance the delay, is the check-in time also delayed? Say, at 13h, the flight, that was scheduled for 16h, has an estimated departure for 16h30. If in-person at the airport check-in time was 15h20, is check-in time 15h50 now? Edit: Somehow this answers my question.
This is the scenario: I have tickets booked for a 13:40 scheduled flight with Emirates. I need to check bags in so plan to be at the airport at the advised 2 hours before flight departure (11:40) but I look ahead and see my plane is delayed and not scheduled for departure until 16:40. Can I arrive at the airport at 14:40 to check-in or should I knowingly arrive at the airport a full 5 hours before the revised departure time? Footnote: The reason of the delay is that the inbound flight which will become be my outbound flight after turnaround is delayed in arriving at my departure airport.
So the problem is as follows: Prove that if the sum of digits of a decimal $n$ is three's multiple, then n is three's multiple by direct proof. For example, $11234567$ is 3's multiple because $1+1+2+3+4+5+6+7=24$, and in fact, $11234567$ is $3744856 * 3$. Use $10^n \equiv 1 \pmod3$ if necessary. I am having a lot of problems with this question seeing as it is a rather difficult problem. Could someone please help me solve this? Thank you!
The divisibility rule for $3$ is well-known: if you add up the digits of $n$ and the sum is divisible by $3$, then $n$ is divisible by three. This is quite helpful for determining if really large numbers are multiples of three, because we can recursively apply this rule: $$1212582439 \rightarrow 37 \rightarrow 10\rightarrow 1 \implies 3\not\mid 1212582439$$ $$124524 \rightarrow 18 \rightarrow 9 \implies 3\mid 124524$$ This works for as many numbers as I've tried. However, I'm not sure how this may be proven. Thus, my question is: Given a positive integer $n$ and that $3\mid\text{(the sum of the digits of $n$)}$, how may we prove that $3\mid n$?
I am trying to add a group to the layer panel, then place a vector layer (vectorLayer) into this group from a python script. The code I am using is: groupName="test group" root = QgsProject.instance().layerTreeRoot() group = root.addGroup(groupName) group.insertChildNode(-1, QgsLayerTreeLayer(vectorLayer)) QgsMapLayerRegistry.instance().addMapLayer(vectorLayer,True) My issue is that this code always adds two copies of the vector layer. One of which will be in the group, the other is outside the group. However, when I change the code to the following with the intent of not adding a second layer, the layer inside the group becomes '(?)'. groupName="test group" root = QgsProject.instance().layerTreeRoot() group = root.addGroup(groupName) group.insertChildNode(-1, QgsLayerTreeLayer(vectorLayer)) # QgsMapLayerRegistry.instance().addMapLayer(vectorLayer,True) Does this mean the layer inside the group is just a pointer to the layer outside the group? How do I add a layer to a group without the duplicate layer?
I am trying to add new layers into a specific group which I can get to work if I know the index, but how can I get Python to find the index of a group so it can load the new layer into the group wherever it is in the TOC? qgis.utils.iface.legendInterface().moveLayer( layer, index )
Where can I find a map of Middle Earth during the Second Age circa SA 1600 (before the war of the Elves and Sauron)? The following site () says: The Second Age geography of Middle-earth prior to the Downfall of Numenor was different from the geography depicted by the Third Age map you see published in The Lord of the Rings. So far as I know, Tolkien never made an intermediate map, so we have no idea of what changes rendered by the War of Wrath were modified or wiped out by the Downfall of Numenor.
I am making my own Lotr themed Risk game and I am having trouble finding a very accurate map of Arda before beleriand was lost. This map should include Valinor and Numenor as well. The best I can find so far appears to be a map from David Day's "Tolkien Bestiary" I hope this is not a bad question, I am new.
I'm planning to buy a phone that support the ubuntu platform.Please help me to select one from the list. 1.Asus Zenfone 4 A450CG 2.Lenovo A526 3.Lenovo A390 4.Lenovo A680 which of these provides hassle-free ubuntu experience? please help me
With the announcement of the Ubuntu Phone OS I'd like to know what phone (and tablet) models are supported at this time. Note from foss & Oli: We are making this the master question for all future "Will this work on <insert random tablet/phone/device here>?!" questions
I'm trying to create an Aspect Map similar to this one: I have two files to work with from the start; the primary is a contour .dwg that I know is accurate while the secondary is a DEM that was created in Civil 3D using those contour lines (Civil made a huge file out of it so I'm not a big fan of using it if I can start from scratch using the contours in QGIS). In my first attempt I used the DEM and the Aspect tool within DEM (Terrain Models) to create a map. It worked, but for some reason it looks like it's converting the DEM back to contours and coloring the contours rather than the entire surface (as if it interprets the slope between the contours to be flat). This is a screen capture of what that's looking like: It works in the steep areas, but the flatter areas don't really cut it. This is a screen cap of the DEM I used to make this: I presume that the problem is that the DEM was generated as flat tiers between the topo lines. So it looks pretty good as a greyscale but when QGIS tries to interpret the slopes it's reading each grey as a flat plane instead of smoothing the colors across the surface. Does this make sense? If this is a problem, I guess the next question is: can I use contours to create a DEM that will work better for this application?
I have a shapefile with contours and their heights. Is it possible to make a DEM from contours in QGIS without using GRASS? I found but the answer is for ArcGIS Desktop.
I would like to know if "start" and "begin" are always interchangeable in sentences similar to the one below? I know that "begins" is more formal, but other than that is there examples where one of them would sound awkward to use? I know you can't list examples, but I just want to know if it's something I should be aware of when writing. Suddenly the tree starts/begins to move violently from side to side. Are "start" and "begin" both completely natural here?
Are 'begin' and 'start' interchangeable? Both "This is a new start" and "This is a new beginning" work, right? Then during games, they say "Let's start", but I never heard "Let's begin". So is there supposed to be a difference? And then one guy said this "They could not begin to start a conversation". What is this supposed to mean? Is it correct?
I have installed on my Mac OSX 10.9.5 the version QGIS 2.4. My problem is that I cannot export any OpenStreetMap with the Composer and I do not understand why. The thing is that I imported the OSM map with the OpenLayers plugin... everything normal, OK. Then I started to edit some vectors... and then I tried to export the map with the Composer... but it just does not work! I can load everything there, but when I press the export buttons, then the window becomes blank. And it creates a new .pdf for example but with 0 bytes... Does anyone have an idea about what I did wrong, or what is wrong? I may have missed some key details that I did not know that should be done...but still...Is there any chance to have the background of the OSM map exported somehow like .pdf? What I can do? Or better, another question, is it even possible to export the OSM imported with OpenLayers Plugin with the Composer?... or I should download the data on my computer first?
I'm having trouble with the OpenLayers Plugin of Qgis and the map composer: If I create an OSM-background layer and if I want to export this, the OSM-Layer looks perfectly all right in the normal qgis program window. But in the map composer and after export the layer has shifted relatively to my other shape layers (EPSG:32633 - WGS 84 / UTM zone 33N). The second thing is that the output resolution of the exported osm-layer is very, very poor. A really bad way of getting around this whole trouble would be to increase the screen resolution and make a screenshot of the map composition window of qgis. But I don't think this would be very professional. It also would cause a lot of pain :) I'm using Qgis 1.8.0-Lisboa under Linux. The openlayers plugin is version 0.92.
That's it. I don't really know what to do. I've tried to used analytic continuation with the function $g(z)=\frac{1}{1+z}$ but of course, such a function is not analytic in $\mathbb{C}$ so i can't use the theorem. And i can't find the contradiction
Does there exist a function $f$ which is holomorphic on $B_0(2)$ (open disc of radius 2 in the complex plane) such that $f(1/n)=1/(n+1) \forall n \in \mathbb{N}$? At the moment I'm thinking not but a proof is seeming elusive. Any hints would be appreciated.
Question is: If $a$ and $b$ are prime to each other and $n$ is prime then prove that $\frac{a^n+b^n}{a+b}$ and $a+b$ have no common factor unless $a+b$ is a multiple of $n$. This is what I thought so far: $a^n$ is also prime to $b^n$ because of the theorem (If $a$ is prime to $b$ then $a^n$ is also prime to $b^n$), Also $a^n$ and $b^n$ is a divisor of $(a+b)$ therefore by theorem (If $a$ is prime to $b$, and each of these numbers is a divisors of $N$, then $ab$ is a divisor of $N$) $a^nb^n$ is a divisor of $(a+b)$. Thereafter no idea, How should I proceed further if I'm thinking in a right way and If not, How should I prove this? Source: Higher Algebra by Barnard and Child
How to show that $$ \gcd\bigg( {a^n-b^n \over a-b} ,a-b\bigg )=\gcd(n d^{n-1},a-b ) $$ $a,b\in \mathbb Z$ where $d=\gcd(a,b)$? Note $\ $ Some of the answers below were merged from . The answers (and their comments) may depend on context provided in that question.
In Empire Strikes Back, Yoda says to the spirit of Obi-Wan: Obi-Wan: "that boy is our last hope" Yoda: "There is another" And in Return of the Jedi, they reveal that he was talking about Leia. That's all well and good in an in-universe sense. But from the production perspective, Leia being Luke's sister was only put in when Return of the Jedi was being written because.. So who was supposed to be the other hope? EDIT: Just to be clear, I had read the question before I posted mine. But while there the person is looking for an in-universe answer, I am asking more from the production and writing point of view.
In the original trilogy Yoda refers to another hope: Obi-Wan: "That boy is our last hope." Yoda: "No...there is another..." The assumption being after seeing Return of the Jedi (Episode VI) that the other was Leia. If, however, you consider the prequel trilogy canon, then this assumption depends greatly on your point of view*. Obi Wan knows about Leia (and for unknown reasons has discounted her as a hope), so Yoda must be referring to someone or something else. Is there any canonical source as to what Yoda meant, or was uncle George setting us up for Episode VII? *as a wise man once said you will find that many of the truths we cling to depend greatly on our own point of view. Just to add a bit of clarity: I was thinking about who Yoda was referring to when he was talking to Obi-Wan. When talking to Luke, it is obvious that Leia is the other (as he talks about a 'Skywalker'). It is not so obvious (after watching the prequel trilogy) that he means it when talking to Obi-Wan.
I want to know the meaning of output text files of surface volume dialog box. For example, the file contains headers and numbers as below: Dataset, Plane_Height, Reference, Z_Factor, Area_2D, Area_3D, Volume. raster_to_tin, 50,00, BELOW, 1,000000, 385387,1505728, 414338,45311207, 4544086,3828428 What is the difference between Area_2D, Area_3D, and Volume?
In dialog box of volume surface calculation and also in ASCII file there are 2 out come with names 2D Area and 3D Area. What is difference between these two numbers? What is included in 3D that is not in 2D? For example : Plane_Height, Reference, Z_Factor, Area_2D, Area_3D, Volume 45,00, ABOVE, 1,000000, 644929,78213426, 716708,47208592, 17433798,859008 Note: Decimal point is a comma.
Having looked at this question online, multiple sources overwhelmingly support the statement that 'Gravity results from the curvature of space-time due to mass-energy'. However, discussions on the H-Bar (See ) have led to me doubting this. So, is the above statement correct, or not? If not, then can it be corrected, or should it be completely disregarded? I cannot see how the curvature of space-time and gravity cannot be related, as gravity and curvature are both linked to the mass of an object. For example, a black hole results in massive curvature of space-time, and the gravitational forces are also massive.
They say that gravity is technically not a real force and that it's caused by objects traveling a straight path through curved space, and that space becomes curved by mass, giving the illusion of a force of gravity. That makes perfect sense for planetary orbits, but a lot less sense for the expression of gravity that we are the most familiar with in our day-to-day lives: "what goes up must come down." Imagine that I hold a ball in my hand, several feet off the ground, with my fingers curled around it, and my hand is above the ball. Then I open my fingers, releasing my grip on it, being very careful to not impart any momentum to the ball from my hand as I do so. An object at rest remains at rest unless acted upon by an outside force. If the ball is not moving (relative to my inertial reference frame), it has no path to travel that's any different from the Earth's path through space. It should remain at rest, hanging there in the air. And yet it falls, demonstrating that an outside force (gravity) did indeed act upon it. How does curved space explain this?
/* I have the following CSS. */ .top-header-one { background: url('https://i.postimg.cc/cCBxMXSw/Journey-touch-off.png') no-repeat; height: 26px; width: 96px; display: inline-block; } .top-header-one:hover { background: url('https://i.postimg.cc/cCBxMXSw/Journey-touch-off.png') no-repeat; } .top-header-two { background: url('https://i.postimg.cc/cCBxMXSw/Journey-touch-off.png') no-repeat; height: 26px; width: 96px; display: inline-block; } .top-header-two:hover { background: url('https://i.postimg.cc/cCBxMXSw/Journey-touch-off.png') no-repeat; } .top-header-three { background: url('https://i.postimg.cc/cCBxMXSw/Journey-touch-off.png') no-repeat; height: 26px; width: 96px; display: inline-block; } .top-header-three:hover { background: url('https://i.postimg.cc/cCBxMXSw/Journey-touch-off.png') no-repeat; } .top-custom-link ul li { display: inline-block; } .top-custom-link ul li:not(:first-child):before { content: "|"; } <!-- And the following HTML. --> <div class="top-custom-link"> <ul> <li> <a href="#"> <span class="top-header-one"> </span></a> </li> <li> <a href="#"> <span class="top-header-two"> </span></a> </li> <li> <a href="#"> <span class="top-header-three"> </span></a> </li> </ul> </div> I am not able to align pipes with background images. Here is the jsfiddle
I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers? <div id="header"> <img src=".." ></img> <h1>testing...</h1> <img src="..."></img> </div>
I am planning to go travelling extensively for the next few months. I am employed in a company that allows me to work remotely, I can do my job from any place that has an internet connection. The countries I'm thinking of travelling to are those for which I would not require a visa, so I don't think "tourist visa" or "business visa" issues apply to me. I have heard that there are countries which do not allow remote workers to work while they are in that country, but I'm having trouble finding out specifically which countries those are. Can anyone give me more information regarding this or point to a place where I could get more information? If it helps, the countries I'm thinking of going to are Israel, Brazil, and Colombia.
I found several questions about inbound travelers to the US in this scenario, but little about other countries: I work for a company in my home country (USA) who are open to me working remotely while traveling. Which countries allow me to legally work remotely for a company in my home country (USA) while traveling in their country? The work has absolutely no connection to the destination country, it would take place identically entirely within the USA if I weren't traveling.
friends. The question is: Find the value of $ \sum_{n=1}^{\infty} \frac{n^3}{3^n} $. I know this sum converges and that it's value is $ \frac{33}{8} $, however, I can't seem to find it. I've tried doing $3S-S$ to try and find a pattern, tried using different subtractions, all to no avail. Any help would be gladly accepted. Thanks in advance, Pedro
I was trying to solve $ \displaystyle \sum_{n = 1}^{\infty} \frac{n^3}{8^n}$ and I found a way to solve it and I want if there are generalizations for, say, $\displaystyle \sum_{n=1}^{\infty} \frac{n^k}{a^n}$ in terms of $k$ and $a$. I would also like to know if there is a better way to solve it. Here's how I did it: First I decomposed the series into the following sums: $S_1 = \frac{1}{8} + \frac{1}{64} + \dots = \frac{\frac{1}{8}}{\frac{7}{8}}$ $S_2 = \frac{7}{64} + \frac{7}{512} + \dots = \frac{\frac{7}{64}}{\frac{7}{8}}$ $S_3 = \frac{19}{512} + \frac{19}{4096} + \dots = \frac{\frac{19}{512}}{\frac{7}{8}}$ And deduced that the sum can be written as $\frac{8}{7} \displaystyle \sum_{n = 1}^{\infty} \frac{3n^2 - 3n + 1}{8^n}$ $\displaystyle \sum_{n = 1}^{\infty} \frac{1}{8^n}$ is easy to evaluate -- it's $\frac{1}{7} $by geometric series $\displaystyle \sum_{n = 1}^{\infty} \frac{n}{8^n}$ can be evaluated in a whole host of ways to get an answer of $\frac{8}{49}$. It remains to evaluate $\displaystyle \sum_{n = 1}^{\infty} \frac{n^2}{8^n}$, for which I took a similar approach as the cubics by decomposing it into many sums: $T_1 = \frac{1}{8} + \frac{1}{64} + \dots = \frac{\frac{1}{8}}{\frac{7}{8}}$ $T_2 = \frac{3}{64} + \frac{3}{512} + \dots = \frac{\frac{3}{64}}{\frac{7}{8}}$ And so forth, coming to the conclusion that it is equal to $\frac{8}{7} \displaystyle \sum_{n = 1}^{\infty} \frac{2n-1}{8^n}$ Now, I used this information and the above values for $\displaystyle \sum_{n = 1}^{\infty} \frac{1}{8^n}$ and $\displaystyle \sum_{n = 1}^{\infty} \frac{n}{8^n}$ to get the sum as $\frac{776}{2401}$, which is confirmed by WA. So, I would like to reiterate here: Is there a simpler way to compute this sum, and are there any known generalizations for this problem given an arbitrary $a$ in the denominator and arbitrary $k$ as the exponent in the numerator?
I used to use SAGA GIS and automated simple tasks by dragging and dropping (or clicking something and copy and paste - don't recall sorry) to create a simple script that I could then run. I've used this for example to mosaik a bunch of files and save as a new file. I can then just update the list of files I want to mosaik and run the script. I am working with a team who uses ArcGIS and was hoping that there was a simple way to automate simple tasks. I know that you can use Python with ArcGIS, and I'm looking for an easy way to help them get started along the Python path. I don't have access to ArcGIS itself yet, so can't just play and see. I've checked out quite a few sites on this, but they focus on more advanced tasks. I am somewhat guessing at the version being used - but it's a new system so I presume the most recent.
Where can I start to learn ArcPy?
First off, I understand that it is not ideal to parse html with regex. However, I'm close to the solution I need, and I just can't quite get it right. Say you have html input in a string and you do: content = content.replaceAll("<[^\\P{Graph}>]+>", ""); This will essentially remove html tags except those with non-printable characters, space, tab, newline, and control characters. This is fine, except that there is a problem with the space character. I need to replaceAll tags that look like: <ht ml> (space somewhere in the middle) but keep those that look like: < html> (because this one contains a space as the FIRST character). How can I adjust my regular expression for replaceAll() to accomplish this? Thanks for any input/suggestions.
Is there a good way to remove HTML from a Java string? A simple regex like replaceAll("\\<.*?>", "") will work, but things like & wont be converted correctly and non-HTML between the two angle brackets will be removed (i.e. the .*? in the regex will disappear).
I want my footer to be always on the bottom of the page, even when the content is very short. I have checked this one but does not work. My HTML: <body> <div id="container"> <div id="header"></div> <div id="content"></div> </div> <div id="wrap-footer"> <div id="footer"></div> </div> </body> My CSS: #footer { height: 320px; position: absolute; width: 100%; bottom: 0; } With this one, when I have a short content is ok, but when I have a long one the footer goes in the middle of the page and stuck there. Does anyone have an idea ? Thanks in advance
I have a simple 2-column layout with a footer that clears both the right and left div in my markup. My problem is that I can't get the footer to stay at the bottom of the page in all browsers. It works if the content pushes the footer down, but that's not always the case.
How to set static IP address for host in local network? I have a several PCs connected in network via wi-fi. Each of this PCs have local IP address (like 192.168.1.2). After rebooting IP address can be different 192.168.1.2 or 192.168.1.3 and etc.
I'm having a really hard time configuring ubuntu 13.04 to have a static ip address. I have tried multiple solutions but everytime I reboot (can't do the network reset command because ubuntu freezes) I end up with no connection. Here is what I get when i type ifconfig into the terminal: eth0 Link encap:Ethernet HWaddr 10:bf:48:bc:07:cb inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::12bf:48ff:febc:7cb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1763067 errors:0 dropped:0 overruns:0 frame:0 TX packets:1024326 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2284491220 (2.2 GB) TX bytes:136809317 (136.8 MB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:1840 errors:0 dropped:0 overruns:0 frame:0 TX packets:1840 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:185688 (185.6 KB) TX bytes:185688 (185.6 KB) I have also tried this: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.160 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 24.222.0.94 dns-nameservers 24.222.0.95 If anyone could help me it would be very much appreciated.
So say I have an ellipse defined like this: $$\frac{x^2}{9} + \frac{y^2}{4} = 1$$ I have to find the largest possible area of an inscribed rectangle. So the area ($A$) of a rectangle is $2x2y=4xy$. Also we can redefine $y$ in terms of $x$: $$\frac{y^2}{4} = 1 - \frac{x^2}{9}$$ $$y^2 = 4 - \frac{4x^2}{9}$$ $$y = \sqrt{4 - \frac{4x^2}{9}}$$ So the area function is now: $$A=4x \cdot \sqrt{4 - \frac{4x^2}{9}}$$ $$A' = \frac{4x}{2 \cdot \frac{-8x}{9}} + \sqrt{4 - \frac{4x^2}{9}} \cdot 4$$ Is this the right track? Was there something simpler I could have done? this looks gnarly? Can someone help me finish this up? So this track seems to difficult, another approach. Can I square the area first, find the derivative of that to solve for x? So the Area = $4x \cdot \sqrt{4 - \frac{4x^2}{9}}$ Is this valid? $$Area^2 = 16x^2 \cdot (4 - \frac{4x^2}{9}$$ $$= 64x^2 - \frac{64x^4}{9}$$ Derivative: $$ \frac{d}{dx} Area^2 = 128x - \frac{256x^3}{9}$$ $$128x(1-\frac{2x^2}{9}$$ So critical values: $x = 0, \frac{3}{\sqrt{2}}$ because the derivative equals 0 when: $$2x^2 = 9$$ $$x = \frac{3}{\sqrt{2}}$$ Plugging this value of x into y we get that $y = \sqrt{2}$ so the Area is 3. Is this valid? If so why? Does squaring not cause any problems?
The actual problem reads: Find the area of the largest rectangle that can be inscribed in the ellipse $$\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1.$$ I got as far as coming up with the equation for the area to be $A=4xy$ but then when trying to find the derivative I don't think I'm doing it right.
I'm using the polynomial division method and i got a remainder of 32 but how do I explain in words or mathematically how this justifies my solution. The previous question has answers based on Properties of Divisibility but I want to know how I can use long polynomial division in my method. Thanks
My attempt was suppose $\gcd (n+5, n^2+9) = d$ where $d$ is an integer, hence $d|n+5$ and $d|n^2+9$ but I don't know how could I rearrange this to make it $1$
Is there any method to close connection similar to mysql_close() for wpdb in WordPress? Is it not necessary to close connection for global wpdb?
Is there any method to close connection similar to for in WordPress? Is it not necessary to close connection for global $wpdb?
Me and my mother share one Apple ID. If someone sends an iMessages to my phone number, will my mother's iPhone also receive it?
I have 2 iphones one is with my mother and one is with me but apple id on both the phones is same which is creating problm for me as my imessages and facetime calls are going to her also so how can i make my stuff secure and stop my calls and message on going on her iphone????
Again we are back at ... Removing KB3115455 will resolve this issue. I thought SalesForce fixed this, but appears Microsoft fixed it as well and both solutions are causing the same issue as KB3115262. Can we get these ducks in a row with either one ...
Whenever one of my end users clicks "Export Details" or "Printable View" on a report and chooses .xls (default), the report will download. When she clicks on it to open, Excel opens but the area where the report should be is blank and gray. This happens will all Salesforce reports she exports. Exporting to .csv is working just fine. Also to note, she has Windows 7 Professional and Microsoft Excel 2010. I logged in as her from my laptop and was unable to replicate the issue as everything worked fine for me. We did a screensharing session and I logged in as myself on her computer, but we still encountered the issue. Any other .xls files are opening just fine for her in Excel. She mentioned she did a Windows update yesterday and that might have something to do with it. It's just curious that it's only happening with Salesforce reports. Has anybody else encountered this issue? Do you think this is more of a laptop problem or a Salesforce problem?
Let $K$ be a field, and let $\alpha$ be transcendental over $K$ and algebraic over $K(\beta)$. We have a Hasse diagram of field extensions Now, by reduction to absurdity $\beta$ must be transcendental over $K$ as well (this is asked but I'm not sure if it's relevant to the question). The problem is to prove that $\beta$ must be algebraic over $K(\alpha)$. The first thing I tried is to take whatever polynomial annihilates $\alpha$: $$a_0 + a_1\alpha\cdots + a_n\alpha^n = 0$$ with $a_0,\dots,a_n\in K(\beta)$. If $\beta$ were algebraic over $K$, then I could rewrite this as $$\sum\nolimits_1^m\lambda_{i,0}\beta^i + \left(\sum\nolimits_1^m\lambda_{i,1}\beta^i\right)\alpha + \cdots + \left(\sum\nolimits_1^m\lambda_{i,n}\beta^i\right)\alpha^n$$ And this would of course give a polynomial that annihilates $\beta$ with coefficients in $K(\alpha)$ (aside from the fact that $K(\alpha,\beta)/K(\alpha)$ would be algebraic by mulitplicity of degree). The thing is, when it comes to transcendental extensions, I'm just not sure that $$\left\{\beta^k\right\}_{k\in\Bbb N}$$ is still a $K$-basis for $K(\beta)$. If this were true then I suppose my question is how to prove this. If not, what other method might I try? I also wonder whether or not this is a special case of $$E,L\supset K \,\wedge\, F/E \text{ algebraic }\stackrel ?\implies F/L\text{ algebraic }$$ My guess is no, but I also can't think of an counterexample because I only know of simple transcendental extensions (where it would be true by what I originally wanted to prove).
Let $E$ be an extension of field $F$, and let $\alpha, \beta \in E$. Suppose $\alpha$ is transcendental over $F$ but algebraic over $F(\beta)$. Show that $\beta$ is algebraic over $F(\alpha)$. Okay, first questions: What does the notation $F(\alpha)$ and $F(\beta)$ mean? And being transcendental means it solves no equations with rational coefficients, but what does it mean for a field?
Blender is said to have perfect Python scripting capabilities. I just cannot find an environment, where I could try it all. Can you give an advise for the noob? I have a problem with defining an environment for python coding. Once I complained about inability to use keys to select the current command line the command line or even delete it, IRC advised that command line is bad, especially because I also should not define any functions in it. I should better use the Text Editor instead. However, I have discovered that I cannot run the Text Editor-defined scripts in the command line. Basically, I should forget about the command line and do everything in the Text Editor. Fortunately, it has the Run Script button. However, it is very boring to save every script before running. I better used external editor if I need to save the file before running it anyway. It also does not display me the errors. How can I program anything without seeing the errors. It says that my error msg was printed somewhere into unknown console. I came back to the command line but its view is too tiny. Can I make it in another window to switch easily between the 3D scene and the pycommand line? Probably, you have a better advise to make the operational python environment. I hoped that I can store the successul lines of code in external editor and fiddler them into the console. But the following lines for o in D.objects: o.select = True ; bpy.ops.object.delete() earth = bpy.ops.mesh.primitive_uv_sphere_add() succeed only if I paste them one-by-one and fail if I paste them two at once.
I'm trying to figure out a good workflow for developing scripts and add-ons in Blender. Here's what I'm currently doing as I try my luck with a PyNode add-on: Open blender Create a text editor panel Open my script (external text file) Edit my script in a nice external editor Reload the script Save the .blend file Run the script Now that I can see what my code does, this Blender instance has been modified, so I can't (make changes to my script and) run my script again. So I do this: Close blender Open blender with the .blend from step 6 and repeat steps 4-7, over and over and over.. Is there a better workflow for this sort of thing?
How can I substitute just the part of strings keys or values strings in regedit keeping the part of strings should not be replaced? ig. key "KeyX1_2020" into "KeyX1_2021" key "KeyY2_2020" into "KeyY2_2021" value "VX1_2020" into "VX1_2021" value "ValY1_2020" into "ValY1_2021" Like this code do for files for /f "tokens=* delims= " %i in ('dir /b "*"') do Set LIST=%i& set LIST | ren "%~fi" "%LIST:2020=2021%"
I use win_xp_sp3 inside my virtualbox i was mapped all the xp folder destination into my host machine in regedit. and now i need to change the my username and i don't remember all files i changed. is there any possibility on regedit find and replace?
I want to ask whether there is any method to suppress any interaction while installing apt-fast using apt-get. I add the ppa source and then use the next command to install apt-fast: sudo apt-get -y install apt-fast However, while installing, it always asks which one to wrap, apt-get or aptitude, and then the maximum number of connection. Since I want to put the installation command in my script, I want to suppress all interaction and just use the default option. As a result, I can run the script totally silence. Any idea?
Take the acroread or libpam-ldap packages as examples. Even when installed with apt-get --force-yes they still ask questions: acroread wants to know whether acrobat should be the standard PDF reader (how to assume yes?) libpam-ldap What's your LDAP-Servers URI, version, password, ...? (how to just assume anything, the ldap.conf will be overwritten by puppet anyway) Is there a "for god's sake assume anything and stop nagging"-switch for apt-get?
I have installed windows a 7 and Ubuntu 13.04 already, I was trying to install backtrack but at the start of the installation, I turned the computer off because it told me it was going to boot automatically or something like this, then when I tried to open my computer again, I got this error: unknown file system. grub rescue>
I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu. How can I get Ubuntu back?
How do I type the F3 thingy (and the bold version) like the one above? Is there any formatting used? [ADD] Using <kbd> tag only produces this effect: F3, but not the image above. Does it have variations on different sites?
Some answers contain characters that look like keyboard keys. They look like Ctrl + E What markup do I need to add to make Ctrl and E look like actual keys? That's not mentioned in the formatting help.
I'm fetching some data using JSON. According to data the HTML table is created. Each item has button. When I click on specific button I want to show alert window with button ID. This is how I'm fetching data and populating HTML table: function updateStations(){ $.ajax({ url: "scanstations.php", type: 'POST', cache: false, success: function (data){ var jsonData = JSON.parse(data); var tabledata; for (var i = 0; i < jsonData.stations.length; i++){ tabledata += '<tr styls="padding-top:4px"><td>' + jsonData.stations[i].ID + '</td><td>' + jsonData.stations[i].IP + '</td><td><button class="btn btn-primary margin-top-5px" '; tabledata += ' id="' + jsonData.stations[i].IP + '"> <span >ButtonTitle</span></button></td></tr>'; } console.log(jsonData); $('#listOfStations').html(tabledata); } }) } How to create event for buttons? I had tried on this way: $(document).ready(function () { $('.btn-primary').on('click', () =>{ alert($(this).attr("id")); }); }); But doesn't work.
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.
I am relatively new to Deep Learning and wanted to implement a Variational Autoencoder for images. For data preprocessing I only rescaled the pixel values from the range of [0..255] to [0...1]. The training looked good. The reconstructions of the VAE were pretty good and the loss-curves also looked good. Now I read that many people tell you to normalize the data, so that the image data for example have the mean = 0 and std = 1. Is this really necessary for training and crucially changes the results from training or is rescaling the images enough?
I'm learning Neural Networks and I grasped the algebra behind them. I'm now interested in understanding how normalization and centering of the input data affect them. In my personal learning project (Regression with NN) I've transformed my input variables to a range between 0 and 1 using the following function: normalize <- function(x) {return((x - min(x))/ (max(x) - min(x)))} The NN model fits well and has an acceptable out-of-sample prediction error. However, I read in other that scaling the inputs to have mean 0 and a variance of 1 is advised for NN. I don't fully understand: how this transformation works better for NN against the min-max normalization between 0 and 1. how can I assess which transformation to apply in my data?
This makes intuitive sense to me but I have never heard anyone confirm it. Is it one photon per wave length or does it approximate one wavelength or something else?
At the end of this nice video (), she says that is a chain reaction of electric and magnetic fields creating each other so the chain of wave moves forward. I wonder where the is in this explanation. What is the relation between electromagnetic wave and photon?
I'm looking to create a 180° spiral staircase with a step width of 1.28m; step height of either 16cm or 8cm, and step depth of 32cm (inner) and 64cm (outer). This model will be inside, thus the player shall never see its backfaces. How can I make this model with exact measurements? I ask because I hate curves. Any help would be much appreciated ♥
I would like to create a half-turn staircase without a landing. Is there an easy way to accomplish this without having to manually calculate and create each step individually? Here’s an image similar to what I would like to achive: I have found the Archimesh add-on including . While I can bend the created stairs, I haven’t found any way to get anywhere close to the image above. My stairs just always look out of shape and I don’t know how to get the outline of the staircase into a square. I should mention that I only have very little experience with Blender modeling, so it’s well possible that I’m just missing some curve modification basics. Perhaps Archimesh is also the wrong approach for this in the first place?
I know that this is a total novice question. When I push a book from point A to point B, a force is applied by me. The book has mass and some acceleration was also achieved in this example. I recently read about the fundamental forces of nature. They included Gravitation, Electromagnetism, Strong interaction, and weak interaction. I have no deep knowledge regarding any of the 4 forces. A simple explanation would be appreciated. My question is : In the act of pushing a book, which of the 4 fundamental forces of nature come in the picture? Which one force could I relate to this event?
If you've ever been annoyingly poked by a geek, you might be familiar with the semi-nerdy obnoxious response of "I'm not actually touching you! The electrons in the atoms of my skin are just getting really close to yours!" Expanding on this a little bit, it seems the obnoxious geek is right. After all, consider Zeno's paradox. Every time you try to touch two objects together, you have to get them halfway there, then quarter-way, etc. In other words, there's always a infinitesimal distance in between the two objects. Atoms don't "touch" each other; even the protons and neutrons in the nucleus of an atom aren't "touching" each other. So what does it mean for two objects to touch each other? Are atoms that join to form a molecule "touching"? I suppose the atoms are touching, because their is some overlap, but the subatomic particles are just whizzing around avoiding each other. If this is the case, should "touching" just be defined relative to some context? I.e, if I touch your hand, our hands are touching, but unless you pick up some of my DNA, the molecules in our hands aren't touching? And since the molecules aren't changing, the atoms aren't touching either? Is there really no such thing as "touching"?
double a = 1E100 printf("%f", a); It seems to be printing a different value other than 1 followed by a 100 zeros: 10000000000000000159028911097599180468360808563945281389781327557747838772170381060813469985856815104 What might be the problem here?
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
I have iOS game where I have a bouncing character. Everything is being handled by box2d. The problem is when the character hits a wall of another character it's velocity changes, but I don't want this. I need the velocity to stay constant even after collisions. I was thinking the only way to do this was to keep setting the velocity after each collision unless there's another way to do this that I'm not aware of?
I want to make my body fly at constant speed, how to make it fly at constant speed before and after collision? I set restitution of my body to 1.0 but after some direct and powerful collisions my objects begins to slow, I want it to fly same speed as before. I heard this can be done by setting liner damping of the object, I think it can prevent only from fast flying objects not slow. Thanks in advance. Edit* I can simply modify velocity of the object every frame, is it a solution? var velocity:b2Vec2=b.GetLinearVelocity(); var speed:Number=velocity.Length(); var ratio:Number=circleSpeed/speed; velocity.Multiply(ratio); b.SetLinearVelocity(velocity);
While holding a quarterstaff, can you cast an immediate action spell with somatic components (such as Saving Finale) while ending your turn holding the staff in two hands? I have a player that claims that you're able to, the logic being that you can switch from two-handed to holding it in one hand as a free action and you can take "one or more free actions while taking another action normally" according to D20pfsrd FAQ switching from a two-handed to a one-handed stance is a free action. The logic behind not being able to do it is that you're not able to begin casting the spell if you don't have a free hand.
D20PFSRD in Pathfinder take almost no time. But can they be performed outside of one's turn or in response to some trigger? Scenario 1: Can a Barbarian enter rage in response to taking damage outside of her turn? Likewise, can anyone drop prone in response to being attacked from a distance? Scenario 2: Can a Barbarian enter rage in response to taking damage during her turn (for example, as a result of an attack of opportunity)?
I want to know if it's possible to run software that has been downloaded from the internet. Ubuntu does not allow that but is it possible to set the executable permissions required for ? I recently downloaded software but it wont work due to this reason. Does anybody know of a way?
There is a script which just adds extra lines to my /etc/hosts file to enable local development. Since it's pretty useful, I decided to keep it in a gist. When one of my friends downloaded the shell-script, changed the necessary permissions and tried to run it, it failed. The error shown is: $ ./dev-mode : No such file or directory Even though the script runs perfectly file on my computer. The /etc/hosts file exists in both our computers, the permissions and the owners are the same. Every thing is absolutely similar. Then he made a new file, copied the contents of the script to the new file, and changed the necessary permissions, and it RAN! To my eyes, there is no conceivable difference between the two files, but a diff does that they are difference, but doesn't highlight any line or any character... Nothing. The permissions are same, etc. Does ubuntu treat downloaded files somehow differently, and stop it from running? Absolutely same files, one runs and the other doesn't
Whilst using the SE Android application last night I noticed I had an upvote on I wrote a while back. This answer features the ♦ character which is the same character used to distinguish moderators. Rather than treating this as a regular ♦ character, it gives it the same larger, orange style that the moderator diamonds have, both in text and within a code block: This affects the listing screen as well as question titles:
Related: I noticed that the mod diamond shows up red. I'm pretty sure it wasn't red not long ago. Has anything changed recently? I'm on: Android 6, Nexus 5 Stack Exchange v. 1.0.73 This is also true for the mobile view in Chrome (45.0.2454.94): But not in Firefox (where it matches the surrounding text, or is black):
I've got mobile "STAR H3000+" (a rip off iPhone5) with Android v4.0.4. I just wanted to ask if it is possible to install Android v4.2. or newer. Does anyone know how to do it?
This Community Wiki question is designed to be the "canonical question" for questions asking how to upgrade one's device to a new Android version. I want to get a newer version of the OS for my Android device. How can I do that? See also:
If $M$ is an endofunctor on a category $\cal K$ and $\eta:Id_{\cal K}\to M$ is a natural transorfmation, what is the difference between $\eta M$ and $M\eta$, and how these two (componentwise) are defined on an object $A$ in $\cal K$ ?
So I'm doing a project in Category Theory. I fully understand natural transformations and functors, but what does it mean to compose them, for example in the monad axioms where you have something like $GF\eta \circ G\epsilon F = 1$ etc. What exactly is $F\eta$? Thanks
I have already read about the different countries on the European continent and different terminologies involved. What would be the effects in these countries on visas after Brexit? Can we have only one common visa to visit all these countries? I will require the countries union names for each Union, visas issued before Brexit and after Brexit to travel to each country.
On 23rd of June, 2016, the UK . This leads to the following questions: Are UK citizens traveling to the EU affected? Are EU citizens traveling to the UK affected? Are UK/EU family members traveling both way affected? Are Commonwealth citizens traveling to the UK affected? Are other visa-free nationals (such as US/Canada citizens) affected? What other consequences might 'Brexit' have on travelers? Also, see the on Expats.SE.
Having a bit of an problem resetting my root password on a dedicated server with 1&1, running CentOS7. Able to access GRUB through terminal and can bring up the below, however this looks different to many examples out there. setparams 'CentOS Linux, with Linux 3.10.0-327.28.2.el7.x86_64' load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod diskfilter mdraid09 insmod ext2 set root='hd0,msdos1' linux16 /boot/vmlinuz-3.10.0-327.28.2.el7.x86_64 rd.driver.pre=raid1,ahci,dm_mod root=/dev/md1 domdadm dolvm rd.lvm.vg=vg00 rd.lvm.lv=vg00/usr ro console=ttyS0,57600 console=tty0 net.ifnames=0 biosdevname=0 initrd16 /boot/initramfs-3.10.0-327.28.2.el7.x86_64.img I have tried to change the ro line to rw and add init=/sysroot/bin/sh but this hasn't helped. When going through the loading process I get the error [FAILED] Failed to start Switch Root. See 'systemctl status initrd-switch-root.service' for details.
I forgot my root password...actually I think I know what it is because it is the same password I have for pretty much everything but in the Terminal in tell me "Sorry, try again." Is there a way to reset the password? If so how?
I understand how Galois fields of prime powers (e.g. $GF(2^8)$, $GF(17)$, $GF(257)$) behave. What I could never figure out is how they behave with sizes other than simple powers of primes. For example, $GF(15)$, $GF(100)$, or $GF(2^43^5)$. Is it even possible? Searching for this yielded no results.
Let $F$ be a finite field. How do I prove that the order of $F$ is always of order $p^n$ where $p$ is prime?
I think that xargs is intended exactly for this, but I tried using it and couldn't figure it out. I have a command foo -bar 123 --baz=whatever. I want a Bash one-liner to run three copies of it in parallel, except they will have a different argument for 123. Say the first copy will be 123, the second one is 234 and the third one is 345. I want the three commands to execute in parallel. How can I do this?
I have a bunch of PNG images on a directory. I have an application called pngout that I run to compress these images. This application is called by a script I did. The problem is that this script does one at a time, something like this: FILES=(./*.png) for f in "${FILES[@]}" do echo "Processing $f file..." # take action on each file. $f store current file name ./pngout -s0 $f R${f/\.\//} done Processing just one file at a time, takes a lot of time. After running this app, I see that the CPU is just 10%. So I discovered that I can divide these files in 4 batches, put each batch in a directory and fire 4, from four terminal windows, four processes, so I have four instances of my script, at the same time, processing those images and the job takes 1/4 of the time. The second problem is that I lost time dividing the images and batches and copying the script to four directories, open 4 terminal windows, bla bla... How do that with one script, without having to divide anything? I mean two things: first how do I from a bash script, fire a process to the background ? (just add & to the end?) Second: how do I stop sending tasks to the background after sending the fourth tasks and put the script to wait until the tasks end? I mean, just sending a new task to the background as one tasks end, keeping always 4 tasks in parallel? if I do not do that the loop will fire zillions of tasks to the background and the CPU will clog.
dpkg: error processing linux-generic, un met dependency error when sudo apt-get install -f Setting up linux-image-generic (3.2.0.60.71) ... dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 3.2.0.58.69); however: Version of linux-image-generic on system is 3.2.0.60.71. linux-generic depends on linux-headers-generic (= 3.2.0.58.69); however: Version of linux-headers-generic on system is 3.2.0.60.71. dpkg: error processing linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing: linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1)
Today I went over to my grandma because she had some problems with her computer, running Xubuntu 12.04LTS. After fixing 'the problem' (Firefox was set fullscreen..) I ran the usual apt-get update && apt-get dist-upgrade to immediately update everything. Instead I was greeted by an error that some packages where not correctly installed. So I ran dpkg --configure -a. My guess is that, because Firefox was fullscreen, she couldn't figure out how to turn of her computer and had simply turned it of, probably at the exact moment when it was installing automatic security updates. Running dpkg --configure -a however only left me with an error message about unmet dependencies for linux-generic. When running apt-get dist-upgrade again, it told me the same and I should try the -f option. However, even while trying to force the upgrade it still wont install them. This is the output from the commands (added LANG=C because default language is Dutch). jeroen@Bomma:/home/bomma$ LANG=C sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-generic : Depends: linux-image-generic (= 3.2.0.37.45) but 3.2.0.38.46 is installed Depends: linux-headers-generic (= 3.2.0.37.45) but 3.2.0.38.46 is installed E: Unmet dependencies. Try using -f. Running it with -f: jeroen@Bomma:/home/bomma$ LANG=C sudo apt-get -f dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done Calculating upgrade... Done The following packages will be upgraded: linux-generic 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/1.722 B of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 3.2.0.37.45); however: Version of linux-image-generic on system is 3.2.0.38.46. linux-generic depends on linux-headers-generic (= 3.2.0.37.45); however: Version of linux-headers-generic on system is 3.2.0.38.46. dpkg: error processing linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing: linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1) I'm out of ideas on how to solve this (other than quickly reinstalling her pretty default xubuntu)? Trying to remove and reinstall the linux-generic package seems rather risky, but maybe that would solve it?
I am having a paragraph with a media entity ref field "field_paragraph_image_ref". I would need to modiy the media twig template depending on a field value of the parent, which is a paragraph entity. How can i get the field value from the parent entity in the media preprocess function hook_preprocess_media__picture__image_without_link(array &$variables) { $media = $variables['elements']['#media']; //A method to get the parent entity, that i cannot find in var_dump(get_class_methods($media)); // and finally get a field value from the parent paragraph entity }
I'm using responsive images (single img tag with srcset and sizes attributes). My content editors can manipulate the displayed size of the image with a custom field on a shared parent entity. Therefore I can't meaningfully use the sizes field from the responsive image module, because my editors can set the image size from 10% of a fixed container up to 100vw on per paragraph level. I know how to preprocess the sizes attributes, but I don't know how to get to my shared parent entity, which holds the field determining the size of the image's parent container: function template_preprocess_responsive_image(&$variables) { // pseudocode: don't know how to this $imageField = $variables['whatever']; $parentParagraph = $imageField->getParentMediaEntity()->getParentParagraphEntity(); } My question is how do I get the parent paragraph entity as written above in pseudocode?
My question is about difference between "backup & restore" and "detach & attach" in SQL Server. What is the meaningful difference between these two methods?
I have one database which contains the most recent data, and I want to replicate the database content into some other servers. Due to non-technical reasons, I can not directly use replicate function or sync function to sync to other SQL Server instances. Now, I have two solutions, and I want to learn the pros and cons for each solution. Thanks! Solution 1: detach the source database which contains the most recent data, then copy to the destination servers which need the most recent data, and attach database at the destination servers; Solution 2: make a full backup of source server for the whole database, then copy data to destination servers and take a full recovery at the destination server side. thanks in advance, George
I have come upon the situation where I see a question that really interests me. I have nothing to add to this question at the moment, not a comment not answer but I'm particularly interested in what people have to say about this. This leads me to think that in this situation, the favorite isn't enough. My argument: One of the main ideas of this site is that the questions you post may help others too, so that "allows me" to be as interested as the OP in the answers and comments to that question. (Even though it's not mine). This is why I think that the favorite doesn't "notify enough", in the case where you want to be a very active participant/viewer of the question, even though you didn't ask it yourself. Just to clarify, you should receive the same notifications as if you had asked the question. The counter-argument: I realize that this is particular situation, it is not every question that you would need to do this in every question. It would probably need another button in the SE interface, and that is a BIG change. It may mean too much information if over used. Conclusion: Despite this I think it would make a pretty good and useful feature that would benefit the site because of a greater user involvement in a question. Thanks in advance. EDIT: As ChrisF points out in his comment there is also the RSS feed, I'm not a big fan and I like to keep my inbox very clean, but it true that it is quite similar to what I have "requested". The difference is that this feature keeps everything on-site. Somehow related:
What does bookmarking a question mean? How do you bookmark a question? Do users get updates on their bookmarked questions? Are my bookmarks publicly visible? How do you see your own bookmarks? How do you see other users' bookmarks? How do you see which users have bookmarked a particular question? What impact does the bookmark system have on the voting system? Can I "un-bookmark" a question? Can I search within my bookmarks?
I want a concise expression to tell me if a given value is an integer or float. When provided the input value NaN or Infinity, I want the output value to be false, so this rules out simply checking whether typeof(val) == 'number' Desired input / output: 1 => true -42 => true 3.14 => true NaN => false Infinity => false null => false undefined => false isFinite() is almost perfect, but there's one gotcha: isFinite(null) returns true, when I actually want it to return false. Short of always checking if ((val != nul) && isFinite(val)), is there another more concise technique?
What's the cleanest, most effective way to validate decimal numbers in JavaScript? Bonus points for: Clarity. Solution should be clean and simple. Cross-platform. Test cases: 01. IsNumeric('-1') => true 02. IsNumeric('-1.5') => true 03. IsNumeric('0') => true 04. IsNumeric('0.42') => true 05. IsNumeric('.42') => true 06. IsNumeric('99,999') => false 07. IsNumeric('0x89f') => false 08. IsNumeric('#abcdef') => false 09. IsNumeric('1.2.3') => false 10. IsNumeric('') => false 11. IsNumeric('blah') => false
Let $$I_n=\int_0^1 \frac{x^n}{\sqrt{1+x^2}} dx$$ for $n\in \mathbb{N}$ Find $$\lim_{n\to \infty} nI_n$$ My approach: Let me explain my observations briefly. Note that $I_{n-1}-I_n=\int_0^1 \frac{x^{n-1}(1-x)}{\sqrt{1+x^2}} dx \ge 0$ Hence $I_n$ is decreasing.Also $I_n\ge 0$.So, $I_n$ is convergent. Let $\lim_{n\to \infty} I_n =l$ Now $I_n+I_{n-2} =\frac{\sqrt{2}}{n-1} -\frac{2}{n-1} I_n$ (By parts +little bit calculation) Applying limit to the above equation we get, $l=0$. Also from the above equation we have, $(n-1)I_n+(n-1)I_{n-2}=\sqrt{2}-2I_n$. If $J_n := nI_n$, then $\frac{n-1}{n} J_n +\frac{n-1}{n-2} J_{n-2}=\sqrt{2}-2I_n$ Yes I am only now one step away from getting $\lim_{n\to \infty} J_n=\frac{1}{\sqrt{2}}$ But I am unable to prove that $J_n$ is convergent 🙁 Any idea??
Question: Define $I_n=\int_0^1\frac{x^n}{\sqrt{x^2+1}}dx$ for every $n\in\mathbb{N}$. Prove that $$\lim_{n\to\infty}nI_n=\frac{1}{\sqrt 2}$$. My approach: Given that $I_n=\int_0^1\frac{x^n}{\sqrt{x^2+1}}dx, \forall n\in\mathbb{N}.$ Let us make the substitution $x^n=t$, then $$nI_n=\int_0^1\frac{dt}{\sqrt{1+t^{-2/n}}}.$$ Now since $0\le t\le 1\implies \frac{1}{t}\ge 1\implies \left(\frac{1}{t}\right)^{2/n}\ge 1 \implies 1+\left(\frac{1}{t}\right)^{2/n}\ge 2\implies \sqrt{1+\left(\frac{1}{t}\right)^{2/n}}\ge \sqrt 2.$ This implies that $$\frac{1}{\sqrt{1+\left(\frac{1}{t}\right)^{2/n}}}\le\frac{1}{\sqrt 2}\\ \implies \int_0^1 \frac{dt}{\sqrt{1+\left(\frac{1}{t}\right)^{2/n}}}\le \int_0^1\frac{dt}{\sqrt 2}=\frac{1}{\sqrt 2}.$$ So, as you can see, I am trying to solve the question using Sandwich theorem. Can someone help me to proceed after this? Also, in $$\lim_{n\to\infty}nI_n=\lim_{n\to\infty}\int_0^1\frac{dt}{\sqrt{1+t^{-2/n}}},$$ the limit and integral interchangeable?
Which is correct and why? Thank you "Every male and female voter who holds the Tunisian nationality" "Every male and female voter who hold the Tunisian nationality"
‘Every’ is considered singular, or so I have been told. Every boy is happy. However, what is correct when ‘every’ is used in both components of a compound subject? Every boy and every girl is happy. Every boy and every girl are happy. People on my end give unconvincing arguments for both. I find neither particularly appealing. Still, one of them must be correct. Which one, and why?
If a black hole 12 inches in diameter were situated (say) 10 metres off the ground, what would happen? And how long would it take to devour the earth?
This question appeared quite a time ago and was inspired, of course, by all the fuss around "LHC will destroy the Earth". Consider a small black hole, that is somehow got inside the Earth. Under "small" I mean small enough to not to destroy Earth instantaneously, but large enough to not to evaporate due to the . I need this because I want the black hole to "consume" the Earth. I think reasonable values for the mass would be $10^{15} - 10^{20}$ kilograms. Also let us suppose that the black hole is at rest relative to the Earth. The question is: How can one estimate the speed at which the matter would be consumed by the black hole in this circumstances?
I don't know the reason for this output("False"). Please explain. sum=0 for i in range(10): sum+=0.1 print (sum==1.0)
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
I have the following list of dictionaries: d = [{'Sport': 'MLB', 'Position': 'SP', 'Age': '25'}, {'Sport': 'NBA', 'Position': 'PG', 'Age': '28'}] I have another list that i would like to append to the above by using a for loop: c = [{'2015 Salary' : '25'}, {'2015 Salary': '35'}, {'2016 Salary' : '30'}, {'2016 Salary' : '40'}] I would like the final output to be e = [{'Sport': 'MLB', 'Position': 'SP', 'Age': '25', '2015 Salary': '25', '2016 Salary': '30'}, {'Sport': 'NBA', 'Position': 'PG', 'Age': '28', '2015 Salary': '35', '2016 Salary': '40'}}] The positions would always be the same thats why i was going to use a for loop.
I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. taking the union). The update() method would be what I need, if it returned its result instead of modifying a dictionary in-place. >>> x = {'a': 1, 'b': 2} >>> y = {'b': 10, 'c': 11} >>> z = x.update(y) >>> print(z) None >>> x {'a': 1, 'b': 10, 'c': 11} How can I get that final merged dictionary in z, not x? (To be extra-clear, the last-one-wins conflict-handling of dict.update() is what I'm looking for as well.)
When I'm fitting a generalized linear model, I use the function like this: fit <- glm(formula=y ~ x, data=someFrame, family=gaussian(link="log")) But I don't know, what does the name of the family mean. It's described like this in the : Family objects provide a convenient way to specify the details of the models used by functions such as glm. See the documentation for glm for the details on how such model fitting takes place. But still, I don't know, what is it exactly. Is it an estimated distribution of observed data?
When modeling data sampled in the field, I often come across the problem of determining the Family of the dependent variable for GLM (or GLMM). An example: in an ecological study, I have ~ 60 patches. I have sampled territories of an animal species within these patches as well as a set of explanatory variables. The number of territories per patch (NTP) is the dependent variable in a GLM. NTP is integer with values between 0 and 14: How can I test for the family of NTP? Any help appreciated as this is an issue many ecologists come across each time they conduct statistical analysis.
So i have 2 Files in the same Folder. "example.csv" and "example.jpg" but when i run this code, I get the path for example.jpg but loading the example.csv throws a Nullpointer. System.out.println(this.getClass().getResource("/example.csv").getFile()); System.out.println(this.getClass().getResource("/example.jpg").getFile()); Thx for any help
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've tried joining, using the arrows and none of it's working. I only want the window in green open and the ones in yellow closed and I don't know what to do.
I would like to close some view windows that I opened accidentally. See the image below: Edit: another note: I tried searching for the solution, but only found things like "Join Area", which don't seem to work in this situation.
I am making a game for unity , modeling in Blender, I am using texture atlas. I would like to know if I should create many texture atlas, how to combine them in only one texture atlas, and weather or not this is necessary?
I am making a blender model of a Living room. Inside of this Living room, I have several objects that can be used not only in that Living room, but in other kind of rooms. For example, I have: LivingRoom.blend ==> Basic walls structure, floor, ceiling. Television.blend ==> A complex model of a TV. Statue.blend ==> In this blend file, I sculpted a Statue. Couch.blend ==> The design of a couch And so on... (Lamp.blend, Fan.blend, Painting.blend, Extinguisher.blend, ... you get the point!) The main file, as you guessed, is LivingRoom.blend, inside of which I will be appending all the others. As I said before, I did it this way because those other objects will be reused in other parts of the house (like in the Kitchen or in the Basement, for example). I need to Unwrap AND create a Diffuse Map + Normal Map + Specular Map for each object. But I am presented with an elementary question: should I UV Unwrap + Texture all files in separate Texture files? These objects are to be used in a Game Engine like Unity. So I have two options: Creating an Albedo.jpg, Normal.jpg and Specular.jpg for all objects. Downside of this method? I would end up with 3 maps for each objects, and the number of textures would increase quickly (in this case, I would have 3*8=24 texture JPG files). UV Unwrapping + Texturing all files ONCE they are inside of the same .blend file. Drawback of this method? I would end up with an extremely messy UV Map and giant Texture files. Furthermore, I think I would lose quality/control over each element separately later on (although with Texture Painting I think this last problem is under control). I want to clarify this question is a possible duplicate of of mine, where I didn't get any quality/useful answer. PLUS, this other question includes texturing also. Thank you!
The regulation can be found . I'm trying to cite it in IEEE style and include it in my .bib file but I can't seem to find the correct format for this. Is anyone aware how to cite it? Here is my citation template: \documentclass[journal,a4paper]{IEEEtran} \usepackage[strings]{underscore} \begin{document} \IEEEPARstart{Y}{our} document here and just to cite: \cite* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \bibliographystyle{IEEEtran} \bibliography{mybib} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document}
How do you suggest to cite the ? I have looked at , but I would like a more specific advice.
I need to edit my php.ini file so I can upload large sql files into MySQL, but I don't know how to do it. If I go to var/www/html and try and drag-and-drop phpinfo.php there it won't let me (not enough permissions). Can someone please tell me how to edit the permissions of the folder so I can add files to it? (terminal method is preferred, but UI is fine too).
I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.
I am 32 years old and single, looking for some advice on what I can do with about $10k for my first investment. I currently just have it sitting in the bank and would prefer to use some type of investment vehicle to grow my savings and begin planning for the future. I have no debt, this is more long term so access to the funds is not important as important as long term gains and I know very little about investments to be frank. I live in the USA. Any suggestions? Thanks in advance!
I am young, just started my career, and looking to begin investing so I can make my money work for me. I'm still living like I did in college (occasional purchase on myself, but most of it goes into savings) and I would like to take the extra money and invest it. What would you suggest are the best options for me to begin? I was considering getting a personal investor [a financial advisor] for perhaps a year or so, but I've heard that they really are not worth the money. I wanted to get the input of the great minds here.
I have a C# Service from Which I get the data from DataBase using Dapper Repository and I don'have SQL query to append it executes in a single statement For Example: public CreativeMediaTypeViewModel GetCreativeMediaType(string ContractNumber, int SellerID, int CreativeClassID) { StringBuilder strSQL = new StringBuilder(); strSQL.AppendFormat(@" SELECT DISTINCT PurchasedSiteTypeMediaType.MediaType_bmID, MediaTypeName,Acronym,@CreativeClassID AS CreativeClassID FROM PurchasedSiteTypeMediaType INNER JOIN MediaType_bm ON MediaType_bm.MediaType_bmID = PurchasedSiteTypeMediaType.MediaType_bmID WHERE ContractNumber = @ContractNumber AND PurchasedSiteTypeMediaType.SellerID = @SellerID AND MediaType_bm.TrackingMethod <> 'Supplies' "); var _parameters = new DynamicParameters(); _parameters.Add("@SellerID", SellerID); _parameters.Add("@ContractNumber", ContractNumber); _parameters.Add("@CreativeClassID", CreativeClassID); var result = _creativeDapperRepository.ExecuteQuery<CreativeMediaTypeViewModel>(strSQL.ToString(), _parameters).FirstOrDefault(); return result; } In this Method Which is better for better performance string or StringBuilder?
I understand the difference between String and StringBuilder (StringBuilder being mutable) but is there a large performance difference between the two? The program I’m working on has a lot of case driven string appends (500+). Is using StringBuilder a better choice?
An earlier, unanswered, question has had me scratching my head trying to remember the author and title of particular short story. In the background revealed in the story, there is a health scare amongst the parents of a school. Children have received genetic modification intended to be improving. The change has an unexpected defect, causing the eldest of the enhanced children have started to spontaneously fit and (it is implied) die. If I remember correctly, the epileptic fitting is referred to as 'blitzing', The story itself is presented as a a first-person address by a girl, one of the few without the modification, to her school appealing for calm and understanding. I must have read this in the early nineties, but the anthology it was in could have been published any time in the previous 15 years. I had thought it was by Asimov, but I've looked through all of the collected works and can't find it, so I suspect it was perhaps an anthology that he edited.
I'm trying to find out the title of a book or short story which I can very dimly remember, no idea on date of publication or even the main plotline! If anyone can identify it from what I can remember, it will be a miracle. One of the characters was an un-altered female(?) child(?) who was shunned because she was ugly, which basically meant that she hadn't been designed to be perfect like all the others. At some point, a whole batch of children who had been altered to have a particular trait suddenly started dying as the trait had a deadly side effect. I don't even think that this was the main plot, it may have been a side plot or part of the initial scene setting at the start.
I am trying to setup my htaccess file such that all 404 pages are permanently redirected to the home/index page using 301. After I configure the htaccess file I try to test that it is working correctly by typing in a bogus URL such as site.com/asdf to see if the 404 will redirect. It does not, it just displays the page not found message from WordPress and fails to redirect to the homepage. The code I am using (below) seemed to be working over on Stack Overflow (). I have even tried creating a PHP script to use with htaccess to redirect 404's, but still the same result, no redirection. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . / [L,R=301] # END WordPress
Hi i have recently moved my forum from Mybb to Vanilla, so the index pages such as showthread.php now do not exist. This is a big problem for SEO, what do I do to redirect this to the home page?
My attempt at specifying a homeomorphism is as follows. Let $(X,\tau), (X\times[0,1]/\sim, \tau')$ and $(X\times[0,1),\tau'')$ be topological spaces. Let p be the equivalence class of $X\times\{1\}$ in $X\times[0,1]/\sim$. Let $\pi$ be the quotient map from $X \times [0,1]$ to $(X\times[0,1]/\sim, \tau')$. Let $(\chi^+,\tau''^+)$ be the one-point compactification of $X\times[0,1)$, i.e. $\chi^+ := (X\times[0,1))\cup\{\infty\}$. Let $f: (X\times[0,1]/\sim, \tau') \to (\chi^+,\tau''^+)$ be defined as: $$ f(x) = \begin{cases} x, & \text{if $x \in X\times[0,1)$} \\ \infty, & \text{if $x =p$} \end{cases} $$ I claim that f is the homeomorphism that we are after. That f is bijective is easy to see. Now I want to show that f is continuous. Let $U \in \tau''^+$. We want to show that $f^{-1}(U)$ is open. If $\{\infty\} \notin U$, then $U$ is already in $\tau'$ and we are done. Otherwise, let $U = ((X\times[0,1)) \setminus C) \cup \{\infty\}$, where $C \subset X\times[0,1)$ is a closed, compact set. We have: $f^{-1}(U) = f^{-1}(((X\times[0,1))\setminus C) \cup \{p\} = ((X\times[0,1))\setminus C) \cup \{p\} $. And so $\pi^{-1}(f^{-1}(U)) = \pi^{-1}(((X\times[0,1))\setminus C) \cup \{p\}) = ((X\times[0,1))\setminus C) \cup X\times\{1\} = X\times[0,1]\setminus C$. Since C is closed, we have that $X\times[0,1]\setminus C$ is open in $X\times[0,1]$. So $((X\times[0,1))\setminus C) \cup \{p\}$ is open in the quotient topology of $(X\times [0,1])/\sim$, i.e. $f^{-1}(U)$ is open in $(X\times [0,1])/\sim$. This proves the continuity of f. Before proceeding with the continuity of $f^{-1}$, I'd like to ask for others' opinion on the part above. Also, just to be sure, in $X\times [0,1]$, are we considering $[0,1]$ as a subset of $\mathbb{R}$, i.e. does it has the subspace topology induced by the usual topology on $\mathbb{R}$? If not what is the topology on $[0,1]$?
Let $X$ be a compact Hausdorff space. Show that the cone in $X$ is homeomorphic to the compactification of $X \times [0,1)$. If $A$ is closed in $X$, show that $X/A$ is homeomorphic to the compactification of $X\setminus A$. I don't know even how to begin to solve this question, it's seems so hard, anyone could help me, please.
In the first episode of SG-1, the base is attacked by aliens. After they arrive, the gate closes. How were they able to dial out again? They apparently did not access the control room.
At the very beginning of SG1, the Goa'uld invade Earth, and then return somehow. How did they manage to return? There was no DHD, and somehow they didn't let it be known where they were going, IE, there was no log of the return. This seems a bit odd to me...
I have reinstalled Windows 10 Pro 64-Bit with a Windows 10 Pro 64-Bit CD. After the installation, I realized, that there has been Windows 10 Home edition installed. Since the installation never asked for a product key, I tried to enter it after the setup, updates and so on... An error message says, that the key is invalid. How did I installed a Home version with Pro CD? If I have the CD, can I upgrade my version to Pro?. (Reinstalling did not work either.)
My laptop (a Lenovo Flex 2 15) came preinstalled with Windows 8 Standard (with the serial key preinstalled into the BIOS), and I've since installed an SSD (a Samsung Evo 840 120GB) & upgraded to Windows 10. When the laptop still had its hard drive, I upgraded it to Professional so I could use the resources provided by the domain on my homeserver; because of this, I can only use the Professional editions of Windows (Home can't join domains). I bought Windows 10 Professional & completed a fresh-install (complete reinstallation) of Windows, only that it installed Windows 10 Home instead of Professional. I'm guessing this is due to the Windows 8 Standard Edition serial key preinstalled in the BIOS. I then downloaded an All-In-One ISO image of Windows 10 from MSDN (of which I have limited access to), transferred the installer onto a USB stick, & reinstalled (a clean install again). However it's still installing Windows 10 Home. If I try to install using the AIO image from within Windows, the installer does not present me with a list of options for the edition I want to install; instead, it assumes that I want to install Home Edition: I am able to get Windows 10 Professional to install if I disable UEFI & use Legacy instead, but I feel that this is stepping around the issue rather than resolving it. Is it possible to have the Windows 10 installer ignore any serial keys preinstalled in the BIOS/UEFI? If so, how? If not, is using Legacy mode really the only way around this?
Any of the partitions makes in Windows was not recognised by Ubuntu, or Zorin OS, or LinuxMint. It's like a blank hard disc, 250 gb free. I'm a new Linux user, but what confuses me is that I was able to install Ubuntu alongside Windows on my laptop with no problems, but on PC... no way!
Why don't I have this option? here's my disk layout sudo fdisk -l Disk /dev/sda: 640.1 GB, 640135028736 bytes 255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5b53cc54 Device Boot Start End Blocks Id System /dev/sda1 * 2048 409599 203776 7 HPFS/NTFS/exFAT /dev/sda2 409600 1153767021 576678711 7 HPFS/NTFS/exFAT /dev/sda3 1216962560 1250050047 16543744 7 HPFS/NTFS/exFAT /dev/sda4 1250050048 1250261679 105816 c W95 FAT32 (LBA) Disk /dev/sdb: 4005 MB, 4005527552 bytes 32 heads, 63 sectors/track, 3880 cylinders, total 7823296 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x20d8782d Device Boot Start End Blocks Id System /dev/sdb1 * 63 7822079 3911008+ c W95 FAT32 (LBA)
This all originated when I installed Nvidia drivers from terminal using the xorg edgers PPA. I have since uninstalled them, but that did not help much. I can't even open terminal unless it is with ctrl+alt+f7. I have tried forcing compizconfig to load from a similar question I found, but even after turning the unity plugin on nothing loaded. Any ideas?
When I login, nothing happens. I am presented with my desktop wallpaper. No Dash, no Launcher, nothing.
I used to believe that ISO adds noise as a drawback to increasing exposure, but after researching the topic I arrived at the conclusion that it is a misconception. By amplifying the existing signal from the electron well (please correct my terminology if it's wrong), any noise that might be apparent in the final photo will exist there no matter what ISO setting might be chosen. The reason the noise is apparent at high ISOs, is that underexposed areas, which have a lower signal-to-noise ratio, get amplified. Whether this effect is achieved through ISO or through post-processing software should be irrelevant, and the end result should be the same. Meanwhile, the benefit of raising the ISO in this situation should be the greater variance in half-tones. So I did some tests, and invariably there is actually more noise in same photos taken at 100 ISO and given +5 EV in post, vs same photo taken at 3200 ISO. Here is an example: According to my understanding, the noise levels should be virtually the same. What is causing noise at 100 ISO? My only guesses are: Higher read noise at lower brightness Something to do with logarithmic exposure and the way the image is stored The camera actually captures more photons when the ISO is amplified Any ideas? Thank you very much.
My understanding of the ISO setting on digital cameras is that, unlike film-cameras, changing the ISO does not evoke any physical change in the camera. Rather, it simply tells the camera to multiply the analog-voltages it reads from the sensors by a constant number, which increases the brightness of that pixel in the output JPEG image. And since the RAW files store the actual voltages read, before any changes to the brightness take place, the values in the RAW file will be the same regardless of the ISO setting. Thus, if you're snapping pictures in RAW format only, the ISO setting does absolutely nothing (Also it would mean digital cameras with higher ISOs are completely a marketing gimmick). However, contradicts that. It shows the following image: which claims that the ISO setting does affect the RAW output! † It also states "to minimise noise get as much light into the camera as possible then use the highest ISO you can without overexposing." If my understanding is correct, all images with the same shutter-speed will result in the same (RAW) image, regardless of ISO setting. However, if the explanation in the above post is correct, (RAW) images that were taken with an incorrectly-exposed ISO setting can't be corrected in software without introducing extra noise. (I found online in which several 'experts' argue back and forth about which understanding is correct, but never reach a conclusion) To figure out which understanding is correct, I tried shooting an image at various ISOs and shutter-speeds, in RAW+JPEG mode. I then loaded the RAW files into Photoshop and applied auto-correct within "Camera Raw" (before the JPEG conversion). These were the results (click to enlarge): (All shots taken with Sony a390 DSLR. Aperture f/5.6, 18-55mm zoom lens set to 55mm) And for comparison, here were the JPEGs created for those same shots by the camera (no Photoshop correction applied): It appears we're both wrong (What!?!??!!?). The ISO setting definitely did have a major difference in the final RAW image, but it seems that even when it causes under-exposure, using the lowest ISO setting still resulted in the least amount of noise!! I assume that, to understand why that is, I need to know exactly how the ISO setting works in DLSRs - could someone please explain that to me? Is the sensor somehow physically made more sensitive, or is it a simple digital (or possibly analog) amplification of the voltage signal? Or does it work differently in different cameras (mine is a rather low-tier DLSR)? If the sensor doesn't physically become more sensitive, why does the ISO setting affect the RAW image? Why did an underexposed ISO100 image result in less noise (after photoshop correction) than the same image with the same aperture/shutter at (a correctly-exposed) ISO3200? † (At least, I think that's what he's saying. The post is ambiguous as to whether the auto-correction was done to the RAW or the JPEG file. I'm just assuming it was done to the RAW, though, as doing it to the JPEG would just be stupid - he'd be amplifying the compression+quantization noise, not the camera noise, which would make the entire post incorrect)
I am very much confused with the usage of Have-Had-Has. I know "have" is used in Present perfect whereas "had" is used in past perfect. Then what about the usage of "have had" combination in a sentence? Where do I have to use them? How I know whether my usage is correct or not?
How does the usage of "have had" and "had" differ? Here is my example from my other question: People who have had their belongings taken will turn into miserable people. Here are the things I seem to have gotten from StoneyB's answers: Have had is used for one-time occurrences, but had can be used for such occurrences as well Have or simple present is used for something more habitual So does that mean have had and had are interchangeable? People who have had their belongings taken will turn into miserable people. [= "People who had their belongings taken will turn into miserable people."] Is this assumption correct, or do they imply different meanings? So a sentence like "people who smoke will get sick" means that a habitual smoker will get sick, but a sentence like "people who have smoked will get sick" means that if you have smoked even once in your life, you'll get sick. Is this exact?
I want to use $S = \sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k+1}$ and get the relation $(a^2+1) S'=1−aS$. So far I am just getting $\frac{dS}{da} = \sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k} (2k+1)$, which I am not seeing how to use with S to get that relation. What should I do to progress and get the desired relation?
I want to use $S = \sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k+1}$ and get the relation $(a^2+1) S'=1−aS$. So far I am just getting $\frac{dS}{da} = \sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k} (2k+1)$, which I am not seeing how to use with S to get that relation. What should I do to progress and get the desired relation?
I have two files: a.patterns contains patterns in a one per line way "`" "^" "<" "<(" "<)" "<[" "=" ">" "_;|^+*+?@" and b.data contains comma separated values. 1,1,0,"*",1 2,1,1,"*",1 3,0,0,"<)",0 The purpose is to substitute take each pattern matched in the csv file with that pattern's index (i.e., its line number). The problem is that I load each pattern into a variable, and use sed to evaluate/replace it but frequently the patterns contain special characters. ... while read line; do counter=`expr $counter + 1` temp=`echo "$temp" | sed "s/$line/$counter/"` done < a.patterns ... My question: is there a way to tell sed to count the contents of the variable as literals? Ideally I would like to avoid inserting escape character for all special characters in the pattern file or alternative ways to achieve the same? Thank you.
I have a script that reads a text stream and generates a file of sed commands that is later run with sed -f. The generated sed commands are like: s/cid:image002\.gif@01CC3D46\.926E77E0/https:\/\/mysite.com\/files\/1922/g s/cid:image003\.gif@01CC3D46\.926E77E0/https:\/\/mysite.com\/files\/1923/g s/cid:image004\.jpg@01CC3D46\.926E77E0/https:\/\/mysite.com\/files\/1924/g Assume the script which generates the sed commands is something like: while read cid fileid do cidpat="$(echo $cid | sed -e s/\\./\\\\./g)" echo 's/'"$cidpat"'/https:\/\/mysite.com\/files\/'"$fileid"'/g' >> sedscr done How can I improve the script to ensure all regex metacharacters in the cid string are escaped and interpolated properly?
I wanted to back up everything on my phone: call logs, messages, whatsapp texts, photos, videos, screenshots, screen video captures, recordings, app data... and everything else, before selling my phone. So, basically, data-wise, I wan't to create a clone of the (entire) current state of my phone. I don't necessarily wan't to restore all of it on my new phone, but I want to be able to access the stuff that I backed-up on my computer later, when needed...I saw a few answers on this site, but they don't answer my questions fully. Is the command line adb backup -apk -shared -all -f <filename> well-suited to my purpose? My phone has 32G capacity, but the backup file generated is only 5.3G. How do I know that the backup completed properly and contains all the data I wanted? Are there ways to do the backup over a network (WAN) using ADB, instead of having to depend on the USB debugging mode.
I know I'm asking for the close-to-impossible -- as a real full-backup certainly requires root permissions. But still there are many folks around not wanting to root their devices -- afraid of voiding their warranties or bricking their devices, or just not having their devices supported by any rooting method. I also know there were a lot of questions asked already on this topic, and I checked all of them having the backup tag -- none covers the entire topic, all just have pieces, and especially people new to Android (but other non-power-users as well) would have a hard time figuring out the best way. So I want a detailed canonical answer to the question: Not involving root-solutions, how to achieve a backup as close as possible to a full backup? Please do not give simple one-liner answers like "Use app xyz [full-stop]." If mentioning an app (and I doubt a single app would be the answer here), include what parts are covered by it -- as well as ideas on how to fill the gaps it leaves. (And to make it absolutely clear: I know the first thing coming to mind is Titanium Backup -- I use it myself, but this does not apply here: This question is strictly about methods for non-rooted devices!) Moreover, the answer should be as generic as possible in terms of applying to a wide range of devices (i.e. it should not be restricted to one device or manufacturer). I already mentioned having investigated all questions here tagged backup. These will certainly be helpful providing details for answers here, so I will list up the topmost ones concerning my question: All these provide some details for my question (so feel free to get inspired by them) -- but I feel there are still details missing. Also it would be helpful to have a summary -- say, an answer including the full description of "the maximum possible". A last criterium: While I'd consider cloud-based solutions legit, I'd favour local solutions. If you can provide both: all the better. But some people value privacy quite high (I'm one of them), and thus would not trust their data to some cloud service. Thanks to Ryan, we now have a solution for a really complete backup of all apps and their data -- which I didn't dare to hope for! The only disadvantage: His solution only works for less than 10% of all Android users; namely those whose devices are running at least with Android 4.x. So again, I ask the close-to-impossible: Any solutions applicable at least on Gingerbread (2.3.x) or, better, even Froyo (2.2.x) -- so they cover the majority of current devices? These solutions may involve multiple tools (try to keep it as simple as possible though; think of your mother to follow your instructions ;) And keep in mind: NO ROOT! To further motivate high-quality answers (and hopefully avoid low-quality ones), I will be a harsh one here: As I rarely do, I will down-vote answers not fitting the mentioned criteria on one end -- but on the other end, I will setup a bounty for the best answer (which cannot be done immediately, but earliest after 2 days).
Admittedly, there are some questions and answers as to why a function defined on a closed interval is not differentiable on the interval's endpoints. But I find no answer as to why, in spite of this, continuity can be defined on an interval's endpoints. For differentiability, the intuition is that the neighborhood of $x$ that allows $\lim_{x \rightarrow c}\frac{f(x) - f(c)}{x - c} = L\quad$ must (or is this our definition) be populated from both the left ($x < c\;$) and the right ($x > c\;$). Hence, differentiability isn't defined on endpoints of an interval. Why does such a requirement not exist for continuity? A function $f$ is continuous at $c$ if $$ \forall \epsilon, \exists \delta, |x - c| < \delta \rightarrow |f(x) - f(c)| < \epsilon$$ Continuity seems not to care whether points appear left or right of $c$ -- just that, if they exist in some chosen neighborhood, they satisfy the condition above. Here is an example of this "dichotomy"
In calculus of one variable I read: A function $f$ is differentiable on an open interval if it is differentiable at every number of the interval. I wonder why in the definition we suppose that the interval is open. This is the case in Rolle theorem, Mean value theorem,etc. Do we have a notion of a function being differentiable on a closed interval $[a,b]$?
MWE: \documentclass{article} \usepackage{hyperref} \begin{document} \newcommand*{\ordinal}{First} \section{\ordinal{} Section} \label{sec:first} \renewcommand*{\ordinal}{Second} \section{\ordinal{} Section} \label{sec:second} I want this to say ``First Section'': \nameref{sec:first} \end{document} I end up with \newlabel{sec:first}{{1}{1}{\ordinal {} Section}{section.1}{}} in the .aux file, whereas I wanted \ordinal{} to be expanded immediately when the \label command is executed. Is there any sane way to make hyperref expand the section title when writing out the \newlabel command?
What's the proper way to reference a section with a counter in the title? The TOC generates correctly, but the cross references aren't so lucky. MWE: \documentclass[letterpaper, 12pt, twoside]{exam} \usepackage{hyperref} \newcounter{KSRLessonNumberCounter} \setcounter{KSRLessonNumberCounter}{1} \newcommand{\KSRSection}[2][\value{KSRLessonNumberCounter}]{ \setcounter{KSRLessonNumberCounter}{#1} \section*{Lesson \arabic{KSRLessonNumberCounter}: #2} \addcontentsline{toc}{section}{Lesson \arabic{KSRLessonNumberCounter}: {#2}} \stepcounter{KSRLessonNumberCounter} } \newcommand{\KSRSubsection}[1]{ \subsection*{#1} \addcontentsline{toc}{subsection}{#1} } \newcommand{\KSRLessonNumber}{ } \begin{document} \KSRSection{Sample} This is the first lesson. The second lesson is \nameref{sec:blah}. \KSRSection{Blah} \label{sec:blah} This is the second section \KSRSection{Lorem Ipsum} Dollars are Set in \nameref{sec:blah}. \end{document}
I have tried and looked for the answer to calculate the number of days from a date to today's date and getting an error. Calculated columns cannot contain volatile functions like Today and Me. Any help would be great.
I want to use a combination of Today and Me in SharePoint 2013. I am trying it in Office 365 it gives me the below error Calculated columns cannot contain volatile functions like Today and Me. Can anyone let me know what am I doing wrong? Formula I am using: =Me&" - "&TEXT(Today,"dd-mm-yyyy")
Basically, my question is, can you change the wifi IP on different sessions. Like you have a different wifi IP on YouTube and Facebook.
I want to change my IP so that if anyone tries to track my location they can't find me. Is there a way to do this? I know it is possible by changing IP address, but I don't have any idea how to do this. I am trying to download some torrents which are not available in my country.
I am new to Blender and i have a very frustrating issue. I find it difficult to get used to all the shortcuts so i may have pressed something i didn't mean to : XYZ axis should be in the center of the object / face / vert (like in the first picture), not in the center of the 3D cursor (like mine is in the 2nd picture). How can i achieve that ? And how can I return it back ?
I think I accidentally pressed something to make it like this: See how the XYZ arrows are at the 3D cursor instead of those vertexes I've selected? How do I fix that? Whenever I select on a vertex or something, those blue, red, green arrows would always be where I selected, now it just keeps going to the 3D cursor.
I need to show that a) every Möbius transformation that maps the disk onto itself can be written as $g(z)=e^{i\theta}\frac{z-z_0}{\bar{z_0}z-1}$, and b) that this function maps the unit disk onto the unit disk. I'm currently trying to make sense of the last part. Taking modules I get the following result: $|z|^2+|z_0|^2<1+|z||z_0|$, and I have been stuck there since. How can I prove this inequality given that $|z|,|z_0|<1$?
This is the question I'm stumbling with: When $|\alpha| < 1$ and $|\beta| < 1$, show that: $$\left|\cfrac{\alpha - \beta}{1-\bar{\alpha}\beta}\right| < 1$$ The chapter that contains this question contains (among others) the triangle inequalities: $$\left||z_1| - |z_2|\right| \le |z_1 + z_2| \le |z_1| + |z_2| $$ I've tried to use the triangle inequalities to increase the dividend and/or decrease the divisor: $$\left|\cfrac{\alpha - \beta}{1-\bar{\alpha}\beta}\right| < \cfrac{|\alpha| +|\beta|}{\left|1-|\bar{\alpha}\beta|\right|}$$ But it's not clear if or why that would be smaller than one. I've also tried to multiply the equation by the conjugated divisor $\cfrac{1-\alpha\bar{\beta}}{1-\alpha\bar{\beta}}$, which gives a real divisor, but the equation does not appear solvable. Any hint would be much appreciated.
I've written a shell script that does the following: Retrieve mail from a POP3 account (using GetMail) Save a copy of that email to S3 (using AWS CLI) Email me the filesize of the email The script runs fine manually, and technically runs from CRON, but it only seems to be sending the email. The getmail and S3 bits don't seem to run. Everything I've read seems to hammer home the message that I need to be careful about relative paths and the like when using CRON, but I think I'm using absolute paths everywhere I need to be, so I'm stumped as to what the issue could be. My Shell Script is here: #!/bin/bash # Run GetMail getmail -r /PATH/TO/EMAIL/getmail.email # Save to S3 aws s3 cp /PATH/TO/SCRIPT/email-backup.mbox s3://XXXXXXXXXX/email-backup.mbox # Send Confirmation Email SUBJECT="EMAIL SUBJECT" EMAIL="[email protected]" # Get current filesize FILENAME=/PATH/TO/SCRIPT/email-backup.mbox FILESIZE=$(stat -c%s "$FILENAME") # Email Content EMAILMESSAGE="/tmp/emailmessage.txt" echo "EMAIL BODY" >$EMAILMESSAGE echo "" >>$EMAILMESSAGE echo "Current File Size: $FILESIZE bytes" >>$EMAILMESSAGE # Send the Mail /bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE
This is a about using cron & crontab. You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question. The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below. This addresses the cron system with the crontab highlighted.
As reported I have big problems with huge vocabularies in Drupal 7. Now I want to empty the big vocabularies, but I can't do that via the admin interface, because its running out of memory, so it can't be loaded any more. How can I delete all terms of a vocabulary form the command line using drush and MySQL? I know, I could do something like that: DELETE FROM `database`.`taxonomy_term_data` WHERE `taxonomy_term_data`.`vid` = 17 But what else would I have to delete?
I have a large vocabulary, and does not yet work for taxonomy. does not do this as well. Are there other options for bulk-deleting taxonomy terms?
I am going to attend my PhD interview online. The PI asked me to present my previous work and a research proposal in 10 min. I made a 8 slide presentation. Is it very big for 10 min? And the other thing he told me is, at the end he is going to give me some time so that I can ask questions. What kind of question should I ask in this case? Related to subject? What other areas (other than subject) should I consider to ask questions?
I've a Skype interview for PhD application (it will make me miss today.) I've been asked, in advance, to prepare a short presentation and then there would be some discussion with the panel (I guess.) I expect that they will ask if I have some questions so, I'm wondering what are the best (type of) questions one might consider?
When I try to copy and paste an xlxs spreadsheet, a text import screen pops up. This has not happened before. How do I stop it and, revert back to a simply copy and paste?
I'm making a table in which I have to copy few lines from pdf to a table. I'm using LibreOffice calc for table making purpose. Problem is that even though I am copying simple text from the pdf, when I paste it to LibreOffice, Import Option keeps on poping up(randomly-sometimes it pop up sometime it does't). And due to this pasted text's font size also very small. Desired result is that when I paste the text in the cell, it just got pasted in the cell, without any time wasting popup which also disturbs the font size. Same question is asked here but no solution.
I've been working on a little bird but encountered an issue, I can't get it so that the glass texture is restricted to the faces I have selected.
How do you add more than one material to a mesh? I have tried adding two materials to the object, and then assigning one of the materials to a vertex-group, but I could not find a place to assign it. I am making a striped bouncy ball that I want to deform, so adding a different material by separating the mesh into different objects would not be ideal.
This evening I have been playing with cron for the first time, and have started experiencing strange results. The script that I am trying to run is a watchdog that allows me to manage a couple other scripts with a web interface. When I run the watchdog script from a shell, sudo ./watchdog.py it works fine every time, and starts the scripts it is supposed to. When I add it to crotab, sudo crontab -e with the line */1 * * * * /home/user/watchdog.py, it does not start them, or they crash shortly after starting. These scripts do need to run as root, so I have also tried */1 * * * * sudo /home/user/watchdog.py, but nothing changed. My question is 2 part. 1: How do I troubleshoot this? 2: What causes this, and why?
This is a about using cron & crontab. You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question. The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below. This addresses the cron system with the crontab highlighted.
I'm making an A/B test (Injecting code onto a page) to increase the images of products in your shopping cart. When you select a different shipping method - the whole table appears to be refreshed. and my code will only execute the first time. So when i select a different shipping method the second time. my code is lost. Except the tags stay. You'll need to have a random product in your cart to see it first. <script> $( document ).ready(function() { $('img.item-img').each(function() { var str = $(this).attr('src'), arr = str.split("?"); query = "?hei=200&wid=200&op_sharpen=1" $(this).attr('src', arr[0] + query); }); $( document ).ready(function() { $('tr').each(function() { var desc = $('td.description', this).html() $('td.image', this).append(desc); $('td.description', this).remove(); }); $("table#shopping-cart-items tr td.image").after($('<td id="clearSpace"></td>')); }); }); </script> <script> $( document ).ready(function() { $('div.shippingOpt').click(function() { window.setTimeout(function(){ $('img.item-img').each(function() { var str = $(this).attr('src'), arr = str.split("?"); query = "?hei=200&wid=200&op_sharpen=1" $(this).attr('src', arr[0] + query); }); $('tr').each(function() { var desc = $('td.description', this).html() $('td.image', this).append(desc); $('td.description', this).remove(); }); $("table#shopping-cart-items tr td.image").after($('<td id="clearSpace"></td>')); }, 1000); }); }); </script> <style> .checkoutBasket table.cart-container td.image img { width:200px; height:auto;} #clearSpace {padding: 0 0 0 15px;} </style>
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.
I am a complete noob to linux. And I have installed ubuntu on my laptop. My concern is Security. A lot of sources online say I don't need any anivirus software, can someone explain why this is? I relaise people dont make as much linux malware but is this enough of a reason? If I should get something what should I get? Also is it worth to get a sandboxed browser or a fully fledged VM for surfing (this can include going) Finally should I uninstall windows 7 (dual booting via partition) and no longer use it (is it a sfatey concern?) I was only going to keep it for emergencies
I thought that there was no need to scan for viruses either in Ubuntu or any Linux distros until I found virus scanner packages clamtk and klamav in Ubuntu software center yesterday. This leads to the following questions: How do viruses differ between Linux and Windows? How do the strategies for protection differ between Linux and Windows? Should a virus scanner package be installed on my system? If so, which would be a better option?
Hi i'm developing an android application in android studio in java that send sign up information to the server, i'm using volley library to make HTTP requests(GET method) and for my server side i'm coding with php to get information from client side. my issue is when i send persian characters to the server by android devices with api 16 or lower the server get requests parameters content like this : ???? , i don't have this problem when i make requests from devices with api 17 and higher i tried to send sign up information in JSON format but it did not work. my php version 5.3.5 ,mySql 5.5.8 and android studio version 3. this is my android client side code : private void sendDataToServer() { SendDataObject dataObject = new SendDataObject(); dataObject.setName(edtName.getText().toString()); dataObject.setFamily(edtFamily.getText().toString()); dataObject.setCodeMelli(edtCodeMelli.getText().toString()); dataObject.setOstan(edtOstan.getText().toString()); dataObject.setID(ID); String url = SplashActivity.SERVER_IP + "sign_up_users.php?name=" + edtName.getText() + "&family=" + edtFamily.getText().toString().trim() + "&codeMelli=" + edtCodeMelli.getText().toString().trim() + "&ostan=" + edtOstan.getText().toString().trim() + "&ID=" + ID; StringRequest getRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() { @Override public void onResponse(String response) { if (response.toString().equals("true")) { SplashActivity.USER_ID = ID; Intent intent = new Intent(SignUpActivity.this, MainActivity.class); startActivity(intent); setSharedPrefs(); overridePendingTransition(R.anim.slide_i_left,R.anim.slide_i_right); } else { NoInternetDialog cdd = new NoInternetDialog(SignUpActivity.this); cdd.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); cdd.show(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { } } ); getRequest.setRetryPolicy(new DefaultRetryPolicy(18000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT)); RequestQueue requestQueue = Volley.newRequestQueue(SignUpActivity.this); requestQueue.add(getRequest); } and my php server side code sign_up_users.php : <?php include 'connect.php'; if (isset($_GET["name"]) && isset($_GET["family"]) && isset($_GET["codeMelli"]) && isset($_GET["ostan"]) && isset($_GET["ID"])) { $name = $_GET["name"]; $family = $_GET["family"]; $codeMelli = $_GET["codeMelli"]; $ostan = $_GET["ostan"]; $ID = $_GET["ID"]; $stmt = $conn->prepare("UPDATE users SET name=:name ,family=:family, validation_status=1, codeMelli=:codeMelli , ostan=:ostan WHERE ID=:ID"); $stmt->bindParam(':name',$name); $stmt->bindParam(':family',$family); $stmt->bindParam(':codeMelli',$codeMelli); $stmt->bindParam(':ostan',$ostan); $stmt->bindParam(':ID',$ID); $res = $stmt->execute(); $stmt = null; if ($res) { echo 'true'; } else { echo 'false'; } } else { echo 'error_parameters'; } ?>
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur? This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.
How to convert String from input text to md5? I have no clue. This is part of my .jsp <tr> <td><spring:message code="password" text="default text" /></td> <td>:</td> <td><input type="password" name="password" required></td> and this is my controller @RequestMapping(value="/admin/addUser.html", method=RequestMethod.POST) public ModelAndView createUserAdmin(@ModelAttribute UserAdmin useradmin, ModelMap model)throws Exception { userService.save(useradmin); model.addAttribute("successAdd", "true"); return listUserAdmin(model); } Thanks for any help :)
Is there any method to generate MD5 hash of a string in Java?
Unity had a meltdown a while back (?). Anyway, since then, Unity is mistaken about the origin of its coordinate system, so that when I open a new window, I get this: Is there a way to reset Unity's coordinate system to avoid this behavior?
I've been messing around with Unity and broke something, how do I "start over"?
Note: that this is not precisely the same as that has been asked before. Let $n$ be the largest integer. Then $n>1$. Now $n^2$ is also an integer, and $n^2>n.1=n$. So $n^2>n$. which contradicts $n$ being the largest integer. Therefore our initial assumption is false, and 1 is the largest integer, as claimed.
Let $n$ be the largest positive integer. Since $n ≥ 1$, multiplying both sides by $n$ implies that $n^2 ≥ n$. But since $n$ is the biggest positive integer, it is also true that $n^2 ≤ n$. It follows that $n^2 = n$. Dividing both sides by $n$ implies that $n = 1$. The goal is to find the flaw in the reasoning of the proof rather than find a proof that proves it wrong. Here's where I think the problem is: It was stated that $n^2 ≥ n$ after multiplying both sides of the inequality by $n$. But then because $n$ is the largest possible integer, $n^2 ≤ n$. This is where I think the flaw is, because if $n$ is the single largest integer, then we'd get $n^2 < n$ rather than $n^2 ≤ n$, so writing the latter is incorrect.
The teacher said that that that that that boy used was wrong. Please, briefly explain above stated sentence.
Have you ever had a case where you felt compelled to include strange things like a double that in a sentence? If so, then what did you do to resolve this? For me, I never knew whether it was acceptable grammar. However, what I did learn was that it was a logic distractor, could lead to confusion, and therefore should be reworded to avoid this.
I have a quite a large file (>50gb) that has no file extension and is possibly encrypted. I created this file a while ago, but I accidentally removed the extension but I think it is possibly a compressed file (e.g. .7z, .rar). I know the password if I am able to identify which application can open it. How is it possible to identify which file type this file belongs to (bearing in mind it might be encrypted - but I know the encrypted password if there is one)? I tried using a Hex Editor but weird characters are shown most likely because it is encrypted. Further Information: Hopefully this should be helpful: I would have created this file on a Windows operating system The hex editor has text 0x0 to 0x200 followed by a massive whitespace before contents/text resumes at 0x20000.
I sometimes get files from my clients that have the wrong file extension. For example, the name is image.jpg but the file is actually a TIFF image. In many cases I can clarify it by opening the file in a text editor, looking at the first few bytes, then deducing which file type it is. This works for me with JPEG, TIFF, GIF and PDF files. However there are many more file types out there. Is it possible to automate identification of the correct file type by analyzing the containing data?