I would like to know how I do so that the text that is next to the image is aligned vertically in the middle, so that it is more orderly next to the image that appears next to it. Starting the snippet, you can see what I say by clicking to see in full screen    <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">

Title

Lorem Ipsum is simply dummy text of the printing and                                  typesetting industry. Lorem Ipsum has been the industry's standard dummy                                 text ever since the 1500s, when an unknown printer took a galley of type                                  and scrambled it to make a type specimen book. It has survived not only five                                 centuries, but also the leap into electronic typesetting, remaining essentially                                 unchanged.

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?

testing...


I am taking AP Comp Sci and working on the lab "elevens". All I'm trying to do is instantiate an object of the "Deck" class, and my constructor is throwing a NullPointerError. After doing a print check, I found that the first index is being found correctly, it's the second that's throwing the error. What do I need to change in either my Deck class or my main method to fix this issue?  public Card(String cardRank, String cardSuit, int cardPointValue)  {     suit = cardSuit;     rank = cardRank;     pointValue = cardPointValue; }  private ArrayList<Card> cards;  public Deck(String[] ranks, String[] suits, int[] values)  {     for(int i =0; i < suits.length; i++)     {                         cards.add(new Card(ranks[i], suits[i], values[i]));         size++;     } }  public static void main(String[] args)  {     String [] suits = new String [] {"Spades", "Hearts", "Diamonds"};     String [] ranks = new String [] {"Queen", "King", "Ace"};     int [] points = new int [] {10, 10, 11};     Deck deck = new Deck(ranks, suits, points); }

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?


LibreOffice have update into minor release 4.2.4. How to update them? I have seen the package list in Launchpad at LibreOffice PPA, but it's still not available until now (still 4.2.3 rc3).

Should one use the PPA or manually install the .debs from ?  Is there any difference between the two? How long does it take for the ppa to upgrade to the latest version?


If $G=G_1\times G_2$ does it follow that $H\leq G \implies H=H_1\times H_2$ where $H_1\leq G_1$ and $H_2\leq G_2$. I am thinking that it does, being that the projection of $H$ into $G_1$ and $G_2$ is a homomorphism, but now that I am writing this it might be that $H\subset H_1\times H_2$ rather than equality.

Suppose $G_1$ and $G_2$ are two finite groups and let $H\leq G_1\times G_2$.  Is it true that $H=P_1\times P_2$ with $P_i\leq G_i$?  I think so for since $H\subseteq G_1\times G_2$ we must have $H=P_1\times P_2$ with $P_i\subseteq G_i$. We have $P_i\neq \phi$, otherwise $H=\phi$. Indeed, $(1_{G_1}, 1_{G_2})\in H$ for $H\leq G_1\times G_2$.  Now, if $a, b\in P_1$ then $$(ab, 1_{G_2})=(a, 1_{G_2})\cdot (b, 1_{G_2})\in H=P_1\times P_2$$ so that $ab\in P_1$. A similar reason would work for the inverse.  I read somewhere this was not true, but I can't see what is wrong in the above argument.   Obs: The group structure on $G_1\times G_2$ is given pointwise.


Consider $r>0$ , $1<p< \infty $. Consider $K $ a compact set in $R^n$ with $K \subset B(x_0 , r)$.  Define  $$ B = \{ u \in C^{\infty}_{0}(B(x_0 , r)) ; u=1 \ on \ K ,  0 \leq u \leq 1\}$$  $$ A= \{ u \in C^{\infty}_{0}(B(x_0 , r)) ; u=1  \ \textit{in a open neighborhood of K } \}$$  A natural question is :  given $u \in  B$ , exists a sequence $v_n \subset A$ with $v_n \rightarrow u$ in $H^{1,p}( B(x_0 , r))$ ?  I tried to prove this fact , but nothing...  I draw a picture and I belive the result is true. Someone can give me a help ?If i prove the affirmation , then I understand a theorem in the book that i am studying.  thanks in advance =)

consider $r>0 , p>1$ and $K \subset B(x_0 , 2r) \subset R^n$ . $K$ compact. Define the sets :  $$A = \{ u \in C^{\infty}_{0} (B(x_0 , 2r)); \textit{ such  that }  \  u=1 \textit{ in a open  neighborhood of K} \}$$  $$ B =  \{  u \in  H^{1,p}_{0} (B(x_0 , 2r)) \cap  C (B(x_0 , 2r))  : u=1 \  on \  K  ,  \  0 \leq u \leq 1\}$$  I want to show that   $$ \displaystyle\inf_{u \in A} \displaystyle\int_{B(x_0 , 2r)} |\nabla u|^p  \ dx= \displaystyle\inf_{u \in B} \displaystyle\int_{B(x_0 , 2r)} |\nabla u|^p   \ dx$$  For this i am trying to aproximate (in the sense of the  norm of $H^{1,p}$) the function of B , by function of $A$.  Somenone can give me a hint ?  thanks in advance


I'm familiar with the profile graph feature in 3D analyst and I saw the stack profile tool as well.  However, I'd like to generate elevation profile graphs for 137 line segments.   I don't want to hand draw each segment, is there a tool to do this?   Does anyone have any suggestions?

How can I replicate in ArcPy the 3D Analyst Toolbar operations which extract an elevation profile from a transect line drawn atop an elevation layer? This will be incorporated into an automated workflow that will loop ~500K times. Hence, streamlining is critical.  Here's the procedure using the toolbar:   Point toolbar to the elevation layer Click 'Interpolate Line' to draw the cross-section Click 'Profile Graph' to generate the profile Right-click graph, 'Export', 'Data'   (Inputs: elevation layer, transect. Outputs: graph, XY table.)  Rather than manually drawing a transect, as in the toolbar functions, I need the ability to specify the transect start & end by entering coordinates. Similar to the tool, I want the output to be XY pairs (ideally a numpy array), with x=0 being the transect origin, X-values being distance from origin, and Y-values being elevation.


In the NIST documentation for the Secure Hash Standard, it says to pad every message by appending the bit "1" to the end of the message, followed by k zero bits, where k is equal to the equation l (length of message in bits) + 1 + k = 448 mod 512. Then, it says to append a 64-bit block that is equal to the length expressed using a binary representation. The padded message should be a multiple of 512 bits. However, it does not seem to indicate how this would work for a message that is 512 bits or larger. My guess is that the equation above would be equal to the nearest multiple of 512 greater than the length minus 64. For example, for a message of 550 bits, k would be equal to 410. Am I right?

I read about how is an input message prepared to be hashed by MD4,MD5 or SHA-1:     Step1 Append padding bits      The input message is "padded" (extended) so that its length (in bits)   equals to 448 mod 512. Padding is always performed, even if the length   of the message is already 448 mod 512. Padding is performed as   follows: a single "1" bit is appended to the message, and then "0"   bits are appended so that the length in bits of the padded message   becomes congruent to 448 mod 512. At least one bit and at most 512   bits are appended.       Step2. Append length      A 64-bit representation of the length of the message is appended to   the result of step1. If the length of the message is greater than   2^64, only the low-order 64 bits will be used.  The resulting message   (after padding with bits and with b) has a length that is an exact   multiple of 512 bits. The input message will have a length that is an   exact multiple of 16 (32-bit) words.       ... algorithms steps   I read that hose 2 steps are always the same for input messages for MD4, MD4 and SHA-1. How about  SHA-224 / SHA-256 / SHA-384 / SHA-512? How do they 'prepare' input to compute a hash? The same way maybe?


iam unable to format it not use it. i need an app that will help me recover my data please anyone can share light to this. Thanks in anticipation

A few weeks ago I integrated my SD card to use as phone memory. Everything was fine until a couple of days ago.  All of a sudden I saw the "insert SD card" notice appear on the notification bar. I open the back cover but the SD card looked like it was in place. I remove it and insert it back and the notice disappears. But then I notice that when I go to file explorer (FX) to access my files, it says "Access was denied". I can't access anything that is on my phone memory, although the apps are working. I guess system files are OK, but everything else is not.  My phone is rooted so I tried to access the files through TWRP but I can only see system folders.  Phone is a Moto C plus. Nougat.


If a post is deleted by its owner, it shows the status "deleted by owner".  If it's deleted by users casting delete votes, it shows "deleted by (names)".  If it's deleted through spam or offensive flags, it shows "deleted by Community".  But if it's deleted from the low-quality review queue, it just says "deleted".  .    I saw one of these today and was puzzled.  Because I'm a moderator on the site where I saw it, I could look at the timeline and see how it happened.  But non-moderator 10k users can't.  I know that the review will show up in the revision history for the post, but if there haven't been any edits -- a common occurrence on the deleted LQ posts I've seen -- then you have to know how to manually construct the URL to see the revisions.  Could these deletions say "deleted by Community" like spam/offensive ones do?  (I think naming the six voters would create confusion, but we don't need names -- just a hint that this wasn't a moderator action or a bug.)

Usually when answer gets deleted directly (i.e. not as side effect of its parent question deleted) it says "deleted by [name here] [time stamp]". Plus, it always leave a revision.  However, I just stumbled over  on Stack Overflow:        Weird, don't you think? Looking in the , nothing strange in there and nothing strange in  as well.  Finally, the last straw... :        Another thought was maybe some automagical conversion to comment, but no such comment exists.  Can anyone shed some light over this phenomenon?


I'm on Ubuntu 16.04 and my monitor has no speakers and the audio won't play out of the headphones I have connected I've tried pulse audio and sound settings. I'm not sure my audio card is being seen.  System settings shows: bcm2835 ALSA 1 output/1 input Analog Audio Output  Output tab and pulse only show HDMI output

Ubuntu's desktop gui is great for changing audio settings (System->Preferences->Sound), like the default input/output device and setting the volume.  However, I would like to be able to do these things from the command-line. What tool is the gui using behind the scenes?


I have the following lines in a .sh shell script:  wget -O discord.deb https://discordapp.com/api/download?platform=linux&format=deb sudo dpkg -i discord.deb rm -f discord.deb   For some reason, the script does not work. However, if I run the commands one-by-one manually, the code works as intended. What am I doing wrong?

I am trying to download files from .  The URL is:   When I use this command:  wget http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE48191&format=file    I get only index.html?acc=GSE48191 which is some kind of binary format.  How can I download the files from this HTTP site?


How to align table caption in following example to the left of table (instead of being centered) ? Unfortunately I cannot find any switch which would govern this. Command   \captionsetup{justification=raggedleft}   does nothing.  \documentclass[twoside]{scrreprt}  \usepackage{floatrow}  \begin{document}     \chapter{Prilohy}     \hspace*{-1cm}\begin{minipage}{16cm}     \begin{table}[H]     \ttabbox[\FBwidth]             {\caption{Zoznam slavnych cinskych basnikov podla Kroebera -- tabulkova forma}}{     \begin{tabular}{@{}|l|p{3.5cm}|p{3.5cm}|p{2.5cm}|p{2cm}|}         \hline         Poradie & Meno & Alternativny \newline prepis mena & Koeficient \newline vynimocnosti & Rok \newline narodenia \\ \hline         1 & Shi-King & & & \\ \hline         2 & Ch'ü Yüan & Qu Yuan & 2 & -332 \\ \hline         3 & Sung Yü & Song Yu & & \\ \hline         4 & King Tsz'e & & & \\ \hline         5 & Kiah I & & & -199 \\ \hline         6 & Chuang-ki & & & \\ \hline         7 & Huai-nan-tze & & & -122 \\ \hline         8 & Tung-fang So & Dongfang Shuo & & -160 \\ \hline         9 & Liu Hsiang & & & -80 \\ \hline         10 & Liu Heng & & & -157 \\ \hline         11 & Mei Sheng & & 2 & -140 \\ \hline         12 & Ssu-ma Siang-ju & & & -121,5 \\ \hline         13 & Princezná Si-kiün & & & \\ \hline         14 & Cisár Liu Ch'ê alebo Wu Ti & & & \\ \hline         15 & Hsü Kan & & & \\ \hline         16 & K'ung Jung \newline (alebo Ying) & & & \\ \hline         17 & Wang Ts'an & & & 177 \\ \hline         18 & Yin Yang & & & \\ \hline         19 & Lin Cheng & & & \\ \hline         20 & Ch'en Lin & & & \\ \hline                 21 & Yüan Yü & & & \\ \hline         22 & Ts'ao Ts'ao & & & \\ \hline         23 & Ts'ao Chih & & & \\ \hline         24 & Liu Ling & & & \\ \hline         25 & Hsi (Ki) K'ang & & & \\ \hline         26 & Hsiang Hsiu & & & \\ \hline         27 & Yüan Hsien & & & \\ \hline         28 & Yüan Chi & & & \\ \hline         29 & Wang Jung & & & \\ \hline     \end{tabular}     }     \end{table}     \end{minipage} \end{document}   P.S. Recommended solution  \captionsetup{justification=justified,singlelinecheck=off}   does nothing. Also take in mind that page margins are in my case narrower by 1cm is not standard.

I am using this for captions:  \usepackage[font=small,format=plain,labelfont=bf,up,textfont=normal,up]{caption}   But they all come out centred - I want them aligned with the left margin - how can I do this?


A site we have over 8000+ users with Views, Ctools and VBO installed. Is it possible to export all users data into 1 CSV file? We tired  with no luck(memory limit), even we increase the memory to 128MB. Please help.

I would like to export users into a CSV in Drupal 7. I believe I can use the module , but I am not sure how to do that or if it is the correct module I would like.


Can someone explain this results?      If I grab one of the ends of the slinky, then the slinky will extend because of the gravity. Assume that the other end of the slinky does not touch the ground, and when we let go the slinky, (with inital speed $0$), I saw that the other end of the slinky does not move until the upper part comes really close.

Why does the base of this slinky not fall immediately to gravity? My guess is tension in the springs is a force > mass*gravity but even then it is dumbfounding.


I had just finished this interesting read on a  and was wondering how Brain computer interfaces are touting in the near future to pick up thoughts that might need the same bit rates as HQ video and audio.

I was looking for an equation that could show the relationship between the range of frequencies of an EM wave, and its Maximum data transfer rate. I know that ranges of shorter wavelengths can have a larger bitrate/symbol rate, but could not find an equation relating the two variables.   Thanks in advance for the help.  EDIT: I refined my wording above. Also, no one answered my question over at amateur radio SE. As for the nyquist rate wiki page, I still could not find the answer I was looking for.


I would love to have the review and  from the website inside the app so that we can review low quality posts, edits and delete requests while we are having some free time when commuting to work or during classes or w/e.

I'm using the official Stack Exchange mobile app for iOS or Android, and  My app crashed! It doesn't look good on my new smartphone. It won't run after I updated my device. I noticed another bug. I have an idea for a new feature which is currently not in the app.  How do I report bugs with or request features for the iOS and Android apps? Also:  I've used the built-in functionality of the app to report a bug or submit a feature request. Did I do the right thing? The app prompted me to post on Meta after an error occurred. Should I post about it here? I'm wondering why the latest version is from 2017. I've heard rumors that the apps are no longer supported; is that true? I can't find the app on my device's app store anymore! Where did it go?     We get a lot of bug reports from users about the mobile apps, which are unsupported, and at the moment, there is no centralized Q&A pair for those to be closed as duplicates of (the relevant answers are spread across multiple unrelated questions). This question is an FAQ proposal, to serve as a directly-related duplicate target for those questions.


Find the unit vector $\vec{b}$ if $-\hat{i}+\hat{j}-\hat{k}$ bisects the angle between $\vec{b}$ and $\vec a=3\hat{i}+4\hat{j}$  The unit vector along the angle bisector is $$\frac{-\hat{i}+\hat{j}-\hat{k}}{\sqrt3}=\frac{\vec{b}+\left(\frac35\hat{i}+\frac45\hat{j}\right)}{|\vec{b}+\frac35\hat{i}+\frac45\hat{j}|}$$ Im not able to extract $\vec b$ from here

There are two vectors called $\vec{a}$ and $\vec{b}$. Vector $\vec{c}$ is the bisector and it can be given as  $$\vec{c} = |b|\vec{a} + |a|\vec{b}$$  How to prove that? I have used the dot product method. But there I can't find the angle between them. Then I tried to do this by using unit vectors. Then I got an answer like in the given picture. . Can you help me to get the correct answer


I need to find an example of a function $f:I$ to $R$ such that $f$ is uniformly continuous $f'$ exists but $f'$ is not bounded?  I'm fairly stuck with this - it's part of a review and I guess I never handled any of these types of problems very well.  Any direction is appreciated.

Is there a uniformly continuous function values in $f: \mathbb{R}{\to}\mathbb{R}$ such that its first derivative is not bounded and is defined on a non-compact set? And if $f: X_{1}{\to}\mathbb{R}$? (let $(X_{1},d{1})$ metric space ). And if $f: X_{1}{\to}X_{2}$? (let $(X_{2},d{2})$ metric space ).  I know that the first derivative is bounded f:I-->R (let I interval) iff f is a lipschitz function; If X1 is a compact thanks to the Heine-Cantor theorem f is uniformly continuous.


I have created below table using TOAD.   CREATE TABLE TEM (     No number );   But i got below error when try to insert many values in "No" column.  My insert statement:   INSERT INTO TEM1k (No) VALUES (8882323,454343);   Error Msg:      ORA-00913: too many values   Appreciate your support to fix this issue.   Thanks,


In this code, why do a and b not get destroyed at the ends of their respective blocks?  flag = True if flag:     a = 1  for i in range(2):     b = 2  print(a, b)   Instead, this code prints 1 2. Why does Python allow this? When can I rely on this behavior?

What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers.


Im trying to excute the minecraft.jar. Ive tried to run several commands but always coming back with "unable to access jarfile"  My file is stored on my downloads and I am the owner it says on file properties. Any ideas? Thanks!

How to correctly install Minecraft, including setting any needed packages or apps to install it and to troubleshoot the most common problems that Ubuntu users face when trying to use Minecraft.  I am trying to install and run Minecraft without first having to install the Oracle version of Java. I want to use the OpenJDK version that comes with Ubuntu and as a last resort, use the Oracle one.  I also want to know a list of problems related to Minecraft in Ubuntu and the possible solutions to them.  A step by step guide on how to install Minecraft would also help.


.I want to change all the white pixels into transparent so that I can choose the background of my choice.   I may decide to use a black background, so multiply doesn't work.

I want to replace the whiteness in pixels with transparency in the same way as described in  - i.e. for lighter pixels to be made proportionally as transparent. All solutions found via google are based on magic wand or other methods that do not work for my needs.  I'm sure there used to be a way to do this in earlier version of Photoshop (a simple functions to replace a colour with transparency), but I can't seem to do it in CS6.  Replace Colour has no alpha options..


When I try to do using sys in following way, it gives error: name 'path' is not defined. Here test.py is file in folder directory. Also folder directory has __init__.py in it. import sys sys.path.append('c/Users/Downloads/folder') from test import * print(path)  Content of test.py path="sample"  I also tried writing from test import path but it did not work. So is there any other way than sys. I am not able to find why it's not working with it, since most answers recommend this. EDIT: Python is used a lot in industry so I am hopeful there must be some way for that (without using or using sys). I can have multiple files with same name in my system so help provided in answer and comments are not permanent fix.

How can I load a Python module given its full path? Note that the file can be anywhere in the filesystem, as it is a configuration option.


I seem to recall asking for this feature some years ago and being told it wasn't going to happen, but it seems silly to me that if I suddenly realize I posted a stupid answer that can't be redeemed, I have to rush to open my web browser to delete it. So what is the reason for not allowing it?

Currently, the only way to vote to delete (and undelete, since you can't see deleted posts) in the Android app is to open the post in a browser, and then vote to delete from there.  Can we get delete vote functionality within the app, as well as the ability to delete our own posts?  Worth to mention: users , so it's possible in the API.  Related:


Show that the sequence defined by $a_1=1$ and $a_n=\sqrt{3+a_{n-1}}$ for $n>1$ is monotone and bounded. Then find the limit of the sequence.   I'm supposed to do this using induction. I'm usually pretty good with induction proofs, but I do have that, assuming convergence, the limit will be  $L=\sqrt{3+L}$  And so  $L^2-L-3=0$  And blah blah quadratic equation, $\frac{\sqrt{13}+1}{2}$.

(Fitzpatrick Advanced Calculus 2e, Sec. 2.4 #12)  For $c \gt 0$, consider the quadratic equation $x^2 - x - c = 0, x > 0$.  Define the sequence $\{x_n\}$ recursively by fixing $|x_1| \lt c$ and then, if $n$ is an index for which $x_n$ has been defined, defining  $$x_{n+1} = \sqrt{c+x_n}$$  Prove that the sequence $\{x_n\}$ converges monotonically to the solution of the above equation.  Note: The answers below might assume $x_1 \gt 0$, but they still work, as we have $x_3 \gt 0$.    This is being repurposed in an effort to cut down on duplicates, see here: .  and here: .


find out the 2nd most no. of employee working with dname from emp and dept table.  select d.dname,count(*) "totemp" from emp e,dept d where e.deptno=d.deptno group by (d.dname) having count(*)=(select max(count(*)) from emp e,dept d  where e.deptno=d.deptno group by d.dname);   This query will show highest no. of employee working with dname. But i want 2nd highest with dname.

What is the simplest SQL query to find the second largest integer value in a specific column?   There are maybe duplicate values in the column.


The Windows 7 network icon down in the system tray (sorry, ) shows your connectivity status - but more than just whether the connection is on or off, it also apparently can tell if your Internet connection is down.   Case in point: my Internet connection went down, and the icon changed to this:    Note the little yellow exclamation point overlay. Windows put this icon there just after my Internet connection went down - less than a minute I would say, although I didn't time it.  It's worth mentioning that my local LAN was still up and running fine.  My question is... how did Windows know this?   Is it monitoring network traffic and watching for failures? Did the router (a modern uPnP router) somehow tell Windows that the WAN connection had gone down? Does Windows periodically ping certain servers to test Internet connectivity?  (p.s. I mention Windows 7 because that's what I have and I don't recall if Vista had the same behavior as I didn't have it long enough to find out. I do remember that Windows XP and earlier did not have this "feature.")

In Windows 7, the notification area networking icon will show an error indicator if there is no internet access , and the error icon goes away once there is a successful connection to the internet . Sometimes, if the WiFi connection requires an in-browser authentication step, like on many guest networks in hotels or universities, then the following pop-up bubble appears, saying as much:    How does Windows know whether or not it has a successful internet connection? Presumably it is checking some online Microsoft service to see whether it has a successful connection, gets redirected to some other page, or doesn't get any response at all, but I haven't seen anywhere that this process or the services used are documented. Can anybody explain how this works? I would prefer answers that refer to facts, rather than just guessing, but if you have a really good guess, then go for it.     This question was a .   Read the May 16th, 2011  for more details or  Question of the Week.


Is there a way to have a not equal condition in build events ?  Like this:  if $(ConfigurationName) != Debug xcopy ...   Note that this is build event (batch-like syntax), not MSBuild task (which indeed supports != ).

How can I limit my post-build events to running only for one type of build?  I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build server in release mode.


Let $a_n$ be defined via $a_n = \sum_{k=n}^{2n}\frac{1}{k}$. Compute, $\lim_{n\to\infty}a_n$.   I have an handwavy argument that since $\lim_{n\to\infty}\left(\sum_{k=1}^n \frac{1}{k} - \log(n) \right) = \gamma$, where $\gamma$ is the Euler-Mascheroni constant, I think that the limit above is $\log(2)$, but I am a bit confused. Can someone help me with this? Thanks!

What is the sum of the 'second half' of the harmonic series?  $$\lim_{k\to\infty}\sum\limits_{n=k+1}^{2k}{\frac{1}{n}} =~ ?$$  More precisely, what is the limit of the above sequence of partial sums?


Can any one tell me how to prove that: The sequence $x_{1}=\sqrt{2}$ , $x_{2}=\sqrt{2+\sqrt{2}}$, $\cdots$, $x_{n}=\underbrace{\sqrt{2+\sqrt{2+\cdots+\sqrt{2}}}}_{n \text{ times}}$ converges and compute its limit.  Thanks


I remember when i was growing up we had many slang methods of describing things using the opposite terms. It wasn't always as simple as saying "bad" for something "good," but it seemed to be an expansion and variation on that.   Here are some examples:  "My mom made a cake for my birthday, and it was so crappy"  "Man, this test is great."  "Did you see her win the 50 yard dash? she's slow."  Is there a word for this?

This seems to me to be a kind of rhetorical figure, but I cannot find a classical term for it in . Examples include the following from Tristram Shandy (Vol. 2 Chap. 24):     I define a nose, as follows,—intreating only beforehand, and beseeching my readers, both male and female, of what age, complexion, and condition soever, for the love of God and their own souls, to guard against the temptations and suggestions of the devil, and suffer him by no art or wile to put any other ideas into their minds, than what I put into my definition.—For by the word Nose, throughout all this long chapter of noses, and in every other part of my work, where the word Nose occurs,—I declare, by that word I mean a Nose, and nothing more, or less.   This of course makes it quite impossible not to read nose in the book as also referring to penis.   Another example is an advertisement for Joyce’s Ulysses in America, citing the 1933 decision of the United States District Court for the Southern District of New York that the book was not obscene—which advertisement boils down to “Hey, Buddy, wanna buy a dirty book?”   Yet another is the line “this is not an offer of prostitution” on Web sites, which is an almost infallible indicator that the exact opposite is the case. (For a g-rated account of the use of this line, see .)   And finally, though it is perhaps not quite exactly the same thing, I would point to the classic device of humorous fiction—dating back all the way back to Cervantes and also seen in Mark Twain and Jerome K. Jerome—of insisting that it is not fiction but rather literal truth, which insistence goes on safely within the fictional compact by which readers agree to be entertainingly lied to.  What can we call this figure? Simply terming such usage facetious or disingenuous seems to fall short of designating such flat opposition between the literal and the intentionally conveyed meaning.


I was reading some gstreamer code and fell on this line  register int i;   Does anyone know what the register keyword does ?

What does the register keyword do in C language?  I have read that it is used for optimizing but is not clearly defined in any standard.  Is it still relevant and if so, when would you use it?


If an opponent fails a save on heated armor or weapons, do they have to start doffing their armor and dropping their weapons?  The rules say you have to drop a heated weapon if you fail the save, but dropping armor takes a fair bit of time.  So while someone is doffing the armor I assume they are not doing anything else. Would they lose bonus and reaction actions?  would opponents have advantage if they attacked the person in the armor who is simply trying to 'drop' the armor?  Would the person trying to drop the armor have to drop their shield and weapon while they try and dof the armor?

Page 146 of the PHB has the table for getting in and out of armour (1 to 5 minutes to doff, depending on the type).  Now the Heat Metal (PHB pg. 250) says;     Choose a manufactured metal object, such as a metal weapon or a suit of heavy or medium metal armour, that you can see within range. You cause the object to glow red-hot. Any creature in physical contact with the object takes 2d8 fire damage when you cast the spell. Until the spell ends, you can use a bonus action on each of your subsequent turns to cause this damage again. If a creature is holding or wearing the object and takes the damage from it, the creature must succeed on a Constitution saving throw or drop the object if it can.   (Emphasis mine)  I imagine a creature can't just drop a suit of armour it's wearing, otherwise what's the point of having the don/doff time rules, and it drops the object only if it fails the saving throw. Even if Heat Metal only targets one piece of the armour, the obvious choice would be the shirt/breastplate if you can see it because there's other things a creature would have to take off before that.  So, is the creature trapped in their red-hot burning armour, potentially taking the extra damage for the 1 minute duration of the spell, or is there something I'm missing?  If there's strict RAW on taking armour off in less than a minute, I'll take it, but I'll happily accept answers that simply make sense provided there's an in-game time frame (1 action, 1 round, or whatever) given as well. As for the type of armour I'm just looking at whatever's in the PHB (chainmail, half plate, full plate, breastplate, chain shirt), I don't know of any specific sub-categories or the exact size and shape.  This is of course assuming the creature tries to take of it's armour, it may not give a damn and take it like a man, but from an RP perspective I reckon it would feel like a  so I'm going with "they try to get out as quickly as possible".


I know that is roundabout way ask a question about perpetual motion but if I mentioned that in the title. No one would read it 😁 I guess I really need some help with my paradoxical thought. So here goes. it occured to me that one could setup a perpetual motion machine that could perform meaningful work if you had a permanent magnet, a superconductor and some feromagnetic material. There is an old magnetic perpetual motion idea  Now anyone who has played with magnets enough will realise this is impossible because the iron ball will just jump over the hole stick to the magnet. There is no way the ball will fall through the hole.  But it struck me while watching a doco about superconductors that. If you could block the magnetic field with a semiconductor, you could make this silly design work. Now I know you cant. But I want to understand why. And I suspect it's not because  room temperature superconductors break fundamental laws of physics.

I know that this machine does not work, via thermodynamics. I am asking for an analysis in terms of mechanics and magnetism.  Anyway, so here is the machine:   (source: )    The magnet (the red ball) pull the ball up the ramp, and then it drops the ball through the hole, which then rolls down, and go ups the ramp again. Thermodynamics shows that this can not work.  From a mechanics and magnetism perspective, what happens when you do this, and why can't it happen?  I have a source saying that it would work if it were frictionless and we didn't try to extract energy from it (), so in a certain sense, it is very close to possible (they didn't provide a full analysis though.)  Another Image:


I'm currently running ubuntu 11.04 on my macbook and I would like to dual boot both ubuntu and windows 8. There are many tutorials on how to install ubuntu while runnung windows 8 but not the other way around. Could someone be kind enough to provide me a tutorial so I can install windows 8? Your help is very much appreciated. Please explain to me like I'm five.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


Why does  require approval (and gives me 2 reps) while  didn't? Is the retag privilege gone?

As far as I know if a user has crossed 500 rep, he can retag the questions and it doesn't go through peer review.  But when I retagged , it did go through peer review and I even got 2 rep points. Has this been changed recently? The new  page doesn't mention anything about this retagging.


Say I want to create a new module to provide encryption/decryption for MySQL. In my module, I might simply have something like this:  import mysqlib import cryptolib  class SqlEncryption:      def encrypt(foo):         cryptolib.encrypt(foo)      def decrypt(bar)         cryptolib.decrypt(bar)   but of course I could inherit from the crypto and/or sql libs:  class SqliteEncryption(mysqlib, cryptolib):   of course using super and everything. I usually inherit but this is the first time I've had to wonder if I should inherit from the sql lib, the crypto lib, or both. How should one decide or does it not matter since I'm not actually needing to access anything in those two modules that isn't already exposed in their APIs?

Why prefer composition over inheritance?  What trade-offs are there for each approach?  When should you choose inheritance over composition?


I followed these http://www.tecmint.com/how-to-install-teamviewer-8-on-linux-distributions/ steps and installed TeamViewer on my CentOS5 server without any errors in SSH but when I try to start TeamViewer I am just getting the following output but I can't find my TeamViewer username and password to try to connect to my server.  root@vps [~]# teamviewer      Init...     Checking setup...     Launching TeamViewer...     root@vps [~]# teamviwer -info     -bash: teamviwer: command not found     root@vps [~]# /usr/bin/teamviewer -info  Init... Checking setup...  Launching TeamViewer... root@vps [~]# whereis teamviewer teamviewer: /usr/bin/teamviewer /etc/teamviewer root@vps [~]# /usr/bin/teamviewer -help  Init... Checking setup... Launching TeamViewer... root@vps [~]#    Can anyone help me finding my TeamViwer id and password to connect to my Server. Thanks.

When I tried to run the command teamviewer --info I am getting the following output  root@vps [~]# /opt/teamviewer8/tv_bin/TeamViewer --info   TeamViewer                      8.0.20931    teamviewerd status              teamviewerd start/running, process 9584   TeamViewer ID: not found Try restarting the TeamViewer daemon (e.g. teamviewer --daemon restart)   but I can't find my TeamViewer ID. Is there any other in Configuration settings where I can find my TeamViewer ID?


We used WT*X to calculate the distance of a point in logistic regression from the equation of a hyperplane to the point and then tried to minimize the distance but in linear regression, we are taking WT*X as the equation of a line and then take its y^ (i.e y_predicted value) by putting the X value in the equation of the line. So my question is that how is WT*X different in both logistic and linear regression?

Since we are using the logistic function to transform a linear combination of the input into a non-linear output, how can logistic regression be considered a linear classifier?  Linear regression is just like a neural network without the hidden layer, so why are neural networks considered non-linear classifiers and logistic regression is linear?


In the final scene of TFA we see     Rey, Chewie and BB-8 flying in the Falcon to the Island where Luke has been for the past 30 or so years   But earlier      When Rey was being interrogated by Kylo Ren he says that he sees an Ocean and an Island that Rey pictures when she falls asleep   However,      The map appeared to only have the location of the planet but not the exact place on that planet that Luke and/or the Jedi Temple would be. Additionally when Rey sees the Island she seems to recognize it and since the whole planet seemed to be filled with islands unless we are to assume that Rey, Chewie and BB-8 stopped at each one or that they made an extremely lucky first guess (and we all know there's no such thing as luck) could Rey have perhaps been picturing/daydreaming about this Island the whole time?

In The Force Awakens, as Kylo Ren interrogates Rey, he tells her,     You've been so lonely.  At night, desperate to sleep, you'd imagine an ocean.  I can see it...I can see the island.   At the end of the film, Rey finds Luke Skywalker on a small rocky island in the middle of a large body of water.  The novelization says that the planet was     mostly ocean, dotted with a sprinkling of towering islands...   Is there any evidence that the island imagined by Rey is Luke's?


Sufficiently powerful gravitational waves . How powerful would the waves have to be for a human to actually hear them, and what would be the side-effects of that intensity of gravitational radiation?

If there was a source of a continuous gravitational wave at (say) 50hz, and amplitude of say a micrometer (a typical sound wave displacement, I think), and you were nearby (standing happily on a planet in an atmosphere), with your ear pointing to the source, would you hear it?  It seems to me that since the gravitational wave is reducing and increasing the distance between points in the atmosphere right at your eardrum, surely the density and pressure of the air there is likewise increasing and decreasing, so you might expect to hear it.   What I can't "intuit" is whether you would actually hear it due to the fact that you yourself are also being distorted.  My tentative conclusion is that you would hear it.   At any given time, there appears to be a pressure differential across your eardrum due to this distortion in space pressurising the materials - so ... deflection?  (note: I know that in the recent LIGO announcement they talked about "hearing" the waves, but this is something completely different: an electro-acoustic rendition of the waveform.  I'm asking about direct physical sensing.)


Yesterday I re-read the scene from the Two Towers where Aragorn meets Eomer on the plains of Rohan. When Aragorn introduces himself he announces himself as Isildur's heir as well as presenting Anduril since it had been reforged.    In Peter Jackson's movie series the sword is not reforged until The Return of the King when Arwen is dying and Elrond brings the sword to Aragorn so he can summon the Dead Army.    When is the sword reforged in the books?   Is it before the fellowship sets out? This seems like a huge change to the story line, why would Peter choose to create such a discrepancy?

From the Tolken's LotR series it is mentioned that the Sword of Elendil was forged anew before Frodo departed from Elrond's house, but if my memory serves me correctly, in the Peter Jackson's rendition of the LotR movie, it was reforged at the end of The Two Towers, after Saruman was destroyed.  My question is, am I right with regards to Peter Jackson's movie? When in the movie was the Sword of Elendil reforged?


I am taking part in a Math Olympiad style test at my school in a few weeks. This test is mainly problem solving based and tests you on topics such as counting techniques, algebra, geometry as well as some miscellaneous topics.  So, I was wondering whether there are any key problem solving tactics to help me solve the questions while at the same time, increasing my efficiency.     I understand that people have asked a question like this before, however, I am asking for some specific techniques to support me problem solving.   Thank you :)

I am preparing for Mathematics Olympiad , can any one suggest me some books to prepare for olympiad ? The topics that usually come up involve:    congruence modulo $n$,  inequalities , number system, elementary number theory, etc.   Please help me!  Thanks  Kushashwa


I have 50 PDFs files and I want to extract first page of each file i do not know how it is to be done? kindly help me for this problem.

Have got about 500 PDFs to go through and extract the first page of.  They then need to go through some time consuming conversion process so was hoping to try and save some time by have a batch process to extract just the first page from the 500 pdfs and place it in a new pdf.  Have had a poke around Acrobat but can find no real method of doing this for multiple files.  Does anyone know any other programs or methods that this could be achieved?  Free and open source are obviously more favourable :)  EDIT:  Have actually had some success using GhostScript to extract just one page.  Am now looking at how to batch that and take the list of files and use those.


I have a data set that rates customer satisfaction based on three options:    Recommend Neutral Not satisfied   I understand those may not be the best options but that's what I have to work with.   Another caveat is that I must build the model in R so I'm trying to determine how to build a multiple regression model when y is a factor.  Once I understand that I want to use a stepwise approach to determine the variables I should use based on the code below:  install.packages("MASS") library("MASS") model <- lm(y~x1+x2+x3+x4, data=DATASET) step <- stepAIC(model, direction = "both") summary(step)   I don't have any issues when y is numeric, but I don't think I can just arbitrarily assign values to the customer satisfaction by making Recommend == 1, Neutral == 2, and Not Satisfied == 3.  I was thinking about creating three new variables called Recommend, Neutral and Not Satisfied and assigning 1s under columns where the feedback applies to a customer and a 0 when it doesn't.  For example: Recommend    Neutral    NotSatisfied 1            0          0 0            1          0 0            1          0 1            0          0 0            0          1  If that is an acceptable approach I'm stuck trying to determine how to incorporate all three variables into my model since all of them represent the output I'm trying to predict.  Thank you for any help you are able to provide.

I have a data set that rates customer satisfaction based on three options:  Recommend Neutral Not satisfied I understand those may not be the best options but that's what I have to work with.  Another caveat is that I must build the model in R so I'm trying to determine how to build a multiple regression model when y is a factor.  Once I understand that I want to use a stepwise approach to determine the variables I should use based on the code below:  install.packages("MASS") library("MASS") model <- lm(y~x1+x2+x3+x4, data=DATASET) step <- stepAIC(model, direction = "both") summary(step)   I don't have any issues when y is numeric, but I don't think I can just arbitrarily assign values to the customer satisfaction by making Recommend == 1, Neutral == 2, and Not Satisfied == 3.  I was thinking about creating three new variables called Recommend, Neutral and Not Satisfied and assigning 1s under columns where the feedback applies to a customer and a 0 when it doesn't.  If that is an acceptable approach I'm stuck trying to determine how to incorporate all three variables into my model since all of them represent the output I'm trying to predict.  Thank you for any help you are able to provide.


I have a column with following values in a postgres table.  col1 uniprotkb:P62158(protein(MI:0326), 9606 - Homo sapiens) uniprotkb:O00602-PRO_0000009136(protein(MI:0326), 9606 - Homo sapiens)   I would like to extract a value from above column values.  col2 P62158 O00602   I am using following regexp match on my column  select           uniprotkb:(.*)\-|\([a-zA-Z].* as col2  from table;    But the above regexp capture the text before the last '-'. I want to capture the text between uniprotkb: and before the first occurence of either '(' or '-'. Any suggestion here would be helpful.

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


Please remove 'duplicate'; solutions in linked question did not help.  I've happily been living off other people's processing power by just plugging my Ubuntu-install-on-a-stick in their computers, but there's one machine that just does not want to cooperate: my partner's laptop.  Simply put, immediately after I have selected an option in the GRUB boot manager, the screen just goes purple and the computer no longer responds. I have to shut down the machine by pressing the power button.  The machine is an HP Envy laptop, it has UEFI and is only a few years old. There is no dedicated graphics card, just an Intel Integrated chip. The computer runs Windows 10 and does that just fine.  Tried solutions as of 31 August 2017:   Certain key strokes at the time of the purple screen: the computer seems to have completely stopped responding; nothing happens when pressing F4, F8, Ctrl+Alt+F2, Ctrl+Alt+Del or even the SysRq keys (the latter normally work even during boot). I don't expect anything to work as soon as this purple screen shows up. Recovery Mode, previous kernel version 4.10.0.28 instead of 4.10.0.32, adding kernel parameters nomodeset or nolapic. Waiting for 15 minutes Using a Live USB stick instead of a full install. Disabling Secure Boot. Booting in Legacy mode.   I have not tried all possible combinations of the above attempts (e.g. I did not wait 15 minutes for every new kernel parameter), let me know if there is a good reason to.  Any further ideas as to what might be wrong, or even just how I could somehow get diagnostic information about what causes the crash? Thanks in advance.

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


I have started learning Collections. So when we generate hashcode using eclipse below is the formula which is present in the method:          final int prime = 31;         int result = 1;         result = prime * result + ((id == null) ? 0 : id.hashCode());         result = prime * result + ((pin == null) ? 0 : pin.hashCode());   I have searched and found that since 31 is odd prime we use it while calculating hashcode. Multiplying by prime gives a good distribution of hashcodes.But haven't come across any concrete/layman explaination on why do we use the above formula and why exactly 31 is used. Can someone please help elaborate on how exactly does multiplying by 31 give a better distribution of hashcode?

Per the Java documentation, the  for a String object is computed as:   s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]       using int arithmetic, where s[i] is the    ith character of the string, n is the length of    the string, and ^ indicates exponentiation.   Why is 31 used as a multiplier?  I understand that the multiplier should be a relatively large prime number. So why not 29, or 37, or even 97?


Can anybody solve the following problem with javascript  var i = 10152233307863175; alert(i.toString());   alert shows value 10152233307863176. Any solution. Problem is when I get json object on client and when string is converted to json it contains wrong values.

Is this defined by the language? Is there a defined maximum? Is it different in different browsers?


It's recently been mentioned in some chat conversations that low-reputation close flags are given too high an importance for moderators and should be directed to the community instead. It's been suggested that on Stack Overflow, close flags should go to the 10k queue rather than the mod queue (this may in fact already be implemented).  While I don't entirely disagree with this, I think it only speaks to one head of a two-headed problem. The more pressing issue - especially on Stack Exchange sites, as opposed to the trilogy - is that close votes don't reach the moderators often enough.  On a site like Programmers.SE, for instance, where there are still a lot of historical questions that need to be cleaned up or closed - it's almost pointless to cast a close vote because no one will ever see it. Better to just flag for moderator attention and not waste your vote (and get some of those lovely flag weight points while you're at it).  One suggestion was to have the first close vote on a question automatically generate a mod flag. This was fairly criticized as creating more work where there should be less.  However, the basic principle of the idea makes sense; diamond moderators and privileged users should have some way to be aware of new close votes, just in case the rest of community isn't pulling its weight.  So a better (IMO) proposal is to turf the near-useless "10k tools" close/delete pages and integrate their content into /review. This would give moderators (as well as privileged users) the ability to review close votes, on sites that need it (such as P.SE), without forcing them into an unwanted workflow on sites that don't (such as Stack Overflow). This also has the advantages of:   Showing an excerpt and tags along with the question titles; Reducing overall clutter (the 10k page is pretty noisy with all its sections); Displaying many more questions at once (/tools seems to have a max of 30, expanded); Giving a realistic indication of how much material there actually is to get through; Embedding action links (e.g. flag/close/delete); Seamless integration of close votes and close flags in a meaningful area; Generally giving reviewers the feeling that they're actually making progress.   It would also be incredibly useful if moderators in particular could dismiss questions from the closed/deleted review just like they can dismiss flags, in effect saying "I don't care, let the community handle this one."  Questions would appear in the closed/deleted review page after the first close vote occurs, and then sorted either by the time of that vote or by the total number of votes (or both). Dismissing (if implemented) would dismiss it permanently, ignoring any new votes, until the question is closed or reopened. Straightforward process with minimal noise.  Bottom line: I think that the /review pages encapsulate a pretty good workflow, and it's a shame that critically-important information is still being jammed into the old /tools clunker when we already have something so much better. My responsibilities as a moderator and/or a 10k user would be a whole lot easier if I could review close and delete votes through /review.

are pretty cool... You get a birds-eye view of activity on the site, a "dashboard" view of what's happening. Some of the individual tools haven't scaled particularly well with Stack Overflow's growth, but the concept behind them is still sound: we trust you to enough to be a bee watcher now.  ...and then there's . What a let-down! Once upon a time, this queue contained spam and offensive flags, which one might reasonably assume were important enough to put in front of the more trusted members of the site. Re-flagging them brought them that much closer to deletion, while editing them offered salvation to some hapless author. Nowadays, it's a bunch of Not an Answer flags and a smattering of assorted cruft. 10K users can't even vote to delete these; only 20K users have that privilege. Re-flagging them does nothing but increase their priority in the moderator flag queue, where they frequently outrank more pressing issues;  has . Also, it's , and the behavior has diverged far enough from that of the moderator flag queue on which it is based that it has become an active hindrance to further development of the tooling there. Worst of all, we have  that's available to anyone with the editing privilege. It even has logic built in to prioritize answers likely to be deleted for users with . It's like we gave you a car for your 10th birthday, and then replaced it with a rusty bicycle when you turned 16. It was a nice idea, but it has outlived its usefulness. Proposed changes The /tools/flagged route goes away. Period. No replacement. The rest of the 10K tools stick around as informational pages. Not an Answer flags go into /review/low-quality, . Then we beef up the Low Quality review process to make better use of more experienced reviewers and solve this whole "declined / helpful / disputed" flag debate once and for all:  Effective # of reviews required == ReviewsRequired + # of applicable flags (where ReviewsRequired is 2 on Stack Overflow, 1 everywhere else). So 1 VLQ or NAA flag means EffectiveReviewsRequired=3. LQ tasks are not dequeued until one of the following conditions is met:  Post is edited from within review. Outcome: flags are marked "helpful" (current behavior). Post accumulates 3 Delete votes (can only happen when post scores <= 0 and reviewers have >= 20K rep). Outcome: post is deleted, flags are marked "helpful". Task accumulates EffectiveReviewsRequired "Looks Good" reviews. Outcome: if the number of (Recommend)Delete reviews is >= the number of Looks Good reviews, mark flags "disputed" and raise DisputedLowQuality mod flag. Otherwise, mark flags "declined". Task accumulates 6* RecommendDelete + Delete reviews. Outcome: mark flags "helpful". If the post scores > 0 then raise DisputedLowQuality mod flag, else just delete post (current behavior).   As under the current system, flags on posts that've already completed one full review cycle without being deleted should skip /review and go directly into the mod queue.  End result  Flags get handled faster, more accurately, and with less wasted effort from 10K reviewers. Moderators are free to focus on situations that can't be handled by the community - the ! Developers are free to make enhancements to the moderator tooling without having to work around 10K user restrictions.  Questions Am I forgetting anything here? I haven't really spent much time in the 10K flag queue since back when it was filled with spam flags and therefore useful - is there a use-case that you depend on that would be lost with its removal? Post 'em below. *: on Stack Overflow, only .


Let $G$ be a finite group and $K,H$ be two normal subgroups of $G$ such that $N \cong K$. Then can we say that $G/N \cong G/K$?

I know it is possible for a group $G$ to have normal subgroups $H, K$, such that $H\cong K$ but $G/H\not\cong G/K$, but I couldn't think of any examples with $G$ finite. What is an illustrative example?


I have a large number of sites with the same bit of php inserted in all files that contain footer in their filenames.  //###==### malicious code //###==###   How to use SED or another command to remove all these in all files?

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


My pc was unused for several months(its a 5 year old acer desktop) and on boot up a screen came up indicating that the CMOS battery was low. Any time I restarted, as expected, the same screen came up and the time and date reset. However, I left the PC on overnight and the battery seems to have magically fixed itself. I know people are saying that the CMOS battery is not rechargeable but it seems that, in this case, that is exactly what has happened. Anyone have any insight to this phenomena? Just curious now.

Is a CMOS battery rechargeable? If so, what does its charger look like?


I was wondering what the relation is between a limit ordinal and the alephs. Are all limit ordinals alephs and if so can it be proven.

Maybe this is a trivial question. I see that every infinite cardinal is necessarily a limit ordinal, but is the converse true ?


I am reading Peskin's book on QFT and I reached a part (in chapter 4) where he is analyzing the two-point correlation function for $\phi^4$ theory. At a point he wants to find the evolution in time of $\phi$, under this Hamiltonian (which is basically the Klein-Gordon - $H_0$ - one plus the interaction one). Anyway, when he begins his derivation he says that for a fixed time $t_0$ we can still expand $\phi$ in terms of ladder operators in the same way as we did in the free (non-interaction) case (this is on page 83), i.e. $$\phi(t,\mathbf{x})=\int{\frac{d^3p}{(2\pi)^3}\frac{1}{E_\mathbf{p}}(a_\mathbf{p}e^{i\mathbf{x}\mathbf{p}}+a_\mathbf{p}^\dagger e^{-i\mathbf{x}\mathbf{p}})}.$$ I am not sure I understand why can we do this, for a fixed time. When we wrote this in term of ladder operators for the free case, we used the KG equation in the free case, which resembled to a harmonic oscillator in the momentum space, and hence we got the ladder operators. But now, the equation of motion is different (it has $\phi^3$ term, instead of 0, as before), so can someone explain to me why we can still use the same formula as before, even if the equation of motion is different?

I am trying to work through Peskin and Schröder and am a little stuck in Chapter 4 [section 4.2 p. 83 below eq. (4.13)], when he first treats interacting fields. The subject is the quartic interaction in Klein-Gordon Theory. They claim that:      "At any fixed time, we can of course expand the field (in the interacting theory) as before (in the free theory) in terms of ladder operators."    I don't see why this should be possible in general. Their argument for the ladder operators and the expansion in plane waves in the case of the free theory was that from the Klein-Gordon equation we get Fourier modes independently satisfying harmonic oscillator equations. However as far as I can see, once I add an interacting term I don't get these equations anymore.


I am trying to change permission and change the group permission of the folders which are shared through SAMBA (Samba PDC). Commands are as follows:  # chmod 766 /mnt/Format   but nothing changed.  Please help.

I have a script that I need to execute on an NTFS partition. The script's permission is set to 600.  I attempted to modify the permissions by running chmod 755 script.sh, which doesn't report a failure or anything - but it also doesn't change the permissions on the file:  $ stat script.sh    File: `script.sh'   Size: 297070      Blocks: 584        IO Block: 4096   regular file Device: 811h/2065d  Inode: 35515       Links: 1 Access: (0600/-rw-------)  Uid: ( 1000/  xxxxxx)   Gid: ( 1000/  xxxxxx) Access: 2010-09-30 14:05:16.041621000 -0700 Modify: 2010-09-30 14:05:05.070157000 -0700 Change: 2010-09-30 14:05:05.070475000 -0700  $ chmod 755 script.sh $ stat script.sh    File: `script.sh'   Size: 297070      Blocks: 584        IO Block: 4096   regular file Device: 811h/2065d  Inode: 35515       Links: 1 Access: (0600/-rw-------)  Uid: ( 1000/  xxxxxx)   Gid: ( 1000/  xxxxxx) Access: 2010-09-30 14:05:16.041621000 -0700 Modify: 2010-09-30 14:05:05.070157000 -0700 Change: 2010-09-30 14:05:05.070475000 -0700   As you can see, it remains unchanged.


This is a canonical question on how to perform a  using a RDBMS as a result of  on Meta. If you need to add more informations, please do not post new answer, but instead edit the community wiki answer.     Consider this table:  | student | course  | +---------+---------+ |  Adam   | Math    | |  Adam   | Science | |  John   | Math    | |  John   | Science | |  Jane   | Math    | |  Jane   | Physics |   I want to pull all students who are taking both math and science. This means Adam and John should be returned.

This is a very basic query I can't figure out....  Let's say I have a two column table like this:  userid  |  roleid --------|--------    1    |    1    1    |    2    1    |    3    2    |    1   I want to get all distinct userids that have roleids 1, 2 AND 3.  Using the above example, the only result I want returned is userid 1.  How do I do this?


I'm trying to add multiple items to my arraylist by using this code:    public static ArrayList<HashMap<String, String>> alarmClocks = new ArrayList<>();     public void q1() {             int[] multipleHours = {9, 11, 13, 14, 15, 17, 18}; //store here the hours for every alarm you want to set             int[] multipleMinutes = {45, 0, 0, 0, 45, 0, 45}; //store here the minutes             String[] multipleDestinations = {"Departure", "Quezon Heritage House", "Art In Island", "Quezon City Experience", "Quezon Memorial", " Destination 5", "Destination 6"}; //same thing for destinations             String[] multipleReminders = {"You need to go to Destination 1", "Timeout, Go to next destination", "Timeout, Go to next destination", "Timeout, Go to next destination", "Timeout, Go to next destination", "Timeout, Go to next destination", "Package Ended!"}; //and reminders             HashMap<String, String> alarm = new HashMap<>();             alarm.put(ApplicationConstants.HOUR, String.valueOf(multipleHours));             alarm.put(ApplicationConstants.MINUTE, String.valueOf(multipleMinutes));             alarm.put(ApplicationConstants.REMINDER, String.valueOf(multipleReminders));             alarm.put(ApplicationConstants.DESTINATION, String.valueOf(multipleDestinations));     alarmClocks.add(alarm);          }   but it prompts up an error like this  FATAL EXCEPTION: main   Process: com.sumo.traffic, PID: 26101   java.lang.NumberFormatException: Invalid int: "[I@429b9398"       at java.lang.Integer.invalidInt(Integer.java:137)       at java.lang.Integer.parse(Integer.java:374)       at java.lang.Integer.parseInt(Integer.java:365)       at java.lang.Integer.parseInt(Integer.java:331)       at com.sumo.traffic.HashMapAdapter.getView(HashMapAdapter.kt:39)       at android.widget.AbsListView.obtainView(AbsListView.java:2301)       at android.widget.ListView.makeAndAddView(ListView.java:1811)       at android.widget.ListView.fillDown(ListView.java:697)   at line HashMapAdapter.kt:39 i have this code:   val hourPicked = alarmList[ApplicationConstants.HOUR]!!.toInt();  val minutesPicked = alarmList[ApplicationConstants.MINUTE]!!.toInt();   The problem is that I want to insert multiple items in my array.

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


How can I go back to the login screen of Ubuntu via command line?  I often use reboot -n or shutdown -t now while I have terminal open but sometimes I just want to logout without rebooting.

Is there a terminal command that will log you out of your current desktop session and take you back to the login screen?


I am trying to create a file system/file commander in java, and I want to make the following loop a quit system that triggers when I type dc.  public static void main(String[] args)    boolean x; x=true;  String dc; dc="dc";         while (x=true) {          System.out.println("_____________________");         System.out.println("local disk C:");         System.out.println("bin");               System.out.println("_____________________");         String ltstcmdddd; ltstcmdddd = ltstcm.nextLine();         if (ltstcmdddd==dc) {             break;          }     }   So this is the code for the file commander, it's part of a game so ltstcm is a scanner, and lstcmd is a string you use to input commands for the game (Can't re-use it, I kept adding d's.), like I said before I want to leave this loop when I write dc, I made an if that checked lstcmdddd, I tried with checkingif (lstcmdddd=="dc") and that didn't work. I suspected that changing the value of the boolean x wouldn't work after discovering 'break', that failed. I then tried defining the string dc which contained "dc", and that didn't work either. I searched Stack Overflow about quitting loops, quitting loops failing, and changing values after defining a variable correctly. Nothing relevant to my problem, nothing I could salvage to solve the problem. (I AM NOT ASKING ABOUT COMPARISON!)

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


I have successfully created a field with my module and managed to show it on user registration form. The next step would be validating my field. There are two hooks for this, and I'm confused as to which one to use. One is hook_field_validate and the other is hook_field_attach_validate. I'm also confused as to how to refer to the field. $instance['user']['field_tckn_no']? (This is what dpm(field_info_instances('user') shows me. Also, one thing that confuses me is that hook_field_validate iterates over the fields but all I have is one field. Is it still the one to use?  Regards, K.

I'm a bit confused as for the difference between these two hooks,  and which one I should use for custom  validation of attached fields in my code.  Is there a better way to define a custom validation for an attached field (I am attaching the field programatically if that helps)?  EDIT: Looking more into it, I don't really get all that much information in hook_field_attach_validate(). All I'm pretty much getting is the entity_type, entity object and an errors array.  Whereas with hook_field_validate(), I get the field I'm actually validating against, which, I'm assuming is where I need to put the bulk of my custom field validation logic. The only issue I'm having now is that I'm unable to find a function that will invoke this method for me. Should I manually invoke this function or is there an API function I can use in this instance?


I found the bigints package but as its documentation shows, the symbol is simply scaled up in size which leads to a much thicker stroke:   Is there a package that deals with this properly, or failing that, can someone sketch out how I could achieve the correct result, maybe with some TikZ wizardry? I only want the basic integral sign, not oint or anything else.

Is there a possibility to draw large integral signs?  I have found the package  but I have the feeling it is not very professional...  Any better idea?


I have data in Excel that looks like this:  column1 column2 column3, column4, column5 Company1 email1 email2 email3 Company2 email1 email2 Company3 email1 email2 email3 email4 email5   I have about 25k rows of this data some maybe 25k companies and 40k email addresses. I'd like to make the data look like this:  Company1 email1 Company1 email2 Company1 email3 Company2 email1 etc.

I have a product database in Excel with several hundred entries, each of which has from 1 to 3 "tiers" of pricing: Standard, Deluxe, and Premium. Each tier has its own SKU (A, B, or C added on to the end of the base SKU) and price. My data is like this:  Name, Description, Price A, Price B, Price C, SKU A, SKU B, SKU C name1,      desc1,   14.95,   19.95,        , sku1A, sku1B,  name2,      desc2,    4.95,    9.95,   12.95, sku2A, sku2B, sku2C name3,      desc3,   49.95,        ,        , sku3A,      ,   How would I go about getting the data to look like this:  Name, Description,   SKU, Price name1,      desc1, sku1A, 14.95 name1,      desc1, sku1B, 19.95 name2,      desc2, sku2A,  4.95 name2,      desc2, sku2B,  9.95 name2,      desc2, sku2C, 12.95 name3,      desc3, sku3A, 49.95   If it helps, I'm going to be importing these products into a Magento installation.  Thank you in advanced.


I have upgraded from windows 7. MY OEM sticker has been Erased. I want save my Product key of windows 10. I am going to clean install it. what is command or Gui method to find the Product which is already installed.

I just upgraded from Win 8.1 to Win 10 and I was trying to find the product key for the new Win 10 OS.  I found product ID but I am not completely sure whether "product ID" and "product key" is the same thing. The link "change product key" suggests that it is but I would like to have it confirmed.    Can anyone please confirm or clarify?  Thanks!


The question: $$\lim_{(x,y)\rightarrow(0,0)}\frac{\sin(x+y)}{x+y}.$$ I tried this using $y=x$ path and $y=0$ path and both approach to the same value, $1$. My problem is to show that this value really approaches to one on any path  using the $\varepsilon$-$\delta$ definition.

I want to prove that $\lim_{(x,y)\to (0,0)} \frac{\sin(x+y)}{x+y} = 1$  Is it sufficient to say that if $u = x+y$ then as $(x,y) \rightarrow (0,0)$ then $u \rightarrow 0$ and then evaluate $\lim_{u\to 0} \frac{\sin u}{u}$ which is 1 by L'Hôpital's rule?  I feel that this is somehow "cheating" and I would really like to prove it in a more rigorous way, i.e., by using an $\epsilon$ - $\delta$ argument.  I have tried for a long time to use the one variable version and prove that if $0 \lt \sqrt{x^2 + y^2} \lt \delta$ then somehow $0 \lt |x+y| \lt \delta$ and it would follow from the one variable case that $| \frac{\sin(x+y)}{x+y} - 1| \lt \epsilon$. However, because $|x+y| = 0$ when $y = -x$ I am not getting anywhere with this.  Any input on this would be helpful :)


I know there are infinitely many proper subgroups of $\mathbb{Z} \oplus \mathbb{Z}$, but is $\mathbb{Z} \oplus \mathbb{Z}$ cyclic?

The full problem is as stated in the title. I am here to check if this is a valid proof. I thought it would be easiest using Linear Algebra.     Recall that an infinite cyclic group is isomorphic to $\mathbb{Z}$. We wish to show that we do not have an isomorphism between $\mathbb{ZxZ\;and\;Z}$. Note that $\mathbb{ZxZ}$ is an infinite group (under addition of course). Now, in order for there to even be potential for an isomorphism, two spaces must have equal dimension. Since the $\mathbb{dim(\mathbb{ZxZ})}=2>\mathbb{dim(\mathbb{Z})}=1$, we know that $\nexists$ an isomorphism between our spaces. Hence, $\mathbb{ZxZ}$ is not a cyclic group.   My question (besides a validity check): was there a better way to prove this? I just found this to be the easiest way.  EDIT Totally wrong with this one. Back to the cutting board.


My chair would like me to center my data for my hierarchical multiple regression, including several moderators and interaction effects. It seems recommended to do this, if not to help minimize multicollinearity, but additionally (and more crucially) to help with interpretability of my interactions. However, where I am uncertain is regarding what to do with some variables I had already thought to transform due to problems with skewness. Do I center these variables? I feel like that might mean transforming them, in essence, twice, but remain unsure. If I don't transform them, how can I use them in an interaction with a centered variable?

In some literature, I have read that a regression with multiple explanatory variables, if in different units, needed to be standardized.  (Standardizing consists in subtracting the mean and dividing by the standard deviation.)  In which other cases do I need to standardize my data?  Are there cases in which I should only center my data (i.e., without dividing by standard deviation)?


I want my enums to return string values. Not the Enum Description, they must be returning a string value, instead of an int. The code sample below is exactly what in my mind, but obviously doesn't compile.  public enum TransactionType {     CreditCard = "C",     DebitCard = "D",     CreditCardAuthenticationWithAuthorization = "CA",     DebitCardAuthenticationWithAuthorization = "DA" }   Any ideas?

I know the following is not possible because the Enumeration's type has to be an int  enum GroupTypes {     TheGroup = "OEM",     TheOtherGroup = "CMB" }   From my database I get a field with incomprehensive codes (the OEM and CMBs). I would want to make this field into an enum or something else understandable. Because if the target is readability, the solution should be terse.  What other options do I have?


The description of the DnD 5e wish spell states "Finally, there is a 33 percent chance that you are unable to cast wish ever again if you suffer this stress." There are items and situations that grant a "free" wish spell. An example of this is the deck of many things (moon card). Now,   if a player gets such a free wish, is there still a chance that they will not be able to cast wish ever again? if a player already failed the "33% test" in the past, will they be able to use a free wish when it is granted to them?   I know that a DM has, of course, the final say in this, but I am curious to what is common among other DMs. The thing is that 1d3 wishes from a DoMT sounds fun, but it seems a bit disappointing to me if a player gets such a card but is already not allowed to use wish spells anymore (or if the card causes a player to be unable to use wish ever again).

One of my characters recently received the luck blade magic item with 2 wishes in it. The description of the luck blade (DMG, p. 179) states:     Wish. The sword has 1d4–1 charges. While holding it, you can use an action to expend 1 charge and cast the wish spell from it. This property can't be used again until the next dawn. The sword loses this property if it has no charges.   The spell is cast from the item.  Would my character suffer the negative effects of wishing for anything besides duplicating another spell, since it states the spell is cast from the luck blade?


Hi so im displaying food, health an water on the screen in a text box by using UnityEngine.UI and making text variables. They are all defined in the update function so they will keep changing and are all defined one after another with nothing in between. it will only call the first one there and the others it gives me the error message above.

Since many users are facing the NullReferenceException: Object reference not set to an instance of an object error in Unity, I thought that it would be a good idea to gather from multiple source some explanation and ways to fix this error.  Symptoms I am getting the error below appearing in my console, what does it mean and how do I fix it?  NullReferenceException: Object reference not set to an instance of an object


What do I do when i get this message? I can't join any servers at all!

Upon entering any given minecraft server, after a minute or two I am forced out of the server, and I'm given the following error:  java.io.IOException: An existing connection was forcibly closed by the remote host.  What does this mean, and how can I prevent it from happening again?


I am very good at modelling but now I need T-pose male, female, animals and vehicles blueprint. Please suggest me websites to get a front and a side view of real-world objects. What I need right now is the front, side and top view of T-posed female. I know it is not a blender question but I wanted to ask this to a community familiar with 3D. I am not sure of the tags I have used.

I'm a newbie.  I've gone through a number of tutorials and want to get some actual experience with modeling. But, I don't know where to go to get good reference images for modeling with front/sides views.  Can anyone recommend the best places to find such images?


Is there a good ps2 emulator for ubuntu 13.10.I want a stable ps2 emulator to play on ubuntu

(playstation 2 emulator) won't work under Ubuntu 11.10 x64. It worked when I was running Ubuntu 11.10 x86.  When I downloaded the  I extracted it in the home directory and run the launch_pcsx2_linux.sh file, it closed immediately. When I open GNOME-terminal and typed in: ./launch_pcsx2_linux.sh I got the following error:     ./pcsx2: error while loading shared libraries: libwx_baseu-2.8.so.0:   cannot open shared object file: No such file or directory   When I type sudo apt-get install libwxbase2.8-0 it says that it is already installed.


I am a Java programmer making his way into Python, and some things are just baffling. For example, adding variables to functions, dynamically. For example:  def main():     print ("Hello World")   main.temp = 50  print (main.temp)   What does that even mean? Why would you want to add a variable to a function? Why is that allowed? And why am I allowed to reference the function via main.temp?

Not many are aware of this feature, but Python's functions (and methods) can have . Behold:  >>> def foo(x): ...     pass ...      >>> foo.score = 10 >>> dir(foo) ['__call__', '__class__', '__delattr__', '__dict__', '__doc__', '__get__', '__getattribute__', '__hash__', '__init__', '__module__', '__name__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'func_closure', 'func_code', 'func_defaults', 'func_dict', 'func_doc', 'func_globals', 'func_name', 'score'] >>> foo.score 10 >>> foo.score += 1 >>> foo.score 11   What are the possible uses and abuses of this feature in Python ? One good use I'm aware of is 's usage of the docstring to associate a syntax rule with a method. But what about custom attributes ? Are there good reasons to use them ?


what is the purpose of the arrow on bottom right side in Ubuntu budgie. how to remove it. it go away after restart and comes back after sometimes. i don't think i have installed/added anything for the arrow and also it always on top of all programs .

I think I've got this weird arrow since I installed Ubuntu 18.04. It is annoying, because I can't click a tab in a browser which is under this arrow. And I am just worried, what that is. It is always there


I'd like to have a USB stick that is capable of installing both Windows 10 and Ubuntu (and if possible boot into Ubuntu) with maybe a sort of menu to choose the installer to run. Is there any way to do this (Purpose: I have one USB stick, I do a lot of computer stuff, including OS installs. Ubuntu happens to be one of my personal choices of OS)

I know how to make a UEFI bootable stick to install Ubuntu (explained ) and I know how to make one to install Windows 7 (, sorry). I guess for Win 8 the procedure would be similar, but I haven't looked into it.  I also know how to make a legacy bootable stick from which I can install Windows and Ubuntu using YUMI. I have failed so far though at creating a UEFI bootable stick that can do this. When I do a UEFI boot from my YUMI multiboot stick it gives me no option to choose between Ubuntu and Windows (hardly surprising I guess) and instead simply UEFI boots Windows (which I find kind of surprising to be honest but maybe this is due to the fact that I added the Windows image after the Ubuntu image and this simply replaced Ubuntu's EFI boot files).  So how would I proceed to create such a bootable stick?


I hope to make a 3D model of existing landscapes in blender, with the hope of eventually adding them to video games that allow you to create your own maps. I tried using the following two tutorials with no luck:  and   With the video, I do have 3D maps, but I think I have too large an area with too low of a resolution. This is because when I try to zoom in, it seems the roads are a bit blurry. I am trying to start out with somewhat large areas, like the island of Nusa Tenggara Timur in Indonesia, with the hopes of slicing out a smaller section that can be used in a game without crashing. I am quite new to blender and while I can follow along the video tutorial, I’m not 100% understanding everything I’m doing and what the alternatives are.

Since asking for tutorials, videos, resources, links to other content or downloads is considered off topic here, this is a specifically created Community Wiki which gathers resources for Blender and it has been approved by the .  Just write in the appropriate answer/section. If you have concerns, questions, post a  question, so we don't clutter the comments, but you can link your meta question from the comments.  Questions regarding such resources are not allowed anymore, except for very specific and on topic requests (ask on  if you're unsure about your question). Follow the instructions made in the question about how to post, what can be posted, etc.  Learning             Assets    (also see: )   Reference Images/Blueprints (also see: )    Tools    (also see: )      Other   Special Interest ()     Also see the .


So I created my own RestResource, like so:  /**  * Provides a resource to get/create content data.  *  * @RestResource(  *   id = "mycontent_content",  *   label = @Translation("My content"),  *   uri_paths = {  *     "canonical" = "/api/content/{type}",  *     "https://www.drupal.org/link-relations/create" = "/api/content/{type}"  *   }  * )  */ class ContentResource extends ResourceBase {      public function get($type) {         // Works     }      public function post($type) {         // Doesn't work     } }   GET works fine, but I can not post a regular JSON object.  With the content-type set to application/json I always get this error:  {     "error": "Could not denormalize object of type , no supporting normalizer found." }   I guess it's trying to create an entity out of it, but that's not what it is. I just want the damn JSON object as it is.  Is there some way to do this?

I created rest resource plugin in a custom module and need to send some JSON data with the request, and access it in the post function. At the moment my post function does not do anything but return some dummy JSON data so I know it is working.  It seems that whenever I try to pass JSON data with the request, it will give me this error: "Could not denormalize object of type , no supporting normalizer found."  If I then try to get this data using file_get_contents('php://input'), it will give me a 403 forbidden error. But if I try to return the same data that I get from file_get_contents('php://input') from the post function, I get the normalizer error again.  I wasn't able to find much information on even making this REST resource and even less on this issue now, so if anyone has any input I would greatly appreciate it, thanks!


I have multiple vector files  needed to merge them without any error, but there is gap between one layer and another layer as shown in image 1 respectively. How can I rectify this error?  I merged the layer files but I can see the gap in the layer as shown in Image-2.  PS: All the operations are carried out in QGIS. How can I resolve this issue?

I've done the following process:   take a set of points, each one representing a hotel with a field that says the "neighborhood" that the hotel is in (field is called "full_hierarchy") Performed SNN clustering on these points Created Voronoi Polygons using the clusters Dissolved the Voronoi polygons on the field "full hierarchy")   And I get this:    My problem is that there are bits of each polygon inside of other polygons, as you can see in my image where I have highlighted one of my neighborhoods.  Any ideas how I can get rid of these bits so that each of my polygons is complete with no "islands" in them?  I am going to be doing this on a mass scale, so I need a process that I can do on QGIS   Would also be interested in smoothing the polygons, if possible.  EDIT: Using the options recommended to be below when using the eliminate sliver polygons:    But the output layer looks exactly the same - nothing changes?


I have a TreeMap and a working by key Comperator:  Map<String, Long> movieReviewsTreeMap = new TreeMap<String, Long>(new MyComperator());  class MyComperator implements Comparator<String>{ @Override public int compare(String s1, String s2) {                 return s1.compareTo(s2);             }         }   I'm trying to modify the Comparator in order to compare TreeMap entries. My goal is to sort TreeMap by value (highest to lowest), and by key in case two values are equal.  Thanks.

I am relatively new to Java, and often find that I need to sort a Map<Key, Value> on the values.  Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key.  Is there an easier way?


Is there any way to show file suffixes by default at the end of the file name in unity? For example: If I have a file called test.bin, it is shown as test in Unity. I'd like it to be shown as test.bin by default in Unity.

I'm new to Ubuntu. What's the application extension for development reasons? I know Windows is mainly .exe and Mac is .dmg or .app. Does Linux have an unique one?


I have several SQL Server 2008 R2 setup discs, but they're not labelled with which edition (Standard, Developer, Enterprise etc.) they are for.  Running them doesn't give much help as it just shows that it's a SQL Server 2008 R2 install, nothing more specific (unless I'm looking in the wrong place).  I hope that one of you smart cookies will be able to point me in the right direction to find out the edition of SQL Server on the discs.

Without installing SQL Server media 2008 and 2012, how can we know that the media belongs to a certain edition (like Developer, Standard or Enterprise)?


One word to denote a person who derives pleasure from another's misfortune?

I believe it is what the Germans call "". English itself has no such equivalent word. (Although it has been adopted as a .)  Does an idiom exist that describes it?


I am looking for a movie, problably from the 1970s, where a couple boards a deserted spaceship. When using the onboard computer terminals, the computer answers a few simple questions but on more elaborate questions crashes repeating the phrase "warn the bridge".   I saw this movie when I was a kid but I only caught the first few minutes. It seemed interesting enough (for a 10 year old, that is...).

I have the vaguest memory of a TV show (maybe a BBC import?) in which the protagonists were moving through the sections of a massive generation ship whose inhabitants had forgotten that they were on a spaceship... I know there was an RPG with the same plot (which, after all, is a pretty great blank slate) but I definitely feel I saw this on a static-filled 13" B&W TV back in the day...


Looking at the  I have a feeling that its favoring the bigger sites. Because their 'hot questions' get more time in the spotlight, they in turn get hotter and keep others out of the spotlight. To me it looks like Programmers, Super User and Stack Overflow are over-represented, which especially in Programmers case I believe is due to the users there being much more liberal in upvoting answers than the other sites. I don't propose filtering the list, because I do believe its a great thing for every site to have their best questions in the spotlight regularly. However, I feel that its currently not working as intended. Rather than being a nice overview of the network, it looks like we're only seeing a small subset instead. Is there any data available to prove me right or wrong?

Some sites appear far more often in the hot questions list than other sites. I don't have any hard data on that, as that kind of data is just not publicly available, but I'm pretty sure my subjective impression on that is reasonably accurate.  Those sites don't appear more often because they are inherently more interesting, but because they have certain voting and answering patterns that favor them in the hot questions algorithm. I would argue that the goal of the hot questions list is to present questions from a large variety of SE sites to the whole network, and to show possibly interesting questions to users that would not have found them otherwise.   To achieve this goal, the spots in the hot questions list should be distributed among all SE sites. The algorithm should try to get a good sampling of all sites, and it should try to normalize the results for varying voting behaviour. At the moment, sites that intrinsically get more votes and more answers per question seem favored in the algorithm.  So I think one part of the algorithm should try to identify questions that get an unusally high amount of votes and views for that site, and give the smaller sites a chance this way.  I'm not sure on how exactly this weighting should be done, as a complete normalization would likely not work across the huge difference in scale for all the SE sites.  As a specific example that the current algorithm is broken I'll present . I don't think any site should occupy a third of the whole list.   Here's another instance where one site is overrepresented at the top of the list:


My internal memory (I'm not good at English so i don't know exactly what we say it) is full for know. Look at this image 👇🏻👇🏻👇🏻  This sentence is in my dolphin (Home folder) How I can increase it? I use Kubuntu 20.4 LTS I have both Kubuntu and Windows. Feel free to edit my question because I am sure it may have some spelling and writing problem's. Note:  is not my answer because this is for v 12.4 and i use 20.4

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


I'm having trouble exporting an SVG(or a PDF for that matter) from the QGIS print composer. I have a relatively simple map that should, when exported as an SVG, be maybe around 1MB in size, tops. But QGIS is exporting a 450MB file that's way too large for me to do anything with. I'm assuming it's somehow including a whole lot of data that isn't on the page but I can't verify because the file is too large for my computer to open in Inkscape.  I've exported good, small SVGs in the past where everything that didn't show on the print composer page was simply not included. Any ideas what's going wrong this time? Thanks!

I have put together a map using the British OS Strategi data set which is pretty densely detailed. It is surveyed at 1:250,000 and so contains roads down to track level, rivers, villages, railway lines - you name it. There's a lot of data.  When I try and export an image version of the map (at about 1m x 1m), I always get an 'Exception: bad allocation' error. This happens when I try to export as a raster image or PDF. I have tried printing to a PDF generator (CutePDF) but the same thing happens. The print spooler shows the file size at 1.6Gb.  I am running QGIS on a dual core 2ghz Windows 8 system with 4Gb of RAM. Is it just a case of the file being too big? Is there anything I can do? Or is there an alternative, free GIS package that would do a similar job?


I want to send the email notifications to users of the site. I have a basic template file with the HTML markup I want to send in the email.  How do I import that HTML file (which is in the root folder of the project) in my module?

I am creating a simple module which will be sending HTML emails to users for deals in our website.  I have searched a lot, but I can't find a solution proper solution for Drupal. Now I can send mails but plain text.  What is a step-by-step procedure to send HTML emails in Drupal 7?  function example_form_submit( $form,&$form_state) {     $friend_email=$form_state['values']['friend_email'];     $mailto =$friend_email;  //gift to a friend     $mailfrom ='no-reply@example.com';     $subject = "another message for  HTML email from example.com";     $body="
Hello EMAIL, i here i want to be bolded
";     if (drupal_mail('example', 'send_gift', $mailto, language_default(),$params,$mailfrom,TRUE)) {         drupal_set_message(t('Your gift was sent successfully!!!'));     }     else {         drupal_set_message(t('Error occured while sending your mail!!!'));     }   /****hook_mail*/ function example_mail($key,&$message,$params) {     $language = $message['language'];     switch ($key) {         case 'send_gift':             $message['subject']=t($params['subject'], $var, $language->language);             $message['body'][]=$params['body'];             $message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed';         break;     } }