Many times we come across examples like these :-  Hobbits are an unobtrusive but very ancient people... For they are a little people, smaller than Dwarves... ~ From The Fellowship of the Ring, JRR Tolkien  Is the first sentence grammatically correct? To me it seems 'an' shouldn't go with 'people'. Is it just a play of language by Tolkien or a regular form. When are such phrases correct and when would they be incorrect? In the second sentence, 'a' ruins the regular English and sounds weird. Again, are there examples from other writers? When are such sentences correct?

Can you please clarify the relation and differences between these nouns?   For example, is it proper to use "persons" instead of "people"? Are they the same? As I believe that "people" is plural, how come there exists the plural of the plural (=peoples)? Does it have any usage?


My wife's iphone is full. I decided to free up some space by removing the photos. I connected iphone to PC and copied over complete photo collection. Then I disconnected the device and started removing each single photo by hand! Well, because you just can't select all and remove photos from your device in 2016 unless it is Android, Windows or Blackberry phone. So, after spending enough time to delete 1.5k photos by hand, I removed them from "recently deleted" folder only to see that the available space is 0 bytes. I restarted the phone. Tried to take a photo, no luck. The iphone refuses to take a picture because there is not enough space on the device. This is peculiar because I have zero photos according to "camera roll". So, now, I can't neither install an new app nor take photos, ffs Carl!  I am literally laughing while writing this because the question is so dumb simple I've never expected to ask. How to actually remove the photos from iphone to free some space?  This is iphone-4 with iOS 9.3.5. Some screenshots.

Problem from iOS 10.1.1 to 10.2.1.  I have no photos at all on my iPhone yet in settings it says my photo library is taking up ~200MB of space. The number of space being taken up keeps changing constantly(in the settings app on my phone). In iTunes, the storage bar at the bottom does(when in the sync menu) not show photos.           What is taking up this storage, and how can I reduce it?  Troubleshooting:   I disabled iCloud photo library and iCloud photo stream, still showing the same thing. Tried doing what @User9125 said, didn't work. I had set the date all the way back when I first got my phone, nothing showed up. Rebooting I had hundreds of photos in Whatsapp, I deleted them but I didn't get the storage back. It didn't even make a dent in the amount of storage being used by Photos so I don't think a third-party app could be taking up this storage. I don't think a system app is taking this space either, because I cleared the pictures in mail and messages. I tried using (through sideloading) in Secure Mode and Fast Mode, but it did not clear up the photos.


why the gravitational potential comes out to be negative  that is $-GM/r$? where G is gravitational constant M is mass of the body r is position at which the mass has to be brought from infinity.

I am confused by how to deal with the negative sign in the equation $U=-GMm/r^2$ in the following problem:  If the distance between two masses is tripled, then the magnitude of the gravitational potential energy is: A) Increased by a factor of 3 D) Decreased by a factor of 3 -- correct answer  The cause of my confusion is that if r = 1 and you assume U = -1, then when r = 3, U = -1/3. I am thrown off by the negative sign. Isn't -1/3 actually a larger value than -1? So why is this considered a decrease? Is it because they specify factor of 3, and an increase by factor of 3 would actually be -1*3 = -3? Furthermore, if potential energy decreases as r gets larger, then why does a pen gain potential energy as you lift it further away from a table and why does the potential energy decrease/convert to kinetic energy when you drop the pen? I have only taken intro physics, so some of the other potential energy sign convention questions went over my head.


Is there an English word for "a person who is spoken to"? I guess you could say speakee or talkee or something but I'm looking for a word that's already well established.

Let's say there is a conversation being analysed, and the people in the conversation are being divided into two groups: The people who speak and the people who hear.  If the people who speak are called "speakers", will the people who hear be called "hearers"?


I have create an application with Delphi XE3. My application have a trayicon (I use TCoolTrayIcon for this) so when the user minimize it there is not a icon on taskbar but only on trayicon.  To avoid more that one istance of my application I use this code:  procedure CreateMutexes(const MutexName: String); const   SECURITY_DESCRIPTOR_REVISION = 1; var   SecurityDesc: TSecurityDescriptor;   SecurityAttr: TSecurityAttributes;   MutexHandle: THandle; begin   InitializeSecurityDescriptor(@SecurityDesc, SECURITY_DESCRIPTOR_REVISION);   SetSecurityDescriptorDacl(@SecurityDesc, True, nil, False);   SecurityAttr.nLength := SizeOf(SecurityAttr);   SecurityAttr.lpSecurityDescriptor := @SecurityDesc;   SecurityAttr.bInheritHandle := False;   MutexHandle := CreateMutex(@SecurityAttr, False, PChar(MutexName));    if MutexHandle <> 0 then     begin       if GetLastError = ERROR_ALREADY_EXISTS then         begin           MessageBox(0, 'You cannot start more than one instance of ContLab.'                       + #13#10 + 'Use the instance has already started.',                        'ContLab', mb_IconHand);            CloseHandle(MutexHandle);           Halt;         end     end;    CreateMutex(@SecurityAttr, False, PChar('Global\' + MutexName)); end;   In this way when the user start application 2 times he get an error message and the second instance is terminate.  Now I'd like not show the error message but open the main form of first instance of application and terminate the second instance.  Is it possible?

How do i tell if one instance of my program is running? I thought I  could do this with a data file but it would just be messy :(  I want to do this as I only want 1 instance to ever be open at one point.


We have quite a few questions related to WordPress and a  that is specialized for it, why not allowing the  to be displayed for closing those questions for migration?  They have a better acceptance and answer rate over there not to mention that probably most of the questions are duplicates as in they exist on both sites(SO and WP.SE) from people's recommendation for them to try their question there instead so it would be convenient to eliminate both at once.

I'm noticing a lot of WordPress questions being asked on Stack Overflow lately. I can't flag these to be moved to wordpress.stackexchange.com because it's not in the list:    Can it be added? Are there any other Stack Exchange sites worth adding?


Add handler  if(!ClickHandled)     this.Click += (s, e) =>{ }   Remove handler:  if(ClickHandled)     this.Click -= (s, e) =>{ }   Is there a way to know if there is already an event handler attached to the control (and possibly get the list of them for example get the list of event handlers for click event)?

I have a WinForms form that won't close. In OnFormClosing, e.Cancel is set to true. I am guessing that some object in my application has bound to the Closing or FormClosing event, and is blocking the close. To find out, I'd like to determine what delegates are bound to one of these events.  Is there a way to determine the list of handlers bound to an event? Ideally I would do this via the Visual Studio debugger, but can write code in the application to find the handlers if necessary. Understanding that an event is like a hidden private field, I've navigated through the Debugger to the "Non-Public Fields" for the "Windows.Forms.Form" ancestor of my form, but to no avail.


Is there any physical risk of damage, such as fire or explosion, with overchargering such a low rated capacitor to 5V?  Assume the Capacitance of the supercapacitor is 5F. You can further assume it's this .

From what I found the data sheets usually only specify the nominal voltage, not Absolute Maximum Value or similar.  I need to use supercapacitors for a project where they will run for a total of ~20 2s discharges. Can I charge them to a higher voltage than the 2.7V recommended? What are the risks?


Since my theme's font , I add this code to style.css to change the font. It does work:  @font-face {     font-family: 'new-baskerville';     font-style: normal;     src: url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.eot');     src: local('new-baskerville'), url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.eot') format('embedded-opentype'), url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.woff') format('woff'); }  .new-baskerville{font-family: 'new-baskerville' !important;}          body, h1, h2, h3, h4, h5, h6, p, blockquote, li, a, #menu-main-menu li a, #menu-main-menu li span, font-size: 20 em;{     font-family: 'new-baskerville' !important; }   However, the font-size attribute doesn't work. Even if I set it as 20 em, it still the same size. Why does this happen?      (That code is generated by  plugin)

Adding this to the style.css works:  * { font-family: "Courier New", Courier, monospace; }   Probably because Courier New is widely popular and supported. However, using this on my custom font doesn't work:  @font-face {     font-family: 'new-baskerville';     font-style: normal;     src: url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.eot');     src: local('new-baskerville'), url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.eot') format('embedded-opentype'), url('/wp-content/uploads/useanyfont/190811081519New-Baskerville.woff') format('woff'); }   Or chaning @font-face to * doesn't work either. The files do exist in the path. Do you know why is that?


I want to change the text on a link to download a file in my node template. In Manage Display I have selected  Generic File as the formatter which outputs this    but I want to change it to this    How can I do this?

I have a bunch of files that are displayed in a view; i'm using 'generic files' setting to display them; the problem is that some files have really ugly names like '1002-32-eda.pdf' i'd like to change the name to 'download' but keep the 'mime' detection (small icon on the left side; like pdf, word etc).  Any example on how to change this ?


I wanted to know if there exists a formula or a script that generates the period length for the reciprocal of prime numbers. So for example $\frac17 = 0.142857142857142857$ so a period length of $6$. I know there is a 10^k mod p but this takes too long for large numbers. I have seen in this question:  @Ross Millikan mentioned that "The period is always a factor of the quotient of the denominator" but I don't know of any literature behind this. If you know anything about literature on this idea or a formula that can quickly calculate the period length for very large primes, I would be grateful if you can let me know Update: What I want to know more about is Ross's observation and why couldn't that be used to calculate the repeat digit period for very large numbers? So that's why I asked for literature on this. Thank you.

I noticed that , given an operation like $\frac{n}{m},\;n,m \in N$ that result in a periodic decimal number, computes really fast the length of the period.  E.g. $\frac{3923}{6173}$ has a period of 3086: .  I was wondering how this computation is done: is there some method to do this (except the trivial one of executing the division and looking for a sequence repetition) ?


I am trying to run the following script.  #!/bin/csh # USAGE EXAMPLE: solve_mysteries.scr ops6.txt 2 # USAGE EXAMPLE: solve_mysteries.scr allops.txt 1800 set opsfile = $1 set maxtime = $2 set f = $3  set outfile = brute_solutions.dat set outfile2 = brute_constant.dat set outfile3 = brute_formulas.dat if -f $outfile /bin/rm $outfile if -f $outfile2 /bin/rm $outfile2 if -f $outfile3 /bin/rm $outfile3  echo Trying to solve mysteries with brute force...  echo Trying to solve $f... echo /bin/cp -p $f mystery.dat /bin/cp -p $f mystery.dat echo $opsfile arity2templates.txt mystery.dat results.dat >args.dat  timeout {$maxtime}s ./symbolic_regress3.x   I get the following output  ^M: Command not found. ^M: Command not found. Trying to solve mysteries with brute force... ^M: Command not found. ...ing to solve ../example_data/example2.txt_train  mystery.dat./example_data/example2.txt_train /bin/cp: cannot stat '../example_data/example2.txt_train'$'\r': No such file or directory ^M: Command not found. timeout: invalid time interval ‘60\rs’ Try 'timeout --help' for more information. ^M: Command not found.   Any idea why I am getting this "^M: command not found" error?

When I open the file in Vim, I see strange ^M characters.  Unfortunately, the world's favorite search engine does not do well with special characters in queries, so I'm asking here:   What is this ^M character? How could it have got there? How do I get rid of it?


What is the actual name of character c2 in the anime code geass? I would also like to know the name of v2 if that is possible.

Disclaimer: I am not asking about speculation on C.C's (or V.V's) real names  In Code Geass, C.C implies that she abandoned her real name and has since forgotten it     Lelouch, do you know why Snow is white? it's because it has forgotten it's name   When talking to Lelouch about if she was human she says that if she wanted to be seen as human she would have a more human name, as if she hinting that her name C.C was something she chose. V.V also shares the same kind of name but nothing is ever said about it.  in Etrian Odyssey Untold, the AI in charge for firing Gungnir and Ricky's friend is named Mike however is spelled as M.I.K.E which stands for Memetic Installation Keeper Engine.  So i am wondering, does C.C and V.V stand for anything?


Evaluate:  $$\int_0^1 \frac{1-x}{(1+x)\log(x)}\, dx$$  Wolfram alpha gives an answer of $\log(2/\pi)$, but I have been unable to prove this. Help appreciated.

The original question was to evaluate:   $$\int_{0}^{1} \frac{1-x}{(1+x) \ln x}\,dx$$  Using the substitution $x=\tan^2 \theta $, I simplified it down to the integral $\int_{0}^{\frac{\pi}{4}} \frac{\tan \theta - \tan^3 \theta}{\ln \tan \theta}$.  From here, I am stuck and am not sure where to continue.


Let $f:\mathbb{R}\setminus \left \{ 0 \right \}\to\mathbb{R}, f(x)=\frac{1}{x^2}\cdot e^{\frac{1}{x}}$ $x_{0}\in \left ( 0,\frac{1}{2} \right )$, $x_{n+1}=f\left ( \frac{1}{x_{n}} \right ) \forall n\in \mathbb{N}$  Show that: 1) $(x_{n})_{n\in \mathbb{N}}$ is convergent 2) $\lim_{n\to\ \infty }x_{n} = 0$  EDIT: Well, going to that link, someone says that $x_{0}$ is important when talking about the convergente of the sequence, and that's what that specific person forgot to mention.

\begin{align}f(x) &= \dfrac{e^{1/x}}{x^2}\\ x_{n+1} &= f\left( \dfrac{1}{x_n}\right)\end{align} Show that $x_n$ is convergent and that its limit is $0$.    It is very easy to find the limit from the recurrence relation. Just plugging $l$ instead of the terms of the sequence. But how do I show it is convergent?   I tried to evaluate the difference $x_{n+1}-x_n$ but its a messy calculation... Also I tried using the function monotony. But I don't see how it tells me something about the function


I am using good old Borland's TurboC compiler for DOS. When I use malloc() on compact memory model and write anything to the allocated memory, program freezes at some point (I suspect malloc() returns pointer to somewhere I shouldn't write). When I do the same on small memory model, it works fine.  I took a look on the allocated memory and the pointer the malloc() returns, using this small piece of code:  #include <stdio.h>  unsigned char *x; unsigned int i; unsigned int mds, mss;  #define X(a) x[i+(a)]  int main(void) {      // show current SS and DS     asm {         mov AX, DS         mov mds, AX         mov AX, SS         mov mss, AX     }     printf("ds=%04x, ss=%04x\n", mds, mss);      // allocate memory and show the pointer     x = (unsigned char*)malloc(128);     printf("x=%p\n", x);      // write out contents of the allocated memory     for (i = 0; i < 128; i += 16)         printf("%p: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n", &x[i], X(0), X(1), X(2), X(3), X(4), X(5), X(6), X(7), X(8), X(9), X(10), X(11), X(12), X(13), X(14), X(15));      free(x);     return 0; }   When I compile this for small memory model, I get:  tcc -ms -IC:\turboc\include -LC:\turboc\lib -etest.exe test.c  ds=02f9, ss=02f9 x=05f2 05f2: 00 00 00 ... 00 0602: 00 00 00 ... 00 ... 0662: 00 00 00 ... 00   When I do the same with compact memory model, I get:  tcc -mc -IC:\turboc\include -LC:\turboc\lib -etest.exe test.c  ds=034f, ss=0391 x=0000:0004 0000:0004: 08 00 70 00 ... 08 00 70 00 0000:0014: 54 ff 00 f0 ... a5 fe 00 f0 ... 0000:0074: a4 f0 00 f0 ... 60 14 00 f0   The pointer 0000:0004 looks suspicious to me and I suspect it to point somewhere outside the heap. I do not recognize the contents, but if I write to the memory, the program freezes.  What am I doing wrong and what should I do to get correct pointer from malloc()? Any suggestion will be appreciated.

In , someone suggested in a  that I should not cast the result of malloc. i.e., I should do this: int *sieve = malloc(sizeof(int) * length);  rather than: int *sieve = (int *) malloc(sizeof(int) * length);  Why would this be the case?


I want to solve this problem, but I have no idea how I can start:     If $K$ is a field, $(a_1,...,a_n) \in K^n,$ and $I$ the ideal $I=\langle x_1-a_1,...,x_n-a_n\rangle$, then how can we prove that $I$ is a maximal ideal?   One example: Is $\langle x^2+1 \rangle$ a maximal ideal of $ \mathbb{R}[x]$?

$K$ is field. $a_1$,$a_2$ elements of $K$. Show that $(x_1-a_1,x_2-a_2)$ is a maximal ideal of $K[x_1,x_2]$.   $K[x_1,x_2]$ is UFD so if $K[x_1,x_2]/(x_1-a_1,x_2-a_2)$ is field then $(x_1-a_1,x_2-a_2)$  is maximal ideal.  If I can show that $K[x_1,x_2]/(x_1-a_1,x_2-a_2)$ isomorphic to $K$, we can verify that $(x_1-a_1,x_2-a_2)$ maximal ideal of $K[x_1,x_2]$.  thanks for helps and comments.


There are a variety of different ways to define the natural exponential function, but the definition that feels the most conceptually elegant to me is to define it as the function that is its own derivative, and that $\text{exp}(0)=1$. I am currently trying to figure out if it is possible to derive all the properties of $e^x$/$\text{exp}(x)$ merely from this fact. In addition, I have defined the natural logarithm to simply be the inverse of $\text{exp}(x)$, which was enough to determine that the derivative of $\ln{x}$ is $\frac{1}{x}$. I have been trying in vain to prove from this definition that $\forall{k}\in\mathbb{R},\text{exp}(x+k)=\text{exp}(x)\space\cdot\space\text{exp}(k)$.

This seems like it should be super simple but I can't figure it out. Prove that if $f(t)$ satisfies $f(t)=f'(t)$, then $f(t+s)=f(t)f(s)$ for all $t,s$ belonging to R without using the fact that $f(t)=c\cdot e^t$. The only hint I'm given is that I can use the fact that two functions satisfying the same ODE $x'=x$ with the same initial condition are equal. Any ideas?


Let's say for whatever reason, I can not take the income deduction for traditional IRA contributions. Also, I am not eligible for a Roth IRA. Perhaps my MAGI is too high.  In this case, if I contribute to a traditional IRA:   I'll have paid regular income tax on the money I put in (since I can not deduct it), and I'll pay tax on gains when I take distributions as regular income.   Compared to an ordinary taxable account, this seems like not a great deal, since it doesn't get the benefit of the lower tax rate on capital gains and qualified dividends that a taxable account would.  Is there some additional advantage to the traditional IRA when an income deduction can not be made that I'm overlooking?

Brokerage accounts are seen as relatively tax-inefficient, since you invest with post-tax dollars, and growth is taxed upon realizing gains. The traditional IRA allows you to deduct contributions and defer taxes until you take distributions in retirement ...  Unless you are covered by a retirement plan from work and make over   $71,000/year if single, or $118,000/year if married filing jointly.   The numbers above come from . Above those thresholds, you can still make contributions to a traditional IRA, but those contributions will be post-tax. Distributions are taxed as ordinary income, excluding post-tax principal.  Similarly, eligibility to make direct Roth IRA contributions phases out to zero according to a :   $131,000 if single, or $193,000 if married filing jointly.   Looks to me that someone who cannot make direct Roth IRA contributions also cannot deduct traditional IRA deposits from income.  Assume   investment period is 20 years, is some garden variety ETF (VTI/VXUS/etc), those investments return 5%, the current marginal tax rate is 28%, the expected marginal tax rate at retirement is 25%, the long term capital gains rate is 15%, the entity is not eligible to make Roth IRA contributions, and 401k contributions are already maxed out.   A $5000 of gross income contribution into a traditional IRA at retirement might grow to an after-tax sum of:  (5000) * (1 - 0.28) * (1 + (1.05 ** 20 - 1) * (1 - 0.25)) = $8064   Instead, since contributions were going to be taxed anyway, why not put it in a brokerage account? Then you could claim the favorable long-term capital gains rate.  (5000) * (1 - 0.28) * (1 + (1.05 ** 20 - 1) * (1 - 0.15)) = $8659   All I found was , and the accepted answer says to still make a traditional IRA contribution, but I still don't see why that would be a good idea. What am I missing here?


I am currently defining custom object properties as follows:  private int count; public int Count {     get { return count; }     set { Count = value; } }   my fist part of the question is there any difference between defining fields like that and like:  private int count; public int Count {get; set;}   unless you want to check something about the value as so:  private int count; public int Count {     get { return count; }     set     {         if (value >= 0)         {             count = value;;         }         else MessageBox.Show("Value is negative", "Error", MessageBoxButton.OK, MessageBoxImage.Error);     } }   And the second part is is there a better way of defining object properties in C#?

Note: This was posted when I was starting out C#. With 2014 knowledge, I can truly say that auto-properties are among the best things that ever happened to the C# language.  I am used to create my properties in C# using a private and a public field:  private string title; public string Title {     get { return title;  }     set { title = value;  } }   Now, with  3.0, we got auto-properties:  public string Title { get; set; }   I know this is more a philosophical/subjective questions, but is there any reason to use these auto-properties except from saving five lines of code for each field? My personal gripe is that those properties are hiding stuff from me, and I am not a big fan of black magic.  In fact, the hidden private field does not even show up in the debugger, which is OK given the fact that the get/set functions do nothing. But when I want to actually implement some getter/setter logic, I have to use the private/public pair anyway.  I see the benefit that I save a lot of code (one vs six lines) without losing the ability to change the getter/setter logic later, but then again I can already do that by simply declaring a public field "Public string Title" without the need of the { get; set; } block, thus even saving more code.  So, what am I missing here? Why would anyone actually want to use auto-properties?


Suppose you are a prisoner. The king gives you $100$ marbles, $50$ black and $50$ white. You have to put all the marbles into $2$ urns such that none of the urns is empty. The king will then choose an urn at random and from that a marble at random. If the marble is white, you will be set free, otherwise you will be sentenced to death. So you have to distribute the marbles in such a way so as to maximize the chance of survival. Basically you have to maximize the probability that the king chooses white marble. My attempt : Let there be $b$ black and $w$ white marbles in the 1st urn . Therefore, there will be $50-b$ black and $50-w$ white marbles in the 2nd urn. Therefore P(Survival) = P(Choosing white marble) = $\frac{1}{2}\cdot\frac{w}{w+b} +\frac{1}{2}\cdot\frac{50-w}{100-w-b}$ . Now I need to maximize the above equation but I don't know how. Any ideas?

I've tried searching for this question but couldn't find it on stackexchange. This is a common type of interview question; I ran into it doing brain teasers on a probability puzzles app, and if you fine people agree with my logic, I will inform the app developer that his/her answers are incorrect.   The problem is essentially this:  You are sentenced to death for thievery. The King is magnanimous and decides to put your fate in the hands of chance. You are given $100$ white marbles and 100 black marbles, and $2$ urns. The king will choose an urn at random and pull out a single marble at random; if the marble is white, you live, if its black, you die. If you place the marbles in the best way possible, what is your probability of survival?  I started with the base case: $100$ white marbles in one urn, $100$ black marbles in the other. This comes down to a $50$-$50$ chance of survival. I then worked my way to deciding that placing $1$ white marble in one urn and $99$ white marbles + $100$ black marbles in the other urn would be the "best way possible", which yields the following:  $$P(\text{Survival}) = \frac{1}{2}(1+\frac{99}{199}) \approx .749$$  Selecting $1$ of $2$ urns at random gives $\frac{1}{2}$, the urn containing $1$ marble gives $1$, and the other that contains $99$ white marbles and $100$ black marbles gives $\frac{99}{199}$ because there are $99$ possible white marbles to select out of $199$ total marbles.  The app claims that the correct answer is $\frac{1}{2}(1+\frac{99}{200}) \approx .748$   I see where the $200$ comes from, but I do not think it is right to say that there are $200$ marbles in the other urn. Who is correct?


In my understanding, "it" can only be used to refer to objects other than human beings. However, I just found a sentence as follow from a book.     It is Mr. Kenta who came at 8 this morning.   Is it grammatically correct?

"When he found his seat on the plane, Sam recognized the person who was sitting in the seat next to his. It? She? was a woman he knew."  Which is more common/natural? Isn't 'it' more correct – grammatically speaking – than 'she', since 'a person' can be a 'he' or a 'she', and obviously you cannot use the singular 'they' here?


I got a notebook from around 15 years ago, and I wanted to save it with Linux. I literally don't understand nothing of Linux, so I wanted to ask which distro is better to this notebook: CPU: Intel Pentium M 1.50GHz 32 bits RAM: 512mb That'll be my first time using linux, I never used this before, only Windows, but it seems to be nice too. Thank you so much, I hope you have a nice day!

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


So I have this one command creation that I want to use. And I am not sure about the syntax. I want to put multiple enchants on my bow. Can you guys  help me with my command so that it works?  Here is my command:  /.give @p minecraft:bow 1 0 {display:{Lore:[Forged by Dark_Matrix9]}, Unbreakable:1ench:[{id:48,lvl:10000,id:49,lvl:10000,id:50,lvl:10000,id:51,lvl:10000]}   How do I connect the enchants?

I'm making a map where I want players to be able to choose there kits/classes. The problem I'm having with it though is giving players already enchanted Tools/Armour/Weapons.  I'm not sure if you can use the /give [player] [item] [amount] because you'll have to use the whole {} thing and I'm not sure how to make enchanted Tools/Armour/Weapons using that.  Can anyone help?


I built (by following tutorials, see below) a Mob Grinder. It's a simple 20x20, with water, etc.     But when I go up there, it's not dark inside. I don't use Gammabright and I didn't put torches or anything.    I went to have dinner and put hoppers in the ground and stood 1 block away from the spawner, to see if some mob spawn and falls. But I got just 5 bones, 2 strings, 1 gunpowder and 4 rotten flesh, which is far less spawns than in the video.  I'm playing on multiplayer, but I'm very far away from other players. I saw in other topics, that we need to stop the mob spawning in the area around me, then they will get more chances to spawn in my trap, but it doesn't works, I don't know what to do!   When I'm on the top of the spawner, the Y is 96, and when I'm on the ground, the Y is 65. By the way, I think the problem isn't the nether rack, 'cause I see on the gamepedia, and it says: "Usage: Netherrack can be used as part of a trapping mechanism for Mob farming."  Tutorial Video:

I built this 2 layer mob spawner trappy thing in the air. It's 24x24 but no mobs spawn inside :( No one falls down and I've opened it up several times to check; nothing inside either.  It's a standard thingy with 4 water flows, forcing mobs to the middle and drop down. As said I've opened it and nothing inside  It's dark, 100% sealed with stone.


I am trying to install picocom on my Ubuntu 16.04, using command  sudo apt-get install picocom. That's, what I received:  Reading package lists... Done Building dependency tree   Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: python3.6-tk-dbg : Depends: python3.6-tk (= 3.6.8-1+xenial1) E: Unmet dependencies. Try 'apt-get -f install' with no packages  (or specify a solution).   I've tried sudo apt-get -f install, then received:  Reading package lists... Done Building dependency tree   Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   python3.6-tk Suggested packages: tix The following NEW packages will be installed: python3.6-tk 0 upgraded, 1 newly installed, 0 to remove and 226 not upgraded. 1 not fully installed or removed. Need to get 0 B/74,8 kB of archives. After this operation, 165 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 463507 files and directories currently installed.) Preparing to unpack .../python3.6-tk_3.6.8-1+xenial1_amd64.deb ... Unpacking python3.6-tk:amd64 (3.6.8-1+xenial1) ... dpkg: error processing archive /var/cache/apt/archives/python3.6- tk_3.6.8-1+xenial1_amd64.deb (--unpack): trying to overwrite '/usr/lib/python3.6/lib-dynload/_tkinter.cpython-36m- x86_64-linux-gnu.so', which is also in package python3-tk:amd64 3.6.5-3~16.04.york4 Errors were encountered while processing: /var/cache/apt/archives/python3.6-tk_3.6.8-1+xenial1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I've tried also sudo apt-get clean, sudo apt-get autoclean, apt-get update but it also didn't help. I'm afraid of doing something blindly, to not accidentally break something. Can someone help me somehow? Thank you for your response

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


I'm trying to configure nginx to serve two independent Vue.js web-apps (let's call them app1 and app2). Applications are served as static html files on separate servers:  server {     server_name app1;     listen 9101;      location / {     root html\app1;     index index.html;     } } server {     server_name app2;     listen 9102;      location / {     root html\app2;     index index.html;     } }   I configured the main server to act as reverse proxy:  server {     server_name apps;     listen 80;      location ^~ /app1 {         proxy_pass http://localhost:9101/;     }      location ^~ /app2 {         proxy_pass http://localhost:9102/;     } }   The desired effect would be to run apps based on provided url (e.g. run app 1 when going to localhost/app1).   The problem is that html files locate their resources through root prefixed relative paths. For example both app1/index.html and app2/index.html will try to fetch their js files using the /js/app-*.js.   How can I configure nginx to recognize which app the request is coming from and route it to valid server?  EDIT: To clarify, what I'm trying to achieve:   Client goes to  html/app1/index.html gets loaded. Every request sent from html page to / gets routed to app1/ (so link to /js/script.js in html code gets actually fetched from /app1/js/script.js) Same goes for app2.   Apps are for internal use only (server is accessible through intranet).

Sure I'm not the first one that tried to serve a domain example.com from a example.net/bbb, but I haven't found a solution yet.  My NGINX configuration follows the  and looks something like this:  server {     listen 80;     server_name example.net;     root /path/to/aaa;      location /bbb/ {         proxy_pass http://example.com/;         proxy_set_header Host $host;         proxy_set_header X-Real-IP $remote_addr;     }      location / {         try_files $uri $uri/ /index.html;     }     location ~ \.(svg|ttf|js|css|svgz|eot|otf|woff|jpg|jpeg|gif|png|ico)$ {         access_log off;         log_not_found off;         expires max;     } }   I can manage to render the root of example.com in example.net/bbb but:  ISSUE 1  example.net/bbb/some/path doesn't work as expected and the index.html of example.net is rendered.  ISSUE 2  Any asset in example.com/assets gives 404 because the browser look for example.net/assets. Be great if I could solve this without placing absolute paths everywhere.


Just like in Newtonian gravity, do we simply accept charge being naturally attracted to the opposite charge with a very similar Newtonian style force? (Coulomb) Shouldn't there be a meaningful theory of electromagnetism like in the interpretation of general relativity? Where we understand that gravity is an effect of space-time distortion attributed to mass.

After reading many questions, like   and , I wonder:   Is it possible to consider the other fundamental forces too, the electroweak interaction and the strong interaction or ultimately the unification of these, to be fictitious forces like gravity in the framework of general relativity?   If we want a final unification of all fundamental forces, hasn't this feature of gravity to become a feature of the other forces as well?


The following is a list of elements I remember about this book series:  1)  The cover art was very anime inspired, but was clearly an American or Canadian series.  2)  Wyverns were involved.  Not dragons, wyverns (dragons have forearms, wyverns have wings where their forearms should be).  3)  The people in this world had the ability to control elements, provided that they had special stones implanted in their backs.  4)  The main characters both had 6 of these stones implanted in their backs (most people could only afford 1 or 2 stones for their children).  5)  The main characters were twins (a boy and a girl).  The girl had the power to control earth, and I cannot recall what the boy could control.  6)  The boy sucked at controlling his power.  This is all that I can remember.  I must have read these books somewhere around 2002-2005, and they seemed reasonably new at the time.

The only vivid memory I have of this book is that the citizens of the story's world are all associated with a certain element, such as air or water, etc. This association brings them powers that can control that particular element. The powers, though, can only be enhanced/ used if 'special stones' are implanted in their spine after birth.   The stones themselves are plain, but once implanted in a baby's back, they turn a certain color. The stones are implanted in a special ritual performed by alien-like creatures, who are very powerful.   I have a feeling it was a part of a series, but I am unsure.  I just remembered something else. The stones are very expensive and the parents have to save up in order to afford them. Multiple stones can be implanted in one person and the number of stones implanted in a person indicates the amount of power they have.


I'm researching RC4 and I am trying to recreate a condition where RC4 is crackable. However I can't quite find the article/resource I need to find the weakness for an implementation like this (python):   from Crypto.Cipher import ARC4 f = open('key.txt') key = f.readline().strip()  o = open('output.txt','w') f = open('input.txt') for line in f:     cipher = ARC4.new(key)     print >>o, cipher.encrypt(line).encode('hex')   I know the weakness is that the same key is used to encrypt the traffic, however I need a hint as to how this might impact the security of the algorithm.

Suppose Alice wants to send encryptions (under a one-time pad) of $m_1$ and $m_2$ to Bob over a public channel.  Alice and Bob have a shared key $k$; however, both messages are the same length as the key $k$.  Since Alice is extraordinary lazy (and doesn't know about stream ciphers), she decides to just reuse the key.  Alice sends ciphertexts $c_1 = m_1 \oplus k$ and $c_2 = m_2 \oplus k$ to Bob through a public channel.  Unfortunately, Eve intercepts both of these ciphertexts and calculates $c_1 \oplus c_2 = m_1 \oplus m_2$.     What can Eve do with $m_1 \oplus m_2$?     Intuitively, it makes sense that Alice and Bob would not want $m_1 \oplus m_2$ to fall into Eve's hands, but how exactly should Eve continue with her attack?


Using octal method,type the exact command you would use to make test.txt have the following permissions dr-xr-x---

I've never really got how chmod worked up until today. I followed a tutorial that explained a big deal to me.   For example, I've read that you've got three different permission groups:   owner (u) group (g) everyone (o)   Based on these three groups, I now know that:   If the file is owned by the user, the user permissions determine the access. If the group of the file is the same as the user's group, the group permission determine the access. If the user is not the file owner, and is not in the group, then the other permission is used.   I've also learned that you've got the following permissions:   read (r) write (w) execute (x)   I created a directory to test my newly acquired knowledge:  mkdir test   Then I did some tests:  chmod u+rwx test/ # drwx------ chmod g+rx test/ # drwxr-x--- chmod u-x test/ # drw-r-x---   After fooling around for some time I think I finally got the hang of chmod and the way you set permission using this command.    But...  I still have a few questions:   What does the d at the start stand for? What's the name and use of the containing slot and what other values can it hold? How can I set and unset it? What is the value for this d? (As you only have 7=4+2+1 7=4+2+1 7=4+2+1) Why do people sometimes use 0777 instead of 777 to set their permissions?   But as I shouldn't be asking multiple questions, I'll try to ask it in one question.  In UNIX based system such as all Linux distributions, concerning the permissions, what does the first part (d) stand for and what's the use for this part of the permissions?


I made a C# program and in a tabControl, on one of its pages, I have a pictureBox where I put an animated gif. When I try this program on a slow PC, as long as this animated gif is shown (the page containing it is shown), repaint of controls (for example on form resize) is done only partially. If the page containing this animated gif is not the one shown, repaint is fine. Also on my PC, which is faster, I have no problems. The examples in this link  seem to only set the "visible" property from another thread. It does not look like running the animated gif in another thread. At least in my case it didn't help. My problem is not that gif doesn't work, the gif works but anything else is slow. Exactly the gif seems to be the resource intensive one.

I have a form showing progress messages as a fairly long process runs. It's a call to a web service so I can't really show a percentage complete figure on a progress bar meaningfully. (I don't particularly like the Marquee property of the progress bar)  I would like to show an animated GIF to give the process the feel of some activity (e.g. files flying from one computer to another like Windows copy process).  How do you do this?


I used to have a dual boot option on my pc until the latest update of windows. The two boot options were: Windows 10 and ubuntu MATE. After the windows update No.1703 I am unable to boot into ubuntu.  Below you can find a link coming from boot-repair where it seems like the ubuntu partition(sda4) is not recognised.  Link to boot-repair:   Does anyone have the same problem and can provide a solution?  Regards.

After I ran Windows 10 update this afternoon my partition table broke... I had dual boot with Windows 10 and Ubuntu 14 with Grub as the boot loader. The error that came up was "Error no such partition, Entering rescue mode... grub rescue>". I googled it,  about the boot-repair ISO, installed it on a USB, ran the repair, got this report, but still no luck:    Now the boot skips Grub entirely and goes to Windows boot manager which fails with "The boot configuration data for your PC is missing or contains errors". So now instead of dual boot I have zero boot. Thanks Microsoft.  Anyway can you guys help me interpret the disk info in the pastebin link? I don't remember my partition configuration but I believe Ubunut had slightlty less disk space than Windows. Questions I have:   Is the Ubuntu partition still there? Could it be the one named "Extended"? (sda4) Where would GRUB be? Gone? Can it be reinstalled? how?   I don't really care about the Windows partition anymore, but it would be nice to rescue Ubuntu.


Trying to avoid the "what is the best tool for 'X'" type question, but a friend asked and I wasn't quite sure how to answer.  The original question went something like this:     What's the best tool for a sales-type guy/girl to create interactive mobile mockups?   The more I thought about it, the more I felt like I'd be doing a disservice to simply respond with "Balsamiq" (or any other tool for that matter).  I feel like the question could go deeper with something like:      What's the best/most efficient way for someone in sales to get his/her feet wet with UX?    Read some books? Don't Make Me Think, The Design of Everyday Things, A Project Guide to UX Design? Learn some of the tools? Photoshop, Sketch, UXPin, Flinto, etc.   Am I overthinking it? Could you combine pen/paper with a tool like  or  and just dive in?  Edit: This isn't about making the switch into the field. It's about getting their feet wet just enough to join the conversation in a meaningful way. I'm thinking about it like this:     Pat works in sales, but has an idea for an app/site/whatever they want to play around with as a side project. (S)he has heard about user-centered design, but that's about it. Some developer friends might be interested in teaming up, but they don't have much experience with UX either. What do you tell Pat?

I am a student of Software Engineering (mainly focusing on Requirements Engineering). I am a beginner in the field of UX. There already are a few questions on this forum regarding books etc. Still, I feel my question is a little different:  What qualifications are required to be a UX Professional/ Interaction Designer? What tools do you need to know? What can you do on your own to be proficient in this field? Because I don't have any formal training in this field and I can only learn things on my own.


I don't want the body have the background picture. I want to apply it to my main div. If I set the image height to 100%, it generates a scroll-bar. If I give it pixels, it wont be fully responsive, and have white parts when resizing browser. I want it to exactly fit on every screen sizes but without a scrollbar.

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


I've recently installed Ubuntu 16.04 on my device (alongside Windows 10) and I cannot get it to connect to the internet via WiFi. I have tried using the cable for an Ethernet connection but the Wifi option seem to be missing. Now of course I did my research and all the solutions I have found proposed going to the "Additional Drivers" and change the settings there; problem is, I did go there and there are no drivers available for me to select from. Is there any way for me to fix this? How? Thanks in advance.   ~~Edit after running sudo lshw -class network the output was:  *-network                       description: Network controller        product: BCM43142 802.11b/g/n        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:06:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: driver=bcma-pci-bridge latency=0        resources: irq:18 memory:ab200000-ab207fff   *-network        description: Ethernet interface        product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:07:00.0        logical name: enp7s0        version: 07        serial: 74:e6:e2:45:a5:64        size: 100Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8106e-1_0.0.1 06/29/12 ip=192.168.1.108 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:47 ioport:4000(size=256) memory:ab100000-ab100fff memory:d2100000-d2103fff   Also, after lspci -knn | grep Net -A3:  06:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Dell Wireless 1704 802.11n + BT 4.0 [1028:0016]     Kernel driver in use: bcma-pci-bridge     Kernel modules: bcma

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


If I have a general function F(x) what is the size of the set containing all possible functions? Its obviously some infinity bigger than countable infinity but what size is it?

As the question states, we are to show that $C = \{ f : f \text{ is a function} \}$ is a proper class.  Assume for the sake of contradiction that $C$ is a set. Then consider the class function $\Phi$ which takes as input a function $f$ and spits out the set of inputs to $f$. So if $f : A \to B$ then $\Phi(f) = A$. By replacement schema, $\Phi[C]$ is a set. However, since $\{ S : S \text { is a set} \}$ is not a set, we have a contradiction.  Does this proof make sense?


Let $\sum_{n=1}^\infty a_n \ , \ a_i > 0 $  be  convergent. I need to prove that $$\sum_{n=1}^\infty a_n^{\frac{n}{n+1}}$$ is convergent. How should I prove it? Where should I start?

Let $a_n$ be a positive real sequence such that the series $\sum a_n$ converges.  I was asked to prove that under such circumstances $\sum a_n^{\frac{n}{n+1}}$ converges.  The previous sum can be rewritten as $\sum \frac{a_n}{a_n^{1/(n+1)}}$.  I can't prove the convergence of this last series... I'm sure comparison test is enough here, but other than $a_n \rightarrow 0$ there is no information that helps.  Thanks for your help.


How could I write an if-then statement that checks if an inputted integer is a perfect square or not (i.e. if I took the square root, it would be an integer as well: 4, 9, 16, 25, 36, etc.) in DrJava? Thank you!

Possible Duplicate:          What's a way to see if a number is a ?   bool IsPerfectSquare(long input) {    // TODO }   I'm using C# but this is language agnostic.  Bonus points for clarity and simplicity (this isn't meant to be code-golf).    Edit: This got much more complex than I expected! It turns out the problems with double precision manifest themselves a couple ways. First, Math.Sqrt takes a double which can't precisely hold a long (thanks Jon).   Second, a double's precision will lose small values ( .000...00001) when you have a huge, near perfect square. e.g., my implementation failed this test for Math.Pow(10,18)+1 (mine reported true).


Say I have a file located at /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java.  I want to list all its parent directories in order to view their permissions in order to get something like below, so I can track down permission issues.  drwxr-xr-x  7 root     root  4096 Dec 16 17:50 java dr-xr-xr-x  2 root     root  4096 Dec 16 17:50 bin dr-xr-xr-x  3 root     root  4096 Dec 16 17:50 jre drwxr-xr-x 14 root     root  2920 Dec 16 17:50 java-1.6.0-openjdk-1.6.0.0.x86_64 ...   Is this possible?

Sometimes it is necessary to determine on which directory in a path access rights are limited. Here is an example:  $ ls /sys/kernel/debug/usb/devices ls: cannot access /sys/kernel/debug/usb/devices: Permission denied $ cat /sys/kernel/debug/usb/devices cat: /sys/kernel/debug/usb/devices: Permission denied   Neither ls nor cat shows where the user rights were limited.  What is the simplest way of showing the access rights for every component (directory and the file) in the path? I am mainly interested in solutions for Unix-like systems.


Skyrim and Falskaar are two different places. Would I still be able to ride Shadowmere in Skyrim if I bought and rode a horse in Falskaar?

I'm currently the proud owner of Frost the horse. What I want to know is, what will happen to him if I ride another horse?  Obviously nothing will happen as long as I have him in sight, e.g. I'll be able to ride Frost to make him my horse again.  Scenarios  But what will happen if, before I get back on Frost, I fast travel somewhere? Will he return to where I originally stole him, will he disappear forever, or can I own two horses simultaneously?  Ownership?  If he goes back to where I originally stole him, will I have to steal him again, and therefore never be his true owner again?  Two Horses?  The reason I'm asking is because I want to get Shadowmere (the Dark Brotherhood horse) while keeping Frost. Is it possible to do this, or will riding Shadowmere make me lose Frost forever?


Why the name of picture can not to be removed?  This is my code:  >     \begin{figure} >       \centering >       \includegraphics[scale=0.7]{One Step Multi Step.png}\\ >       \caption{hehehe} >     \end{figure}   and this is the result:   What is the problem? So, I can remove the "one step multi step.png".

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces.   also discusses this subject, but there is no solution there.  My compilation routine is latex->dvips->ps2pdf (because of PSTricks).


In shell-script, what is this command? exit $?  I didn't find any resource to explain it.

When going through one shell script, I saw the term "$?". What is the significance of this term?


I'm testing a development image of Linux Mint built by myself and a friend. I'm testing it out by trying to do all the normal things that you would do in a web development workflow (Install an editor, bring up vagrant boxes, etc). While doing this I ran into an interesting permissions issue. When I tried to sudo anything in my $HOME directory I was met with a permission denied. for example   sudo vim ~/bad.txt   was met with:  ~/bad.txt" [Permission Denied]    So as a test I created a folder in my ~/ directory and chmod 777 it and everything worked in there. So I proceeded to install Vagrant and VirtualBox and noting seemed to go wrong until I ran vagrant up for a plain scotchbox. Where I received the following error  There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.  Command: ["import", "/public/home/username/.vagrant.d/boxes/scotch-VAGRANTSLASH-box/2.5/virtualbox/box.ovf", "--vsys", "0", "--vmname", "scotch-box_default_1446564755217_55786_1449843924304_26032", "--vsys", "0", "--unit", "7", "--disk", "/username/VirtualBox/Machines/scotch-box_default_1446564755217_55786_1449843924304_26032/box-disk1.vmdk"]  Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Interpreting /public/home/username/.vagrant.d/boxes/scotch-VAGRANTSLASH-box/2.5/virtualbox/box.ovf... OK. 0%... Progress state: VBOX_E_IPRT_ERROR VBoxManage: error: Appliance import failed VBoxManage: error: Could not create the directory '/username/VirtualBox/Machines/scotch-box_default_1446564755217_55786_1449843924304_26032' (VERR_ACCESS_DENIED) VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component Appliance, interface IAppliance VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 779 of file VBoxManageAppliance.cpp   As you can see it's trying to read a folder named my username in the / directory. So it seems that not only permissions are messed up but something with the path to home is also messed up. So what we would like a little help with is understanding where we screwed up and how we can go about fixing it.  I've looked for similar issues so I've checked   sudo su -  id   and the UID is indeed 0. I really want to understand where we screwed up here so we can avoid the same mix ups in the future. Thanks.

On my NFS server, I have the following export defined:  #NFS exports Database /shared -alldirs -network=192.168.1 -mask=255.255.255.0   On my NFS client:  192.168.1.7:/shared /shared nfs rw 0 0   Obviously, as root on the server, I can do whatever I want.  On the client however, my regular user 'gabe' can make changes to the nfs mount (assuming I have permissions to), but root cannot.    As my regular user:   gabe@client$ cd /shared gabe@client$ ls -l total 8 drwxrwxrwx  4 gabe  wheel   512 Mar 20 19:20 tmp gabe@client$ cd tmp gabe@client$ touch test.txt gabe@client$ rm test.txt   As root:  # cd /shared/tmp # touch test.txt touch: test.txt: Permission denied   Again, this is all on the NFS client side of things, and I suspect perhaps it has something to do with the -maproot option.  This is the first time I'm setting up NFS and I just noticed this peculiarity.  I'm going to do some reading now, to see if I can figure this out, but if anyone has any insight, I would appreciate it.


Is there any Way to Edit/Create a file in the method of File Permission ?  Suppose it is '7' means can we able to change it to '4' ?  i.e -rwx to -r ?  Is there any code or___ to do?

How can I make my file so that I can double click on it, and it runs. It is a .sh script, but I also have files that say:  executable (application/x-executable)  in the description of what they are.  I can't run any of these from terminal, or by double clicking.  If possible, I would like a way using either the GUI or a Terminal, but not a combination of the two.  Here is a screenshot of what I see when I right click then go on properties. The file first:    And the shell script here:    NB: I accept that this is a duplicate (I was looking for it, and couldn't find it, so asked + answered it, hoping that I would find it) however, I don't think the question about .desktop files is a duplicate.


How to calculate the following integral :   $$\int_0^ \infty \frac {\log (\frac{1+ix}{1-ix})}{e^{2πx}-1} dx$$  Where, i is the unit imaginary number or iota .

I'm trying to evaluate the improper integral,  $$I(a)=\int_{0}^{\infty}\frac{\tan^{-1}{x}}{e^{ax}-1}\mathrm{d}x,~~~\text{where }a\in\mathbb{R}^+.$$  Does this integral have a simple closed form expression? And if so, how best to obtain it?    My attempt  My first idea was to integrate by parts using $f=\tan^{-1}{x}$ and $dg=\frac{\mathrm{d}x}{e^{ax}-1}$, with the hope that the resulting integral would be amenable to solution by differentiating under the integral sign. So I found the indefinite integral,  $$\int\frac{\tan^{-1}{x}}{e^{ax}-1}\mathrm{d}x=\tan^{-1}{x}\left(\frac{1}{a}\log{(1-e^{ax})}-x\right)-\int\left(\frac{\log{(1-e^{ax})}}{a(x^2+1)}-\frac{x}{x^2+1}\right)\mathrm{d}x,$$  but then I realized that this would result in an imaginary boundary term for the corresponding definite integral over $[0,\infty)$ since,  $$\begin{cases}\lim_{x\to\infty}\tan^{-1}{x}\left(\frac{1}{a}\log{(1-e^{ax})}-x\right)=i\frac{\pi^2}{2a},\\ \lim_{x\to0}\tan^{-1}{x}\left(\frac{1}{a}\log{(1-e^{ax})}-x\right)=0.\end{cases}$$  I want to avoid complex variables if at all possible, so I don't know if I want to continue down this route.  Can anyone offer any hints or suggestions?    CORRECTION: As Vladimir pointed out, the correct anti-derivative is actually,  $$\int\frac{\tan^{-1}{x}}{e^{ax}-1}\mathrm{d}x=\tan^{-1}{x}\left(\frac{1}{a}\log{(e^{ax}-1)}-x\right)-\int\left(\frac{\log{(e^{ax}-1)}}{a(x^2+1)}-\frac{x}{x^2+1}\right)\mathrm{d}x.$$  Then, since,  $$\begin{cases}\lim_{x\to\infty}\tan^{-1}{x}\left(\frac{1}{a}\log{(e^{ax}-1)}-x\right)=\frac{\pi}{2}\cdot0=0,\\ \lim_{x\to0}\tan^{-1}{x}\left(\frac{1}{a}\log{-e^{ax}-1)}-x\right)=0,\end{cases}$$  we have,  $$I(a)=-\int_{0}^{\infty}\left(\frac{\log{(e^{ax}-1)}}{a(x^2+1)}-\frac{x}{x^2+1}\right)\mathrm{d}x.$$


When posting a new question in StackOverflow, it shows similar questions. As one keeps on writing, list changes but they overlap with one another. This happens when you scroll down a bit when the new list is visible. Below is the screenshot for the same. Web browser: Mozilla Version: 77.0.1  Operating System: Windows 10

Originally posted on Stack Overflow:   Requirements to reproduce:  Windows 7 x64  Firefox 71.0 x64  Steps to reproduce:   Go to the ask question section Write something to the title field Start scrolling similar questions Change the title field Start scrolling the similar questions again


char temp1[4] = "abc"; char *temp2 = "123"; strcpy(temp1,temp2);   if I want to copy a string literal to an array, it works well, but if I do it in the opposite way, I get an error:  char temp1[4] = "abc"; char *temp2 = "123"; strcpy(temp2,temp1);   The feedback from compiler is "Segmentation fault".  So what's the differences? Is there anyway to copy a string to a string literal?  Thx.

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


Do teachers really need a PhD to teach? I guess the origin of this requirement was that people with PhD's were probably the only source of knowledge (unless someone is willing to go to a library, get professional help, and pour through volumes of books). However, knowledge is freely available nowadays along with organized and structured content on several topics.   On the other hand, most Professors with PhDs are trained well in doing research, but they have minimal to no training in teaching. The incentive structures for tenure processes also focuses a lot more on academic publications and grants, and no so much on professional development in teaching.   So, I ask again, wouldn't the students be better off having a teacher with only a MS degree but with training in pedagogical techniques, as opposed to someone with a PhD with neither training nor interest in pedagogy?

, .  From the first example:     The Department of Biological and Agricultural Engineering invites applications for a full-time Assistant Professor of Teaching (Lecturer with Potential for Security of Employment (LPSOE)), comparable to a tenure-track assistant professor appointment. Professor of Teaching faculty are Academic Senate faculty members whose expertise and responsibilities center on undergraduate education and scholarly analysis/improvement of teaching methods. The successful applicant will be responsible for teaching both lower and upper division undergraduate Agricultural Sensing and Data Science lecture and laboratory courses (up to six courses per year) ... Qualified applicants must have a PhD in Engineering or a BS in Engineering with a PhD in a scientific field, preferably with postgraduate experience.   (Emphasis mine)  If this is a full-time teaching position, why are they looking for PhD degrees and postgraduate experience? How are these primarily-research degrees relevant to teaching?


I've been learning how to write documents in Latex and recently I was wondering whether the TEX editor can be used to make elegant looking Certificates. If it is possible that please suggest templates or references from where I can gather the tools to make a certificate in LATEX.

Since LaTeX can produce outstanding typesetting results and excellent graphics design, I began to wonder if it can recreate certificates. With so many packages and styles out there does anyone know if there is one to create certificate templates like the following example.    I suppose that the borders would be the limiting factor like those shown .


Well , it was hard thinking of a title but ...Anyway  let $f$ be a continuous function.  It is known that  $f(0)=f(10)$  Show that there exists a $"c"$ in the segment $[0,5]$ which will satisfy   $f(c) = f(c+5)$  Well, I tried a few things but I don't believe that they quite work ( they don't when I try to intuitively 'sketch' the function so..)  Do you guys have any tips on how to prove it?  Thanks!

Let $f \in C[0,1]$ and $f(0)=f(1)$.   How do we prove $\exists a \in [0,1/2]$ such that $f(a)=f(a+1/2)$?  In fact, for every positive integer $n$, there is some $a$, such that $f(a) = f(a+\frac{1}{n})$.  For any other non-zero real $r$ (i.e not of the form $\frac{1}{n}$), there is a continuous function $f \in C[0,1]$, such that $f(0) = f(1)$ and $f(a) \neq f(a+r)$ for any $a$.  This is called the Universal Chord Theorem and is due to Paul Levy.  Note: the accepted answer answers only the first question, so please read the other answers too, and also this answer by Arturo to a different question:     This is being repurposed in an effort to cut down on duplicates, see here: .  and here: .


Sorry I'm a newbie with CRS  I have a shapefile (points) with coordinates in CRS EPSG:3854 (SRP) so that I can show the points within the open layers plugin.   Now I need to transform those points in EPSG:4326. The points do now have Long/Lat coordinates.  But i want to have them in E: and N:   e.g.   LAT: 53.376775 LONG: 9.288940  equals  E:3519305.232 N: 5916149.281  How can I transform them if I have many (like 100) points? Is there a fast way to do this?

I have a series of layers of lines (shapefiles) in My Project. The CRS of some are different and to merge them they all must have same CRS.  When I use Processing/Toolbox/Qgis_algorithims/Reproject_layer the reprojection only works if it is allowed to save to temporary file somewhere (it will not change the CRS when I reproject if I try to save and replace it in My Project directory);   I must remove the original from the layer list and reproject the temp file (without changing the CRS) to get it into my project and name it appropriately.  Is there a better way to reproject a layer in Qgis?


I am playing a frenzy Barb and trying to figure out which weapon to put into my mainhand. First weapon is slow but hits hard, second is fast but hits not as hard as the first one. This  shows a higher attack speed when I put the faster weapon into the mainhand. Does that mean that you always put the faster weapon into the mainhand?

I'm looking for general information on how dual weilding works in Diablo 2:  Which classes can do it? What weapons/weapon types can they do it with? How does it affect combat exactly? Does it double your attack speed or damage? Are they on their own separate attack timers or is it a chance to swing both at the sametime thing? Do I have to click faster to make it work?  Am I better off putting a weapon with elemental damage in one hand than the other? What about two weapons of different speeds?


I saved several minecraft screenshots on my Mac. Now I need to find them and either email them to my friends or save them to a thumb drive. How can I do this?

I pressed F2 to take a few Minecraft screenshots. Later I couldn't find them. Where are they stored on my computer?


How do you get the http headers passed on a page?  Is this achievable via javascript/jquery? I'm looking into something like this:

How do I access a page's HTTP response headers via JavaScript?  Related to , which was modified to ask about accessing two specific HTTP headers.     Related:


Consider integers $m$ and $n$, not both 0. Show that gcd$(m,n)$ is the smallest positive integer that can be written as $am + bn$ for integers $a$ and $b$.  I'm confused on what exactly to do--I'm having trouble wrapping my head around the question. I know that using the euclidean algorithm backwards will provide me with an $a$ and a $b$ such that $am + bn = gcd(m,n)$. But I'm not sure how to prove that it is the smallest positive integer.

How to prove the following theorems about gcd?  Theorem 1: Let $a$ and $b$ be nonzero integers. Then the smallest positive linear combination of $a$ and $b$ is a common divisor of $a$ and $b$. Theorem 2: Let $a$ and $b$ be nonzero integers. The gcd of $a$ and $b$ is the smallest positive linear combination of $a$ and $b$.  Progress For Theorem 1 I have assumed that $d$ is the smallest possible linear combination of $a$ and $d$. Then $a = dq + r$. Solved it and found a contradiction. Is my method correct? Don't know what to do for Theorem 2.


I would like to know which are the benefits of using this program in relation with the architecture. I would like to know if it is a tool from the architects to know something about lights or something like that.  I'm Adrián from Spain, and I'm discovering Blender now because I'm doing a kind of tesis about this program.  Thanks :)

My interest in Blender comes from wanting to use it to model physical structures and produce architectural drawings; what I have so far is really impressive, but there doesn't seem to be too much information about my particular interest.   Are there any (Blender-) resources that would be particularly useful for architects? E.g. packages of standard 'elements' like windows, doors, roofs or whatever, or perhaps a discussion group specifically for architects?


Why methods   boolean contains(Object o) boolean remove(Object o)   aren't defined like   boolean add(E e)   using generic type?

Why isn't  generic?    Seems like Collection<E> could have boolean remove(E o);   Then, when you accidentally try to remove (for example) Set<String> instead of each individual String from a Collection<String>, it would be a compile time error instead of a debugging problem later.


I have a set to data to be shown in a tabular format using jasper report and currently writing the .jrxml file.  In my dataset, i have data which will serve us to know number of columns for the table, hereby making it dynamic columns for table.  So, the issue is Data fetched from database is row specific; so how can i make it work to convert it to no of columns for table?  I have a dB table from where data is pulled up:  TEST_ID   LEVEL   LOT_NUM  MEAN          UNITS       PERCENT             --------- ------  -------- ------------- ----------- ------------- GLU       1       1212     2.1             10           22                      GLU       2       1314     3.2             10           22                      GLU       3       1414     3.3             10           22          I have to create the report likewise:  TEST_ID   LEVEL:1  LEVEL:2   LEVEL:3  UNITS PERCENT -------   -------  -------   -------  ----- ------- GLU       2.1      3.2       3.3      10    22   -: Number of LEVEL's becomes the number of columns for particular tests.

I'd like to show/hide a column at runtime based on a particular condition. I'm using "Print when expression" to conditionally show/hide this column (and it's header) in my report. When the column is hidden, the space it would have occupied is left blank, which is not particularly attractive.  I would prefer if the extra space was used in a more effective manner, possibilities include:   the width of the report is reduced by the width of the hidden column the extra space is distributed among the remaining columns   In theory, I could achieve the first by setting the width of the column (and header) to 0, but also indicate that the column should resize to fit its contents. But JasperReports does not provide a "resize width to fit contents" option.  Another possibility is to generate reports using the Jasper API instead of defining the report template in XML. But that seems like a lot of effort for such a simple requirement.


I have a div on my page and I would like to superpose a text above this div thanks to jQuery. This text must be  centered horizontally and vertically. I need this to show to the user this zone is allowed to drop a file in it.  <div class="dropzone" style="width: 300px; height: 200px; background-color: gray">     Lorem ipsum blah blah... Lorem ipsum blah blah... Lorem ipsum blah blah... Lorem ipsum blah blah... Lorem ipsum blah blah... Lorem ipsum blah blah...  </div>   JsFiddle:   I have no idea how to proceed to inject a text above my div. I know we have the append jQuery function but no idea how to proceed.  Any help is greathly appreciated.

I have a hidden DIV which contains a toolbar-like menu.  I have a number of DIVs which are enabled to show the menu DIV when the mouse hovers over them.  Is there a built-in function which will move the menu DIV to the top right of the active (mouse hover) DIV? I'm looking for something like $(menu).position("topright", targetEl);


With patch 2.4, damage numbers are now compressed but I noticed that some are colored differently than others.  What do these colored numbers mean?  At first I thought any number in the billions are orange, but that's not the case.  I also don't think its critical hits because my crit chance is 60% but I still mostly see yellow numbers.

I have been using a Holy weapon for most of the game and so I assumed these yellow numbers indicated Holy damage.  Now I also have an Arcane weapon, but I never see a color for Arcane damage.  Do the colors mean something else?


Read the title. I've seen in RFCs that some MAC functions are called "pseudorandom functions". What are those? How are they different than hash functions? Why can't a hash function be used instead?

Is there a difference between  PRF and a hash function?  For example: Creation of a secret key is using PRF and creating a secret key is using hash function.


In order to change username it is necesary to be not logged in.   Question  How can I start linux without log in? Even if I start in recovery mode it appears that the user is started.  I have tried in recovery mode but get:  usermod: user username is currently used by process 645

Some time ago, when I installed Ubuntu, I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name in the terminal) without losing settings for applications? How do I keep permissions and my keys for various authentification (e.g. email, SSH, GPG and more)? What settings could possibly get lost if I changed my username?


I am new in c++ . And i want to write a function which takes names from folder.   for example i have a folder which name is C:\TEST  and in this folder i have lots of text.txt files i want to store all .txt files name in a string array.   Anybody could help me about this issue.  i tried something like this but i failed   const int arr_size = 10; some_type src[arr_size]; // ... some_type dest[arr_size]; std::copy(std::begin(src), std::end(src), std::begin(dest));

How can I determine the list of files in a directory from inside my C or C++ code?  I'm not allowed to execute the ls command and parse the results from within my program.


I have inserted a floating figure in my text using [htb]. A part of the text is a list, generated by itemize.  The list is, by chance, placed at the bottom of the page, and consists of three items. Two of the items are at the end of page 1. On the next page, the figure is placed at the top, followed by the last item.  Is there a way to keep the list together, without being split by the figure? I am aware of \FloatBarrier, but I don't care if the figure comes before or after the list, as long as it doesn't split it. I want the figure to float as it pleases, without splitting the list.

How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference


I am having a problem with the emission on this object. I have applied multiple materials to the mesh and emission is not visible. I have assigned the material to the selected parts of the object.

The closest I can get to making mesh lights affect their environment in Blender Eevee is giving them an Emission material and turning on "Bloom". But this isn't emitting proper light, it just looks like it is, but it doesn't light the surroundings whatsoever.     I would like to be able to light a scene with meshes without having to put point lamps everywhere just to make them emit light.


I used Rufus to put Lubuntu 20.04 on a USB pendrive with persistant storage. I can boot Lubuntu from USB and can save stuff persistently - great.   But the disk checkup runs for several minutes on every boot. Text says press Ctrl+C to cancel disk checkup but that does not cancel the already ongoing check of a very large file. So it still takes minutes.  This  post says      Add fsck.mode=skip to the Default menuentry for (UEFI boot mode).   Open /isolinux/txt.cfg as root and add fsck.mode=skip to the "Try Ubuntu without installing" menuentry, (for BIOS boot mode).   But I do not know where exactly in those files to add the string fsck.mode=skip and there is no example of that string in context in that answer  This is my grub.cfg . You can see where I have already tried to add the string. That did not work, the disk check still runs on boot.  if loadfont /boot/grub/font.pf2 ; then   set gfxmode=auto   insmod efi_gop   insmod efi_uga   insmod gfxterm   terminal_output gfxterm fi  set menu_color_normal=white/black set menu_color_highlight=black/light-gray  set timeout=30 menuentry "Start Lubuntu" {   fsck.mode=skip   set gfxpayload=keep   linux /casper/vmlinuz  persistent file=/cdrom/preseed/lubuntu.seed quiet splash ---   initrd    /casper/initrd } menuentry "Start Lubuntu (safe graphics)" {   fsck.mode=skip   set gfxpayload=keep   linux /casper/vmlinuz  persistent file=/cdrom/preseed/lubuntu.seed quiet splash nomodeset ---   initrd    /casper/initrd } menuentry "OEM install (for manufacturers)" {   set gfxpayload=keep   linux /casper/vmlinuz  persistent file=/cdrom/preseed/lubuntu.seed only-ubiquity quiet splash oem-config/enable=true ---   initrd    /casper/initrd } grub_platform if [ "$grub_platform" = "efi" ]; then menuentry 'Boot from next volume' {   exit } menuentry 'UEFI Firmware Settings' {   fwsetup } fi   This is my txt.cfg. I have no idea where to add the string here so have not tried anything yet.  default live label live   menu label ^Start Lubuntu   kernel /casper/vmlinuz   append  persistent file=/cdrom/preseed/lubuntu.seed initrd=/casper/initrd quiet splash --- label live-nomodeset   menu label ^Start Lubuntu (safe graphics)   kernel /casper/vmlinuz   append  persistent file=/cdrom/preseed/lubuntu.seed initrd=/casper/initrd quiet splash nomodeset --- label memtest   menu label Test ^memory   kernel /install/mt86plus label hd   menu label ^Boot from first hard disk   localboot 0x80   I tried to ask this in a comment to the above linked answer but do not have enough reputation to add comments yet. Thus this new question.

I installed Ubuntu 20.04 persistent on my usb. Every time boot, it starts disk checkup. I have to press Ctrl + C every time. I want to disable it permanently. And also for each shutdown it says press enter to remove installation medium.


Ubuntu 17.10 (Xorg), gnome 3.26.2.    When applications are minimized to the dock, is there a way to get a window preview of the applications when the pointer hovers over the icon in the dock?    I do not want this in place of the "All Windows" context menu item, I am interested in the preview in addition to the menu item.    (I see that the "Dash to panel" extension provides this option, but I do not want all the other features of that extension.)

I'm using Ubuntu 17.10 with GNOME 3. How can I show all open windows of a certain application using the sidebar (aka Ubuntu Dock)? Right now I have to right-click and select "all windows" to see my other open windows.   Is there a quicker way to do this?


The following dialogue is from Arrow:     I lose myself in him.   I guess it's supposed to be a romantic line. But what does this actually mean? Does this mean the person forgets his/her own identity when she is around the character she is talking about ?

The question is very small, what does the sentence "Lose yourself" mean?    I searched on internet and got many different meanings. Two of which are quite contrary to each other. One is,        "preoccupy yourself with something other than yourself".      The second is,       "to free your mind from worry"     If someone preoccupies himself with something then he is not going to relax at all.     I found many different meanings, e.g.  on Quora.com and  on yahoo.com. I guess it is a subjective phrase, which can have different meaning depending upon the context.     So the question is:       Does its meaning depend upon context, dialect in which it is used, or something else? If it has a fixed meaning then please tell that. Is its meaning opinion based? When is it used, that what meaning does it convey or in other words what is its purpose?


In this string: jdbc:sqlserver://testserver.apple.com\A4534:54623 I want to match "testserver" "apple.com//A4534" and "54623" Regex:  jdbc:sqlserver:(.+)\.(.+):(.+) But I get, "testserver.apple" "com//A4534" and "54623"

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}?


So I've been having this problem for a while. The problem is, I can't save an username to MySQL field. Correct username: Vėdarėlis  Field result: VÄ—darÄ—lis  As you can see below, my collation is set to utf8   And I'm pretty sure the PHP itself is working fine, because in the general mysql log, I have this line:  168308 Query    UPDATE users_steam SET name='Vėdarėlis', ......rest of the query....   So how do I properly set user name with proper encoding? Thanks

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Let $0\to A\xrightarrow{i} B \xrightarrow{j}C$ be an exact sequence in an abelian category $\mathcal{A}$. For an object $M\in \mathcal{A}$, I want to show that the sequence $0\to \text{Hom}(M,A)\xrightarrow{i_*} \text{Hom}(M,B) \xrightarrow{j_*}\text{Hom}(M,C)$ is exact. I know the proof of this when $\mathcal{A}$ is the category of $R$-modules for some ring $R$, and the same proof applies to show that $i_*$ is injective and $j_*i_*=0$, but I can't see how to show $\ker(j_*)\subset \text{image}(i_*)$. In the case $\mathcal{A}=R$-mod, given $f\in \ker(j_*)$ I may take $i^{-1}f\in \text{Hom}(M,A)$ to get $i_*(i^{-1}f)=f$. How can we show this in a general abelian category?

If    $$ 0 \to A \to B\to C,$$    is a left exact sequence of $R$-module, then for any $R$-module $M$,    $$ 0 \to \operatorname{Hom}_R(M,A)\to \operatorname{Hom}_R(M,B)\to \operatorname{Hom}_R(M,C), $$    is left exact.   I proved the above, and highlighted what I'm a little unfamiliar with: Let $$ 0 \to A\ \xrightarrow{i}\ B\ \xrightarrow{f}\ C, $$  and  $$ 0 \to \operatorname{Hom}(M,A)\ \xrightarrow{\operatorname{Hom}(M,i)}\ \operatorname{Hom}(M,B)\ \xrightarrow{\operatorname{Hom}(M,f)}\ \operatorname{Hom}(M,C). $$  We need to show that  $$ \ker\left(\operatorname{Hom}(M,f)\right)=\operatorname{Hom}(M,i)(\operatorname{Hom}(M,A)). $$   Let $i \circ \varphi \in \operatorname{RHS}$. Then $f \circ i \circ \varphi : M \to C$ is $0$ since $f \circ i \circ \varphi(M) \subseteq f( i(A)) = f(\ker(f))=0$.  Conversely, let $\psi \in \operatorname{LHS}$. Then $f \circ \psi = 0$ so that $ f(\psi(M))=0$. Hence $\psi(M) \subseteq \ker(f)=i(A)$. Since the image of $\psi$ is contained in the image of $i$, we may factor $\psi$ as $\psi=i \varphi$ with $\varphi : M \to A$. (Here is my trial, but I'm not fully understanding this: Since $i$ is injective, $i(A)$ is isomorphic with $A$. So $i^{-1}(\psi (M)) \subseteq A$ and if we let $\varphi=i^{-1} \psi$, then $\psi = i \varphi$.)  And I have one more question: The above looks very messy, especially the notation. Is there a better proof/understanding about it?


I am analyzing a dataset. Each row corresponds to a participant who answered a questionnaire. Each participant is assigned a score based on their answers. I calculated the average score for each regional subgroup and I am interested in a statistical test that would suggest whether some regional subgroup's average score differs significantly from the national average. I am interested in a test whose assumptions regarding the distributions are minimal (for instance, I am not inclined to assume that the distributions are normal). Any suggestions?  By the way, I am working on R.  Thank you!

How can I test whether the mean (e.g., blood pressure) of a subgroup (e.g., those who died) differs from the whole group (e.g., everyone who had the disease including those that died)?  Clearly, the first one is a subgroup of the second one.    What hypothesis test should I use?


Late models of Pentium 4 can run 64-bit OS, as I understand. How to detect compatibility of my Pentium 4 processor with 64-bit OS?  I have following output for sudo lshw -C processor   *-cpu    description: CPU    product: Intel(R) Pentium(R) 4 CPU 3.00GHz    vendor: Intel Corp.    physical id: 4    bus info: cpu@0    version: 15.3.4    serial: 0000-0F34-0000-0000-0000-0000    slot: J2E1    size: 3GHz    capacity: 3060MHz    width: 32 bits    clock: 200MHz    capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr    configuration: id=1  *-logicalcpu:0       description: Logical CPU       physical id: 1.1       width: 32 bits       capabilities: logical  *-logicalcpu:1       description: Logical CPU       physical id: 1.2       width: 32 bits       capabilities: logical   Output for cat /proc/cpuinfo  processor       : 0 vendor_id       : GenuineIntel cpu family      : 15 model           : 3 model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping        : 4 microcode       : 0x17 cpu MHz         : 3000.141 cache size      : 1024 KB physical id     : 0 siblings        : 2 core id         : 0 cpu cores       : 1 apicid          : 0 initial apicid  : 0 fdiv_bug        : no f00f_bug        : no coma_bug        : no fpu             : yes fpu_exception   : yes cpuid level     : 5 wp              : yes flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr bugs            : bogomips        : 6000.28 clflush size    : 64 cache_alignment : 128 address sizes   : 36 bits physical, 32 bits virtual power management:  processor       : 1 vendor_id       : GenuineIntel cpu family      : 15 model           : 3 model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping        : 4 microcode       : 0x17 cpu MHz         : 3000.141 cache size      : 1024 KB physical id     : 0 siblings        : 2 core id         : 0 cpu cores       : 1 apicid          : 1 initial apicid  : 1 fdiv_bug        : no f00f_bug        : no coma_bug        : no fpu             : yes fpu_exception   : yes cpuid level     : 5 wp              : yes flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr bugs            : bogomips        : 6000.28 clflush size    : 64 cache_alignment : 128 address sizes   : 36 bits physical, 32 bits virtual power management:

I am on Ubuntu and I did this command:  $ uname -a Linux slabrams-desktop 2.6.32-29-generic #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011 i686 GNU/Linux   Does it mean I am on 32bit or 64 bit processor?  The reason I am trying to figure this out is that I was getting errors which looked like this:  cannot execute binary file   and from Googling, I thought it was a processor issue.  Any ideas?


Why is it that when I say "I will give this book to my daughter",  I am using the verb "give" and the preposition "to", but "to" is not used in the following: "What kind of names do people in your culture give pets?"

Consider these two sentences: "I gave him a pencil," and, "I gave a pencil to him."  Is it correct that the important part of the sentence is placed at the end? When we want to emphasize the pencil that I gave him, must we say, "I gave him a pencil?" When we want to emphasize that it is him to whom I gave a pencil, must we say, "I gave a pencil to him?"


hopefully this question is not too stupid ;-)  I need a list of all subscribers of an event.  for example, I got this Code:  Driver.PrimaryMessageReceived += Driver_PrimaryMessageReceived;   Now, I assume there are more that this one 'Driver_PrimaryMessageReceived' handler to the event 'PrimaryMessageReceived'  Is there a way to figure out (in runtime), which and how many subscribers to the event PrimaryMessageReveived have been subscribed?  I found this post:   but it wasnt very helpfull to me.  Thanks in advance

I need to copy the subscribers of one event to another event. Can I get the subscribers of an event (like MyEvent[0] returning a delegate)?  If this is not possible I would use the add accessor to add the delegates to a list. Would that be the best solution?


Hello Webmaster community!  I recently began a new job and have been making some adjustments to a very old and very cluttered website. The idea is to eventually rebuild from the ground up, however, for the time being I have to make this current site as SEO friendly as I can.  My site seems to be indexing fine after I submitted fresh site maps, and a lot of the images on the site's product pages are showing up, but I noticed today that none of the thumbnails are being picked up by Google at all.  I am very new to SEO and web design and I need help understanding why my images are not being indexed into google correctly? My only thought is that it something to do with the thumbnail images being in a folder, while the full size images reside in the same folder as the .htm file they are associated with.   Overall I need some guidance on what the issue is, how to fix it and measures I can take to prevent it in the future.  I hope I explained this well enough, please help me out!  Thank you to all!  I hope this makes

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


I am currently using file_get_contents() to get the title of a webpage, given the URL. On wamp, this works perfectly fine. However, when I shifted this to my web server, I came across a problem which lead me to  answer. (Which is to set allow_url_fopen to 1).  Is there a major security risk in setting this on? If yes, are there any alternate ways to grab the title of a webpage from the URL itself?  (Also, unsure of tags for this so please feel free to add/remove if appropriate!)  Edit (1) : Further research lead me to  question, which pretty much says that it is a risk as well, and to disable it if the application does not need it. Unfortunately this does not tell me enough about the risk involved.  Edit (2) : Quick note, I will be using this function with user input (the URL), and not internally, which is why I want to ensure there is absolutely no security risk involved

We have a couple of developers asking for allow_url_fopen to be enabled on our server. What's the norm these days and if libcurl is enabled is there really any good reason to allow?  Environment is: Windows 2003, PHP 5.2.6, FastCGI


\documentclass{article} \usepackage[utf8]{inputenc}  \title{A Comparative Study of Reliability of Database Systems Using RAID} \author{John} \date{April 2021} \usepackage{authblk} \usepackage{enumerate} \usepackage{graphicx} %package to manage images \usepackage{multicol} \graphicspath{ {./images/} }   \begin{document}  \begin{multicols}{2} \section{Abstract}

I use Texmaker 4.0.1 to write LaTeX code. I have written the following code:  \documentclass[12pt,onecolumn,oneside,a4paper]{article} \begin{document} \title{test} some text \end{document}   I saved it with the name test.tex and compiled it with pressing F6 -> F6 -> F2 -> F9 in succession. When I press F7 (View PDF) I see no title in the pdf but only "some text" that is, title does not appear.  Later, I have written the following code and saved it with name test1.tex:  \documentclass[12pt,oneside,onecolumn,a4paper]{article} \begin{document} \title{some title} \end{document}   When I compile it pressing F6 -> F6 -> F2 -> F9 in succession, the following message appears,     test1.dvi -> test1.pdf ** ERROR ** Could not open specified DVI file: test1.dvi Output file removed.   And neither dvi or pdf file is made.  I use Miktex 2.9 on Windows 7.


Is there anything in ubuntu 32 bit 14.04LTS something light, that will let me execute 64 bit binary executable files?  Architecture:          i686 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                4 On-line CPU(s) list:   0-3 Thread(s) per core:    2 Core(s) per socket:    2 Socket(s):             1 Vendor ID:             GenuineIntel CPU family:            6 Model:                 42 Stepping:              7 CPU MHz:               800.000 BogoMIPS:              4988.76 Virtualisation:        VT-x L1d cache:             32K L1i cache:             32K L2 cache:              256K L3 cache:              3072K

I have Ubuntu 14.04. I recently downloaded . The Viber .deb file has 64-bit architecture. I want to install it on my computer, but my computer only supports 32-bit.  The output of running lscpu is as follows:  Architecture: i686 CPU op-mode(s): 32-bit, 64-bit  Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1  Core(s) per socket: 2  Socket(s): 1  Vendor ID: GenuineIntel  CPU family: 6  Model: 23  Stepping: 10  CPU MHz: 2800.000  BogoMIPS: 5586.12  Virtualization: VT-x  L1d cache: 32K  L1i cache: 32K  L2 cache: 2048K


How can I add certain mobs to a team and make them passive to me if they would normally attack me? I know how to do it in 1.8, but how can I do it now in 1.16.4?

Ok, I want my character to either be ignored by zombies or unable to die (invincible). I've tried:   Adding a health scoreboard but this is uneditable  A repeating command block that gives the player instant health   effect give @a[scores={ifBeast=1..}] minecraft:instant_health 1 10  Making the player invisible (If you get close to the zombies they chase you)   None of the above work. The option that I would prefer is for the Zombies to completely ignore the player, but if I must resort to them being invincible to zombies while still getting hit (irritating) then I will accept that.


On  I wanted, given a point of seniority that was relevant to the description, to offer a crude metric of the date of earliest recorded webpage in archive.org.  The URL I gave was:  https://web.archive.org/web/19970415000000*/http://www.imsa.edu/~jhayward/   It seemed to be broken into two links and not obviously show someone else on the forum what I intended, which was to see the archive.org calendar page with 2 or so captures for the month. (I caught it quickly and used a URL shortener to circumvent the bug; the comment is the one edited to  ).  I'll try commenting the admittedly odd URL in a comment to this post to see what the engine makes of it.

Problem  1)  http://wayback.archive.org/web/20110615000000*/libgd.org/Documentation   When simply pasted in question or comments, this URL keeps just the first part linked ( */libgd.org/Documentation )  2)  http://wayback.archive.org/web/20110615000000*/http://libgd.org/Documentation   When simply pasted, this URL   in comments: breaks up in two ( second comment to this question ) in question: keeps first part linked ( */ )   But * is a valid URL character (  )  Workarounds  There is a workaround to adding such URL in question - just use the toolbar button in the question context box.  "Go "  In comments, the quick help box contains details on the syntax (it works).   The bug  This enquiry relates to the feature of making hyperlinks automatically just when URLs are pasted.  Related:     status-completed  status-by-design "An asterisk is not in the sanitizer's character whitelist for URLs"