I just encrypted my home directory using ecryptfs and the instructions from .  In order to really benefit from the encryption, however, I needed to change to a stronger and longer password for login. Typing in a long password once at login doesn't bother me, but it does get annoying to have to type in such a long password every time I use sudo.  How can I set my account to use two passwords: a strong long password for login and a weaker shorter password for sudo (with an ecryptfs encrypted home folder)?

How can I give a user one password for normal usage when logging in, and another password for system administration and sudo access? I want one user to have two passwords.


Earlier, my default Python version was python2.7.   To upgrade it, I deleted python from /usr/bin/ and renamed python3.6 as python in the same directory.  Afterwards, my terminal stopped working.   It gets no response on opening it.

I am a new Ubuntu user running Ubuntu 13.04.  I've been trying to install and use a DeDRM tool, but I've been having problems doing so. I was following some directions that said I needed a version of Python 2.7, but not anything Python 3.0 or later (because 3.0 versions are missing some necessary libraries?). I tried to install Python 2.7.5.6, but it didn't work. I thought it was probably because I had the later version of Python, so I went through terminal and removed Python 3.3, so I could install the earlier version of Python.  Now that I've uninstalled Python 3.3, a lot of applications no longer work, including the terminal and the Ubuntu Software Center. I have no idea how to fix this problem now.


This question has been asked many times in conjunction with a suddenly disappearing sun. The common reaction to this is that it takes a while for the spacetime curvature to be changed around it. In accordance with special relativity, so it is said. An instantaneous change from curved to flat by means of a disappearing mass doesn't mean though that information is traveling faster than light. Why not? Simply because you can't remove a mass instantaneously. This renders the question meaningless maybe, but you can do it in the imagination. If the mass suddenly is not there anymore, there will not emerge a gravitational wave. Only when you move it this will happen. Which is needed to transmit information. If I move the mass fast to and fro, a wave will emerge, so you can convey information with it. But not if the mass suddenly ceases to exist. In connection with charge and the electromagnetic field surrounding this charge, I've read about experiments to uncover if the change in the field surrounding the charge is instantaneous. This means that there is a doubt for that case. The same arguments I gave above can be applied to the electromagnetic field. Will an electromagnetic field instantaneously appear if charges appear in the creation of a positron-electron pair (or disappear when they annihilate)? See also  article (written in 2006 by W. Engelhardt, retired from Max-Planck-Institut für Plasmaphysik, D-85741 Garching, Germany), in which it is written:  the instantaneous transmission of both energy and information over macroscopic distances is feasible by using the quasi-static fields which are predicted by Maxwell’s equations.  I don't think that the conclusion drawn there (or by me) is correct though (information can't travel at the speed of light). Even if you could create single electrons (contrary to an electron and a positron, appearing at a point), and the field of that electron would be present at the same time everywhere, you could use them to transmit information: when I create one electron per second it's an A, when I create two per second, it's a B, three per second a C, etc. but is Engelhardt mistaken too? Is it because he's retired..., maybe?

Suppose an electron is created somehow in the universe -- through particle-pair production or what have you. Suppose it is stationary so that electrodynamics (and specifically propagating electromagnetic waves) is unavailable for explanation. Certainly distance charges will feel Coulomb's force, but how quickly?   I'm wondering if, since electromagnetism is manifestly relativistic (Lorentz rather than Galilean invariant) we can use that to always move to a frame where the electron is travelling and then claim that there are in fact EM waves? I don't know.


I've read this excellent post:   ...But I'm having trouble finding one that meets my criteria. Hopefully someone with some hands-on experience can save me the weeks of trying each package :)  This is what I'm looking for:   Scheduling so I can run a weekly backup Backup must cover the ENTIRE system for a quick restore in a jam. Similar to Clonezilla. Prefer bootable USB/CD to restore from   If anyone is familiar with Acronis in Windows, I'm looking for something like that. Set it to 1AM Friday mornings, and let it do its thing. If I hose my Ubuntu install, I pop in a USB stick, punch in my NAS address, and let it restore.  Thanks for any input!

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .   Backup is incredibly important. Obviously there's no best backup tool, but a comparison of the options would be very interesting.   Graphical Interface? Command line? Incremental backups? Automatic backups? Install method: In standard repositories? PPA?


What is the difference between which and that? For example, I have a sentence,  They describe different methods, which their company usually practices.  Which is better to use here — which or that?

When is it appropriate to use that as opposed to which with relative clauses?


I'm writing a Java program which will pull out the process related logs for an application. For this I need to get the Java processes created in a specific location. I need to know how to get this information on a Windows box using a single command or a combination of commands that can be passed in a single line.  I did a bit of studying and ended up with PowerShell as an option. I get the result using two separate PowerShell commands:  Powershell Get-Process java| where {$_.path -like 'D:\ptc\Windchill_11.0\Java\jre\bin\java.exe'}     But when I combine the two, no results are obtained:  Powershell ; Get-Process java ^| where {$_.path -like 'D:/ptc/Windchill_11.0/Java/jre/bin/java.exe'}     Can anyone help me to combine the two, or is there any other option other than PowerShell?

how i can run this command from cmd :     powershell.exe "(get-process | ? {$_.Description -eq   "Sysinter Process Explorer"}) | select processname | out-file   $env:APPDATA\example.txt"   i still get this error :     You must provide a value expression on the right-hand side of the   '-eq' operato r. At line:1 char:37   + (get-process | ? {$_.Description -eq <<<<  Sysinternals Process Explorer}) | select processname | out-file $env:APPDATA\example.txt       + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordEx    ception       + FullyQualifiedErrorId : ExpectedValueExpression


time1 = '03 Mar 1999' time2 = '16 Apr 1999'  How to convert the above from string to time? I need to compare which one is earlier and the time lag(time2-time1)

I've got a huge list of date-times like this as strings:  Jun 1 2005  1:33PM Aug 28 1999 12:00AM   I'm going to be shoving these back into proper datetime fields in a database so I need to magic them into real datetime objects.   This is going through Django's ORM so I can't use SQL to do the conversion on insert.


I want to add "Buy" word in Just Title tab not in post Title Which show in image  how can do this can some one help on it??

Every WordPress page can be described as having two titles:   The page/post title, which is displayed within the page/post via the the_title() function call The html <title></title> tag that displays the title on top of the browser   I am writing a plugin which at one point should change the title of a page dynamically (well, it should change both titles described above).  So, for step 1 above, I found multiple solutions on Stack Overflow (such as  or ). Those are great for only step 1 above.  For step 2, I found  solution; in a nutshell, this is how it works:  add_filter('wp_title', 'change_page_title'); function change_page_title ($title) {      // Do some magic, and eventually modify $title then return it     return $title; }   But the suggested solution is not working for me; and by not working I mean that the filter is not calling the associated function. I am not sure what the problem is; is it because this filter is being called from within the plugin not the theme? (Just FYI, I do not have access to the theme files, so it has to be done from within the plugin).  How can I accomplish this? How can I change the browser title of a page dynamically from within a plugin?   Thanks.


I have code like this:  for (int i = 0; i <= n; i++) {     for (int j = 0; j <= i; j++)     {         f(); // constant operation     } }   The number of times f would execute appear to be:  n+n+(n-1)+(n-2)+(n-3)+...+2+1+0 = (n*n)-n = n^2-n  If we drop the low-order term (-n), The big O would be O(n^2).  Is this all correct?

I need to calculate the time complexity of the following code:  for (i = 1; i <= n; i++) {   for(j = 1; j <= i; j++)   {    // Some code   } }   Is it O(n^2)?


It seems that the correct form is "This is a tasty, hot, Indian curry."   I don't understand why you cant reorder "tasty" and "hot". It seems to me that they both reflect the gustatory sensation of the subject and  are not giving opinion.   Is "hot" always about the temperature (discussed in   ) and not about the capsaicinoids contents?

I remember being taught that the correct order of adjectives in English was something along the lines of "Opinion-Size-Age-Color-Material-Purpose."  However, it's been a long time and I'm pretty sure I've forgotten a few categories (I think there were eight or nine). Can anyone fill them in?


I have a list of strings in python that looks like this:   Name number number 4-digit number   How can I sort it by the last number?

Part of a programme builds this list,  [u'1 x Affinity for war', u'1 x Intellect', u'2 x Charisma', u'2 x Perception', u'3 x Population growth', u'4 x Affinity for the land', u'5 x Morale']   I'm currently trying to sort it alphabetically by the name of the evolution rather than by the number. Is there any way I can do this without just changing the order the two things appear in the list (as in 'intellect x 1)?


$$\binom{r}{r} + \binom{r+1}{r} + \binom{r+2}{r} + \dotsb + \binom{n}{r} = \binom{n+1}{r+1}$$  I don't have much experience with combinatorial proofs, so I'm grateful for all the hints.  (Presumptive) Source: Theoretical Exercise 1.11, P18, A First Course in Pr, 8th Ed, by S Ross

Let $n$ be a nonnegative integer, and $k$ a positive integer. Could someone explain to me why the identity $$ \sum_{i=0}^n\binom{i+k-1}{k-1}=\binom{n+k}{k} $$ holds?


how do I sort lists like the one below using sort or any related commands?  12.ale.panal.sel.blr.teta.hf.ew.rr.lwq.ors.2018 34.ev.we.ars.lmn.2017 5.lam.bere.meto.belagn.hede.we.e.2020 54.arad.met.kal.sil.tek.br.yz.2005   I want to sort them according to the last word which is the year chronologically?  N.B basically something like sort -t. -k-1 although -1 is not allowed. Any command just to address the last part?

I have this input:  sdkxyosl 1 safkls 2 asdf--asdfasxy_asd 5 dkd8k  jasd 29 sdi44sw 43 asasd afsdfs 10 rklyasd 4   I need this output:  sdi44sw 43 dkd8k  jasd 29 asasd afsdfs 10 asdf--asdfasxy_asd 5 rklyasd 4 safkls 2 sdkxyosl 1   So i need to sort the lines by the last column.  I don't know how many columns are in one line.  I just can't figure it out, how to do it. I don't have "perl powers". I just have ~average scripting powers with sed, awk, cut, etc..   Does somebody know how to do it?


I saw a game developer overload the new and delete operator on YouTube. His name is Cherno. void* operator new(size_t size){     return malloc(size); } void operator delete(void* pointer, size_t size){     free(pointer); }  Well, now what I did is I created a class: struct MyClass{     int my_int;     MyClass(int a): my_int{a}{}     ~MyClass(){cout << "MyClass is destructed" << endl;} };  And I created a heap allocated object of that class in the main() function int main(){     MyClass* cls = new MyClass{10};     // free(cls);    //Doesn't call the destructor     delete cls;      //Does call the destructor     return 0; }  Output: MyClass is destructed  So, here is my question. Why does the delete call the destructor and the free() doesn't, even if all delete does is that it uses the free() internally (I assume). And I know that we shouldn't use free() on objects that are allocated using new operator. But even in this case the new operator uses malloc() internally

What is the difference between new/delete and malloc/free?  Related (duplicate?):


I'm collecting toys, they come in blind packs and there are 9 of them. Therefore for the first toy I have a 1.0 probability of getting a toy I haven't had before, then a 8/9, then a 7/9 and so on. On average, how many toys will I need to buy before I get the whole set?

What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die?  The order in which the numbers appear does not matter.  I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation.  We were given the answer $(1-(\frac56)^n)^6 = .5$ or $n = 12.152$  Can someone please explain this to me, possibly with a link to a general topic?


I need to find the largest file in the current and subsequent directory. I tried   ls -Rlh | awk '{print $3 " " $5 " " $9}'    but do not know if it is ok, how to sort and select the largest file.

I am trying to find the largest file in a directory recursively. If there is a subdirectory inside of that directory the function needs to go inside that directory and check to see if the largest file is there. Once the largest file is found the output is displayed with the relative path name and the name and size of the largest file.  EX:  dude@shell2 (~...assignment/solutions) % bash maxfile.sh ~/test class/asn dude.h.gch: 9481628   This is what I have:  #!/bin/sh clear  recursiveS() {     for d in *; do         if [ -d $d ]; then             (cd $d; echo $(pwd)/$line; du -a; recursiveS;)         fi     done } recursiveS   I have been stuck for a while now. I cannot implement this by pipelining a number of existing Unix tools. Any ideas would be nice!


There are several files ( mostly pngs ) amounting to around 5 GB in my Git repository. These files are spread across different directories. So, basically I just needed to delete those directories. Eg.   dataset1/ #contains around 1 G of pngs dataset2/ #contains around 1 G of pngs library1/ #contains around 3 G of .so   I have now deleted them, commited and pushed again. But ofcourse, if I clone the repository again, since they once were checked in, become part of the checkout. I can confirm, that they are being checked out because I can see the number of objects and it is a huge number ( 52768 ). After deleting the 5 GB, I was expecting around 3000 objects.  How can I permanently delete them from the upstream as well, so that they dont appear in the clone anymore?

I accidentally committed an unwanted file (filename.orig while resolving a merge) to my repository several commits ago, without me noticing it until now. I want to completely delete the file from the repository history.   Is it possible to rewrite the change history such that filename.orig was never added to the repository in the first place?


I have searched the method here but there is no case for me.  Is there functionality to convert from UTC time to local time using country name from excel ?  Example :  string CurrtTime = DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss");   I would like to create a variable for localtime which receive value ( country name ) from Excel. How to do ?  string localtimenow = ____________.(CurrtTime).(Thailand) string localtimenow2 = ____________.(CurrtTime).(Australia)  Expected results.  UTC TIME => yyyy-MM-dd 08:18:xx  BKK TIME => yyyy-MM-dd 15:18:xx  SYD TIME => yyyy-MM-dd 18:18:xx

We are developing a C# application for a web-service client. This will run on Windows XP PC's.  One of the fields returned by the web service is a DateTime field. The server returns a field in GMT format i.e. with a "Z" at the end.  However, we found that .NET seems to do some kind of implicit conversion and the time was always 12 hours out.  The following code sample resolves this to some extent in that the 12 hour difference has gone but it makes no allowance for NZ daylight saving.  CultureInfo ci = new CultureInfo("en-NZ"); string date = "Web service date".ToString("R", ci); DateTime convertedDate = DateTime.Parse(date);               As per :     UTC/GMT Offset       Standard time zone: UTC/GMT +12 hours   Daylight saving time: +1 hour   Current time zone offset: UTC/GMT +13 hours     How do we adjust for the extra hour? Can this be done programmatically or is this some kind of setting on the PC's?


I saw , but the answer doesn't help me.  I have a case where I want to measure the distance between a given lat/long and "My Object's" Site's geolocation coordinate. The code is like:  String myId = ...; String lat = ...; String lon = ...;  List<MyObject__c> myObjects = (List<MyObject__c>) Database.query(     'SELECT Id, Name, DISTANCE(Site__r.Coordinates__c, ' +         'GEOLOCATION(:lat, :lon), \'km\') dist FROM MyObject__c ' +         'WHERE Id = :myId');   This query works, but even when the related Site object has valid coordinates, and the lat/lon values are valid, getting the value from the MyObject__c instance:  System.debug(myObjects[0].getPopulatedFieldsAsMap().get('dist'));   Log:     11:21:48.41 (124442138)|USER_DEBUG|[14]|DEBUG|null   It is always null.  If the "Coordinates__c" are directly on MyObject__c the above query works. It is something to do with the fact that the coordinates originate from a related object.  Anyone know how to get this query to work with this object structure? (I am working around this by getting the coordinates back and performing an explicit distance calculation in Apex but would rather not.)

I am opening this question after reading this:   I have this query [SELECT id, DISTANCE(some_field__c, GEOLOCATION(0,0), 'mi') distance FROM Parent__c LIMIT 1] and that's working fine.   However when I try to execute this query starting from the child:  [SELECT id, DISTANCE(Parent__r.some_field__c, GEOLOCATION(0,0), 'mi') distance FROM Child__c LIMIT 1] I get an error saying No such column 'distance' on entity Child__c. Is this a salesforce limitation or am I doing something wrong?


I was reading about algebraic extensions. I want to know is there any example where finite extension of any field F is not algebraic extension.

As title,  Is any finite-dimensional extension of a field, say $F$, algebraic and finitely generated?  Say if $K/F$ is a finite extension when $K$ is a finite-dimensional vector space of $F$. Clearly, this implies that $K$ is finitely generated (as an algebra) over $F$, since a basis is a generating set. So every finite extension is finitely generated.  So indeed they all are, is my logic correct?


Using pdfLaTeX. I have created a new command \newcommand{\singlefigure}[3]{   \begin{figure}   \label{fig:#2}   \centering   \caption{#3}   \includegraphics[trim={0cm 0cm 0cm 0cm},clip,height=0.2\textheight]{./fig/#1}   \end{figure} }  having it in mind to speed up the coding of figures. Actually it suits me pretty well, at first since \singlefigure{directory/file.jpg}{mylabel}{My caption}   gets me immediately where I want.  Likewise, I have created another shorthand to reference a figure \newcommand{\fig}[1]{Figure~\ref{fig:#1}}    which works well except when I am referencing a figure created with \singlefigure above, say \fig{mylabel}.  The result is  Apparently I created a situation in which the label of the first command is not visible to the second one. Is there a remedy, correction or workaround for this glitch?  Similar posts:

Please see figure \ref{loginMock}.  \begin{figure}[H]     \label{loginMock}     \centering     \includegraphics[width=7cm]{loginIdea}     \caption{Landing/Login Page Example} \end{figure}   I am using TexShop and the caption package, and tried compiling twice, but still ?? shows up.  The warning I'm getting in the console is:  Package caption Warning: \label without proper \caption on input line 29. See the caption package documentation for explanation.   LaTeX Warning: Reference `loginMock' on page 1 undefined on input line 24.   thanks!


I understand that the total number of Knights tours is known for boards up to 8 x 8.   These are: 1, 0, 0, 0, 1728, 6637920, 165575218320, 19591828170979904  As found here: ""  Could some please explain the relationship between those numbers, or how they are increasing in relation to how board size increases.   Thanks.

The knight's tour is a sequence of 64 squares on a chess board, where each square is visted once, and each subsequent square can be reached from the previous by a knight's move.  Tours can be cyclic, if the last square is a knight's move away from the first, and acyclic otherwise.  There are several symmetries among knight's tours.  Both acyclic and cyclic tours have eight reflectional symmetries, and cyclic tours additionally have symmetries arising from starting at any square in the cycle, and from running the sequence backwards.  Is it known how many knight's tours there are, up to all the symmetries?


I was wondering why I can't do this this way by proof by contradiction of the contrapositive. So I want to prove $$2^n + 1 \quad \text{is prime} \implies n = 2^k \quad \text{for some} \ k\in \mathbb{Z}.$$ By contrapositive, $$n \neq 2^k \quad \text{for all} \ k \in \mathbb{Z} \implies 2^n + 1 \quad \text{is composite.}$$    Then I want to prove by contradiction: Suppose $n \neq 2^k \quad \forall k\in \mathbb{Z}$ and $2^n + 1$  is prime. Why can't I give one counterexample to prove that this is false (contradiction)? Since if $n:= 3$ then $2^3 + 1 = 9$ which is composite, hence, $2^n + 1$ being prime (hypothesis) cannot be true, so by proof by contradiction, $2^n +1$ must be composite?

If $2^n+1$ is prime how to show that  $n$ must be a power of $2$  Being at elementary level I am at a loss what to begin with?


This problem has made me feel blue, and I can't work out how to fix it.  class A{ public:     static int get_A() {         return a;     }     static int get_B() {         return b;     }     static int a;     static int b; };  int main() {     int c = A::get_A();      return 0; }   I wanna use static an in static method get_A(), but I got compiling error as below. (please forgive me using the meanless variable name in the program like above)  Undefined symbols for architecture x86_64:   "A::a", referenced from:       A::get_A() in main.o

Can anyone explain why following code won't compile? At least on g++ 4.2.4.  And more interesting, why it will compile when I cast MEMBER to int?  #include <vector>  class Foo {   public:       static const int MEMBER = 1;   };  int main(){       vector<int> v;       v.push_back( Foo::MEMBER );       // undefined reference to `Foo::MEMBER'     v.push_back( (int) Foo::MEMBER ); // OK       return 0; }


Is there a possibility to tell systemd to not restart a service? Or force systemd to restart a service maximum 3 times. If after 3 restarts service still needs to be restarted then systemd stops this service. I am trying changing .conf file (with StartLimitBurst option) but still without good results. Is there any other option with which I could do that?  When I see logs. There is something like: Unknown lvalue 'StartLimitBurst' in section 'Unit. Why is that?

I know what the command is sytemctl disable NAME but I have a question about the NAME parameter.  For example the bluetooth service[1] on Fedora 21. For the NAME parameter should you put bluetooth or bluetooth.service or bluetooth.target?  Please note I am using bluetooth as an example but the question is meant to be generic (i.e. if a service has many associated units (i.e. socket, target, service)).    [1] When I searched for the bluetooth service I found a couple things that matched the "bluetooth" grep string:  $ systemctl list-unit-files|grep -i bluetooth bluetooth.service                           enabled  bluetooth.target                            static


The number of degrees of freedom of a CFT is given by its central charge $c$. From the bootstrap point of view, any CFT is characterized by the knowledge of its "CFT data", i.e. the scaling dimensions of its operators $\Delta_i$ and its 3-point functions $\lambda_{ijk}$.   My question is, when we say a CFT has a holographic dual, exactly what conditions do we need to impose on the CFT? Does it involve restriction only on the central charge (the repeated meme is large $c$, but large compared to what?), or do we need to fine tune the CFT data also?   Also are these conditions necessary and sufficient for a holographic bulk dual, in the sense that can one always perform a HKLL causal bulk reconstruction starting from such a CFT, or a bulk reconstruction by deriving the Einstein equations via RT formula for these CFTs?

The AdS/CFT correspondence states that string theory in an asymptotically anti-De Sitter spacetime can be exactly described as a CFT on the boundary of this spacetime.   Is the converse true? Does any CFT in a suitable number of spacetime dimensions have an AdS/CFT dual? If no, can we characterize the CFTs which have such a dual?


it's been on my mind for sometime, why is Z last letter of alphabet, why is A the first, why is D the 4th letter, are these letters just based randomly then people agreed on them, therefore creating the "alphabetic order" or were they based on something more logical, scientific, such as syllable and the way each are pronounced.

Is there a reason behind the ordering of letters in the English alphabet? i.e. why are we taught “A,B,C,D,E,F,...,Z”? Why not “L,A,S,U,I,Z,...,C”?  I am asking this because, in some of the languages I know, I am told that the ordering of the letters in the alphabet is based on the ease with which they can be pronounced or the frequency with which they are used or depending on the part of the vocal cord that needs to be stressed to pronounce the letter.  Is there a similar rationale?  EDIT  You can see a couple of references for arrangement of letters in Sanskrit  and .


NOTE: This is another issue than my topic created before. This is another exception and I run the wizard with the install account.  I am using sp2013 foundation. I try update sp with this service pack: sharepointsp2013-kb2880551-fullfile-x64-en-us  I installed the service pack and finished. I did a reboot. After the reboot I start the wizard. I press a couple of times on next and then I saw a progress bar. It is stuck on step 9 of 10. I wait 4 hours and canceled the wizard. It is a small farm with 1 sharepoint server and 1 sql server. This sql server is also using for non sharepoint web applications. I found this error in the event viewer:     Insufficient SQL database permissions for user 'Name:   MYCOMPANY\sa-sp-farm SID:   S-1-5-21-4150703077-982559751-1245044889-12028 ImpersonationLevel:   Impersonation' in database 'SharePoint_Config' on SQL Server instance   's096ap'. Additional error information from SQL Server is included   below.      The UPDATE permission was denied on the object 'Locks', database   'SharePoint_Config', schema 'dbo'.   I found also this error:     The Execute method of job definition   Microsoft.SharePoint.Administration.SPUpgradeJobDefinition (ID   fbedf013-0d07-4a92-b35a-59fd515181c2) threw an exception. More   information is included below.      Object reference not set to an instance of an object.   What is this?

I am using sp2013 foundation. I try update sp with this sp: sharepointsp2013-kb2880551-fullfile-x64-en-us  I installed the sp and finished. I did a reboot. After the reboot I start the wizard. I press a couple of times on next and the I saw a progress bar. After 2 seconds I got this error:  The INSERT permission was denied on the object 'Locks', database 'SharePoint_Config'  This is the full error:  Task initialize has failed with an unknown exception  06/26/2014 14:52:31  9  ERR                  Exception: System.Data.SqlClient.SqlException (0x80131904): The INSERT permission was denied on the object 'Locks', database 'SharePoint_Config', schema 'dbo'.    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)    at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)    at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()    at System.Data.SqlClient.SqlDataReader.get_MetaData()    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)    at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)    at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, Boolean retryForDeadLock)    at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command)    at Microsoft.SharePoint.Administration.SPLock.Acquire(SqlSession sqlsession, SPLockType type, String objectname, Guid& lockid, String& server, String& commandline, Boolean force)    at Microsoft.SharePoint.Upgrade.SPManager.AcquireFarmUpgradeLock(Boolean bForce, Boolean singleClickInstall)    at Microsoft.SharePoint.PostSetupConfiguration.InitializeTask.Run()    at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask() ClientConnectionId:9f1f69eb-dc64-4ba7-9a5d-60daca7e5c21 06/26/2014 14:52:31  9  INF                  Entering function Common.BuildExceptionMessage 06/26/2014 14:52:31  9  INF                    Entering function StringResourceManager.GetResourceString   What is this, I logged in with farm account.


I'm trying to implement the  pattern and, while awfully close, can't quite make it work. My use case is that I need to define a bunch of classes to perform lookups in order to validate values. All of these classes do essentially the same thing and differ only in the files from which they build their lookup values. For a given class type, I want to store the lookup info in a static std::set member (since some of these lookup sets are quite large) that is shared amongst all instances of that type. Research on stackoverflow led me to the CRTP pattern as a way to get "static polymorphism" which is exactly what I need.   In the example below, I have a base lookup class (which itself derives from another class, "CDE"). I then define a child class, ICD9, which should build its set values from the file "icd-9.txt." I breadboarded this concept in a simpler file and it works beautifully.  The problem is that, when compiling, I'm getting an unresolved symbol error during linking. Something, I think, having to do with the constructor. I've tried every permutation I can think of on the ICD9 constructor and can't seem to figure it out. Part of the difference between this and my prototype case is that I am now splitting into header and implementation files, and I suspect I'm getting tripped up on syntax.   Please note that I stripped a lot of extra info from these classes for readability; I think what remains is a legit representation of what's going on.   Any help would be greatly appreciated. Thanks.  The linker error:  Error   1   error LNK2019: unresolved external symbol "public: __thiscall LookupCDE<class ICD9>::LookupCDE<class ICD9>(void)" (??0?$LookupCDE@VICD9@@@@QAE@XZ) referenced in function "public: __thiscall ICD9::ICD9(void)" (??0ICD9@@QAE@XZ)   LookupCDE.h:  #include <set> #include "CDE.h"  template <class T> class LookupCDE : public CDE {     typedef std::set<string> lookup;  public:     LookupCDE();  protected:     static const char* filepath;     static lookup data;      string value;      bool m1(char* s);     int f1(); };   LookupCDE.cpp  #include <fstream> #include "LookupCDE.h"  template<class T> LookupCDE<T>::LookupCDE() {     ifstream file(filepath);     while (getline(file, line))         data.emplace(line);     file.close(); }  template<class T> bool LookupCDE<T>::m1(char* s) {     return data.count() > 0; }   ICD9.h  #include "LookupCDE.h"  class ICD9 : public LookupCDE<ICD9> { public:     ICD9(); };   ICD9.cpp  #include "ICD9.h"  ICD9::ICD9() {  }  const char* LookupCDE<ICD9>::filepath = "Data/icd-9.txt";

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I am currently using Ubuntu Desktop 18.04 LTS. Where I work with mainly LibreOffice Calc. But I have to work with a server as well, and I only have one PC. So if I install Ubuntu Server, can I use LibreOffice Calc as well?  Please try to answer as yes or no: Is LibreOffice Calc is preinstalled in ubuntu server or have I to manually install it?

Trying to run a Ubuntu server for the first time... But everything is in a terminal. Is there a way to switch to a GUI?


We have to evaluate-     $$\int_0^\pi \frac{\sin^2x}{a^2+b^2-2ab\cos x}\mathrm dx$$   I tried applying the property $\displaystyle\int_0^{2a}f(x)\,\mathrm dx=\int_0^a f(x)+f(2a-x)$ and proceeding I got $$\frac{a^2+b^2}{2a^2b^2}\frac{\pi}{2}-\frac{2(a^2+b^2)}{4a^2b^2}\int_0^{\pi/2}\frac{(a^2-b^2)^2\sec^2x}{(a^2-b^2)^2\sec^2x+4a^2b^2\tan^2x}\mathrm dx$$  Things are getting messed up after this.  Is there a better way out?

How do we evaluate $\displaystyle\int_{0}^\pi \dfrac {\sin^2 x}{a^2-2ab \cos x + b^2}\mathrm dx$ ? I tried substitution and some other methods , but its not working ; please help .


I recently tried to edit a user question, but I ended up quitting, because Stack Overflow wouldn't allow me to Save Edit. I originally thought the question needed improved formatting on some code and some corrections of English grammar.  The reason was because:    The original text was this:     I use Alamofire to download multiple files on the tableViewCell show download progress.   From my point of view I believe it's pretty essential that the user says he's using "Alamofire Framework". Though he can include it using the tags and avoid it in the text.  Question:  Is it okay to edit an answer in that degree that you'll might end up changing too much information?  Should all references to e.g. frameworks be added to the question using tags, if so, should editors delete all sentences/rewrite to avoid references to these things?

Note  is related, but not exactly the same, as this posts asks why OP could post (but I couldn't), whereas the other one states that OP shouldn't be able to.  Following :    All I tried to do was a retag (remove inappropiate  tag) and remove unnecessary content (thanks).  Though, I couldn't submit my edit. This was the error I was getting:    Just to clarify, this is the original question body, fully unmodified (apart from the "TIA" I removed):    My question now, why can't I post his post containing Chinese characters? And more importantly,  Why could OP post this, but I cannot?  Yes, I understand you shouldn't attempt to salvage very low quality questions. I just wanted to retag it, because it doesn't belong in .


Today I've realized that when voting for closing questions, some of them have have an account for some reasons I can't see. For instance:    So I read that question, see that it lacks sufficient information and I'm voting for its closing. In the first menu I see there are 3 votes:    But once I click on the "Offtopic" submenu I can see just 2 votes:    I can't see the third reason which I assume has only one vote (code must demonstrate a minimal understanding of the problem being solved). The same I've noticed for this one:     off-topic: Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.    Why is that I can't see those reasons as options nor the votes for them?

I've found strange behavior when closing this  - I definitely see that there are 3 closing votes and 2 of them are at "Off-topic" section:   -but there are no explanations on section itself:   -while, normally, it's expected that it will appear. In custom comments section there are also no closing-votes displayed.   Perhaps it's just my browser (which is FF 26 x64 under Win) - so marking this as a "possible bug". Thank you for your attention.


I have an image and all text is marked by rectangles around each word. I need to select some words by marking them with finger. To do so, I draw a line on the image. I need to check which rectangle contains that line.  how I can check if a rectangle contains that line.    i want get rectangle on which line as drawn  Edit This has been implemented in Google Translator App. I need exact same behavior.

How do I determine whether or not two lines intersect, and if they do, at what x,y point?


I want to install Ubuntu on my laptop. Will i be able to install it without removing the windows 7 OS. I would like both of them.

My laptop has 500gb hard disk in which for 250gb I installed Windows xp on C drive(primary partition). I want to install Ubuntu 12.04 in the remaing hard drive with dual boot option. When I am going to install Ubuntu it is showing something like  /boot /boot/   Can anybody help me in this regard that where and how to install Ubuntu?


I was asked to prove or disprove the following:  If $\int_{1}^{\infty}f(x)dx$ converges then $\lim_{x\to\infty}f(x) = 0$.  I said that this is false and gave this example:  $f(x) = \left\{  \begin{array}{ll}   1  & \mbox{if } x \in \mathbb{Q} \\   -1 & \mbox{if } x \notin \mathbb{Q}  \end{array} \right.$  $\int_{1}^{\infty}f(x)dx = 0$ and $\lim_{x\to\infty}f(x)$ does not exist.  Was my example correct? And could anyone please elaborate more on this topic and write a little about how I should think in case I encounter similar T/F questions in the future?

Is there a continuous function such that $\int_0^{\infty} f(x)dx$ converges, yet $\lim_{x\rightarrow \infty}f(x) \ne 0$?  I know there are such functions, but I just can't think of any example.


I have added my user to the users group using the following command:  sudo usermod -a -G users foo   However, when I then type the id -Gn command it is not showing the user as being part of the users group. I then try the following and it says it is apart of the users group:  getent group | grep users   Also tried simple id foo command and says it is part of it as well. Why is it not showing in my secondary groups when I use id -Gn?

Assume I'm logged in with user takpar:  takpar@skyspace:/$   As root, I've added takpar as a member of group webdev using:  # usermod -a -G webdev takpar   But it seems it has not been applied, because for example I can't get into a webdev's directory that has read permission for group:  400169 drwxr-x--- 3 webdev webdev 4.0K 2011-08-15 22:34 public_html  takpar@skyspace:/home/webdev/$ cd public_html/ bash: cd: public_html/: Permission denied   But after a reboot I have access as I expect. As this kind of group changing is in my routine, is there any way to apply changes without needing a reboot?  Answer It seems there is no way to make the current session know the new group, for example the file manager won't work with new changes. But a re-login will do the job. The su command is also appropriate for temp commands in urrent session.


I know different games use different techniques and units of measurement. In Starcraft II one range for attack is about the width of one zergling. In Guild Wars the range is some fraction of the compass or aggro range (Spears have ~0.7x aggro range, longbows ~1.2x)  Most (or all?) meelee champions in LoL have an attack range of 125. The attack radius for range champions differs quite a bit, e.g. 425 for Urgot, 510 for Twisted Fate and 550 for Heimerdinger.   I wonder how is range exactly measured in League of Legends?

I play the character called Tristana in League of Legend. Tristana have an ability called "BUSTER SHOT" (Tristana's ultimate).     BUSTER SHOT:    Tristana fires a massive cannonball at an enemy unit. This deals 300 / 400 / 500 (+150% of ability power) magic damage and knocks surrounding units back 600 / 800 / 1000 distance.   What does the numeric value of distance in League of Legends, as described in this ability, equal to what visible range in the game?  In other RTS games, like StarCraft 2 - it's a nice thing to know when you engage in combat. To be startegic in your advance against an enemy, and your teamwork regarding League of Legends.  If I knew what the "distance" is translated into on the screen, I could be more effective in positioning my teammates for the final-blow on an enemy hero.


What is your strategy in picking between appimage, snaps, flatpak or anything else ? Does it matter with the type of app or do you just devote yourself to one packaging system entirely ? My first instinct would be to go to the developers website and see if they recommend any package type over the other or if there is any "official" package. (I'm a current windows user soon to install Ubuntu) I would mostly download IDEs/text efitors like vscode, Android studio, pycharm, etc and sdks and probably some software u for setting up local servers. I would like to enjoy timely automatic updates but at the same time would prefer if the apps open quickly so that I boost my productivity. It just feels like every time a universal packaging system is proposed, it ends up being just another added to the ones that already exist.

I have been getting this question lately from students and although I have a lot of information to offer, I have not found a source that I can point people to where they can read an update answer (I have found a lot of misinformation and obsolete information). So, some of the questions I have for package formats like snap, appimage, flatpak and others in this evolution of universal packaging systems are:   Who created the package format? What features does it offer? What features are unique to it? (That the others do not yet have) Who supports it? What Distributions use it? What focus does the package have? (For Desktop, Clouds, Mobile, etc..) Which are more actively developed?


I've setup a OpenVPN server using tun and udp and enabled the options for redirecting all internet traffic and pushing lan to clients.  In the HOST NETWORK The OpenVPN Server is configured to dish out 10.8.0.x network addresses for OpenVPN clients where as the LAN clients are in the 192.168.x network.  It looks something like this.  ----------------------------------------- |            HOST NETWORK               | |     LAN Clients    +  OpenVPN Server  | |     192.168.1.x          10.8.0.x     | -----------------------------------------                      |             -------------------             |     INTERNET     |             -------------------                      |  ----------------------------------------  |           REMOTE NETWORK             |  |          OpenVPN Clients             |  |      Local Network 192.168.1.x       |  ----------------------------------------   The problem is when the REMOTE NETWORK OpenVPN client are connecting from a remote network but they themselves have a local address range of 192.168.1.x  In this scenario not all packets are sent over the tunnel. e.g. If the REMOTE NETWORK has a machine at 192.168.1.1 and after establishing the OpenVPN tunnel the remote OpenVPN client tries to access 192.168.1.1 it goes to the REMOTE NETWORK's machine rather than the HOST NETWORK's machine.  How do I tell/configure the remote OpenVPN client to send ALL traffic over the tunnel ignoring whatever the local network routes/addresses are?  I've searched all over and tried the remote-gateway def1/autolocal options but nothing seems to work, it's always sending the 192.168.1.1 packets to the REMOTE NETWORK machine instead of the HOST NETWORK machine.  This is my client config:  client dev tun proto udp remote hostnetwork.com 1194 float ncp-ciphers AES-128-GCM:AES-256-GCM:AES-128-CBC:AES-256-CBC cipher AES-128-CBC comp-lzo adaptive keepalive 15 60 auth-user-pass remote-cert-tls server <ca> -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- </ca> resolv-retry infinite nobind redirect-gateway autolocal

This is a  about solving IPv4 subnet conflicts between a VPN client's local network and one across the VPN link from it.   After connecting to a remote location via OpenVPN, clients try to access a server on a network that exists on a subnet such as 192.0.2.0/24.  However, sometimes, the network on the client's LAN has the same subnet address: 192.0.2.0/24.  Clients are unable to connect to the remote server via typing in its IP because of this conflict.  They are unable to even access the public internet while connected to the VPN.  The problem is that this subnet 192.0.2.0/24 needs to be routed by the VPN, but it also needs to be routed as the client's LAN.  Does anyone know how to mitigate this issue?  I have access to the OpenVPN server.


I'm flying from New York to Romania with Turkish Airlines. I've searched everywhere. Am I allowed to bring a video card (original box + receipt) in my carry on?

As I will be travelling to the US in July, I was thinking of buying two graphics cards (R9 390X) over there and bring them back to Switzerland, as computer components are mostly a bit cheaper over there.  I know that the US has some really high security standards regarding international flights. If I take these two GPU's in my carry-on luggage (so they don't break), how would a security officer at LAX react when they see those Graphics cards? I do realise that most people don't actually know what a GPU is or how it looks like. So I am concerned that a security officer might take them from me at an airport when trying to board an international flight.  Believe it or not, I read some really strange stories in forums from people that claim the security officer did not know what a GPU is and thought it might be some sort of a bomb.  Note: By "GPU" I am referring to the whole graphics card (with circuit board, coolers, etc.) and not just the processing unit.


Following upgrade to 12.10, my usb drives - both pen drives and a usb hard drive - fail to mount with the error message: Unable to mount *name of drive* volume Adding read ACL for uid 1000 to '/media/*my home file name*' failed: Operation not supported  This is on a desktop Dell Inspiron 530.  I also have a Dell Inspiron Mini 10 netbook which I also upgraded to 12.10 (slightly smaller installation on a flash hard drive). all devices mount automatically without problems on this computer.

My problem is using a separate flash drive when running from my live usb of ubuntu 12.10. The problem is that when I choose to Try Ubuntu from this usb drive it no longer lets me access my other flash drive. It automatically sets it to part of the live usb but it's a completely separate flash drive.Ubuntu loads fine and everything but when I go to access my other flash drive nothing happens. When I try to open it from the home folder it gives me  Unable to mount 3.5 volume  Adding read ACL for uid 999 to media/ubuntu failed: Operation not supported message.  My live usb is on a 8gb flash drive and my other flash drive is 4g.


How to prove the equality of the two definitions of $e$ directly? $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n=\sum_{n=0}\frac{1}{n!}$$ In other words, I want to know a proof that is not "prove $e^x=\sum\limits_{n=0}^\infty\frac{1}{n!}x^n$ and then substitute $x=1$". I guess we do not need $e^x$ to prove this equality.  There are answers in other questions like this: $$\begin{aligned} \lim_{n\to \infty}\left(1+\frac{1}{n}\right)^n &= \lim_{n\to\infty}\sum_{k=0}^n \frac{1}{k!} \prod_{m=0}^{k-1}\left(1-\frac{m}{n}\right)\\ &=^?\sum_{k=0}^\infty\left[\frac{1}{k!}\lim_{n\to\infty}\prod_{m=0}^{k-1}\left(1-\frac{m}{n}\right)\right]\\ &=\sum_{k=0}^\infty\frac{1}{k!} \end{aligned}$$ However, I think this operation of limits is wrong. For example, $\lim\limits_{n\to\infty}\sum\limits_{k=1}^n\frac{1}{n}=1$ and $\sum\limits_{k=1}^\infty\lim\limits_{n\to\infty}\frac{1}{n}=0$.  None of the answers to  answers this question. There are 3 answers to it:      1 is begging the question. It assumes $\displaystyle e^x=\sum_{k=0}^\infty\frac{x^k}{k!}$. 2 is wrong. The operation of limits is incorrect. 3 is not direct proof.

How do you prove that $e=\sum_{n=0}^{\infty}\frac{1}{n!}$? Here I am assuming $e:=\lim_{n\to\infty}(1+\frac{1}{n})^n$. Do you have any good PDF file or booklet available online on this? I do not like how my analysis text handles this...


Prove that the series diverges: $$\sum_{n=1}^\infty \frac{e^nn!}{n^n}$$  I've tried using the ratio test but after all of my calculations I got that $\lim_{x\to\infty}\frac{a_{n+1}}{a_n} = 1$, which I can conclude nothing from.  The root test gave me the same result: $\lim_{x\to\infty}\sqrt[n]{a_n} = 1$  I'm instructed to first try and use Bernoulli's inequality to prove that the sequence $b_n = (1 + \frac{1}{n})^n$ is monotonically increasing.  I tried to follow the instructions, and I got that for each $n\geq1$, $b_n\geq2$. From here, I can conclude that the series $\sum_{n=1}^\infty b_n$ diverges.  from here, I've tried using the limit comparison test for non-negative series and the furthest I got was to the limit: $\lim_{x\to\infty} \frac{e^nn!}{(n+1)^n}$. I can't figure how to simplify that expression any more.  I'm really frustrated as I know I'm missing some minor yet important detail. I feel as though I've done anything I know and implemented any sort of test I've learned until now, with no results. Also, I can't really understand the direction the textbook wanted me to go as for using Bernoulli's inequality. Also, I am not allowed to use Sterling's approximation as I haven't learned nor proved it.  Any sort of help is greatly appreciated!

Any suggestion/hint, not the whole solution, how to determine convergence/divergence of $$ \sum_{n=1}^{\infty}\dfrac{e^n \cdot n!}{n^n} $$ I'm currently stuck.


I understand and know why you typically have to use == to compare strings in java, but for some reason I am able to do it in Eclipse. My code is Code:  public class Test{     public static void main(String [] args){         String str1 = "string";         if(str1 == "string"){             System.out.println("wtf");         }     } }   Why does this print "wtf" yet using javac from command line does not?

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


bool file_exists(char* path) { }  So I want to know on how I could make a function that's a Boolean that lets me know whether a file exists or not in C language using the access() function in C. What other functions would I need? I'm new to C and I'm coming from java just as a heads up. I haven't played around with accessing local files on computer from a program yet either so I'm just a bit stumped on what to do. Any help is appreciated!

Is there a better way than simply trying to open the file?  int exists(const char *fname) {     FILE *file;     if ((file = fopen(fname, "r")))     {         fclose(file);         return 1;     }     return 0; }


I am translating a text from Russian. The text, in one place, describes a person of Asian origin through the eyes of a European Russian young teenager in the late 80s (so not a politically correct time). A word is used that refers to the Asian-specific narrow eyes in a way that is colloquial, but not insulting, and in fact can denote a kind of exotic beauty.   (For those familiar with Russia, the word is "раскосый" and the person is the Korean-Russian singer Viktor Tsoi).  The only English word I could find was "slant-eyed", but this seems to be an outright insult. So how do I convey the meaning correctly? Perhaps I want something similar to the way you use "ebony" for a black person, but for an Asian person and ideally referring to the eyes.

I was looking for a term to define the eyes shape of oriental people and I discovered  that the term  is a derogatory one:         (offensive)   a person with slanting eyes; especially , one of Asian ancestry      (MerriamWebster)   I checked its and found that :         Derogatory slang sense of "a slant-eyed Asian person" is recorded from 1943, from earlier slant-eyes (1929).      (Etymologyonline)  It seems that it was a neutral term at first but it became derogatory later. Is it so? What made the term sound offensive?  What alternative neutral expression can I use  instead of "slanting eyes?


I've downloaded the .iso image for the Windows 10 OS, and have imaged it to /media/windows and made it bootable and am using FAT16, and with the bootable option ticked. I restarted my computer, and the UEFI isn't showing and when i start the partiotion on disks, nothing happens. What am i doing wrong?

I'd like to create a Windows bootable USB stick, but I don't have a Windows machine with me at the moment to do so. How could I achieve the same using Ubuntu?


Let $p$ a prime number  and let $\mathbf{F}_p(X)$ the field of rational functions over $\mathbf{F}_p$.   The degree $[\mathbf{F}_p(X):\mathbf{F}_p(X^p)]$ is $p$?  I'm a little confused; thanks.

Let $F$ be a field and let $t$ be trascendental over $F$. Prove that $[F(t):F(t^n)]=n$. Obviously $[F(t):F(t^n)]\le n$ since the polynomial $f(x)=x^n-t^n \in F(t^n)$ has $t$ as a root. But I don't know how to prove that it's irreducible over $F(t^n)$. I tried to consider that $t$ is trascendental to deduce some algebraic relations over $F$ on $t$. But it did not work.


This is a movie I saw as a child, toward the end of the 70s. It had a similar vibe to Invasion of the Body Snatchers. The story is about some guy that invents some implant that looks like a small metal tube. If I remember correctly, it was inserted on the side of the head, by the temple. The recipients of the implants would become very civil and peaceful people. He becomes convinced that this was the way to be and soon more people have the implant. But then people with the implant start to force others to have the implant, etc. The main guy is afflicted with some disease that makes him age quickly. At the end, the main characters are with him in a building and can see the plaza below where one of their non-implanted friend goes (to make some point I forget about) and the implant guys all converge to him to convert him. The rest of the protagonists know that the only safe place is in the tower, with the guy that started everything and has now passed of old age due to his condition. I don't remember the rest of the movie, but I would really like to find what it was.

I am trying to recall the name of TV-series that was aired in the 70s (possibly only in selected European countries?). IIRC it was a French production. The bad guy was using some kind of mind control devices. He was gradually getting more and more people as followers to his pacifist ideology (it was the cold war era, and pacifism might have struck a chord even without mind control).  His modus operandi was to send a dozen or so (mind-controlled) cronies to surround a new victim. They would form a square around the helpless target, forcing him to walk into a building, where mind control devices were surgically installed.  The protagonists were trying to organize a resistance movement. IIRC they failed, as the bad guy had good intelligence about their plans.


Given:   The total length of ad + dc The lengths of each ab, bc and ca That angle adb = angle cdb   How can I work out lengths ad and cd


Can I use SharePoint Designer 2013 to edit SharePoint 2010 sites?   Couldn't find this info in the web.


I have this kind of csv attribute table:            ID INVENT_KPV KASVUKOHA_KOOD RINDE_KOOD PUULIIGI_KOOD VANUS 297945203711 2009.08.31             MO          1            KS    60 297945203711 2009.08.31             MO          2            KU    50 297945303711 2009.08.31             SS          1            MA    60 297945303711 2009.08.31             SS          1            KS    60 297945403711 2009.08.31             JO          1            HB    NA   As you can see, there are 3 different ID codes. I have also a map in QGIS and I want to join this attribute table and the map together but the problem is that when I use the button "info" in QGIS and click on the map then it shows me only information about one row not all of them (which have the same IDs).  For example, if I click somewhere in the map where's a patch with ID 297945303711 then it only shows me: 2009.08.31, SS, 1, MA, 60 and not 2009.08.31, SS, 1, KS, 60.

I'm trying to create a join/relate in QGIS where I have a shapefile of buildings and to that I would like to join a non-spatial table (.csv-file) containing people who work in each building. So I have multiple records in my table that I would like to be able to join to my single features in my shapefile. I can only run a join in QGIS where the first record is joined to the shapefile feature (ie building) but subsequent records get removed. Could someone let me know how to complete this join/relate in QGIS?


I asked a travel agency to apply an ETA visa for Australia for me. After they processed it, they gave me a note that I was approved for ETA visa. The details in the note that they gave me are expiry date, number of entries, my passport details, type of visa and status (can work or not). There was no reference number.  Is my visa valid? Need to know as soon as possible because I am leaving next week. Please answer me....thanks.

I would like to know is my visa application being approved or not   I receive an email saying I need to check on eta.immi.gov.au after 12 hours but after I check in I just received this only :      Reference number   expire date 5 April 2017   period stay 3 months   entries multiple visa   condition NO WORK- business visitor activity only   that's all so how do I know if this application is approved or not?  Can someone assist me?


What is the intuition behind chain rule in mathematics in particular why there is a multiplication in between?

We know that the chain rule is used to differentiate  a composite function ,say $$f(x) = h(g(x))$$ It's defined as the derivative of the outside function times the derivative of the inner function or the other way around.  $$\frac{\mathrm{dy} }{\mathrm{d} x} = \frac{\mathrm{dy} }{\mathrm{d} u} \cdot \frac{\mathrm{du} }{\mathrm{d} x}$$  Despite we know that the above expression is not a fraction (even though it's a fractional notation of the derivative used by Leibnitz) you can "cancel" the two du's and get back dy/dx.  My question is: How can you even think of cancelling du from dy/du and du from du/dx when they are not even fractions. Just because it's been multiplied do they automatically become fractions?Are they really being "multiplied"?  I'am really looking for an intuition behind this.To me this is some kind of fantasy.It doesn't appear to be real.


I have looked at this example  and I'm trying to recreate this in my code. So I've just used what they used in their example:  (this is before my onCreate)  public static final String MY_PREFS_NAME = "MyPrefsFile";     SharedPreferences.Editor editor = getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE).edit();   then in my onCreate I have     SharedPreferences prefs = getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE);         String restoredText = prefs.getString("text", null);          example = findViewById(R.id.example);          example.setText(restoredText);         if (restoredText != null) {             String name = prefs.getString("name", "No name defined");//"No name defined" is the default value.             int idName = prefs.getInt("idName", 0); //0 is the default value.         }   I manually put in a textview into my xml layout, which I called the textview example. I am trying to get the name saved in the shared prefs and put that into the textview. however when I run my app I get an error.    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.app.supermarketaislefinder/com.app.supermarketaislefinder.create}: java.lang.NullPointerException         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2016)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)         at android.app.ActivityThread.access$700(ActivityThread.java:134)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)         at android.os.Handler.dispatchMessage(Handler.java:99)         at android.os.Looper.loop(Looper.java:137)         at android.app.ActivityThread.main(ActivityThread.java:4867)         at java.lang.reflect.Method.invokeNative(Native Method)         at java.lang.reflect.Method.invoke(Method.java:511)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)         at dalvik.system.NativeStart.main(Native Method)      Caused by: java.lang.NullPointerException         at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:160)         at com.app.supermarketaislefinder.create.<init>(create.java:63)         at java.lang.Class.newInstanceImpl(Native Method)         at java.lang.Class.newInstance(Class.java:1319)         at android.app.Instrumentation.newActivity(Instrumentation.java:1068)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2007)   (The blue underline error is at line 63 which is at  SharedPreferences.Editor editor = getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE).edit();  What have I done wrong?  p.s(what I am trying to achieve in the future is that before the app is closed, data from the many spinners in my screen are saved to shared prefs  then when the app is reopened, these data values are put back into the spinners. but that's a different story)

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


If I used lazy loading with Ajax, then am I right in saying that Google will not see the content in the lazy load?  An example is if I have a part of my site featuring products towards the bottom of my homepage, but this section doesn't load until the user scrolls to it. Therefore in the source code of the page this would not be displayed nor would it be displayed in Google's cache.  So is there a trade off with lazy loading? The site will download faster, but loses some optimization? Do you just need to be careful what to choose in the loading?

We are using the following technique to lazy load images in our site:  For all images we put in the src attribute a url for a default img (i.e. a loader) and put the actual image url in the data-src attribute. Like so  <img src="loader.gif" data-src="img1.jpg" />   When the image is outside of the viewport nothing happens, but when the image goes inside the viewport, then the url from the data-src attribute is loaded and the image is correctly shown.  This has as a result that Google sees all the images in the page (i.e. a search results page) as having the same src attribute. Because the google bot of course parses only the 'unloaded' img tag with the default src.  My question is: does having many img tags with the same src attribute affect the SEO of the page?


There is a game called TankiOnline.  The website is tankionline.com.  This game is played using Adobe Flash.  My question is, how can I play this game on the desktop, instead of going through a web browser?  I have already found , but cannot see how to run the game.  Any help will be appreciated!  EDIT: Just to clarify, I don't want to play offline - the game requires an Internet connection - I just want to use my own  files and connect to their servers.

is one of the best flash games ever.    Is there some way to download it, so that I can play it offline?


My problem is that every time I write \caption in a figure, the preceding number increases its value in one unit. Nevertheless, I'd like to group them as in sections. For example, instead of 1,2,3,etc. I'd like 1.1,1.2,2.1,etc. The class of document I'm using is an article.  Thank you for your responses.

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?  And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering?  \documentclass{book}% for "vice versa" variant, replace `book` with `article`  \begin{document}  \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section`  \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure}  \end{document}   Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?


I see the following error while trying run the command shown below. I read somewhere that my /boot partition is low on disk space. How can I increase the size of the /boot partition so I can install more software? I have a 500GB hard disk, so there is enough space to play with.  sudo apt-get install libdvdread4  gzip: stdout: No space left on device                                                                                E: mkinitramfs failure cpio 141 gzip 1                                                                                update-initramfs: failed for /boot/initrd.img-3.2.0-33-generic with 1.                                                                                run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1                                                                                Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-33-generic.postinst line 1010.                                                                                dpkg: error processing linux-image-3.2.0-33-generic (--configure):                                                                                subprocess installed post-installation script returned error exit status 2                                                                                dpkg: dependency problems prevent configuration of linux-image-server:                                                                                linux-image-server depends on linux-image-3.2.0-33-generic; however:                                                                                Package linux-image-3.2.0-33-generic is not configured yet.    dpkg: error processing linux-image-server (--configure):     dependency problems - leaving unconfigured    dpkg: dependency problems prevent configuration of linux-server:     linux-server depends on linux-image-server (= 3.2.0.33.36); however:      Package linux-image-server is not configured yet.    dpkg: error processing linux-server (--configure):     dependency problems - leaving unconfigured    No apport report written because the error message indicates its a followup error from a   previous failure.                                                                                No apport report written because the error message indicates its a followup error from a previous failure.  Errors were encountered while processing:  linux-image-3.2.0-33-generic  linux-image-server  linux-server N: Ignoring file 'michael-gruz-canon-precise.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'michael-gruz-canon-precise.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension   Listed below is the output of du  Filesystem              1K-blocks      Used Available Use% Mounted on /dev/mapper/ubuntu-root 712660664 104095912 572363692  16% / udev                      3964792         4   3964788   1% /dev tmpfs                     1591012      1064   1589948   1% /run none                         5120         0      5120   0% /run/lock none                      3977528       684   3976844   1% /run/shm /dev/sda1                  233191    219821       929 100% /boot

My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version that came with the automatic updates.  After installing that new version, the partition is nearly full again. So what else can I delete? Are there some other files associated to the old kernel images?  Here is a list of files that are on my /boot partition:  :~$ ls /boot/ abi-2.6.31-21-generic         lost+found abi-2.6.32-25-generic         memtest86+.bin abi-2.6.38-10-generic         memtest86+_multiboot.bin abi-2.6.38-11-generic         System.map-2.6.31-21-generic abi-2.6.38-12-generic         System.map-2.6.32-25-generic abi-2.6.38-8-generic          System.map-2.6.38-10-generic abi-3.0.0-12-generic          System.map-2.6.38-11-generic abi-3.0.0-13-generic          System.map-2.6.38-12-generic abi-3.0.0-14-generic          System.map-2.6.38-8-generic boot                          System.map-3.0.0-12-generic config-2.6.31-21-generic      System.map-3.0.0-13-generic config-2.6.32-25-generic      System.map-3.0.0-14-generic config-2.6.38-10-generic      vmcoreinfo-2.6.31-21-generic config-2.6.38-11-generic      vmcoreinfo-2.6.32-25-generic config-2.6.38-12-generic      vmcoreinfo-2.6.38-10-generic config-2.6.38-8-generic       vmcoreinfo-2.6.38-11-generic config-3.0.0-12-generic       vmcoreinfo-2.6.38-12-generic config-3.0.0-13-generic       vmcoreinfo-2.6.38-8-generic config-3.0.0-14-generic       vmcoreinfo-3.0.0-12-generic extlinux                      vmcoreinfo-3.0.0-13-generic grub                          vmcoreinfo-3.0.0-14-generic initrd.img-2.6.31-21-generic  vmlinuz-2.6.31-21-generic initrd.img-2.6.32-25-generic  vmlinuz-2.6.32-25-generic initrd.img-2.6.38-10-generic  vmlinuz-2.6.38-10-generic initrd.img-2.6.38-11-generic  vmlinuz-2.6.38-11-generic initrd.img-2.6.38-12-generic  vmlinuz-2.6.38-12-generic initrd.img-2.6.38-8-generic   vmlinuz-2.6.38-8-generic initrd.img-3.0.0-12-generic   vmlinuz-3.0.0-12-generic initrd.img-3.0.0-13-generic   vmlinuz-3.0.0-13-generic initrd.img-3.0.0-14-generic   vmlinuz-3.0.0-14-generic   Currently, I'm using the 3.0.0-14-generic kernel.


This is my first time asking a question here so sorry if I mess up anything.  I've been trying to find the title of a fantasy book that I heard on Audio CD 5-10 years ago, so my memories of it may be wrong. What I remember is that the book was based off of some sort of European mythology, and the main character was called Max, and he was some sort of 'Chosen One' and his best friend was called Daniel who was really powerful. They are sent to some school. I also recall some kind of tapestry is involved. At the school I think there is some ogre cook who almost eats Daniel, because he misses the session where she meets them. I also believe each student got an animal, and Max had a fox looking animal? I also remember them going to some geothermal facility for some reason...  Sorry for the sparse details!

I think this was more of a fantasy series, though it was more subtle than The Lord of the Rings IIRC. Set in modern times - though there was some alternate realm thing that was less modern I think.   I read it about ten years ago, I think, and there were a number of books at that time. My brother and I stopped reading it shortly after the main character summoned a small demon somehow who was a bad influence... I think.  It involved a boy who somehow was at some kind of training school/academy. Unsure where it was located, but it needed a classic portal to get to it I think. I clearly remember some scene involving a car driving at specific speeds to get past some barriers. There may have been something about how the school was (slowly) moving or the wards were shrinking... unsure. I don't think it was only magic based, but that was some element of it. The boy had some kind of strange power that made him an incredible fighter, but he wasn't sure how (at least from what I remember). The recordings of him training just showed a white flash I think. I remember some scene in an elevator going down to the training floor where he went to a level below some adult with him.  There was something else about him joining a group that had twelve members, one for each month, whose powers grew and lessened based on how close the date was to "their" month.  Oh, and there was something about him looking for his mother I think? Perhaps in another "realm"?   Any help is appreciated!


An approximation of the relationship between the scale factor and time for our universe is given by the following expression:  $\displaystyle a \approx \left (\frac{\Omega_{M_0}}{\Omega_{\Lambda_0}}\right )^{1/3} \sinh^{2/3}\left ( \frac{3 H_0 \sqrt{\Omega_{\Lambda_0}}}{2} \ t \right )$  What will be the expression of scale factor in terms of conformal time?

We know that for the flat geometry of lamda CDM model, the solution for Friedmann equation is   $$ a(t) = \left\{ \frac{Ω_{m,0}}{Ω_{Λ,0}} \sinh^2 \left[\frac{3}{2} \sqrt{Ω_{Λ,0}} H_0(t - t_0)\right] \right\}^{1/3}, $$   where the scale factor $a$ is a function of cosmic time. If I want to express the scale factor here as a function of conformal time, what will be the equation, i.e., how can I write the solution of the Friedmann equation in terms of conformal time?


I am confusing whether I could use "convenient" and "any" at the same time.  Also, I'd like to know the different nuance between may and can, in this sentence:     You may call me in your convenient any time.

Call me when you are available to talk   Is that correct? Can I use it that way?


I index my whole data folder. After updating windows (currently on 20H2) and a new harddrive I had to select my data folder in the indexing options again. However now windows automatically excludes all those folders that contain a ".git" folder / are git repositories. This behaviour is very strange. Also took me a while to find out why I can't find my files anymore. I'm not the only one with that problem   As soon as I manually add these folders, Windows puts them back on the exclude list within seconds. Hope somebody can help me. It is no solution zipping the git folder and restoring it, when saving the code to git. PS: I've already deleted the index but that didn't help except windows was budy indexing.

Windows search indexer is adding most paths to repository folders (both .git and .svn) to the exclusion list.  I can remove them manually of course, but each time i rebuild the index - they are re-added.  I can add them as indexed locations, but i'd have to do that each and every time I add a new repository and I add them in varying locations depending on relation.  Why is windows excluding these and how can i alter that behavior?  seems to have something to do with    wonder how its identifying them as repositories.  As repos from C:\user\dropbox\path\to\repo are excluded automatically, where items from c:\msys64\home\user are not.  If i can understand what triggers it being identified as such, i can perhaps understand the difference and how to fix the behavior.


I'm using 9v regulator (l7809cv) with 12 1,5v AA batteries in series so that my application gets both 18v and 9v for my Arduino Uno r3 board.   I've been running it for about 15min without any problems, but when I touch the l7809 it feels really hot after 10min or so.   I've measured a current between the batteries and the l7809 to be steadily around 100mah. I haven't exceeded the maximum voltage input ratings, and as far as I can see, neither the current ratings (it says in the datasheet that it's "internally limited")  Maximum temp. appears to be 0 - 150 celcius, which seems to be more than enough.  So my question is, is it OK that the component gets so hot that it hurts touching it although it probably isn't 150 c, or should I make some kind of heat sink for it?

I'm using a 5 V / 2 A voltage regulator () without a heatsink. I'm testing the circuit with a microcontroller (PIC18FXXXX), a few LEDs and a 1 mA piezzo buzzer. The input voltage is aprox. 24 VDC. After running for a minute, the voltage regulator starts to overheat, meaning it burns my finger if I keep it there for more than a second. Within a few minutes it starts to smell like it's burnt. Is this a normal behavior for this regulator? What could cause it to heat that much?    Other components used in this circuit:  L1:   R2:   F1:


This is the code for appending string to a specific line number: sed -e '1s/$/has/' -i testapend.txt  However, how would you be able to do the same thing but using a variable for the string and for the line number (int)? I have so far tried inserting $variable into the slashes and chucking in braces, but it either says unknown command or extra characters after the command.

I want to do:  cat update_via_sed.sh | sed 's/old_name/new_name/' > new_update_via_sed.sh   in my program.  But I want to use variables, e.g.  old_run='old_name_952' new_run='old_name_953'   I have tried using them but the substitution doesn't happen (no error). I have tried:  cat update_via_sed.sh | sed 's/old_run/new_run/' cat update_via_sed.sh | sed 's/$old_run/$new_run/' cat update_via_sed.sh | sed 's/${old_run}/${new_run}/'


I've been studying pattern recognition/machine learning and the theory behind it for some time now and I notice that I find myself seeing the same things over and over again, yet without fully understanding the reason for it...I'm talking about eigenvectors and eigenvalues. These guys just keep coming back again and again and they've been giving me such a headache and I haven't yet been able to discover an intuitive explanation for them :/   I've been studying lately about multivariable Gaussian functions and even there again I bump into eigenvalues/eigenvectors. I know the very basics behind eigenvectors and eigenvalues, that is I can calculate them and apply the formulas. I know that eigenvector is a vector $v$ such that for a linear transformation $A$, there is a scalar $\lambda$, such that  $$Av=\lambda v.$$ Okay, I've seen this definition countless many times, but I haven't yet discovered: "Why should I care?" That's a cool property I give it that, but why would I want to calculate the eigenvectors/eigenvalues? I know that: "eigenvector is a vector such that when linear transformation is applied into it its directions doesn't change, only scales by a factor of $\lambda$". Alright about that...so? But why do I care? Why do I want to calculate it?   For example Fourier transformation I can understand (not an expert on the subject, but I think I got the idea and motivation). If I have a signal of some sort I can use Fourier transformation to disect the signal and see the basic ingredients it is made of. Then I can apply low-pass/high-pass filters, clear the noise from the signal etc. This is something I can understand.   What about eigenvectors and eigenvalues? Can somebody give a concerete example, that would show the motivation and usefulness of eigenvectors and eigenvalues like Fourier transform is in the case of signal analysis. The example doesn't have to be long, short and simple is fine, but one that would sell the idea well.   Are they used because they make calculations simpler? Are they used because they describe the effect of the linear transformation? If so, what can I do with this information? etc.   Thank you for any help! =)

What is the importance of eigenvalues/eigenvectors?


I am trying to model a grass stalk and I want the bottom part to be brownish-yellow and the top part to be fresh-green. All I know is that we have to select regions from the mesh and assign different colors to them, but this method will not make it realistic. It will look odd. I want those two colors to merge in the middle. I think you know what I mean.   I want it like this: you can see the different colors and they are merging in the middle:

I am wondering how to recreate some kinds of effects (you can easily do in Photoshop) in Blender.  I want to create the gradient textures like ones pictured below, should I render objects and blur them in compositor? Or can I achieve it using only material nodes?


There was an add-on called Power Commands (Now productivity power tools) in visual studio to format the code on save.   I was so used to see my code format on save that I cannot change that habit. Is there a way to do that in Eclipse?  I can only assign one thing to Ctrl+S otherwise because if I assign Save & Format Code to the same keys, once I press the shortcut it will do neither but propose me what I want to do with the shortcut. Is there an add-on or a way to do it?

In Eclipse, under Windows -> Preference -> Java -> Code Style, you can define code templates for comments and code, and you can setup a code formatter.   I'm wondering if it is possible in Eclipse to have these setting take affect every time I save a source file.  Basically, instead of me highlighting everything and pressing Ctrl+Shift+F, I want Eclipse to be responsible for making sure my code is formatted properly.  Is this possible and how do you set it up?  Note On Using the Auto-Format:  It's probably best to choose "Format Edited Lines" as merging changes becomes very difficult when you reformat a whole file that is in source control already that was not formatted properly. Already did this to a co-worker.


I have an email system that I am making in a WordPress plugin to send the emails with this code:  include(PLUGIN_DIR.'config/class_phpmailer.php');  $email = new PHPMailer();  $email->From      = get_option('admin_email'); $email->FromName  = 'my name'; $email->Subject   = $subject; $email->Body      = $body;  foreach($emails as $mail) {     if(is_email($mail)) {         $email->addAddress($mail);     } } if($name) {     $att = PLUGIN_DIR.'uploads/'.date('Ymd').'_'.$name;     $email->AddAttachment($att); }  // check if email is sent or not if(!$email->Send()) {     echo "Message was not sent <br />PHPMailer Error: " . $email->ErrorInfo; } else {     echo "Message has been sent";     $_POST = array(); }   This works great. Tested it online and sends to all the tested emails.  Can I make it like this? I mean, with phpmailer class not native to WP. Is this wrong? Is it best to use native WP phpmailer? If so, how can I do it?  Thanks in advance.

What is the advantage of using wp_mail() over mail(). Codex says they're similar, but they seem to be very similar.


Even after I disabled the ringer and muted the phone, the shutter sound can still be heard on my iPhone 6S. Why?  I tried to fix it in Settings, and followed the instruction, but the camera still makes shutter sound.  What can I do to turn the sound off?

I recently purchased a refurbished iPhone 6. It's been set up from my old device's iCloud backup and updated to iOS 10.2.1.   Unfortunately,  via the physical mute switch, my iPhone will make a shutter sound whenever I take a photo using the built in camera. I'm using my device in the United States, so .  Why would an iPhone camera be making a shutter sound while set to silent?  Edit: Worth noting that  worked for my last iPhone


i am new to ubuntu and recently tried changing my hostname and have probably messed up something,and have trouble fixing it.  Whenever i give command like     get sdu       sudo apt-get install g++ (some command using sudo)    sudo: unable to resolve host Cricketpunk    shows up,after 4 seconds of wait.After reading few questions,i tried changing something in /etc/hostname,but it says access denied when i try opening that file  i Cannot boot into recovery mode due to soome bios fault   I need help on how to achieve sudo rights using live flash drive containing ubuntu.  Any help would be much appreciated. Have a good day :)

sudo: unable to resolve host   I think I need to edit the /etc/hosts file to make an entry for 127.0.1.1 PC name.  But how can I do that if I can't access sudo? It seems to have gone since I updated to 13.10.  I have tried nano, which still doesn't work.


I now have a 1 TB , but I can't change that with gparted.   How can I partition the hard disk into 600GB and 300GB? Should it stay as ext4 or should I change it to NTFS? I have only one OS installed.

I've already installed Ubuntu 12.04, but I did not make any separate partitions beside the one the operating system is installed on.  Now I want to make a new partition.  Is this possible?


For some time now I have been using System.nanoTime() in order to measure the time it takes for code to complete. Recently this has become a great disturbance for me. Are there any other ways to measure it?  I am running Java in Eclipse.

How do I get a method's execution time?   Is there a Timer utility class for things like timing how long a task takes, etc?     Most of the searches on Google return results for timers that schedule threads and tasks, which is not what I want.


How do I lock my manjaro XFCE based PC with a keyboard shortcut i.e. like WIN+L on a windows machine.  All guidance I can find is gnome specific i.e.  gnome-screensaver-command --lock

I'm trying out XFCE on Arch Linux, and for some reason the Lock Screen option in the session menu doesn't do anything.  Neither does running xflock4 at the command line (it exits 0 with no output).  xfce4-session is running.  Do I need to install a screensaver package or something?


I have an external hard drive (usb) , I suspect that it might have been mounted into another computer on a precise date and time.  Is there any way to see the log (from the hdd) and verify if it was mounted in that precise moment or if any file was copied?

I understand if I boot from a live cd  I can see all the system logs under System > Administration > File Log Viewer   I have a major error with a disk not mounting and I want to trace i tback to the last time it did work and what may have corrupted the ext4 filesystem on it.  So within the File Log Viewer Where do I start examining?


I authorized access to my account by an application that turned out to not work.  Now I want to remove the authorization in case it was malicious.  How could I do this?

I gave Google OAuth access to this app that wanted to read Google Analytics API info.   No problem, but now I want to take away that app's permission to read my data.  Where does Google hide these authorized apps so I can remove it?


I have set up a basic authentication on one section of my website as documented , it works fine, but now I need to be able to access the user name in order to filter certain results. But $_SERVER['PHP_AUTH_USER'] wont work. Is there any other way to see who is logged in?   My .htaccess file:   AuthType Basic  AuthName "You need to login to access this page." AuthUserFile /usr/local/..../.htpasswd Require valid-user  RewriteEngine on RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]   It is marked as duplicate, but I don't see where is the answer to my problem? Can someone help please? Admin?

How can I access the apache basic-auth username in a PHP script?


I making an upload form for *.pdf  HTML:
    Upload File:

                              Browse <input type="file" name="file_sm[]" id="file_sm" name="file_sm" accept="application/pdf"/>                          <input type="text" class="form-control" readonly>

   and using JQuery for $_POST the data to sm.input.php  $("#save-sm").bind("click", function(event) {   var url = "sm.input.php";    var v_file_sm = $('input:file[name=file_sm]').val();    // sending for process   $.post(url, {file_sm: v_file_sm, id: id_sm} ,function() {      // show data

     $("#data-sm").load(main);      // hide modal dialog     $('#dialog-sm').modal('hide');    }); });   and inside sm.input.php file:  if(isset($_POST['save_sm'])){  foreach($_FILES['file_sm']['name'] as $key => $val){   $name = $_FILES['file_sm']['name'][$key];   $tmp  = $_FILES['file_sm']['tmp_name'][$key];   $file_size    = $_FILES['file_sm']['size'][$key];    if($file_size < 50000){              if(trim($name)!=''){           $new_name = date('YmdHis').'_'.$name; //rename file            if(move_uploaded_file($tmp,'/upload/'.$new_name)){                $file_sm = $new_name;           }       }   } else {       echo "MAX 50KB";   }  } }   why input:file selector JQuery is not working for me? the file didn't uploading and the php server can't get the file name.. whats wrong with my code?    I read about AJAX file uploading, but I still cant understand how to implement on my code :(

I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); });  File <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/>     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?


I need to reduce the length of the horizontal line that separates text body from footnotes. I am a beginner, using report document class.

I am using pdflatex and just want to know how to change the footnote line (thickness, length).  Besides that: How can I set the distance between text-lines in the text.


What am I supposed to say if I want to say that I don't possess ssomething? here are some sentences I have trouble with:  1-I have nobody or I don't have anybody?  2-There isn't any sugar or there's no sugar?  3-I have no knives in my bag or I don't have any knives in my bag?

I was thinking about these negations. Do these mean the same thing?     There is no point in ...   There is not a point in ...   or:     I have no clue   I do not have any clue     etc.


Last Wednesday my site had a ton of its paged de-indexed by Google and it's caused a drop of over 60% in overall site traffic :(... One of the pages used to rank first page #1-3 and now it doesn't even show up if I type the exact URL in the search bar.   I have tried redoing the sitemap (of which only half the pages are even being indexed - no idea why) and submitting the URLs directly. All to no avail.   I don't use any blackhat tactics for SEO, there are no manual actions, and I checked Barracuda and the drop in traffic has nothing to do with recent updates.  I'm confused as hell and so far no one has been able to help. If there's anyone out there with some bright ideas I'd really apprecaite it. Kind of panicking right now.

There has been a significant drop (90%) in traffic from Google to one of my well-established sites (6+ years) in the last week. Searches show that the top 3 wide keywords all dropped 4 spots. Searches for other keywords do not show ANY results in the first 10 to 25 pages of results, while previously one 1st or 2nd page at most.  Since there are , the question really is:  What steps are necessary to figure out what caused such a drop?  There have been no major changes during this period or the last month on the site and certainly not in the homepage which has dropped in rank. Over all the years of running this site and plenty of others, I have never experienced this. There are is duplicate content on my site and I have rigorously used canonical links for the last few years to ensure it is not misinterpreted as such.


I'm dealing with the following problem in computational programming. I'm trying to find a way to build an algorithm that can quickly resolve the following problem statement without forcing me to do it by hand. Is there any way to group the following relations below by some pattern or identity in order to make finding a possible values of c much more efficiently?  Problem: Given any integer x, where x > 2, is there any integer c, where c >= 1 that satisfies the following relations for some integer k, where k >= 0.   $\frac{x}{11 + 10k} = c \Rightarrow x = 11c + 10ck$ $\frac{x}{3  + 10k} = c \Rightarrow x = 3c  + 10ck$ $\frac{x}{7  + 10k} = c \Rightarrow x = 7c  + 10ck$ $\frac{x}{9  + 10k} = c \Rightarrow x = 9c  + 10ck$  Example $\#1$: $x = 3$ From $\#2$: $3 = 3c + 10ck$, so $k = 0, c = 1$ satisfy this relation. Example $\#2$: $x = 4$ From $\#1$: $c = \frac{4}{11 + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \ge 1$ will ever satisfy this equation. From $\#2$: $c = \frac{4}{3  + 10k}$, so for $k = 0$, the denominator does not divide evenly into $4$. For $k \ge 1$, the denominator will always be larger than $4$. No integer value of $c \ge 1$ will ever satisfy this equation. From $\#3$: $c =\frac{4}{7  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \ge 1$ will ever satisfy this equation. From $\#4$: $c = \frac4{9  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \ge 1$ will ever satisfy this equation.

I'm dealing with the following problem in computational programming. I'm trying to find a way to build an algorithm that can quickly resolve the following problem statement without forcing me to do it by hand. Is there any way to group the following relations below by some pattern or identity in order to make finding a possible values of c much more efficiently?  Problem: Given any integer x, where x > 2, is there any integer c, where c > 1 that satisfies one of the following relations for some integer k, where k >= 0.   $\frac{x}{11 + 10k} = c \Rightarrow x = 11c + 10ck$ $\frac{x}{3  + 10k} = c \Rightarrow x = 3c  + 10ck$ $\frac{x}{7  + 10k} = c \Rightarrow x = 7c  + 10ck$ $\frac{x}{9  + 10k} = c \Rightarrow x = 9c  + 10ck$  Example $\#1$: $x = 3$ (Does not Satisfy) From $\#1$: $c = \frac{3}{11 + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $3$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#2$: $c = \frac{3}{3  + 10k}$, so for $k = 0$, c would be 1, but the restriction on c is that it must be greater than 1. For $k \ge 1$, the denominator will always be larger than $3$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#3$: $c =\frac{3}{7  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $3$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#4$: $c = \frac{3}{9  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $3$. No integer value of $c \gt 1$ will ever satisfy this equation. Example $\#2$: $x = 4$ (Does not Satisfy) From $\#1$: $c = \frac{4}{11 + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#2$: $c = \frac{4}{3  + 10k}$, so for $k = 0$, the denominator does not divide evenly into $4$. For $k \gt 1$, the denominator will always be larger than $4$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#3$: $c =\frac{4}{7  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#4$: $c = \frac4{9  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \gt 1$ will ever satisfy this equation. Example $\#3$: $x = 37$ (Does not Satisfy) No integer value of $c \gt 1$ will ever satisfy this equation. Example $\#4$: $x = 91$ (Satisfies a Relation Above) From $\#2$: $c =\frac{91}{3  + 10k}$, so for $k = 1$, $c = 7$ will satisfy this equation. Example $\#5$: $x = 147$ (Satisfies a Relation Above) From $\#3$: $c =\frac{147}{7  + 10k}$, so for $k = 0$, $c = 21$ will satisfy this equation.


I'm trying to convert a user entered integer to binary form, but I keep getting a warning that "binary" is not initialized in the last printf statement.  #include <stdio.h>  int main(void) { long int integer, binary;      printf("Enter an integer: \n");     scanf("%ld", &integer);     while(integer != 0)     {         binary = integer % 2;         integer = integer / 2;     }     printf("The integer in binary is %ld", binary);     return 0; }

I can print with printf as a hex or octal number.  Is there a format tag to print as binary, or arbitrary base? I am running gcc. printf("%d %x %o\n", 10, 10, 10); //prints "10 A 12\n" print("%b\n", 10); // prints "%b\n"