I have the following code: String someFieldNewValue = entity.getSomeField(); String someFieldOldValue = someRepository.getOne(entity.getId()).getSomeField(); someRepository.save(entity); createHistoryEntry(someFieldNewValue, someFieldOldValue);  someEntity is an already existing entity in the DB to which the value of someField has been changed and needs to be updated. What I need to do is to get the old value of someField (the one in the DB before someRepository.save(entity), which is going to be updated) to create a history entry for the update, but my problem is that both someFieldNewValue and someFieldOldValue variables have the same value (the new one). How do I get the old value of someField, having the id of the entity?

I want to compare the current value of an in-memory Hibernate entity with the value in the database:  HibernateSession sess = HibernateSessionFactory.getSession(); MyEntity newEntity = (MyEntity)sess.load(MyEntity.class, id); newEntity.setProperty("new value"); MyEntity oldEntity = (MyEntity)sess.load(MyEntity.class, id); // CODEBLOCK#1 evaluate differences between newEntity and oldEntity sess.update(newEntity);       In CODEBLOCK#1 I get that newEntity.getProperty()="new value" AND oldEntity.getProperty()="new value" (while I expected oldEntity.getProperty()="old value", of course). In fact the two objects are exactly the same in memory.  I messed around with HibernateSessionFactory.getSession().evict(newEntity) and attempted to set oldEntity=null to get rid of it (I need it only for the comparison):  HibernateSession sess = HibernateSessionFactory.getSession(); MyEntity newEntity = (MyEntity)sess.load(MyEntity.class, id); newEntity.setProperty("new value"); HibernateSessionFactory.getSession().evict(newEntity); MyEntity oldEntity = (MyEntity)sess.load(MyEntity.class, id); // CODEBLOCK#1 evaluate differences between newEntity and oldEntity oldEntity = null; sess.update(newEntity);   and now the two entities are distinct, but of course I get the dreaded org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session.  Any idea?  EDIT: I tried the double session strategy; I modified my HibernateSessionFactory to implement a map of session and then...  Session session1 = HibernateSessionFactory.getSession(SessionKeys.DEFAULT); Session session2 = HibernateSessionFactory.getSession(SessionKeys.ALTERNATE); Entity newEntity = (Entity)entity; newEntity.setNote("edited note"); Entity oldEntity = (Entity)session1.load(Entity.class, id);  System.out.println("NEW:" + newEntity.getNote()); System.out.println("OLD: " + oldEntity.getNote()); // HANGS HERE!!!  HibernateSessionFactory.closeSession(SessionKeys.ALTERNATE);   My unit test hangs while attempting to print the oldEntity note... :-(


Im trying to read 50 characters from web page source, begining from "Person" tag. Variable Index showing value 5443 which seems to be correct but i get nothing when I'm trying to print sub string import urllib.request  try:     with urllib.request.urlopen('SomeURL') as f:         full_str = f.read().decode('utf-8')         index = full_str.find('Person')         print(full_str[int(index):50]) except urllib.error.URLError as e:    print(e.reason)

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


I thought I heard my teacher said: 'Don't construct a sentence without a verb.'  Is there such rule in english grammar?     She looks like 70 years old. Perhaps older.   How about the question above? Is it correct? Is there any book that can be used references for wide range of topics in grammar(including syntax, morphology et cetera)? I have finished oxford grammar in use recently and think it wasn't enough for me.

What is the shortest comprehensive sentence in English?


I have a function $F(θ) = \sin^{−1} \sqrt{\sin(11θ)}$  I derived the following answer using basic trigonometric and quotient rules.  $\dfrac{11\csc \left(\left(11\theta \right)^{\left(\frac{1}{2}\right)}\right)\cos \left(\left(11\theta \right)\right)}{2\sqrt{1-\sin \left(11\theta \right)}}$  My answer however is wrong. I am having a very bad time with getting the solution for it.  Can anyone outline how to go about getting the correct solution to a problem such as this?

I have a function $F(θ) = \sin^{−1} \sqrt{\sin(11θ)}$  I derived the following answer using basic trigonometric and quotient rules.  $\dfrac{11\csc \left(\left(11\theta \right)^{\left(\frac{1}{2}\right)}\right)\cos \left(\left(11\theta \right)\right)}{2\sqrt{1-\sin \left(11\theta \right)}}$  My answer however is wrong.  Can anyone outline how to go about getting the correct solution to a problem such as this?


I would like to move 12000 documents (with attached metadata) to a cross-site library. I planned to do it by utilizing Content Organiser Rule.  My issue is when I move/copy document to the Drop Off library via a Workflow, the Rule I created won't kick off and document just stays in that Drop Off Library.  Ps: If I upload and submit a document to drop off library the rule kicks off without problems.

Today I learned you can't move items to a Drop Off Library via workflow and expect its routing rules to kick in automatically. You then have to manually "Submit" each item, even if all metadata is already supplied in the document.  However, I noticed items I manually create in the Drop Off Library (via Documents -> New Documents -> [Content Type Name]) are routed immediately after I save them for the first time. So I'm thinking generating items in the Drop Off library via workflow could be a workaround.  This doesn't work in testing. The workflow errors out, and I receive "The workflow could not create the list item. Make sure the list exists and the user has permissions to add items to the list."  Obviously the list exists and I have Ownership permissions. My workflow is just one line at this stage, so I'm positive I'm building it correctly. Is this error due to a property of the Drop Off Library, maybe something I can disable?   Any other ideas? Or if you've got another method that I can implement via SharePoint Designer, that also works! THANKS!!!  THE GOAL  A workflow that kicks off when a list item is created:   Document Set is created with list item's properties. (complete) File is created with list item's properties. (complete if not in Drop Off Library) File is moved to the right document set via Drop-Off rules (got working rules, trying to work around having to manually Submit without coded solution)


I am using Ubuntu 16.04. I have posted a screenshot of my partitions below. My root partition /dev/sda1 is almost full, and my /home partition /dev/sda3 has plenty of unused space. Is there a way that I can use some space from /dev/sda3 to increase the size of my root partition /dev/sda1 ?

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


When one selects text in Microsoft Word, a small box pops up containing a font drop-down, bold/italic/underline buttons, and a small number of other formatting tools from the Home tab. The box only disappears when the cursor is moved away from it. How do I stop this box from appearing? I personally never use the box; it just gets in the way whenever I want to reread the text I've just selected.    An example of this dialog box impeding the text. Come to think of it, I would find it useful to get rid of the "paste/(Ctrl)" drop-down as well.

In Microsoft Word 2007 when you select a piece of text, a pop-up toolbar will display containing the common font formatting tools like font-name, font-size, bold, italic, etc. (The Mini Toolbar.)  Is there a way to prevent this pop-up from showing when you select text?


Say I wanted to find all the possible combinations of elements (not the number of possible combinations given by nCk but the combinations themselves.) Further, say I'm interested in all possible combinations given all possible k. For example elems = [a,b,c,d] #k=1 com_2 = [(a,b),(a,c),(a,d),(b,c),(b,d),(c,d)] #k=2 com_3 = [(a,b,c),(a,b,d),(a,c,d),(b,c,d)] #k=3 com_4 = [(a,b,c,d)] #k=4  I'm wondering, is there a built in python function that could accomplish this? (Perhaps part of the set class.) If not, how would you write a function to accomplish this effect? elems = ['a','b','c','d'] sets = [] for idx1 in range(len(elems)):   for idx2 in range(idx1+1, len(elems)):     sets.append((elems[idx1],elems[idx2]))  sets >>> [('a', 'b'), ('a', 'c'), ('a', 'd'), ('b', 'c'), ('b', 'd'), ('c', 'd')]  This works only for k=2, when k is larger, I'll need to add another for loop dynamically. This  makes me think that recursion might be appropriate, but I'm at a complete loss on how to move forward. This  seems to hint at the right direction, though I'm not a C++ programmer, so it's not at all clear to me. edit: Stumbled on  which answers my question. Feel free to close, mods

I have a list with 15 numbers in, and I need to write some code that produces all 32,768 combinations of those numbers.   I've found  (by Googling) that apparently does what I'm looking for, but I found the code fairly opaque and am wary of using it. Plus I have a feeling there must be a more elegant solution.  The only thing that occurs to me would be to just loop through the decimal integers 1–32768 and convert those to binary, and use the binary representation as a filter to pick out the appropriate numbers.   Does anyone know of a better way? Using map(), maybe?


I'm starting/trying to learn a bit of bash scripting and i'm wondering what is wrong with my method of passing arguments to a function from the terminal (see below) as my method seems similar to many found in internet tutorials.  #!/bin/bash  function addition_example(){     result = $(($1+$2))     echo Addition of the supplied arguments = $result }   I call the script as follows:  source script_name.sh "20" "20"; addition_example    This returns the following:  bash: +: syntax error: operand expected (error token is "+")   I've also tried:  addition_example "$20" "$20"   This returns the following:  bash: result: command not found Addition of the supplied arguments =

I'd like to write a function that I can call from a script with many different variables. For some reasons I'm having a lot of trouble doing this. Examples I've read always just use a global variable but that wouldn't make my code much more readable as far as I can see.  Intended usage example:  #!/bin/bash #myscript.sh var1=$1 var2=$2 var3=$3 var4=$4  add(){ result=$para1 + $para2 }  add $var1 $var2 add $var3 $var4 # end of the script  ./myscript.sh 1 2 3 4   I tried using $1 and such in the function, but then it just takes the global one the whole script was called from. Basically what I'm looking for is something like $1, $2 and so on but in the local context of a function. Like you know, functions work in any proper language.


The following problem:  The Fibonacci number is denoted by  $f_{n}$, show that the following holds when $n$ is a positive integer:  $f_{0}f_{1}+f_{1}f_{2}+...+f_{2n-1}f_{2n} = f^{2}_{2n}$  My idea was to do an induction proof, which holds for $n$ = 1  $f_{0}f_{1} + f_{1}f_{2} = f^{2}_{2}$  So we assume it holds for $n$ and show for $n+1$  $f_{0}f_{1}+f_{1}f_{2}+...+f_{2n-1}f_{2n} + f_{2n}f_{2n+1} = f^{2}_{2n} + f_{2n}f_{2n+1}$  I fail to get  $f^{2}_{2n+1}$ out of the term  $f^{2}_{2n} + f_{2n}f_{2n+1}$  Is there a difference between "show that" and "prove that". So might be induction the wrong tool here?  Many thanks for your hints in advance :-)


So i'm trying to merge 4 color passes (DiffuseColor, GlossyColor, TranslucentColor and SubsurfceColor) so i can get 1 Combined color map. Is this possible? If so, how cand i do it?  Thanks!

So, there are some great tutorials around the web about isolating render passes in Cycles so that you can make changes, and then recombine all of your work as one complete image.  You'll probably have a Compositor node setup that looks something like this:    Blender's Manual used to have a schematic explaining how these can be recombined:    But not all of the pass types are explained by this deprecated schematic, as now there are more pass types (SSS, Shadow...)  What would be the "master" routing, so that if all passes are separated out they would all get recombined properly to form the complete image?  I set off on a mission to create such a routing, but realized I wasn't sure how to recombine some of the passes.


Hai I have windows  10 alongside Ubuntu 15.04 I have Ubuntu 15.10 update available but if I upgrade Ubuntu to 15.10 then will my windows 10 partition gets deleted ?

I've read , but this question is aimed at doing an upgrade using the built-in tools.  I use Ubuntu to create backups of my parents' Windows partition. The filesystem layout looks like this:  /dev/sda1: contains Windows 7 /dev/sda2: contains the Ubuntu root partition /dev/sdb1: drive to keep backups.   The laptop is running Ubuntu 15.04. I'd like to upgrade the system to Ubuntu 15.10. Will upgrading using the built-in upgrade tool (so not using a Live USB) respect the existing partitioning?


I frequently upvote someone's comment only to realise I've fat-fingered it (especially easy to do on a touch phone, but I've also done it with a mouse) and clicked someone else's comment.  Unfortunately I can't find a way to undo it!  The last thing I want to do is upvote someone I vehemently disagree with ;)

As mentioned on :     For something that can be done so   easily by accident, there should be   the ability to undo mistakes.   I know that I have clicked several times on a comment up-vote without actually wanting to.  I would suggest being able to cancel the up-vote (maybe only for a couple of minutes or even less than a minute, no problem, as long as I can undo a miss-click).


Show that if $n>1$ and $a$ is a positive integer with $a^n-1$ prime, then $a=2$ and $n$ is prime. Hint: Look at the proposition, if $n$ is composite then $2^n-1$ is composite.

I was doing some basic Number Theory problems and came across this problem :     Show that if $a$ and $n$ are positive integers with $n\gt 1$ and $a^{n} - 1$ is prime, then $a = 2$ and $n$ is prime   My Solution : (Sloppy)        $a^{n}-1$ = $(a-1)$ . $(a^{n-1} + a^{n-2} + ... + a + 1)$   This means that $(a-1)$ | $(a^{n}-1)$    But $(a^{n}-1)$ is prime   So , $(a-1)$ = 1 $\Rightarrow$ $a = 2$   Now , let $n$ be composite   $n = kl$ , where $1 \lt k \lt n$ and $1 \lt l \lt n$   Now , $a^{kl}-1$ = $(a^{k}-1)$ . $(a^{k.{(l-1)}} + a^{k.{(l-2)}} + ... + a^k + 1)$   This means that $2^{n} -1$ is composite    Hence , we have achieved a contradiction      My Question : Am I correct ?


can anyone tell me the name of this font used in this document? thanks in advance. ?

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


I am new to PCA and couldn't find an answer online to this. To predict classes for the test set, should I fit PCA on the training set and call the transform function on the test set, or should I fit on the test set for predicting classes for test set?

I have a dataset for which I have multiple sets of binary labels. For each set of labels, I train a classifier, evaluating it by cross-validation. I want to reduce dimensionality using principal component analysis (PCA). My question is:  Is it possible to do the PCA once for the whole dataset and then use the new dataset of lower dimensionality for cross-validation as described above? Or do I need to do a separate PCA for every training set (which would mean doing a separate PCA for every classifier and for every cross-validation fold)?  On one hand, the PCA does not make any use of the labels. On the other hand, it does use the test data to do the transformation, so I am afraid it could bias the results.  I should mention that in addition to saving me some work, doing the PCA once on the whole dataset would allow me to visualize the dataset for all label sets at once. If I have a different PCA for each label set, I would need to visualize each label set separately.


This summer I spent 88 consecutive days in Estepona from June 8th to September 6th. I would like to go back October 31st but I am unsure of the rules. Do I have to be out of the country for 6 months after September 6th or did coming back to Chicago for 2 months satisfy the 180-day law?

I have been granted multiple entry Schengen Visa valid for 4 years with the duration of stay of 90 days. Does it mean only 90 days of stay in total during a 4 years period?  I'll be travelling to Schengen Area in September for 25 days, then after 2 month or so I will travel again for 30 days. Similarly, I'll be traveling to the Schengen Area in the future depending on the business meetings.  How will I know, that how many days are left? On what basis the calculations are done?  Also, please explain the "90/180" rule.


I installed a dual boot of Ubuntu 16.04 (Windows being my other OS) two months ago to try it out. I want to allot more space to it on my hard drive. I was looking up tutorials, and I noticed that my filesystem names don't look anything like those in the tutorials. For example:  df -h   outputs:    How would I allot more space to Ubuntu (in layman's terms)?

Till today I was using ubuntu 13.04 in my windows7/ubuntu dual boot. Just now I have upgraded to ubuntu 14.04. My software updater showed an updates available message. I proceeded with  Install Now . Soon I got the following window.    Then I tried sudo apt-get clean as recommended. Nothing happened! Not even a window opened. Teach me deleting the temporary packages.   Deleting temporary files may not be highly helpful in case of further updates and installs for I don't have too much space left in my /. I wanna extend my / partition with the help of the unallocated space in my HD. The following is my Gparted window.       I got an answer . But it wasn't useful for me. I had two choices. But the answer wasn't working for both my chioces.  Choice 1: I may use the 4.25 GiB unallocated space to extend my /dev/sda10. To do so, I must need to move my linux-swap partition. But my Resize/Move option is disabled for the linux-swap partition. Choice 1 failed!   Choice 2: I may use the 14.35 GiB unallocated space instead. In this case I must move more than one partition. /dev/sda4  partition is the first on the list. Even that partition has the same problem. Resize/Move option is disabled. Choice 2 failed!  I am out of choices now.  What shall I do? Help me to extend my / with Gparted.


My list looks this: l = ['abcdbcex', 'abcdbc1fz', 'abcdcd11', 'abcd11a5']  I want to sort it in a way that it will become: l = ['abcd11a5', 'abczbc1fz', 'abcfbcex', 'abcecd11']  So sort in ascending order, but skipping first 4 letters, also skipping everything after the 7th letter. I have tried doing: sorted(list, key=lambda x:x[:4]) but this does not skip the first 4 letters, because I don't know how to do it.

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


Does the Samsung tablet 3 SM-T211 have USB host mode OTG support? If not, is there a way to enable / support it?

Some Android devices can act as a USB host, so that you can use other USB devices attached to them. For instance, browse or import the photos stored on a camera from your phone, or copy files onto a USB memory stick attached to your tablet, plug a full-size USB keyboard or mouse into a tablet, or use an external GPS or wifi device.  How can I tell if my device can do this?


I have recently started studying Jech's Set Theory on my own and I am stuck on this question.  Prove that $ \cap S $ exists for all $ S \neq \phi $. Where is the assumption $ S \neq \phi $ used in the proof.  I am new to this thing. I was thinking of saying something like  let there be two sets $ A $ and $ B $ so there exists a set $T$ such that $x \in A \cup B \mid  P(x)$ where $P(x)$ is $ x \in A \cap B$ by the axiom schema of comprehension. but this doesnt sound right

In MK (Morse-Kelley) set theory life is easy: $\forall X\forall y\left(y\in\bigcap X\leftrightarrow\forall x\left(x\in X\rightarrow y\in x\right)\right)$. If $X=\left\{\right\}$ then $\bigcap X=U$, where $U$ is the universal class. So the (unary) intersection of the empty set is the class that contains all sets as elements. In ZF (Zermelo-Fraenkel) set theory, instead, proper classes are not allowed. So, how can I define $\bigcap X$ in ZF? I tried with the following definitions:   $\forall X\left(X\not=\left\{\right\}\rightarrow\forall y\left(y\in\bigcap X\leftrightarrow\forall x\left(x\in X\rightarrow y\in x\right)\right)\right)$. This means that $\bigcap\left\{\right\}$ is undefined, which is not that good. $\forall X\forall y\left(y\in\bigcap X\leftrightarrow X\not=\left\{\right\}\land\forall x\left(x\in X\rightarrow y\in x\right)\right)$. This means that $\bigcap\left\{\right\}=\left\{\right\}$, which is the opposite of MK.   I couldn't find any other valuable definition. Any ideas? Thank you.


I am attempting to query table storage by generating the following query:  var date = new DateTime(1954, 9, 7); var timequery = TableQuery.GenerateFilterConditionForDate("Timestamp", QueryComparisons.LessThanOrEqual, date.ToString());   I am getting a bad request when simply doing date.ToString()  The string that I need would be in the following format: 1954-09-07T07:00:00.0000000Z  How do I convert a regular DateTime to be a string in the specified format?

Given:  DateTime.UtcNow   How do I get a string which represents the same value in an -compliant format?  Note that ISO 8601 defines a number of similar formats. The specific format I am looking for is:  yyyy-MM-ddTHH:mm:ssZ


I have the following login codes.  if (uname == "Abigail" && password=="Abby14"){     response.sendRedirect("http://localhost:8080/Practical_4/member.jsp");      }   else {    response.sendRedirect("http://localhost:8080/Practical_4/index.html");   }   I realized that my jsp page treats the if-statement as if it's an else statement, and only executes the else-statement.

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?


The debian package downloaded from the site opens in the software center, but when install is clicked it does nothing.  Guys the question does not ask how to install on ubuntu 15.04.  As you probably realize the procedure between implementations can easily differ.  Also the question does not ask how to install debian packages in general.  In the past my experience with this is that the general install mechanism does not pull dependencies, or has other tricky implementation details such as just use -f ... which in the past sometimes works, sometimes does not, and then we are back to the drawing board again, possibly having to reinstall the whole system in order to clean things up.  Context matters.  The context here is Ubuntu 17.04 (64 bit) and Vivaldi.  People coming to this forum want a tested proven answer in the context that they are requesting the answer for.  Short simple and easy to implement answers.  This is probably the 5th time this month that I'm writing a long explanation in my post as to why something is not a duplicate.  It will probably trigger something about going to meta to explain or challenge the duplicate tag.  But seriously we just want quick short answers.  Put a 3 day timing delay on marking things as duplicates and let people respond with answers that are specific to a given context.  It will make the forum much better.

How do I install a .deb file via the command line?


About 4 or 5 days ago, a client came back to me saying that their site was being redirected to some other suspicious looking website from Google, Yahoo, etc., but it was working fine when the user enters the site URL in the browser address bar directly.  I tried contacting my hosting provider, but they were little to no help at first and then seemed to take forever to find out the problem.  Frustrated by the wait, I set out to find what had happened. After a little bit of trawling on Google for solutions, I found out that my .htaccess file had been hacked.  What was:  <Files *> Header set Cache-Control: "private, pre-check=0, post-check=0, max-age=0" Header set Expires: 0 Header set Pragma: no-cache </Files>   had become  <Files *> Header set Cache-Control: "private, pre-check=0, post-check=0, max-age=0" Header set Expires: 0 Header set Pragma: no-cache </Files> //several hundred empty lines later RewriteEngine On RewriteCond %{HTTP_REFERER} .*google.* [OR] RewriteCond %{HTTP_REFERER} .*ask.* [OR] RewriteCond %{HTTP_REFERER} .*yahoo.* [OR] RewriteCond %{HTTP_REFERER} .*baidu.* [OR] RewriteCond %{HTTP_REFERER} .*youtube.* [OR] RewriteCond %{HTTP_REFERER} .*wikipedia.* [OR] RewriteCond %{HTTP_REFERER} .*qq.* [OR] RewriteCond %{HTTP_REFERER} .*excite.* [OR] RewriteCond %{HTTP_REFERER} .*altavista.* [OR] RewriteCond %{HTTP_REFERER} .*msn.* [OR] RewriteCond %{HTTP_REFERER} .*netscape.* [OR] RewriteCond %{HTTP_REFERER} .*aol.* [OR] RewriteCond %{HTTP_REFERER} .*hotbot.* [OR] RewriteCond %{HTTP_REFERER} .*goto.* [OR] RewriteCond %{HTTP_REFERER} .*infoseek.* [OR] RewriteCond %{HTTP_REFERER} .*mamma.* [OR] RewriteCond %{HTTP_REFERER} .*alltheweb.* [OR] RewriteCond %{HTTP_REFERER} .*lycos.* [OR] RewriteCond %{HTTP_REFERER} .*search.* [OR] RewriteCond %{HTTP_REFERER} .*metacrawler.* [OR] RewriteCond %{HTTP_REFERER} .*bing.* [OR] RewriteCond %{HTTP_REFERER} .*dogpile.* [OR] RewriteCond %{HTTP_REFERER} .*facebook.* [OR] RewriteCond %{HTTP_REFERER} .*twitter.* [OR] RewriteCond %{HTTP_REFERER} .*blog.* [OR] RewriteCond %{HTTP_REFERER} .*live.* [OR] RewriteCond %{HTTP_REFERER} .*myspace.* [OR] RewriteCond %{HTTP_REFERER} .*mail.* [OR] RewriteCond %{HTTP_REFERER} .*yandex.* [OR] RewriteCond %{HTTP_REFERER} .*rambler.* [OR] RewriteCond %{HTTP_REFERER} .*ya.* [OR] RewriteCond %{HTTP_REFERER} .*aport.* [OR] RewriteCond %{HTTP_REFERER} .*linkedin.* [OR] RewriteCond %{HTTP_REFERER} .*flickr.* RewriteRule ^(.*)$ /*don't want to post the malicious URL here for fear of retaliation */[R=301,L]   Basically, the bot that hacked me seemed to write directions that all traffic coming from the important sites be redirected to the virus site.  I immediately fixed it by removing the offensive code, and felt very nice about my clever self. I also removed the .htaccess file from the main folder that is accessed by the public, and kept it one folder above, at the root. I also changed the permissions to 444, read only by anyone. I changed the passwords to my FTP access, my hosting control panel, MySQL databases, et al.  However, today the issue was back. Turns out that a NEW .htaccess file had been installed in my public_html folder, and this had only the offensive code I wrote above and nothing else.  What's going on?  I have a feeling that this is not a case of my passwords being compromised. I'm on shared hosting, and maybe someone on the same hard-disk wrote a piece of code that went about writing .htaccess files merrily to all its neighbors. Is this possible? And is there anything I can do make sure this does not happen again?  There is no way I can reinstall or do anything to the main OS of the host though...

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


This is an example in Applied Anlysis book that $$ \lim_ {n\to \infty} \left (1+\frac{1}{n} \right )^n=e. $$ The author just says it is an example of convergent sequence.   I'm wondering what technique is needed to prove it using $\epsilon$-$N$ definition.

I am having difficulty with the proof $$\lim_{n\to \infty}\left(1 + \frac{1}{n}\right)^{n} = e$$ in Rudin's Principles of Mathematics.  In particular, the last few steps.  The proof is as follows:     Theorem. $\lim_{n\to\infty} \left(1 + \frac1n \right)^n = e.$      Proof. Let $$s_n = \sum_{k=0}^{n} \frac{1}{k!}, \qquad t_n = \left(1 + \frac1n \right)^n.$$      By the binomial theorem, $$t_n = 1 + 1 + \frac1{2!}\left( 1 - \frac1n \right) + \frac1{3!}\left(1 - \frac1n \right)\left(1 - \frac2n \right) + \dots \\ + \frac1{n!}\left(1 - \frac1n \right)\left(1 - \frac2n \right)\dots\left(1-\frac{n-1}{n}\right).$$      Hence $t_n \leq s_n$, so that $$\limsup_{n\to\infty} t_n \leq e,  \tag{14}$$ by Theorem 3.19. Next, if $n \geq m$, $$t_n \geq 1 + 1 + \frac1{2!}\left(1-\frac1n\right) + \dots + \frac1{m!}\left(1-\frac1n\right)\dots\left(1-\frac{m-1}{n}\right).$$      Let $n\to\infty$, keeping $m$ fixed. We get $$\liminf_{n\to\infty} t_n \geq 1 + 1 + \frac1{2!} + \dots + \frac1{m!},$$ so that $$s_m \leq \liminf_{n\to\infty} t_n.$$      Letting $m\to\infty$, we finally get $$e \leq \liminf_{n\to\infty} t_n. \tag{15}$$      The theorem follows from (14) and (15).     My question:     What allows us to say that $$\lim_{n\to \infty}\text{inf } t_{n} \geq s_{m}?$$   I see that $\lim_{n\to \infty}t_{n} \geq s_{m}$ (if it exists, I suppose otherwise it's vacuously true...), but why the $\liminf$?  The text does similar steps in other proofs without explanation, so I am not sure if I am misunderstanding something obvious...


I finally got my GPU skinning to work! (Mostly) I'm using MD5 format and this  tutorial  However the weird part is that I'm getting EXACTLY the same issue as this unanswered post:   The animations are opposite. When the head is supposed to be rotation left/right it rotates up/down and the arm when it goes up seems to look like the vertices invert (backface culling proves it since i can see through the mesh and see the inside of the arm)  Any clues the what might be causing this? Questions?

I'm trying to implement a GPU skinning version of the md5mesh.js by @tojiro ( with CPU skinning) in WebGL (live demo of the project , use WASD to move the camera around).   The main concept is as follows: I modified the Vertex buffer object in order to fit the information of bones indices and bone weights, then for every frame of the animation I modify the bone matrix (an array of transformation matrices for each bone) with the appropiate matrix (for each joint I create an identity matrix and multiply it by it's orientation and position, then I multiply the result by the inverse of the bind pose and it's ready to go to the shader).  This works OK when the boneMatrix array is filled with identity matrices (by concept it should render the bindPose and it does). However when I try to load an animation the movements appear messed up and clipped. I discarded a wrong/corrupt version of the md5mesh / md5anim by loading them in an MD5 viewer.  Here there is an example of what happens when the boneMat array is filled with identity matrices:    I think this is the way the model should look, but when I try to animate it...    The general movement of the mesh is correct but some vertices move with an strange direction / orientation which forces a lot of clipping to occur.  Maybe someone experienced in the matter can spot the problem directly from the image, if not I' willing to provide any part of my modifications on the md5Mesh lib.  In order to implement all of this I've followed  tutorial and took a lot of ideas from  implementation.   Any help will be appreciated, I've really hit a wall with this!  Thanks in advance.


I need to find set of words that contain vowels occurring in aeiou order.No need to occur consecutively. Also allowing each vowel to occur multiple times before the occurence of the next, but never occurring again after the next vowel has occurred  basic input list -   so far I used these regex  grep 'a[^eiou]*e[^aiou]*i[^aeou]*o[^aeiu]*u[^aeio]*' words2.txt - this is the closest one that I got  grep 'a[^e^i^o^u]*e[^a^i^o^u]*i[^a^e^o^u]*o[^a^e^i^u]*u[^a^e^i^o]*' words2.txt  grep 'a.*e[^a]*i[^ae]*o[^aei]*u[^aeio]*' words2.txt    And some outputs from first one -   appenditious,appetitious,arenicolous,arreptitious,arsenious  ....  ultraexpeditious,ultrareligious,unfacetious   most of my outputs will satisfied the conditions but some of them are not. e.g. - ultraexpeditious because when u occurs after that there cannot be have any vowel in the word.

I have a large dictionary file with 300,000+ words in it and I'm trying to find all words with the vowels aeiou in that order and have only exactly 5 vowels. My current attempt does not seem to be working and for the life of me I don't understand why.  less mywords | grep -iE [^aeiou]*a[^aeiou]*e[^aeiou]*i[^aeiou]*o[^aeiou]*u[^aeiou]*   I think it get's all the words I'm looking for but there are a few words that pop up which I can not get rid of.  abstemiousnesses ultraserious   There are a few other but they are in the same vein. Curiously, even if I add something like [^u]* to the front ultraserious keeping popping back up! Any solution would be fine however I would like it restricted to grep as we've been told it can be done using only grep.


My internet provider has a service where I share part of my wifi connection with other subscribers and in return I can use their wifi connection when I'm close to a subscribers router. It's very similar to .  However, I'm sometimes at a location where there are three subscribers (A,B and C) nearby. All of them have the service enabled.  The service shows up with the same SSID (let's name it ISP-Free), regardless of who the providing subscriber is. In the above case only one SSID shows up in my airport menu, and then my Mac decides by itself to which router (A,B or C) it connects.  This decision is not always perfect and it often connects to a router that has a weak signal. Using the Wireless Diagnostics tool (option+click on the airport icon) I can find the BSSID of the strongest ISP-Free router, but I can't connect to it.   does not help me as this permanently changes the BSSID to which the SSID ISP-Free will be associated. I don't want that as I connect to the ISP-Free network at other locations as well where the automatic router selection works fine.   is not working for me either as it works based on the SSID, not the BSSID.  So how can I connect to a specific BSSID without a changing the behaviour of the SSID permanently without third-party software? I assumed Terminal would be the only solution, but maybe there's a hidden Apple tool somewhere.

Is there any way to get Mac OS X to connect to a specific access point by BSSID? I have a network with the same SSID for multiple access points, and I would sometimes like to specify which specific access point to connect to. Is this something Mac OS X can do natively, or is there a third party tool that can do this?


I looked around a bit for some solutions first, but they didn't seem to work due to another issue.  first of all, i freshly installed ubuntu 13.10 yesterday, did my updates and upgrades etc.  so this is a fairly new/fresh system.  when i try to install skype I get this error:  The following packages have unmet dependencies: skype : Depends: skype-bin E: Unable to correct problems, you have held broken packages.   when I add the canonical partners using this line:  apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"   and update, I get this:  W: Failed to fetch gzip:/var/lib/apt/lists/partial/fr.archive.ubuntu.com_ubuntu_dists_saucy_main_binary-i386_Packages  Hash Sum mismatch  E: Some index files failed to download. They have been ignored, or old ones used instead.   apt-get -f install didn't do anything.  How can I fix this?

When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead.


I am a frequent Stack Exchange user and often ask questions, especially on Stack Overflow. Today it happened to me that I asked three questions and answered them myself shortly after thinking about the problem a while longer.  I am not sure if this is okay or if I am violating a best practice here. It happens to me from time to time that I answer my own question, but never before that frequently.  Is there anything I can/should do to prevent this in the future or is it perfectly normal and accepted to answer one's own questions?

I asked a  recently, looking for examples of an online tool. Per the , I answered my own question with a few examples that I had already found. I did this so that these examples would be included in the answers, along with the rest.  The question has received only down votes and insults saying that this shouldn't be done.   Should I not answer my own questions?


When is it appropriate to use the community wiki feature?  I'm not sure when it would be helpful to edit someone else's post instead of just discussing it in the comments.

Some questions and answers are marked Community Wiki and are owned by a community wiki user:  (In fact, this very question is one of them)  Why have Community Wiki posts? How do Community Wiki posts work? How does a post become a Community Wiki post? How can the Community Wiki status be removed from a post? How can I find Community Wiki posts?


I'm looking for suggestions on how to share Knowledge Articles with external clients.  I have searched web and one way seems to be to setup a Community and then share articles by check marking which channel the article is shared (Internal, Partner, Customer, public knowledge).  Looking for detailed steps on how this, or other options, are done; so any info would be much appreciated.  other info - we are currently running Salesforce classic but we plan to move to Lightning soon - so not sure how that might affect my approach

I'm looking into leveraging our existing presence on Salesforce to create a help resource for our customers. My problem is that I am completely unfamiliar with Salesforce and need to somehow integrate article/help into a website that has no Salesforce related content on it, with as little of a footprint as possible. How would I do this?   I've done a little browsing and saw that it looks like you can allow public access to articles via an API, would this be the ideal way to go about things? Can I do all the basic things I would need over the API? Is there something more plug and play I can utilize?


In my native language of Malayalam, we have a word 'എത്രാമത്തെ' which denotes the chronological number/position  of something. It crudely translates to 'How much'th'. As far as I know there is no English equivalent to this word. Can you design a question, whose answer would be the above? A question that addresses the chronological part (16th president); Feel free to be creative. The answer is NOT, "Who was the 16th president of the Unites states'' The closest that I have come with the intended meaning is Word to word Malayalam to English translation: 'Abraham Lincoln was the 'how much'th' president of the Unites States?' A more cohesive translation would be: 'Chronologically, what number does Abraham lincoln occupy, in the line of US Presidents'

I am the third daughter (or son) of my parents.   OR      How should a question that is answered with the above sentences be framed?


So I was trying to compare the string in PackageInfo and ApplicationInfo and retrieve their package name in Android Studio.      List<ApplicationInfo> packages = pm.getInstalledApplications(PackageManager.GET_META_DATA);     List<PackageInfo> apps = pm.getInstalledPackages(PackageManager.GET_PERMISSIONS);              for (PackageInfo app : apps)                 for(ApplicationInfo packageInfo:packages)                         String packageName = packageInfo.packageName;                         String sysName = app.packageName;                          if (packageName != sysName)                         {                             Log.d("", "NOPE DOESNT MATCH");                             break;                         }                         if (packageName.equals(sysName.toString())) ;                         {                             Log.d("", "IT MATCHES");                         //do something after that   So the problem came by when I saw inside the debug mode, they actually HAD the same string   Example in debug mode :   com.android.quicksearchbox  com.android.quicksearchbox   It returns as "NOPE DOESNT MATCH"  I'm really curious why this will happen and I have tried other form like trim to take off away white spaces between and no, it still does not return me "IT MATCHES", can anyone help please?  Thanks.

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?


Is there some rationale behind the frequently occurring voltage magnitudes in circuitry and sensors, such as 3.3V, 5V, 12V, etc.

Integrated circuits seem to have standard voltages of 5 V, 3.3 V, 2.5 V, 1.8 V, etc.  Who decides these voltages? Why do smaller devices require lower voltages?


I want to know the file permission code  I have run the command and get this code, How can i know which file has which permission  ls -l  -rw-r--r-- 1 www-data www-data   4253 Mar 16 10:17 1426481278-xAx-flame.jpg --wxrw--wt 1 www-data www-data 174613 Mar 16 10:17 1426481278-xAx-flame.mp4   Please tell me  -rw-r--r--  --wxrw--wt

I am having Problems converting user rights. I want to assign the following rights to certain files/folders but dont know hat to translate them into a format which chmod will work with like chmod 755.  -rwxrwxrwx    will be?  And  drwxr-xr-x   will be?  And finally  -rw-r--r--   will be?


When I'm rotating, I feel centrifugal force. But if I were the only one in the universe and rotating, wouldn't I just kinda be still (since I'm not rotating with respect to anything) or would there just be a force pulling me out? What if there were another person a billion miles away, this should not change anything, right?

Let's assume that there is nothing in the universe except Earth. If the Earth rotates on its axis as it does, then would we experience the effects of rotational motion like centrifugal force and Coriolis force?  The meaning of my question is: is Earth rotating relative to space?


I am looking for a book series where each member of the family has a special ability. Each book follows a different character but they are all part of the same (larger) family.  As I remember, one of the boys can control the weather/wind (and makes it terribly bad if he doesn't control his power properly). The grandma has the power to "save" music in jar (when you open the jar, the music plays). Later in the book (series?) most or all of the jar of the (now deceased) grandma is broken and, thus, the music is permanently lost.   If I remember correctly, the main character in one of the books spent a lot of time in a car dump (working there with one or two other people).  Each book follows the story of one of the children going through their teenage years, discovering their power and learning to control it.  I believe that the last book of the series was written less than 10 years ago.

I can't remember terribly much about the book. I think it was fairly large for a child.  The main character is a teenage girl. She is part of a family/clan who all have very specific superpowers. They range in intensity and specificity, but hers was on the low end. Tattoos could speak to her, and could tell her the inner thoughts of the person to whom they were attached. This worked even with temporary tattoos and ink drawn on skin.  I remember a minor subplot of her dealing with her attraction to a boy that gets drawn into whatever the major conflict is, but has no powers (wrong place/wrong time deal).   The major source of transportation is a yellow ex-school bus that is a main feature of the family. It also appears on the cover.


I can't seem to find a program that can read the extra data in Fireworks png files. Other programs like gimp will only give me the flattened version without layers.  Does anyone know of a program?  I would download a trial of Fireworks but that section of adobe's website is "experiencing difficulties".

I recieved a couple of Fireworks PNG files. Fireworks has a special format for saving several source images in layers in the png file.  How can I read these without having Fireworks installed?  (im working on a mac but with vmware so any suggestions whatever platform is appreciated)  EDIT: I'd prefer to get a set of copies out of of the layered png. And I prefer if the export be lossless


The clone army is created from Jango Fett and so the entire army contains his genetic material.   Is it stated anywhere if these troopers were made infertile? I can see issues if they decided to form relationships and have children, especially if on the same planet and you then had a number of individuals all with the same genetic parent/grandparent.

This question  mentions that the clones still have their sex drive.  But  mentioned in the text only adopted children, he didn't actually father them.  If the clones were able to produce children they might have more cause to abandon the clone wars.  Could the clones reproduce the old fashioned way, or were they deliberately sterilized?


My current python version is python 2.7 (python --version), However, I've accidentally removed python2.7 from /usr/lib/ so I cannot do anything and I see this error:  Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] ImportError: No module named site   Any suggestion?

I wanted to remove and reinstall python2.7 interpreter on 12.04  But when I did sudo apt-get remove python2.7, The crazy terminal started to remove everything!!! Any idea how I can restore whatever I've removed?


Is there anyone could help me to prove that $Aut(Q_8)=S_4$?   Someone told me that there's an isomorphism between the rigid motions of cube and $Aut(Q_8)$, any ideas?  Thank you!

Let $Q_8$ be the quaternion group. How do we determine the automorphism group $Aut(Q_8)$ of $Q_8$ algebraically? I searched for this problem on internet. I found some geometric proofs that $Aut(Q_8)$ is isomorphic to the rotation group of a cube, hence it is isomorphic to the symmetric group $S_4$. I would like to know an algebraic proof that $Aut(Q_8)$ is isomorphic to $S_4$.


I read in The Design of the UNIX Operating System that directories are files containing the names of each file they contain. So I tried cating one on my Mac, and it resulted in an error: cat: ./: Is a directory  But I then tested it in System 7 UNIX, and it worked.  .  Why does this not work in modern operating systems? Is a directory no longer a file, or did someone decide we shouldn't be able to read them?

I have the 1st edition of The Unix Programming Environment book. In chapter 2, the authors state that directories are readable as files, and mention some facts about the format of these files. They give some usage examples such as cat . (in exercise 2-2).  At least in Darwin, directories are no longer readable as files. At least, they appear to be zero-length files when read.  When did this change occur, and is there any official documentation about it?


I know similar questions have been asked before on here (for example: )  However, I don't know what to add and where to add this.  If I open ~/.profile, it looks like this:  # if running bash if [ -n "$BASH_VERSION" ]; then     # include .bashrc if it exists     if [ -f "$HOME/.bashrc" ]; then     . "$HOME/.bashrc"     fi fi  # set PATH so it includes user's private bin directories PATH="$HOME/bin:$HOME/.local/bin:$PATH"   Now I want to add a directory to this   /home/newsof/mypackage/TT/V1_1   How can I add this permanently?

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


How to install it in unallocated space? I have created a 100 GB space for Ubuntu. I need to install it along with Windows 10.

I'd like to see the full How-To on how to use manual partitioning during Ubuntu installation. The existing guides (at least those I found here) cover only automatic part and leave untouched the manual part (or extremely short and contain no pictures).  I'd like to cover such situations:     If your disk contains other systems:


I know this question has been asked a lot, but none of the answers i have found have helped me.  I have a HP laptop that I have put Ubuntu 17.10 on and ever since the first boot it could not find any wifi or bluetooth adapters. I have tried to install Realtek drivers but it has not worked. My Wifi and Bluetooth adapters are built-in.  when I run lspci -nnk | grep -iA3 net the output is      02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]     Subsystem: Hewlett-Packard Company Device [103c:8319]     Kernel modules: wl 03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)     Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [103c:832c]     Kernel driver in use: r8169     Kernel modules: r8169   Thank you for your help.

I have not much experience with ndiswrapper but some vague memory of using it with some broadcom module long back. Now, here is the problem. Realtek RTL8723DE wireless module is used in my new HP 15-BS576TX laptop. I haven't installed Linux yet. But, would like to check if Ndiswrapper can help use the Windows driver to work in Linux. Here is the Windows 10/8/7 driver for this RTL8723DE wlan module:   I extracted the exe and can see a folder /RTWLANE_Driver/Wind7X86/ which has rtwlane.sys and few other files which I presume is related to the wireless driver. Is there any chances of luck with ndiswrapper considering the driver executable actually contains win8/win7 drivers.  Thank you.


Ok, first of all, the question above might be worded wrong so please forgive me if this is the case. So for clarification let me explain;  In the process of troubleshooting something, one tries multiple solutions until they find the right one. What can I do to prevent a failed solution hampering the next correct solution?  For example; Today I'm trying to get my iPhone 5 working in Kubuntu 16.10 (I need to download photos from it). I do my research and find multiple ways of solving the problem. So I randomly pick a solution that says install so and so package. So I go and do sudo apt install so and so package. CLI says, you need to install 1000!?!? dependencies to make so and so package work. I'm like OK cool, that's a lot of packages, but I think I can handle it. So I go and install them. But then bam, solution 1 crashed and burned. And I'm all like, it ain't no biggie. I can just delete all of those dependencies. So then I do sudo apt purge <1000 dependencies>, but then out of nowhere the CLI says I'm only deleting 500 dependencies.  And then I'm all like, wait, what if those 500 dependencies get all huffy and jealous cause in my next attempt at solution 2, CLI says, you need to install 2000 dependencies for so and so version 2 package to work? You know how it is with unmet dependencies, they are never resolved.  Anyways, the whole point of this obnoxious long diatribe is this; how do do I get back to a clean operating system without having to do a complete reinstall?  Today in the process of fixing this iPhone drama, I accidentally deleted Xserver. It's OK, because I got my lovely GUI back, but I really don't want to have to go through another heart attack just to try multiple solutions. So if anyone could enlighten me it would be great.

Does Ubuntu need regular cleanups like Windows. For example:   Cleaning the logs Temporary files Package cache Dependencies left over   I am not referring to web browsers only.  In case I never do a cleanup, will I have a system like new without my hard drive being full of temporary files, packages, etc.?  Will the performance degrade overtime if a cleanup is not done.


I am currently using ubuntu 13.04 along With windows 7. But I want to change my MAC address of pc. Is there any way to change it.

My router can do port-forwarding based on MAC addresses. That is, a specific MAC will get a specific IP, for which I can configure a set of ports to be forwarded. In order to easily change that set of ports, I'd like to have different connections in the Network manager.  How do I change the MAC address for a network connection?


Several questions are similar to this one, but I have not found a solution that works when I want to search for a pattern over several lines. The following  sed -n '/First string/,/Second string/ p' my.file   will print all occurrences of the matched pattern, but I would like only the first occurrence. I am using GNU sed.

How can I select first occurrence between two patterns including them. Preferably using sed or awk.  I have:  text something P1 something content1 content2 something P2 something text something P1 something content3 content4 something P2 something text   I want the first occurrence of the lines between P1 and P2 (including P1 line and P2 line):  something P1 something content1 content2 something P2 something


I'm trying to change all the pose bones Euler with a script. My failed idea is this: for bone in bpy.context.active_object.pose.bones: print(bone)  This gives me <bpy_struct, PoseBone("thigh_ik_target.R") at 0x7f8061bafef8>  But all I need is just the name of the bone. "thigh_ik_target.R"  So can use for bone in...  To loop through all the bones to change the "rotation_mode" with bpy.context.object.pose.bones[bone].rotation_mode = 'XYZ'  Should I try and extract the name of the bone from that printed statement and put it in a variable? Any ideas?

I am tired of manually switching from Quaternion rotation mode to XYZ euler mode for every bone. Is there anyway to accelerate this process? Any help would be appreciated!


I want to change my system screen color settings to red color temperature of 3000k. I am using ubuntu 16.04LTS, I have also tried with Flux and redshift, It doesn't help me.  Flux - doesn't have permanent color shift for 24/7

I just switched to Ubuntu, and on Windows I was using f.lux. I was able to set the temperature to a certain time and leave it at that, it wouldn't change at all.  Now I installed Redshift and I can't do that anymore. Could some one help, please?


How can I restrict a user from executing sudo -su? I.e., disable this -su option for sudo allowed users.

I have tried to restrict user by editing sudoers file M ALL=!/bin/su. I am able to restrict sudo su - but not sudo -i.


Is an ESTA enough when travelling by land from Canada to US with an RV and back to Canada with the RV? We have an Esta and are flying to Toronto and back from Calgary Canada.

I wish to travel to the US and think I am eligible to do so under the Visa Waiver Program. I found a lot of information out there but am still having some trouble understanding how this works.  What is the US Visa Waiver Program? What is an ESTA?


I'm trying to calculate a collision between two 2d disks with rotational motion. The collision is perfectly elastic: the sum of translational and rotational energy is conserved. In the instant of the collision the contact of disks' surface is without slipping. Could you give me hint for this calculation?  Thanks.

I'm trying to simulate a wheel as it hits the ground.  Problem 1  Suppose a disc is dropped from a height. It has initial velocity of $-x,-y$ caused by throwing and gravity. It has no initial angular velocity. When it hits the ground it should have some rotation resulting from the collision.   How to calculate force that caused torque for that rotation?   Problem 2  The same disc is dropped from height. It doesn't have velocity on the side direction. It already spinning fast. When it hits the ground the spinning should cause some translation.   How to calculate force that caused this linear acceleration? Some rotation must be lost in the collision, how to calculate that?   To simplify assume static $friction = 1$ and $g = -10$.


I have got a p-value of .0166 on a hypothesis test on comparison of hourly wages for different countries. Would it be right to make a a conclusive remark that  “We can be 98.34% confident [1-.0166] that rejecting the null hypothesis and concluding that hourly wages are different for countries is the right conclusion.”

I recently came across the paper . The author raised a few common misconceptions regarding hypothesis testing and p-values, about which I have two specific questions:   The p-value is technically $P({\rm observation}|H_{0})$, which, as pointed out by the paper, generally does not tell us anything about $P(H_{0}|{\rm observation})$, unless we happen to know the marginal distributions, which is rarely the case in "everyday" hypothesis testing. When we obtain a small p-value and "reject the null hypothesis," what exactly is the probabilistic statement that we are making, since we cannot say anything about $P(H_{0}|{\rm observation})$? The second question relates to a particular statement from page 6(652) of the paper:      Since the p-value, or range of p-values indicated by stars, is not set a priori, it is not the long-run probability of making a Type I error but is typically treated as such.   Can anyone help to explain what is meant by this statement?


I want to bootstrap Drupal from an external PHP file located in Drupal's root directory. The following code will do the job.  error_reporting(E_ALL); ini_set("display_errors", 1); define('DRUPAL_ROOT', getcwd()); require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);  $html_1='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   <title>HOW TO BOOTSTRAP DRUPAL FROM AN EXTERNAL PHP SCRIPT?</title>   ';  $html_2 =' ';  global $user;  if ((user_is_logged_in()) && ($user->uid == 1)) {      //only if this is the admin, do stuff. for example:     print $html_1;      print  t("
This User
\n") ;       print "
Logged In
\n";      print "
User ID: ".$user->uid."
\n";       print $html_2;  } else {     drupal_access_denied();     module_invoke_all('exit');     drupal_exit(); }   Let's say I want to create a script that lets the admin export nodes of a certain content type. And let's assume I don't want to write a custom module or use views. I know that my way of doing that is the wrong way. I'm trying this in order to learn bootstraping Drupal from an external php script. If I put my script in Drupal's root directory, and I don't change anything in the .htaccess file, will the script cause any security issue?  So I want to know if this example safe, i.e. if the code doesn't have any security issues. So my question is about the security of the process.

I'm trying to call drupal_bootstrap from 'temp.php' in a subfolder called 'custom' my code as follow:  chdir('../'); define('DRUPAL_ROOT', getcwd()); require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);   Once I call the temp.php I get Drupal homepage.   I also tried an explicit physical path but with no use, code as follow:  define('DRUPAL_ROOT', '/var/htdocs/drupal7'); require_once '../includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);   temp.php located under the following folder structure:  - var -- htdocs --- drupal7 ---- custom  ----- temp.php


I  am quite an active user on . Today when I logged in, I got below notification of earning new privilege. But I can not see my reputation enough to get this privilege.(111/125). Also did not receive any -ve response on any of my Q&A.   Are my reputations and privileges not in sync.

I'm getting this notification: "Congrats, you've gained the privilege – talk in chat and 2 other privileges learn more." However, I only have 11 reputation and I cannot talk in chat since this requires 20.  Checking "show removed posts" does not show any downvotes but even if this was the case I would not expect to get the notification. Note that if i remove the notification (click on the X) and click again on my username I get the notification again.  Is this a bug?


I have a complex command in my terminal window which I would like to edit further e. g.  echo "This is a complex command I want to edit in an editor"   How can I pipe this line of code - not the output but the actual code - to e.g. Gedit for further editing? Something along the lines of this solution, just for a GUI based editor:   Please note that I'm specifically looking for a way to edit in an external editor.

Shells (at least what I know) have really bad command editing capabilities.  For example:    I can't point the cursor to any point of the command. I can't select and backspace/delete/replace text in the command.   Currently these are so distracting, I use gedit to edit commands before pasting them to the terminal.  Is there any solution that's good for these?


Quantum mechanics uses the wave function to calculate probabilities by taking the square modulus of the wave function as requirement by Max Born. Why should this (squaring of the wave function) be so, was there a logical argument for this?  I did a little research and found the four Born conditions. The sites told me exactly what they were but fell short of actually explaining the logic behind them. I can understand the modulus part but why square the wave function, is there an explanation?

As far as I've read online, there isn't a good explanation for the . Is this the case? Why does taking the square of the wave function give you the Probability? Naturally it removes negatives and imaginary numbers, but why is it the square, not the fourth or some higher power?


It makes me think of means... The RHS Is like a geometric mean but the "divided by 4" annoyes me. The LHS is probably an arithmetic mean... Can they be combined?

I want to prove the following inequality :      $$\frac{1}{16}(a+b+c+d)^3 \geq abc+bcd+cda+dab,  $$   $a,b,c,d \in \mathbb{R}_{+} .$    In my book, at the answers chapter the author uses AM $\geq$ GM, but I haven't any idea how I can use that.   Thanks :)


I've had an assignment to sign a file using hash and salt, so I read about salt and I got why it's important when it comes to password, but not to sign messages.   How do I sign something using salt? The only way I could think of is that I add the salt to the message then hash both and then send the hash along with the salt (encrypted of course)… but it makes no sense to me. Even if what I said earlier is how it's done, it's not useful at all. How and why would I use salt to sign a message ?

EDIT: Just wondering why was this question closed as a duplicate of a question asked almost 2 years after this one... I've seen an example of how to sign using RSA. Besides the signing itself (s = m^d mod n) it also hashes and adds an IV. Why is that needed?


LED strip has resistors built in. LED strip runs on 0.5-2A. LED Strip needs 5v, has one pin for that, one for red, one for green, and one for blue. I will be using a total of 4.8 volts. Using ohms law, with the minimum current as the current in the equation, I'll need a resistance of 9.6 ohms (let me know if I did it wrong, or if If I should do it another way). The potentiometers will be 500 ohms each, with 3 resistors of 3.3 ohms wired in series, then connected to the wiper and a terminal for a resistance of 9.71 ohms. The batteries (rechargeable), once again, are in total 4.8 volts (4 1.2v) and AA . The button will be an LED latching button. Let me know if I'm missing any info.

I'm trying to make an RGB color mixer. LED strip runs on 0.5-2A. It has internal resistors. LED Strip needs 5v, has one pin for that, one for red, one for green, and one for blue. Each LED module that you can cut off was about an inch an a half, actually a little less, and there's 5.5' of the strip, I think there's around 40 LEDs in the strip. I found this video online, but this is the exact LED strip I got. .         – Schematic created using   Original schematic.  I will be using a total of 6 volts. i saw a video where a guy made a PWM circuit, , and it looked something like this.          555-based PWM control.          Tidied-up schematic.  I meant for the threshold to connect to the trigger, but I couldn't get it to. I'm confused on how to pick my resistors, my pot, and my capacitor, because in a different video, it said something like 1.44/(R1+R2+R2)*C1=Frequency. I assume frequency is how fast the LED flickers? In this schematic, there's 2 capacitors, which do I use in the equation? Does higher frequency mean faster flickering? How fast would be too fast for the naked eye? How do I control which I way I turn the pot to make the lights brighter. And how do I know how much current is coming out of the the output? How can I control that so it doesn't burn out my LED?


This is related to .  I just got an Android watch and basically the only reason I have left to check my phone is to see if my reputation changed. I do receive notifications of comments and answers to my questions on the watch. Is it possible/could it be possible to check reputation on a watch?

I would like to get a notification if my reputation count has changed. I think there is already some internal API for that. (I can see that changes in the menu bar in the top).  I'm sure that some people would not like that so that should be optional.


As the title says, all of my icons are suddenly missing (Windows Explorer, Registry, Task Manager). Only metro icons in the start menu are showing  This is my current situation:  Additionally, I can't open any file or folder properties  Things I've tried:   restarted windows deleted icon cache scanned with sfc /scannow scanned with Malwarebytes repaired SageThumbs disabled Stardock Fences   Even in safe mode the problem still occurs. Also tested with another freshly created local user - still the same

I opened the PC in the morning, and this is what I got:      As is visible the icons of the UWA apps were no affected and the start menu also is unaffected.    When Control Panel is in category view the entire page is empty and in large/small icons the name is visible, no icons.  I deleted the iconcache.db in %USERPROFILE%\AppData\Local folder. Following the instructions here: . But to no avail and now windows is not rebuilding the cache.   I also ran sfc /scannow but no changes took place.  What should I do?  (01/01/2016 8:00PM GMT +5:30) Edit: I tried opening the system properties and I got 0x8000ffff error and this:        Then I closed the popup and pressed the OK button on the System Properties Windows and I got 0x8007057A error:      Opening the Image Backup Control Panel page I again got an 0x8007000E error:        I tried using system restore via advanced startup but once again I got 0x800FFFF error.  P.S.: I did try restarting, didn't work.


I would need to typeset in LaTeX the following symbol: ⓡ, which is described here:    This symbol can be of general use for referring to a randomized order of coauthors in a paper, cf. Ray, D., & Robson, A. (2018). Certified random: A new order for coauthorship. American Economic Review, 108(2), 489-520.  This is not the standard \circledR symbol, but rather something more like \circledr. However, it does not seem to exist in LaTeX.   Could someone help me design this, without having to adopt a font that recognizes this unicode character in LaTeX?

What is the best way of implementing  coauthors in LaTeX. There is one potential  from the comp.text.tex usenet group that uses perltex and can be modified as follows:  \usepackage{perltex}  \perlnewcommand{\shuffleauthors}[1]{ @authlist = split /\\.*?\{c\}/, $_[0]; foreach (1 .. 3) { foreach $i (0 .. $#authlist) { $r = int(rand(@authlist)); ($authlist[$i], $authlist[$r]) = ($authlist[$r], $authlist[$i]); } } return join(" \\textcircled{r} ", @authlist); }  \title{Test of Random Authors} \author{\shuffleauthors{Arthur Won \and Ardur Tu \and Auzer Trea}}  \begin{document} \maketitle  \end{document}   Unfortunately \thanks footnotes do not work in this implementation and I'm not enough of a latex coder to get it to work.  Moreover, the ideal implementation would not require perltex.


Let $R$ be a ring with an identity element $1_R$ which is a domain. Let $S$ be a nontrivial subring of $R$ with identity element $1_S$. Prove that $1_R = 1_S$.

If $R$ is an integral domain and a subring $S$ has identity $1_S$, how would you show that $1_S=1_R$ (here $1_R$ is the identity of the ring $R$)? I am unsure about what an integral domain really is and how the subring comes into play here.


I have some problems solving the following problem:  Let $X = (X_1, X_2,\ldots, X_n)$, be random sample , where $X_{i} \sim N(\mu, \sigma^{2})$. Show that:  $$U:= \frac{n-1}{\sigma^2} S^2 \sim \chi^2 (n-1); \text{ where } S^2:= \frac{1}{n-1}\sum_{i=1}^n (X_i - \overline{X})^2.$$  Do I need to prove first that the statistic, the sample mean, is sufficient? Or show the independence through Basu's Theorem?  Thanks for any help!

It's a standard result that given $X_1,\cdots ,X_n $ random sample from $N(\mu,\sigma^2)$, the random variable $$\frac{(n-1)S^2}{\sigma^2}$$ has a chi-square distribution with $(n-1)$ degrees of freedom, where $$S^2=\frac{1}{n-1}\sum^{n}_{i=1}(X_i-\bar{X})^2.$$ I would like help in proving the above result. Thanks.


In linear regression, I seemed to see (but I forgot where) that if the square sum of residuals divided by square sum of total variation equals the square of some correlation between some random variables, and hence it explains why the ratio is called "R Square".   So I was wondering what the correlation is between, and why the ratio is the square of the correlation?   What assumptions on the linear regression model are needed for the explanation of "R Square" in terms of correlation?  Thanks!

The coefficient of determination is $$r^2 = 1 - \frac{SS_\text{res}}{SS_\text{tot}}$$ where $SS_\text{res}=\sum_{i=1}^n (y_i-\hat{y_i})^2$ and $SS_\text{tot}=\sum_{i=1}^n (y_i - \overline{y})^2$.  Why is this used for assessing the fit of a least squares line? Why is the comparison based on looking at $SS_\text{res}/SS_\text{tot}$ as opposed to say $SS_\text{res}/n$ or something else?


I know that compact sets imply the existence of a maximizer, but is the converse true:   Let $(X,d)$ be a metric space. Suppose that whenever $f$ is a continuous (and real) function on $X$, there exists a point $y \in X$ such that $f(y) \geq f(x)$ for all $x \in X$. Then X is compact.

Let $X$ be a metric space. Prove that if every continuous function $f: X \rightarrow \mathbb{R}$ is bounded, then $X$ is compact.  This has been asked before, but all the answers I have seen prove the contrapositive. Realistically, this may be the way to go, but is there way to exhibit an unbounded continuous function (under the assumption $X$ is not compact) without appealing to results beyond introductory real analysis (e.g., the solution I've seen involves the Tietze Extension theorem)?  Because we're working with metric spaces, it's clear that the assumption that $X$ is noncompact (towards proving contrapositive) will lead us to extract a sequence of points in the space with no convergent subsequences. But how can we infer the existence of an unbounded continuous on the space knowing only about some sequence of points in this space (without using anything too advanced)?


I'm trying to make a small scripting language using c# currently doing a block parser im stuck at making regex for block. Blocks can have ∞ times of sub blocks  This is what i need to catch  {      naber();  } {     int x = 5;     x = 2;     if (x == 5) {         x = 5;     } }    I tried this but not working  \{[^{}]*|(\{[^\{\}]\})*\}   This is my first post please have mercy on me

I need a regular expression to select all the text between two outer brackets.  Example: some text(text here(possible text)text(possible text(more text)))end text  Result: (text here(possible text)text(possible text(more text)))


I try to execute the command sudo apt-get update; sudo apt-get --reinstall software-center but the below response is follow:  W: GPG error: http://private-ppa.launchpad.net trusty InRelease:     The following signatures couldn't be verified because the public key    is not available: NO_PUBKEY E131728675254D99 E: Command line option --reinstall is not understood   First: I remove "View File" from Software Ubuntu Center after which my Software Ubuntu Center deleted as well.  How can I reinstall my Software Ubuntu Center?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


I have a view, format: table; and a few fields:   Bulk operations: Content Content: Title Content: Price Content: Stock 1 (Stock 1) Content: Stock 2 (Stock 2) Content: Stock 3 (Stock 3) Global: Math expression (Total Stock) Global: Math expression (Total Price)   At Configure field: Bulk operations: Content section SELECTED BULK OPERATIONS i selected Delete item and another 3 options (rules components). These are: new_value_for_stock_1, new_value_for_stock_2, new_value_for_stock_3, new_value_for_price.  Admin user can see all these options (rules components), but a non-admin user (eg. an editor role) can see only Delete item.  Is there a method (trick) to give permissions for a non-admin user (role)?  I enabled Actions permissions (VBO) and in Administration » People » Permissions are displayed only default actions (eg. EXECUTE Delete item). The custom rules components aren' displayed there.

I created a view (table) and i asociated views bulk operations. I created 4 rules components. I have permissions only for user/1 (admin). Another user role (eg. editor) can't see these options. "editor" user can see only "DELETE ITEM" rule components.  In permissions I have only the default actions (components); I created 4 new Rules Components, and these aren't displayed in Admin > People > Permissions.  Is there another method (trick) to give permissions for another role for custom Rules Components? Am I missing something?


As we know, we can't inherit final class in java but I want to know why java doesn't allow to do so? What is the reason behind it?

What are good reasons to prohibit inheritance in Java, for example by using final classes or classes using a single, private parameterless constructor? What are good reasons of making a method final?


I am trying to use Google's StreetView Image API in my app and use it withing a FragmentPageAdapter. I used the streetview api within a single activity and it was working fine but when I tried 'switched' to a 3 fragment fragmentPagerAdapter as soon as I tap on the StreetViewPanoramaFragment fragment the app crashes with the followig:  Theme: themes:{} java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.StreetViewPanoramaFragment.getStreetViewPanoramaAsync(com.google.android.gms.maps.OnStreetViewPanoramaReadyCallback)' on a null object reference at xdesign.georgi.prototyping_espc_streetview.fragments.StreetViewFragment.onCreateView(StreetViewFragment.java:38) at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1016) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1197) at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1562) at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:535) at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141) at android.support.v4.view.ViewPager.populate(ViewPager.java:1106) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:552) at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:514) at android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:495) at xdesign.georgi.prototyping_espc_streetview.MainActivity.onTabSelected(MainActivity.java:94)   This is my "StreetViewFragment"  public class StreetViewFragment extends Fragment implements OnStreetViewPanoramaReadyCallback { private StreetViewPanoramaFragment streetViewPanoramaFragment;   @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);  }  //Overriden method onCreateView @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {     StreetViewPanoramaFragment streetViewPanoramaFragment = (StreetViewPanoramaFragment) getActivity().getFragmentManager().findFragmentById(R.id.streetviewpanorama);     streetViewPanoramaFragment.getStreetViewPanoramaAsync(this);     //Returning the layout file after inflating     //Change R.layout.tab1 in you classes     return inflater.inflate(R.layout.street_virew_fragment_layout, container, false); }  @Override public void onStreetViewPanoramaReady(StreetViewPanorama streetViewPanorama) {     streetViewPanorama.setPosition(new LatLng(-33.87365, 151.20689)); } }   'street_virew_fragment_layout'xml:  <?xml version="1.0" encoding="utf-8"?> <fragment     xmlns:android="http://schemas.android.com/apk/res/android"     android:name="com.google.android.gms.maps.SupportStreetViewPanoramaFragment"     android:id="@+id/streetviewpanorama"     android:layout_width="match_parent"     android:layout_height="match_parent"/>

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


I hold an Indian passport, I am a seaman working for a passenger cruise line.  I am planning to visit Mexico as a tourist on a valid US (C-1/D) visa For 8 days. I have return tickets confirmed, travel insurance, bank statement, salary slip and hotel booking.  Can I travel visa free to Mexico?

I really need help as I recently faced a dilemma related to Mexican visa. I am a Uzbekistan passport holder and, in the near future, I'm going to visit Mexico for tourism.   Am I allowed to enter Mexico with C1 visa for transit through the United States? It would not be via the USA but via other countries.   Getting a Mexico visa is not easy, as there is no Mexican Consulate in Uzbekistan. To get a visa for Mexico, I would have to go to Iran, first get an Iranian visa, then stay in Iran for several weeks. It is very time and money consuming, so the most suitable solution for me in this situation is the C1 visa.


hey my friend is coming back from usa to india,he is carrying used 2 laptops and 4 used mobiles.and my iphone 6s plus 128gb is among them.will it lead to any problem.am ready to pay import duty,wat will be the import duty on my item which cost aprrox 80000INR

I am planning to travel to India (COK airport, Kerala) from United States. I want to take my laptop as well as my tablet (iPad). Am I allowed to take both in my backpack with my documents related my work. I think I am allowed to take only one computer as per the rule. Will the customs consider my iPad as a computer?  What all I can take?   One of my friends took 2 laptops (1 work and 1 personal) and had trouble at the airport.  Also I am planning to take some wristwatches (7 of them, each avg price is 45 $). I read in a website that I can take stuff up to max 35000 INR. Is that true? In that case, how will I manage my stuff?


I have a laptop that says it needs a 19V 3.42A power supply. I have a Dell 20V 4.51A power supply.  Can I use this power supply with my laptop, or will it destroy the machine?

I have a Toshiba Satellite laptop. My charger has stopped working.  I have access to a Lenovo charger. Can I use this charger on my laptop?


I have to calculate  $$ 3^{{2014}^{2014}} \pmod {98} $$  (without calculus). I want to do this by using Euler/Fermat.  What I already have is that the $\gcd(3, 98) = 1$ so I know that I can use the Euler Fermat formula.   Then I know that $\varphi(m = 98) = 42 $  Then I can say that  $$3^{{2014 }^{2014} \pmod {42}} \pmod {98}$$  Now I don't know how to progress. Any ideas/hints?

Calculate without a calculator: $$\left [ 3 \right ]^{2014^{2014}}\mod 98$$   I know I have to use Euler's Theorem. As a hint it says I might need to use the Chinese Remainder theorem too. I know how both of these work theoretically.  For example I can calculate $5^{256} \mod 13$ with Euler's Theorem. But these large numbers throw me off, especially the double power of 2014.  I started of like this for the Chinese Remainder: $$98 = 2*7^{2}\\ \left [3  \right ]^{2014^{2014}} \mod 2 \\ \left [3  \right ]^{2014^{2014}} \mod 49 \\$$  Now calculate both: $$\left [3  \right ]^{2014^{2014}\mod \phi_{(2)} = 2} \equiv  \left [3  \right ]^{0} \equiv 1  \mod 2$$ That was lucky. I fail at mod 49.  Applying Euler's Theorem on 2014^2014 (since ([3]^2014)^2014 seems even more impossible) gives the following:  $$\phi _{(49)} = 42\\ 2014 = 47*42+40\\ 2014^{2014} = 2014^{42^{47}}*2014^{40}\equiv 2014^{40} \mod 49$$  (That doesn't really work without a calculator either.) And what now, applying Euler's Theorem again doesn't work, and I can't do it in my head either.  Is my approach right? Did I do something wrong?  Please point me in the right direction. I'm also open to entirely different solutions.


Should I update my kernel for this Zombieload attack?  I'm running ubuntu 19.04.

Today a couple of buffer overflows in NTP were announced , . It looks like updating my system to fix these issues is in order.   How can I find out if they have been fixed in the Ubuntu repositories, such that if I were to run:   sudo apt-get update sudo apt-get upgrade   then the fix would get installed and the vulnerability closed?   Edit: The selected answer specifically addresses the question of how to identify if a given CVE has been fixed or not, "Does Ubuntu generally post timely security updates?"  is certainly related but not identical


A survey of 400 men and 400 women in a certain city showed that 270 men and 240 women favor a certain proposition. Calculate a confidence interval of 88% for the difference in proportions between men and women. Interpreting the result.  My attempt:  By hypothesis we know:  $N_x=400$ $N_y=400$ $n_x=270$ $n_y=240$  Note $\bar{p}(x)=\frac{270}{400}=0.675$ and $\bar{p}(y)=\frac{240}{400}=0.6$  Let $1-\alpha=0.88$ then $\frac{\alpha}{2}=0.06$  We know the confidence interval have the form   $$p=(p_1,p_2)$$  where $$p_1=(\bar{p}(x)-\bar{p}(y))-\phi_{\frac{\alpha}{2}}\sqrt{\frac{\bar{p}(x)(1-\bar{p}(x))(N_x-n_x)}{n_x(N_x-1)}+\frac{\bar{p}(y)(1-\bar{p}(y))(N_y-n_y)}{n_y(N_y-1)}}$$  $$p_2=(\bar{p}(x)-\bar{p}(y))+\phi_{\frac{\alpha}{2}}\sqrt{\frac{\bar{p}(x)(1-\bar{p}(x))(N_x-n_x)}{n_x(N_x-1)}+\frac{\bar{p}(y)(1-\bar{p}(y))(N_y-n_y)}{n_y(N_y-1)}}$$  Note $\phi_{\frac{\alpha}{2}}=1.56$  Then $p_1=-0.4096$ and $p_2=0.5596$  Here i'm stuck because $p_1>0$ but i have $p_1<0$. Can someone help me?

I'm having trouble making sense out of the formula $$(\hat{p}_1-\hat{p}_2) \pm 1.96 \sqrt{\frac{\hat{p}_1 (1-\hat{p}_1)}{n_1} + \frac{\hat{p}_2 (1-\hat{p}_2)}{n_2}}$$  Is the idea that the sampling distribution of the difference between proportions of group $1$ and proportions of group $2$ of sample size $n$ is normally distributed regardless of population distribution shape, the same way it is true of the sampling distribution of the sample means, for example?  And in this case, what does that mean exactly? Say we have a sample size of $10$; are we talking about every possible combination of differences between every possible combination of samples of size $10$ for both groups and saying that that "function" is approximately normally distributed? What does it mean to subtract one sampling distribution from another?   And then, where does the square root come from? Is it just the SE of the distribution resulting from subtracting the sampling distribution of sample proportions of group 2 from the sampling distribution of group 1?


What is the name for constructions like the following, where the final conjunctive is omitted?  He came, he saw, he conquered. The sirens were constant, loud, annoying.  I'm sure I heard this stylistic flourish given a proper name, but I can't remember where. I use this fairly often for effect and I'm sure it's grammatically correct.  is similar, but is to do with the appropriateness, rather than the name, of this contruction.  asks whether it is acceptable, but not its name.

He called her, emailed her, texted her, tweeted her—all to no use.   Strictly speaking, I would need to write texted her and tweeted her, but I'm omitting and to convey a rhythm and sense of urgency. What do you call this kind of construction, and is it accepted grammar (at least for creative writing, if not in an academic context)?


This is for the translation of a bachelor thesis and we have different opinions on the use of the word "change". Which is correct?  COVID-19 changed / has changed / has been changing the everyday life of people.  1st person says: changed  means life changed in March and is changed since then. 2nd person thinks: has changed is stronger I personally think: has been changing means that the changes have not come to an end and we are still dealing with it and new changes are communicated on a daily basis. Thanks for your help!

Non-native speakers often get confused about what the various tenses  and aspects mean in English. With input from some of the folk here I've put together a diagram that I hope will provide some clarity on the matter.  I offer it as the first answer to this question. Consider it a living document. Input is welcome, and good suggestions will be  incorporated into the diagram.    Nota bene: What this is not is a discussion of whether there are  more than two tenses in English. , to which this question is not intended to supply arguments one way or the other.  Here, the aim is to provide an overview of what constructions English-speaking people use for conveying information about actions referring to past, present, and future, and to provide it first and foremost to precisely the people who are likely to use "tense" as a catch-all term in their search, rather than to linguists who know better.  Breaking News There is now an excellent ELU blog article titled  . It is highly recommended reading.


I would like to draw four circles inside each other, with some text in the area between the circles (naming that area).  So far I got:  \documentclass{article}  \usepackage{tikz}  \usetikzlibrary{shapes,backgrounds}  \def\firstcircle{(0,0) circle (1.5cm)} \def\secondcircle{(45:2cm) circle (1.5cm)} \def\thirdcircle{(0:2cm) circle (1.5cm)} \def\fourthcircle{(0:2cm) circle (1.5cm)}  \begin{document}   \begin{tikzpicture}     \draw \firstcircle node[below] {$first$};     \draw \secondcircle node [above] {$second$};     \draw \thirdcircle node [below] {$third$};     \draw \fourthcircle node [below] {$fourth$}; \end{tikzpicture}  \end{document}   but I don't know what to do to:   make one circle bigger than each other (with fourth circle being the largest) make the text not appear inside in the middle of the circle, but in the areas between the circles (it would be nice if the text arched following the circle) make the circles appear inside each other.   Thanks.

I am trying to draw the below given figure. Please help me to plot it in Tikz. I am only able to plot concentric circles. . I would like to have different colors in between different circles. Also, the text should be along the curve. The arrow in between the two concentric circles does not have to overlap with the circle on the right hand side.  I would be grateful if you could help me in plotting this in Tikz. Please let me know if you need more information. Thanks!  \documentclass[conference]{IEEEtran}  \ifCLASSINFOpdf  \else  \fi  \usepackage[usenames,dvipsnames]{color} \usepackage[T1]{fontenc} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{arrows} \usetikzlibrary{shapes.multipart} \usepackage[caption=false]{subfig} \usepackage{tabularx,tikz} \usepackage{graphicx} \usepackage{color} \usepackage{pdfpages} \begin{document}  \title{Practice Tex}   \maketitle  \section{Introduction}  \begin{figure} \begin{center} \begin{tikzpicture}     \draw(0,0) circle (0.4cm)   node[draw=none,sloped,above]{cxvzxcv};         \draw(0,0) circle (0.75cm) node[draw=none,sloped,above]{ratio};    \draw(0,0) circle (1.25cm);   \node[draw=none,align=center, font=\scriptsize,text width = 1.25cm] at (0,2.2) {22};    \draw(0,0) circle (2cm);   \node[draw=none,align=center, font=\scriptsize,text width = 1.25cm] at (0,3.8) {33333};    \draw(0,-9) circle (0.4cm);   \node[draw=none,align=center, font=\scriptsize,text width = 1.25cm] at (0,-9) {fsgsdgf};      \draw(0,-9) circle (0.75cm);   \node[draw=none,align=center, font=\scriptsize,text width = 1.25cm] at (0,-7.8) {fgdsfg};    \draw(0,-9) circle (1.25cm) node[midway,sloped] at (0,-9) {dfsdfad};    \draw(0,-9) circle (2.8cm);   \node[draw=none,align=center, font=\scriptsize,text width = 1.25cm] at (0,-6.4) {dfsdfsd};    \draw(0,-9) circle (3.2cm);   \node[draw=none,align=center, font=\scriptsize,text width = 1.25cm] at (0,-6) {dfsdfsd};    \draw(0,-9) circle (3.6cm);   \node[draw=none,align=center, font=\scriptsize,text width = 1.25cm] at (0,-5.6) {sfdsfd};    \draw(0,-9) circle (4.4cm);   \node[draw=none,align=center, font=\scriptsize,text width = 1.25cm] at (0,-4.8) {sdfsf};     \pgfsetlinewidth{3pt}    \draw [-implies][->] (0,-4) -- (0,-4.6);   \end{tikzpicture}  \end{center} \end{figure} \end{document}


Perhaps this is a weird question, but I couldn't find an answer via etymologies.  When something is "impregnable" it means "cannot be broken into."  But, when something is "impregnated", other than the analogous "to make a female with child", it means to "fill" or "saturate", but this almost seems an antonymous verb for "impregnable."  The definition of "impregnable" makes it seem as though the appropriate verb for "impregnate"'s definition should just be " pregnate."   Does anyone know why there is this discrepancy?  I hope I am being clear, thank you.  EDIT: My question has been previously asked here, for all interested.

Well not exactly, but according to the , impregnable means:     ADJECTIVE:   1. Impossible to capture or enter by force: an impregnable fortress.   2. Difficult or impossible to attack, challenge, or refute with success: an impregnable argument.   Or, according to 's short definition:     (Of a fortress, wall, etc.) Too strong to be penetrated.   On the other hand, the meanings of impregnate, in addition to "make pregnant", include      To fill throughout; saturate: a cotton wad that was impregnated with ether.     4. To permeate or imbue: impregnate a speech with optimism. See Synonyms at charge.       to make a substance such as a liquid spread all the way through something: a pad impregnated with natural oils       a : to cause to be filled, imbued, permeated, or saturated    b : to permeate thoroughly   which, at a stretch, are closer to the "penetrate" meaning. Hence the question in the title.  Why is this? I guess it's because, as with , the two words come from different meanings of the in- prefix; impregnable from a "negation" meaning and impregnate from an "into" meaning. (And indeed, the AHD gives etymology with in-1 for , and in-2 for .) Is this right?  Some dictionaries also list a meaning for impregnable that come from impregnate and seem the opposite (in a loose sense) of the meaning above: the same AHD gives, as its  for impregnable,     ADJECTIVE:   Capable of being impregnated.   and some  gives:     impregnable   a. able to withstand attack; capable of being fertilized; able to become or be made pregnant.   Are these "capable of being impregnated" meanings for impregnable common?  [Finally, if one does want to express the 'easily penetrable' meaning, as in "This badly designed bulletproof jacket is easily penetrable", can one use "pregnable"? "non-impregnable"? Is there risk of confusion that "pregnable" may mean "can be made pregnant"?]


I'm currently working through the symmetry of the stress tensor, in relation to viscous flow. I am looking at this by examining the conservation of angular momentum equation for a material volume $V(t)$ with unit normal $\vec{n}=(n_1,n_2,n_3)$. I am having issue with applying the divergence theorem to this term  $$\int\int_{\delta V(t)} \vec{x}\times \vec{t} dS$$  Where $\vec{x}=(x_1,x_2,x_3)$ and $\vec{t}$ is the stress vector where $\vec{t}=\vec{e}_i\sigma_{ij}n_j$, using the summation convenction, where $\sigma_{ij}$ is stress vector.  If I can extract a normal from this expression I can use the divergence theorem to convert to a volume integral and combine with the other terms of the conservation of angular momentum equation, which are volume integrals, this will lead to showing $\sigma_{ij}=\sigma_{ji}$.

From :     "[...] the stress vector $T$ across a surface will always be a linear function of the surface's normal vector $n$, the unit-length vector that is perpendicular to it. [...] The linear relation between $T$ and $n$ follows from the fundamental laws of conservation of linear momentum and static equilibrium of forces, and is therefore mathematically exact, for any material and any stress situation. The components of the Cauchy stress tensor at every point in a material satisfy the equilibrium equations (Cauchy’s equations of motion for zero acceleration). Moreover, the principle of conservation of angular momentum implies that the stress tensor is symmetric."   What is the more detailed explanation for this, and/or where can I find it?