How to clone a harddisk to a smaller sized one.   Clonezilla is great but it doesn't support such functionality. Also dd and PartImage don't support this demand. rsync will not copy the MBR since an MBR is not a file.   I need to clone a HDD not to take a backup, so rsync is not an acceptable answer.  Any suggestions?


A bear goes over the river.      I can see a bear go over the river.   Are the sentences above correct? If the sentence has "can", goes will become to go?


What is the difference between "twenty-four-hour shift" and twenty-four hour shift"?

Just read somewhere about this puzzling puzzle:  What is the difference between:   I'm doing a twenty four-hour shift tonight. I'm doing a twenty-four hour shift tonight. I'm doing a twenty-four-hour shift tonight.   I know number 1 is 20 x 4 hours. Number 2 and 3 is the same as far as I know. Is this true?


How can I start the process that doesn't die even after I close ssh?

I am sshing to my remote CentOS 5 server and want to run a script that takes long time.  How can I have it keep running even after I close ssh session?


How does atan2 work when getting angle of a vector?

I know that atan2 gives me the absolute angle of any vector. But it doesn't give a value from 0 to 360 degrees. Instead, it gives a value (if I'm not mistaken), between 0 and 180, or between 0 and -180. For example, instead of giving angle 270, it will say -90.  This is a little confusing for me. Let me try to describe how I think this works, and please tell me if I'm correct. Actually, I'll draw it.    Is this correct? I'm having a little trouble understanding this. Thanks


Error when compiling a 'minted' listings inside a 'memoir' subfloat

I'm trying to compile the following minimal example:  \documentclass{memoir}  % Enable subfloats within figures \newsubfloat{figure}  \usepackage{minted}  \begin{document} \begin{figure} \subbottom{% \begin{minted}{c} test; \end{minted} } \end{figure} \end{document}   but I get an error:  ! Argument of \FV@BeginScanning has an extra }. <inserted text>                  \par  l.13 \end{minted}}   I've tried replacing the minted environment with a inputminted which reads the code from a file, but to no avail.  How do I fix this?


Where are fsck results logged at boot time, after /forcefsck?

When working remotely I set a server to force an fsck at boot time with the sudo touch /forcefsck command and rebooted.  After it restarted I checked in /var/log/fsck for the results of the disk check. Both checkfs and checkroot said: Nothing has been logged yet  So where is it saving the results?


A uniformly continuous function on a bounded set whose image is not bounded?

I'm trying to find an example of a uniformly continuous function $f:X\to Y$ such that $f(X)$ is not bounded, for some bounded metric space $X$ and a metric space $Y$.  The classic exercise is to show that if $X\subseteq\mathbb{R}$ is bounded then any uniformly continuous $f$ sends bounded sets onto bounded sets, this is because such sets are totally bounded in this case.  So what is an example of a bounded metric space $X$, not totally bounded, such that a uniformly continuous function sends it to a not bounded set?


So, lately I've been having issues booting up Ubuntu and having to go into grub and do a recovery boot and I'll have issues saying "i/o errors in dev/sda" or something along those lines and I noticed I have 113 have bad sectors in my HDD when I just recently started the Disks setting. Isn't there a way to block out those bad sectors or something? What should I do? Thank you!


I have an image wich is beside some text, and I would want to frame the image and the caption.  My code is for now:  \begin{wrapfigure}[4]{r}{8cm}     \centering      \fbox{\includegraphics[width=7cm]{Encodages}}     \caption[Différents encodages]{Différents types d'encodage pour «Wikipédia, l'encyclopédie libre»} \end{wrapfigure} BLABLABLA TEXT   but the fbox is only around the image. How could I do that?


The title word filter is one of the worst ideas ever implemented on SO

There are numerous (, , ) questions concerning this problem. I realize this is a borderline duplicate, but I'll re-iterate the futility of this particular filter and why it should be outright removed from Stack Overflow.  Do you know how effective this is in preventing users who just don't care from posting questions with bad titles? 100% ineffective. What do these users do?   Replace it with a synonym: "issue," "trouble," "predicament," "botheration" or what have you. Or worse, they simply work around the filter by deliberately misspelling the word or inserting space or punctuation:    () ?    and the coup de grâce:      I mean, even Jeff . This adds zero value to the title. In fact, it looks worse. Why, oh why are people  to scrap a bad feature? All this does is:   Prevent people who have a  to use the word "problem" in the title from posting questions with an appropriate title. Break the search feature because of workarounds or the need to use less descriptive titles than the error itself   This is an extraordinarily useless (and harmful) feature. Please, for the love of Cthulhu,  remove, eliminate, abolish, eradicate, extirpate this "feature" from Stack Overflow.    Bonus:     So I can't mention the Halting Problem in the title? – Keith Thompson Nov 1 at 19:05      @KeithThompson Maybe it's a "Halting Issue". Or "Need help with Halting". Or the "Halting thing in Computability Theory". – slhck Nov 1 at 19:14


Is there any way to encrypt a directory using gpg? It seems to only accept files as arguments.


Unix - can i make the command line readable?

Let's say I have this commandline:  ~/development/company/folder:   and i run this command  ./gradlew appRun   then my command line looks like this:  ~/development/company/folder: ./gradlew appRun   Now, if there is an error and there is a bunch of output, then i need to scroll up and, because unix just formats everything the same, it's real easy to get all the lines and commands mixed up.  What I would like is for each command I enter to be like, bright red or bold or something, and all the output from that to be white or whatever it currently is.   How do i do that?


I need the code folding property in gedit, and I found online a folding.gedit-plugin online, but it never works.  My gedit is of version 3.2.1, and it is said that the plugin folding.gedit-plugin was made for 2.x version only.     So is there a code folding plugin for gedit of version 3.2.1?  Thanks!


What is the fastest way to create a list of directories specified in a file?

I have a text file, "foo.txt", that specifies a directory in each line:  data/bar/foo data/bar/foo/chum data/bar/chum/foo ...   There could be millions of directories and subdirectories What is the quickest way to create all the directories in bulk, using a terminal command ?  By quickest, I mean quickest to create all the directories. Since there are millions of directories there are many write operations.   I am using ubuntu 12.04.  EDIT: Keep in mind, the list may not fit in memory, since there are MILLIONS of lines, each representing a directory.  EDIT: My file has 4.5 million lines, each representing a directory, composed of alphanumeric characters, the path separator "/" , and possibly "../"  When I ran xargs -d '\n' mkdir -p < foo.txt after a while it kept printing errors until i did ctrl + c:  mkdir: cannot create directory `../myData/data/a/m/e/d': No space left on device  But running df -h gives the following output:  Filesystem      Size  Used Avail Use% Mounted on /dev/xvda        48G   20G   28G  42% / devtmpfs        2.0G  4.0K  2.0G   1% /dev none            401M  164K  401M   1% /run none            5.0M     0  5.0M   0% /run/lock none            2.0G     0  2.0G   0% /run/shm   free -m   total       used       free     shared    buffers     cached Mem:          4002       3743        258          0       2870         13 -/+ buffers/cache:        859       3143 Swap:          255         26        229   EDIT: df -i  Filesystem      Inodes   IUsed  IFree IUse% Mounted on /dev/xvda      2872640 1878464 994176   66% / devtmpfs        512053    1388 510665    1% /dev none            512347     775 511572    1% /run none            512347       1 512346    1% /run/lock none            512347       1 512346    1% /run/shm   df -T  Filesystem     Type     1K-blocks     Used Available Use% Mounted on /dev/xvda      ext4      49315312 11447636  37350680  24% / devtmpfs       devtmpfs   2048212        4   2048208   1% /dev none           tmpfs       409880      164    409716   1% /run none           tmpfs         5120        0      5120   0% /run/lock none           tmpfs      2049388        0   2049388   0% /run/shm   EDIT: I increased the number of inodes, and reduced the depth of my directories, and it seemed to work. It took 2m16seconds this time round.


Checking Flash player version using Javascript

Is it possible to check the version of the Flash Player installed in a browser using Javascript?


How to map Shared Drive for a service where the Service isn't logged in as System

I have a glassfish service running as a non system user. Glassfish needs to access a shared drive. How do I mount the shared drive for the glassfish service. Also, I would like this to remount at restarting the server.   I've found some things online, but everything is a few years old and/or geared towards system services, so I'm hoping there's newer information out there:  This is what I started with, it's perfect, but it's geared toward system services. The drive isn't viewable to non system users:   This is the question that has the most answers, but most of them are for system users, though the OP seems to not be using the System User. His chosen solution involves wrapping the service, but there's the implication that it needs to be run manually at each start up.   This person has the same issue including non system users, but everyone says it's impossible(or an extremely bad idea) except for the last comment which doesn't really give instructions:


Cannot download build-dep for indicator-sound

I'm trying to do , but when I execute sudo apt-get build-dep indicator-sound, i get E: You must put some 'source' URIs in your sources.list. I did not get this error in pervious ubuntu versions, only in 16.04. What sources do I need to add in order to download indicator-sound sources? Thanks!  Edit1:  I can now execute sudo apt-get build-dep indicator-sound, but all I get is :  Reading package lists... Done Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.   It appeares that I haven't downloaded anything. :(  Edit2: This question is not a duplicate of . As you can read in edit1, I cannot download the actual folder with source files.  Edit3: I just realized, I also get these errors when I run sudo apt-get update:  W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7 W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7   Edit4: I followed , and it worked. Thanks!


Journal does not tell me why they rejected my paper, even on request

I submitted my paper to one of Springer’s journals seven months ago. One month ago I received a letter from the editor-in-chief:     Following a review of the manuscript by the editorial   board, we have regretfully decided not to consider this work for   publication. We thank you for your interest in our journal and...   I wrote the journal an e-mail and asked for the review mentioned in the letter, but received no answer. I also wrote to the editor himself (to his personal e-mail), and asked the fair question: “why the editorial board decided not to consider the work?”, but my question was ignored. I have been waiting for one month for the answer.  What can I do in this case? Note that I only want to know the reasons for the rejection.


k-space tensor integral in statistical mechanics

k is the modulus of the vector k. Please help me to integrate the above tensor expression in the infinite domain of the vector k. I have tried to let u in the direction of kz and then transform the current integral into a spherical coordinate with the following relation:    And I find Q is a symmetric tensor, and Qxy=0,Qxz=0,Qyz=0. However,Qxx=Qyy≠0,Qzz≠0,and Qxx≠Qzz. I guess Q has relevance to the tensor uu, the assumption that u is in the direction of kz is just a simple case.How to conduct this integral in the general case is my question.Thank you very much.


Automate Charging cycles for always connected devices to wall outlet

Is there any way to automate charging cycles (like charge only from 40% to 80%) if the device always connected to power outlet? I'm searching for a way to read charging level and send commands to external devices to turn off/on power outlet.


How does Dumbledore apparate into Hogwarts grounds in the sixth film?

I know the films aren't canon, but it's stated quite often (in Hogwarts A History) that one cannot apparate in and out of Hogwarts.  So how can Dumbledore do it in the film?


In my part of the world, we refer to highways without any article. So we drive on "Highway 64", or "Interstate 64", or "I-64". But when I go to California, they say "The 101". Is there any explanation for this difference?


Jquery keyup event is not working for dynamicaly added id attribute

The keyup event is not working for dynamically added id attribute. My code,  HTML
     <input type="text" name="package_weight[]" id="package_weight_0" placeholder="Package weight" class="package_weight">

 Add more package   JQUERY  var count = 1; var i = 0; $('#add-more-package').on('click', function(){     $('#extra-packages').append($('#more-package-div').html());     $('#package_weight_'+i).attr('id','package_weight_'+count);     i+= 1;     count += 1; });  $('.package_weight').on('keyup', function(){     alert(this.id); });   In this case the keyup event is only working for the first textbox. How can I trigger the 'keyup' event for dynamically added attributes ?  This is my


Why would Q attach the computer of a known cyberterrorist to the MI6 computer network?

In the movie  Shouldn't Q like connect Silva's computer to a secure line or something, considering that he was a known cyberterrorist? Isn't there any sort of internal protocols for the networking system?


I recently figured out that you an create villages with lots of doors.  I decided I would try this for myself and made a creative world and built this structure:   I realized that there weren't any villages nearby so I spawned two in.  Then my problem was that only one of the villagers would have the heart particles above it and they wouldn't breed.  So, what am I doing wrong?


Is it possible to have the dock in different positions in different desktop?

Is it possible to have the dock in different positions in different desktops? In particular I'd like to change the settings between a normal desktop and a desktop where there's an app at full screen. In this way I'd keep the dock in lower side of the desktop when there's an app at full screen and vertically on the left side during normal use.  I have this problem that, sicne I usually have the dock vertically on the left, it pops out everytime i go to the far left in an app I'm using with full screen, and using this app I have to move the mouse to the left quite often.


Google and Yahoo require you to enter your username first, then password. Why is this?

For a while now, logging onto your google account has required you to enter your username and hit next, before entering your password like this:    Recently yahoo has implemented a similar system.  What are the benefits to this over a standard Username, Password, Login form?  Thanks.


How to escape single quotes correctly creating an alias

I've been given this one-liner to know how much memory my processes consume.  $ ps -u $USER -o pid,rss,command | \     awk '{print $0}{sum+=$2} END {print "Total", sum/1024, "MB"}'   Now I'd like to create an alias for that command, but have an issue escaping ' characters:  $ alias mm=ps -u $USER -o pid,rss,command | \     awk '{print $0}{sum+=$2} END {print "Total", sum/1024, "MB"}' bash: alias: -u: not found bash: alias: myuser: not found bash: alias: -o: not found bash: alias: pid,rss,command: not found Total 0 MB   I tried to escape the single quotes, but still it doesn't work.  $ alias mm='ps -u $USER -o pid,rss,command | \     awk \'{print $0}{sum+=$2} END {print "Total", sum/1024, "MB"}\'' >    Can you help me understand how to create this alias?


How to change the number of decimal digits in arcmap in symbology

I'm using ArcMap 10.3. In symbology, there are 6 decimal digits for the different classes of the variable I'm presenting. I'd like to show only 3 decimal digits. I can edit the label and change the decimals manually for each class. Is there any faster way to do this for all classes in ArcMap 10.3?


Removing root slash with `-p1` and so forth

I understand that patch allows patching applications when some path components are removed.  While -p0 argument will treat a path as is:  /var/www/html/example.com   -p1 will remove the root slash, so the path we work with becomes:  var/www/html/example.com   Why would one want to remove the root slash (or any previous components of a path), and not just patch with a full path?  I can see a logic of deepening in a directory tree by a relative path, but I miss if it will be practical or useful in the vast majority of cases.


Socket.getOutputStream() on a null object reference

java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.OutputStream java.net.Socket.getOutputStream()' on a null object reference   Before you mark down this, I am very new to this, I have tried to search on ways to solve this before posting but I can't seem to find a solution. I hope you understand.  I get this error when i run the on change listener.   seekbarbrightness.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {       @Override       public void onProgressChanged(SeekBar seekbarbrightness, int progress, boolean b) {            if(b==true) {                 tblumens.setText(String.valueOf(progress) + " Lumens");                 try {                      socket.getOutputStream().write(String.valueOf(progress).getBytes());                      } catch (IOException e) {                       }            }      } });   I run the below code in the onCreate method.  class ClientThread implements Runnable {      @Override     public void run() {         try {             InetAddress serverAddr = InetAddress.getByName(SERVER_IP);             check = "fail";             socket = new Socket(serverAddr, SERVERPORT);             check = "success";          } catch (UnknownHostException e1) {             e1.printStackTrace();         } catch (IOException e1) {             e1.printStackTrace();         }     } }   What is the problem? Is it because my socket connection is not initialized properly? (Also, i have not got my server running yet, however, the catch would show an error won't it?)  I've tried to use a if socket.isConnected() function then do the try and catch, but it makes no difference..  Please help! I've searched for many tutorials and arrived at these codes for the socket client connection.


I have two scenes in a blend file. How do I move a object from one scene to the other? Not between blend files, but within one blend file but two scenes.


Is IP warming critical for subscriber base in < 20K

We have less than 20K subscribers in Marketing Cloud in a new implementation.   Do we need to complete IP warming? If yes, what numbers should we be completing sends in and for what period of time?


How to set a different input method for each app window

How can I have a different input method for each app window on windows 8. When I change input language to ENG all app window also uses this method and I don't want that. Like windows 7 that has a different input method for this purpose. thanks


PHP regular expressions with SELECT LIKE %

For a few years, I have been happily using  and recommend it highly.  I haven'f found anything better to help me debug my PDO SQL statements with bound parameters. It will show me the SQL statement which will be generated after bound parameters are substituted, which is A Good Thing.  I post the code below. My problem is that when I introduce a SELECT query using LIKE %gail.com, where $agencyEmailDomain == "gmail.com" and $expandedSqlCommand = PdoDebugger::show($sqlText, $parameters);  expanded to   SELECT count(*) AS count FROM recruiters WHERE recruiter_email LIKE "%'Gmail.com'"  Notice those single quotes around the domain name?  Is there something that I can do, like escaping the % sign?  My code is   $sqlText = 'SELECT count(*) AS count FROM recruiters              WHERE recruiter_email LIKE "%:agencyEmailDomain"';  $sqlParameters =  array('agencyEmailDomain' => $agencyEmailDomain);   and PDO-debugger's code is  /**  * Class PdoDebugger  *  * Emulates the PDO SQL statement in an extremely simple kind of way  */ class PdoDebugger {     /**      * Returns the emulated SQL string      *      * @param $raw_sql      * @param $parameters      * @return mixed      */     static public function show($raw_sql, $parameters)     {         $keys = array();         $values = array();          /*          * Get longest keys first, so that the regex replacement doesn't          * cut markers (ex : replace ":username" with "'joe'name"          * if we have a param name :user )          */         $isNamedMarkers = false;          if (count($parameters) && is_string(key($parameters)))          {             uksort($parameters, function($k1, $k2)              {                 return strlen($k2) - strlen($k1);             });              $isNamedMarkers = true;         }          foreach ($parameters as $key => $value)          {              // check if named parameters (':param') or anonymous parameters ('?') are used             if (is_string($key))              {                 $keys[] = '/:'.ltrim($key, ':').'/';             }              else              {                 $keys[] = '/[?]/';             }              // bring parameter into human-readable format             if (is_string($value))              {                 $values[] = "'" . addslashes($value) . "'";             }              elseif(is_int($value))              {                 $values[] = strval($value);             }              elseif (is_float($value))              {                 $values[] = strval($value);             }              elseif (is_array($value))              {                 $values[] = implode(',', $value);             }              elseif (is_null($value))              {                 $values[] = 'NULL';             }         }          if ($isNamedMarkers)          {             return preg_replace($keys, $values, $raw_sql);         }          else          {             return preg_replace($keys, $values, $raw_sql, 1, $count);         }     } }    How can I change to correctly handle that LIKE "%:agencyEmailDomain"?


I am currently Chinese citizen studying in Canada, I am booking a flight from Canada to Beijing via France. In Paris I have to wait for more than 8 hours for the next connection flight to Beijing. Do I need a Transit Visa in France?  I am not sure whether the baggage claim would make me have to get into the country.  The tag already told me to look for answer in another article, I will move to that.


Call a function whose name is stored in a variable

I have the following script:  (function () {     var Module = (function () {         var fctToCall = function () {             alert('Foo');         };         return {             fctToCall: fctToCall         };     })();     var Module2 = (function () {         var init = function () {             var str = 'fctToCall';             Module.str(); // here         };         return {             init: init         };     })(); })();   So I want to call this fctToCall method by its name - how can I do that? So far I know 3 methods:   by attaching the function to the window object, but then it wouldn't be local and in closure, and I wouldn't have the access to other local variables eval, the best options as far as I see it, but it's still eval, so I don't wanna use it this, but it's another architecture, I don't wanna change it   How can I solve this?


MariaDB won't start on Ubuntu: Can't lock aria control file

I run into this error occassionaly after a scheduled backup. Upon a  service mysql restart ... it fails to come up.  Attempting a manual start, gives me this.   mysqld  161125  7:40:48 [ERROR] mysqld: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds  161125  7:40:49 [Note] InnoDB: Using mutexes to ref count buffer pool pages  161125  7:40:49 [Note] InnoDB: The InnoDB memory heap is disabled  161125  7:40:49 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins  161125  7:40:49 [Note] InnoDB: Memory barrier is not used  161125  7:40:49 [Note] InnoDB: Compressed tables use zlib 1.2.8  161125  7:40:49 [Note] InnoDB: Using Linux native AIO  161125  7:40:49 [Note] InnoDB: Using CPU crc32 instructions  161125  7:40:49 [Note] InnoDB: Initializing buffer pool, size = 64.0M  161125  7:40:49 [Note] InnoDB: Completed initialization of buffer pool  161125  7:40:49 [Note] InnoDB: Highest supported file format is Barracuda.  161125  7:40:49 [Note] InnoDB: 128 rollback segment(s) are active.  161125  7:40:49 [Note] InnoDB: Waiting for urge to start  161125  7:40:49 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 13113858453  161125  7:40:49 [Note] Plugin 'FEEDBACK' is disabled.  161125  7:40:49 [ERROR] mysqld: File '/var/log/mysql/mariadb-bin.009076' not found (Errcode: 2 "No such file or directory")  161125  7:40:49 [ERROR] Failed to open log    (file '/var/log/mysql/mariadb-bin.009076', errno 2)  161125  7:40:49 [ERROR] Could not open log file  161125  7:40:49 [ERROR] Can't init tc log  161125  7:40:49 [ERROR] Aborting 161125  7:40:49 [Note] InnoDB: FTS optimize thread exiting.  161125  7:40:49 [Note] InnoDB: Starting shutdown...  161125  7:40:51 [Note] InnoDB: Shutdown completed; log sequence number 13113858463 161125  7:40:51 [Note] mysqld: Shutdown complete   I have tried deleting the aria_log_control file and starting again, but the same error occurs.  mysqld_safe isn't doing it either.    mysqld_safe  161206 12:36:14 mysqld_safe Logging to syslog.  161206 12:36:14 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql  161206 12:36:16 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended  root@server:/var/lib/mysql# mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")    What else should I look at?  Thanks!


I am trying to recreate this image in LaTeX:    So far, I have the following:   \documentclass[a4paper,12pt]{article}  \usepackage{tikz} \begin{document}  \begin{center}     \begin{tikzpicture}      \draw (2,3) circle (1.5cm);      \draw (4.5,3) circle (1.5cm);       \draw[red] (2,3)--(4.5,3)--(3.25,3.85)--cycle;      \filldraw[red] (2, 3) circle (1pt) node[left] {$c_{1}$};         \filldraw[red] (4.5, 3) circle (1pt)node[right] {$c_{2}$};        \end{tikzpicture} \end{center}  \end{document}


First of all I would like to thank everyone here for being so helpful this website is doing a really great job helping new people fall in love with latex. I have another question. I have to put a few tables in landscape mode since they are to big to look nice in normal portrait mode. I would also like to have my header and page numbering on that page as well. Can anyone guide me in how to do this. With a simple code. I am actually scared of ruing my current document so I am going to make it on a separate file and then add it with a PDF tool later into my original document. So i would probably need to add custom numbering to those page. I am providing the code I used from a user here for my header and number can you guys tell me how to add a custom number in here for example if the landscape table is on 23rd page. Also I am adding an image of how I want my page to look with a table in landscape. Thanks alot    and here is the code where I want to put custom numbers  \usepackage{fancyhdr} \usepackage[margin=0.75in,head=2cm,top=1.5cm,bottom=2.5cm,includehead]{geometry} \usepackage{lastpage} \usepackage{graphicx} \renewcommand{\headrule}{}% to remove the line \lhead{\includegraphics[width=6cm]{lol.png}}% use your logo \rhead{% \begin{minipage}[b]{5cm} \flushright \today\\ IND/Q-85/15 \\ Page \thepage{} of \pageref{LastPage} \vspace{6mm} \end{minipage}} \cfoot{}   I think I would need to change the '\thepage{}' with a normal 23 if it was the 23rd page I am not sure though =/. Sorry if I am asking a very easy question.


Another Boolean problem with sculpt addon and union

I had the horns and the head as separated objects and to union them i used a boolean modifier. The problem now is that as you can see in the image there are holes after i smoothed it in the sculpting mode. I used dyntopo which you can also see in the picture. In short the boolean could not union these objects without holes.


Clickable Link back to the Table of Contents

There are many questions and answers surrounding how to make the Table of Contents content clickable. I am wondering how to make a reference to the Table of Contents and create a link elsewhere in the document to click on and go back to the table of contents.  I have tried giving the Table of Contents its own label via \tableofcontents\label{toc} and then using a reference link \ref{toc} but this produces the error: ./project.tex:133: Package hyperref Warning: Suppressing empty link on input line 133.


Capture all the output of a script to a file (from the script itself)

I have a bash script that calls various commands and prints some output (both from the called commands themselves, such as git pull, and informative messages generated by the script itself such as Operation took XX minutes.  I'd like to capture the whole output to a file from the script itself: basically I'm trying to avoid the need to call ./myscript.sh | tee file.txt for non-relevant-here reasons.   Basically I'd like to do something like this:  startCapture  git pull  echo "Text"  other-command  endCapture   I also require the output to be printed on my shell while the script is running.  The final goal is to:   run ./myscript.sh without additional shell constructs see the output on the terminal as I do now obtain a file on disk with the whole output   Is this even possible?


SQL Server 2012 Compatibility with New TLS 1.2 Standards

I'm trying to switch off TLS 1.0 on my SQL Server 2012 server in order to comply with PCI standards.  Initially I had some trouble with the SQL Server service not starting.  I found help for this issue by following answers to a previous question:    I'm having mixed results:  I have downloaded SQL Server 2012 Cumulative Update 7 (CU 6 also works) and the SQL Server Service then starts correctly.  I had a problem not being able to sign in to the DB instance through SQL Server Enterprise Manager which was fixed by installing .Net 4.6.  Next problem, client computer running IIS Application is unable to connect to SQL instance because of a 'handshaking SSL error'. I followed advice and installed the latest SNAC native client.  This was difficult to track down and the latest version available as a download from Microsoft was from 2014. I then obtained sqlnclient.msi dated 9/7/2015 revision number {E6CB4138-3D1C-4ADC-95C4-88322B60FC14} from a sub folder generated by the extract of CU 7 - "Path to Extract Folder \1033_enu_lp\x64\setup\x64".  I've updated this version of the Native client on my IIS server (and .Net 4.6) and I'm still unable to connect remotely to the SQL instance. If I enable TLS 1.0 I'm able to connect.  The exact error I'm getting is 'A connection was sucessfully established with the server, but then an error occurred during the pre-login handshake'.  My diagnosis is I don't have the correct version of SNAC on my machine compatible with TLS 1.2 and the CU 7 as the client and server cannot handshake. However, this sqlnclient.msi was extracted from the CU 7 and I cannot find a more up to date copy.  Has anyone else experienced this problem? What version of the SNAC are you using? Where did you get it?  Thanks


Change default field properties for number format in ArcMap?

Anyone who has worked with numbers that have more than 14 digits has run into ArcMap's wonderful habit of converting any number of such length to e-notation. While changing this is a simple matter of going into the Field Properties and setting the number format, doing this repeatedly for every field in every table grows tiresome. Is there some secret environment setting or method to make number formats default to something besides "Numeric"?


Are there libraries in PHP or JS which can identify image formats by analyzing data? It should support BMP, JPG, GIF, PNG, TIFF and EMF.


I dont have any antivirus on my PC because its only for gaming use only. I dont know where did i get these trojan virus, it makes my PC slow and my it eats my HD and also makes my internet slow. I tried to remove it using some software but still it exist.  if i install avast with an existing Trojan after it is installed and scan the computer, can avast delete it?  I havent tried Avast. Just asking. Thanks


Omelette stuck to pot on low fire with extra virgin olive oil

I've tried to cook an egg with some oil underneath on low fire, trying to make an omelette, but the egg still got stuck and when I turned it over a plate it collapsed apart. It was just some egg and hard cheese bits. Anyone know what went wrong?  Maybe it's because the small pot was not nonstick. I thought it would turn out ok anyways.  Thanks.


Why did the Lockheed Martin compact fusion reactor failed?

What made the compact fusion reactor to not be compact. What assumptions did lokheed made in its simulation that showed that it could work. Can we do anything that could make it work or it is completely impossible.


How to find which line adds a certain js event handler?

A certain HTML element when clicked does something.  I cannot find which line adds that click event.  Is there any tool to help?    Chrome dev tools > Elements > (select that element, see right panel) > Event Listeners > click，it lists a few js file with line numbers，but they are js plugins.  What I need is which line decides that element to use those plugins.  I also tried to search .click( but 1) there are too many other elements assigned with click events  2) the line in question may be written in other syntax, eg: .on('click'


apt-get not updating and almost everything i try to install have issues with dependencies

for the millionth time guys this isn't a duplicate question and if it is, them all the solutions don't work for me. i have seen this issue in a newly installed system. I tried all the things provided on the internet including creating a new sources.list, deleted the entries of list.d folder, but when I try to run the apt-get update command I get the following:  W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release  Unable to find expected entry 'restricted/source/Sources' in Release file (Wrong sources.list entry or malformed file)   here is the sources.list  deb http://archive.ubuntu.com/ubuntu trusty main universe restricted    multiverse deb-src http://archive.ubuntu.com/ubuntu trusty universe main multiverse restricted  deb http://security.ubuntu.com/ubuntu/ trusty-security universe main multiverse restricted deb http://archive.ubuntu.com/ubuntu trusty-updates universe main multiverse restricted deb http://archive.ubuntu.com/ubuntu trusty-backports universe main multiverse restricted  # deb http://archive.canonical.com/ubuntu trusty partner # deb-src http://archive.canonical.com/ubuntu trusty partner  # deb http://extras.ubuntu.com/ubuntu trusty main # deb-src http://extras.ubuntu.com/ubuntu trusty main


Is there any user friendly alternative to screen?

I am running Ubuntu Server and want to have multiple terminals. Screen works fine but..it is not user friendly. I mean..after pressing Ctrl+A you get no notification of you being in command mode, in order to display terminals you have to enter " which is not friendly at all (on my keyboard it is Shift+1), and so on..  I looked at byobu but it seems bugged: the cpu status lines keep increasing downside up and eventually cover my screen..but overall I still don't like it much.  I was searching for something with nano's graphic..with bottom part of the screen filled with instruction/status and upper part, of course, my current terminal.  Does something like that exist? Or, alternatively, can you help me fix the byobu bug?


Can I delete empty recovery partition (Win8)

I'm trying to install Linux alongside my 64-bit Windows 8 and went into my partition manager to find this structure.    In order to create partitions for my Linux install I need to free up some space. I see that the last partition is an empty recovery partition, as you can see highlighted, it's 100% free.  I was wondering is it okay to just remove this partition seeing as it doesn't appear I'll be losing anything?  Not sure if this helps but this is on a Fujitsu AH532 running Windows 8 64-bit with UEFI.


Read auto_arima summary from pmdarima package correctly

I run auto_arima model with seasonality from pmdarima python package. The output summary is the following:  Shortly, it says that the best model is $ARIMA(3,1,2)(0,1,1)_{12}$ with intercept. Now, I want to write the equation for my model, but I'm not sure that I did it correctly. Please check it out: $$ \Delta y_t = 0.618 y_{t-1} - 0.2979 y_{t-2}  - 0.4196 y_{t-3}  -0.3204 \epsilon_{t-1} -0.5838 \epsilon_{t-2} + \epsilon_{t} -0.4687 \epsilon_{t-12} + 0.0098$$ Edit Please write it not in terms of $Y_t , e_t, θ$ and $Θ$


All details for each reference appear in separate lines

I have used different bibliography styles (bibtex) but I keep on getting the output (attached) where each detail of a reference begins on a new line. Is there a way to have the references in running text?


Python Regex Findall Not Working As Expected

I'm trying to capture the output of the Stanford CoreNLP dependency parser using a regex. I want to capture the dependency parse which spans several lines (everything between dependencies): and Sentence. A sample of the data:  Dependency Parse (enhanced plus plus dependencies): root(ROOT-0, imply-5) dobj(imply-5, what-1) aux(imply-5, does-2) det(man-4, the-3) nsubj(imply-5, man-4) advmod(mentions-8, when-6) nsubj(mentions-8, he-7) advcl(imply-5, mentions-8) det(papers-10, the-9) dobj(mentions-8, papers-10) nsubj(written-13, he-11) aux(written-13, has-12) acl:relcl(papers-10, written-13)  Sentence #1 (10 tokens):   The code I'm using is:  regex = re.compile('dependencies\):(.*)Sentence', re.DOTALL) found = regex.findall(text)   When I run, the code matches the whole text document rather than just the capture group. It works fine when I try it out on Regexr.  Help much appreciated


Divisibility Proof with Induction - Stuck on Induction Step

I'm working on a problem that's given me the run around for about a weekend. The statement:  For all $m$ greater than or equal to $2$ and for all $n$ greater than or equal to $0$, $m - 1$ divides $m^n - 1$.  Using induction over $n$, the base step comes easy since $m^n - 1$ is $0$ when $n = 0$.  My induction hypothesis is letting $k \geq 0$ and assuming that $m - 1$ divides $m^k - 1$. In order to show that $m - 1$ divides $m^{k+1} - 1$, I obviously need to use the induction hypothesis. However, no matter where I try to use the fact that $m^k - 1 = (m-1)a$ for some $a$ in the integers, the expression $m^{k+1} - 1$ always becomes more difficult to get to $m^{k+1} - 1$ being equal to $(m-1)b$ for some $b$ in the integers.   In other words, I can't figure out any actually helpful way to apply the induction hypothesis with the goal of proving the next step.  Any help would be appreciated!


After most recent kernel update (4.15.0-44-generic) my tablet freezes whenever plugged into docking station

I performed the most recent kernel update on my Dell 5290 2-in-1 earlier today.  But moments after I plug it into its docking station, the screen flickers, blanks and freezes.  The only item left on the screen is the mouse pointer, and it is stuck.   If I leave the tablet not plugged in, it runs just fine.  It seems to be the docking station that triggers the freeze.  That said, I can log into the tablet via ssh even with the screen frozen.  So the system is still running.  But if I try to reboot the tablet via the reboot command, nothing appears to happen. sudo reboot -f will reboot the system, while sudo reboot will not.  Any ideas where I should start looking to identify this problem?


I got a series of down votes some-days (16 Aug 2013) before (Serial down-voting). I downvoted an answer and added a comment why I down-voted. After that I got too many down-votes for my different questions and answers within a minute.  What I did:   I checked this post on meta  and waited for 36 Hours. Nothing happened I posted a comment on  I  one of my answer for moderator attention, currently the flag is in helpful state.   Nothing happened till now. It's almost 4 days passed after the serial down-voting. What to do next? Do I need to send an email to the Stack Exchange team?


Multi-volume fantasy series with forbidden spell of undoing

As a child I read a book series. It was about wizards and magic and consisted of many, many volumes. I hardly remember anything of it, apart from there being one forbidden spell: the spell for someone else to not be, or to become undone - I'm not sure anymore. However, at some point someone cast that spell and he himself became undone.  Does anyone know the name of this series? I'd love to read it again.


Strange 'sh -c' behavior when run through ssh

I am trying to run a few commands through ssh and getting confused with the behavior of sh -c:  ssh myhost sh -c 'echo starting; who -b; date; echo $SHELL'   Output (note: the echo's output is just a blank line!)           system boot  2016-12-22 20:22 Thu Jan 26 06:12:52 UTC 2017 /bin/bash   Without sh -c I get the correct output:  ssh myhost 'echo starting; who -b; date; echo $SHELL'   Output:  starting          system boot  2016-12-22 20:22 Thu Jan 26 06:18:28 UTC 2017 /bin/bash     Questions:   Why doesn't sh -c handle the echo starting command correctly?  It outputs a blank line. Why is SHELL set to /bin/bash even with sh -c?


I'm an intern in a company that sells about 900 products.   We are trying to forecast our sales for the next year. I already have the monthly data for the 3 previous years, cleaned it, and analysed the trends plus various kinds of seasonality.   I tried both Holt-Winters and SARIMA. I ran quite a lot of tests through Excel plugins PEERforecaster and Real-Statistics, plus a manual Excel model developped by Régis Bourbonnais, PhD to compute the data with Holt-Winters, and the automatic forecasting method included in Excel 2016.   Of everything, the automatic excel forecasting method included in Excel 2016 seems to be the most accurate, but works only for very few products.   Did I miss anything ? Is there anything that I should try instead ?  If you could give me any guidance, I would be grateful. Thank you.


Inline code (backticked) looks different in lists

Is it supposed to look differently in a list?  Some examples:  keyword    keyword   keyword ← this looks weird      keyword   keyword ← and this       keyword keyword      keyword ← this too


What is this white circle on this circuit?

I found this circuit inside a LED reflector that turns on and off at regular intervals, and there is this white circle in it. I am guessing that it somehow keeps time of the intervsle, but can someone explain it to me? Also, I found this same circle on another device with 3 LEDs that turn on and off in regular intervals.


I'd like to know if the use of were is correct in the sentence below or if it should be replaced with was:     As if X weren't hard enough already, companies now face the   challenge to deliver Y.   For your response, assume that X is hard enough already.  Edit:   I'm aware that several questions related to the subjunctive "were" have been asked on this site. But they don't help me.   To clarify, I'm asking if the subjunctive mood is appropriate here. If so, I'd like to use the subjunctive. I'm not asking if it is OK to not use the subjunctive. (I know that in current English language it is more or less acceptable to not use the subjunctive even when it is called for.)  If it helps, I think my difficulty has roots in the negative phrase "weren't". I haven't found this negative subjunctive construction addressed anywhere.


Get a 01 from an int instead of 1 in a for loop

This loop inserts employee Ids like 1, 2, 4,.. 30.  for(int i=01;i<31;i++){   Employee e = new Employee();   e.setEmpId(i);   aList.add(e); }   However, I require the ids in the format 01, 02, 03 .. so on.  Is there a simple way I can achieve this ?


How to change background image of the css block using jquery

<style type="text/css">             .RadWindow .rwWindowContent .radalert             {                 background-image:url("images/InfoImg.png");              }         </style>   The above code in  css file ,i want change   the background image of the above css file, when user call the Jquery costume function,I want to Change the background image of rad alert.


Is there an alternative to LaTeX which isn't whitespace sensitive?

I have been using LaTeX for about a year now, and I quite like it.  However, I like to space out my source code. In most languages, this doesn't cause an issue, as extra newlines don't affect meaning.  However, in LaTeX, two newlines in fact changes the document, by creating a new paragraph.  I'm wondering, is there a way to turn this feature off in latex, and require me to specify new paragraphs manually? If not, is there an alternative to LaTeX (preferably similar i.e. still TeX based) which isn't so sensitive?


OUTPUT - sudo lshw -C network   *-network                  description: Network controller  product: BCM4311 802.11b/g WLAN  vendor: Broadcom Corporation  physical id: 0  bus info: pci@0000:0b:00.0  version: 01  width: 32 bits  clock: 33MHz  capabilities: pm msi pciexpress bus_master cap_list  configuration: driver=wl latency=0  resources: irq:16 memory:efcfc000-efcfffff   *-network UNCLAIMED   description: Ethernet controller  product: BCM4401-B0 100Base-TX  vendor: Broadcom Corporation  physical id: 0  bus info: pci@0000:03:00.0  version: 02  width: 32 bits  clock: 33MHz  capabilities: pm bus_master cap_list  configuration: latency=64  resources: memory:ef9fe000-ef9fffff    OUTPUT - ifconfig -a    lo         Link encap:Local Loopback    inet addr:127.0.0.1  Mask:255.0.0.0  inet6 addr: ::1/128 Scope:Host  UP LOOPBACK RUNNING  MTU:65536  Metric:1  RX packets:259 errors:0 dropped:0 overruns:0 frame:0  TX packets:259 errors:0 dropped:0 overruns:0 carrier:0  collisions:0 txqueuelen:0            RX bytes:33926 (33.9 KB)   TX bytes:33926 (33.9 KB)   Content of path - etc/udev/rules.d/70-persistent-net.rules   # PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:1e.0/0000:03:00.0/ssb1:0 (b44) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:b9:5a:f6:eb", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"   OUTPUT - sudo ifconfig eth0       eth0: ERROR while getting interface flags: No such device   OUTPUT - sudo ifup eth0       Ignoring unknown interface eth0=eth0.


Non isomorphic subgroups of cyclic groups

let G be a cyclic group of order 12. find number of non isomorphic subgroups of G.  How to approach such questions?


how to create realistic/physically accurate sand blowing over dunes animation?

This question addresses exactly what I want but it hasnt been answered:   In case it might be helpful I found this paper on the physics of it (although uncertain if its the same thing as in the above desired image):  Dunes at pg 39.


Find three natural numbers $a,b,c$ such : $\begin{cases}ab=1(\mod c)\\ac=1(\mod b)\\bc=1(\mod a)\end{cases}$

Question :   Find three natural numbers $a$, $b$ and $c$ such that the remainder of the euclidean division of the two numbers (of these numbers) by the third number is $1$     Mean :    $$\begin{cases}ab\equiv 1\pmod{c}\\ac\equiv 1\pmod{b}\\bc\equiv 1\pmod{a}\end{cases}$$  I was try many numbers but no one equivalent with above conditions            So how we can find this three numbers ??


I can't seem to get my program to loop properly. So, the goal is that after the user input their numerical grade, it will output the corresponding letter grade. After that, the user is prompted whether or not they would like to go again, in which they can enter "y" or "Y" to continue. At this point, however, even when entering "y" or "Y", the program will not loop.  //Grades.java by Jonathan Holter 02/01/2015  import java.util.*; public class Grades { public static void main(String args[])  {     int numGrade = 0;     String againRun = "y", letterGrade = "A";      Scanner keyboard = new Scanner(System.in);     System.out.print("\nWelcome to Jonathan Holter's Grade Converter" + "\n--------------------------------------------");      while(againRun == "Y" || againRun == "y")     {         do         {             System.out.print("\n\nEnter the numerical grade: ");             numGrade = keyboard.nextInt();             keyboard.nextLine();              if(numGrade < 0 || numGrade > 100)             {                 System.out.print("\nERROR: Out of Range" + "\nPlease choose a value between 0 - 100");             }         }         while(numGrade < 0 || numGrade > 100);          if(numGrade < 60)         {             letterGrade = "E";         }          else if(numGrade > 59 && numGrade < 70)         {             letterGrade = "D";         }          else if(numGrade > 69 && numGrade < 80)         {             letterGrade = "C";         }          else if(numGrade > 79 && numGrade < 90)         {             letterGrade = "B";         }          else if(numGrade > 89 && numGrade < 101)         {             letterGrade = "A";         }          System.out.print("\nLetter Grade: " + letterGrade);          System.out.print("\n\nContinue? <Y/N> ");         againRun = keyboard.next();      }   }   }


I’m trying to add sound to a video using FFmpeg, but for some reason, when I play the resulting file, it doesn't have any sound. I also tried doing it with an aac audio file, as well as leaving out -acodec copy and giving it a wav file.  Here is the complete output:  C:\Users\SM-Audio\Desktop>ffmpeg -i PrintingCDs.mp4 -i AudioPrintCDs.mp3 -acodec  copy -vcodec copy PrintCDs1.mp4 ffmpeg version N-48886-g5ce023b Copyright (c) 2000-2013 the FFmpeg developers   built on Jan 14 2013 19:16:33 with gcc 4.7.2 (GCC)   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable -libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r   libavutil      52. 14.100 / 52. 14.100   libavcodec     54. 89.100 / 54. 89.100   libavformat    54. 59.107 / 54. 59.107   libavdevice    54.  3.102 / 54.  3.102   libavfilter     3. 32.100 /  3. 32.100   libswscale      2.  1.103 /  2.  1.103   libswresample   0. 17.102 /  0. 17.102   libpostproc    52.  2.100 / 52.  2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'PrintingCDs.mp4':   Metadata:     major_brand     : mp42     minor_version   : 0     compatible_brands: isommp42     creation_time   : 2013-05-01 13:35:52   Duration: 00:02:35.57, start: 0.000000, bitrate: 585 kb/s     Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1024x 768 [SAR 1:1 DAR 4:3], 457 kb/s, 10 fps, 10 tbr, 30k tbn, 30 tbc     Metadata:       creation_time   : 2013-05-01 13:35:53       handler_name    : Mainconcept MP4 Video Media Handler     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 126 kb/s     Metadata:       creation_time   : 2013-05-01 13:35:53       handler_name    : Mainconcept MP4 Sound Media Handler [mp3 @ 003dd6c0] max_analyze_duration 5000000 reached at 5015510 microseconds Input #1, mp3, from 'AudioPrintCDs.mp3':   Metadata:     encoder         : Lavf54.59.107   Duration: 00:02:36.21, start: 0.000000, bitrate: 64 kb/s     Stream #1:0: Audio: mp3, 44100 Hz, mono, s16p, 64 kb/s File 'PrintCDs1.mp4' already exists. Overwrite ? [y/N] y Output #0, mp4, to 'PrintCDs1.mp4':   Metadata:     major_brand     : mp42     minor_version   : 0     compatible_brands: isommp42     encoder         : Lavf54.59.107     Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1024x768 [S AR 1:1 DAR 4:3], q=2-31, 457 kb/s, 10 fps, 30k tbn, 30k tbc     Metadata:       creation_time   : 2013-05-01 13:35:53       handler_name    : Mainconcept MP4 Video Media Handler     Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 22050 Hz, mono, 126 k b/s     Metadata:       creation_time   : 2013-05-01 13:35:53       handler_name    : Mainconcept MP4 Sound Media Handler Stream mapping:   Stream #0:0 -> #0:0 (copy)   Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1555 fps=0.0 q=-1.0 Lsize=   11133kB time=00:02:35.57 bitrate= 586.2kbits /s video:8674kB audio:2408kB subtitle:0 global headers:0kB muxing overhead 0.459569 %


How do I take an image without a blurry background?

I'm very new to DSLRs and I was wondering how to make it so that my Nikon D3300 focuses but does not blur anything out like when it focuses on a flower or something and it blurs everything else around it. I have been trying to figure it out but with no luck.


How can I mirror one of the screens in a 3-monitor setup?

Is it possible to have 2 extended monitors and get the third being a mirror of one of the two extended?   I'm pretty sure it's not possible through the interface but it may be possible through commands or configuration file.  If it's seems weird for you, here is my setup :    2 monitors, pretty classic working with dual monitor 1 big TV that I use as a projector to show things off to people (on meetings for example)


how to display date in fir mat like JANUARY 14,2021

<apex:repeat value="{!Accountlab}" var="acclab">        Delivery Date for Supplies :<b>{!acclab.Delivery_Date_for_Supplies__c} </b>     </apex:repeat>  By using above code im getting "Fri Apr 16 00:00:00 GMT 2021" but i need  "April 16,2021"


I just wanna create a class definition with a static field with a name. A file called exercises.py contains:  First error:   FAIL: test_00_packages (__main__.Ex00) Traceback (most recent call last): File "ex00.py", line 55, in test_00_packages self.assertTrue("Exercise00" in globals())  AssertionError: False is not true   Later:  class Exercise00:     def __init__(self, STUDENT_NAME):         self.STUDENT_NAME = 'Name Name'   But if I try to print Exercise00.STUDENT_NAME I just get NameError: name 'Exercise00' is not defined  But I guess I defined it?!  Here the complete error:  ERROR: test_01_static_field (__main__.Ex00) ---------------------------------------------------------------------- Traceback (most recent call last):   File "ex00.py", line 60, in test_01_static_field     print("[I] Name: " + Exercise00.STUDENT_NAME) NameError: name 'Exercise00' is not defined  ----------------------------------------------------------------------   My task is to create a class called Exercise00 with a static field STUDENT_NAME.   The line in ex00.py is:  def test_00_packages(self):     self.assertTrue("Exercise00" in globals())


Start up on Ubuntu 12.10 is much slower than on 12.04

Start up toward login screen lasts about 40sec on both(12.10 and 12.04). This is good for me.  But after login, there is quite difference. System will start up in:   Ubuntu 12.04: 10-13sec Ubuntu 12.10: at least 30sec   I have chromium in start up applications and this is the only non default app there. I also disabled some unneeded apps such as Bluetooth Manager, ... I also have installed preload.    Is there problem on my side or is the new Ubuntu slower in this way?  My PCs info: Intel® Pentium(R) CPU G840 @ 2.80GHz × 2 GeForce GTS 450/PCIe/SSE2 Memory 3.9 GiB Ubuntu 12.10 32-bit


A vertical variation of modern versions of Michelson-Morley

For almost a year now, I have been in the uncomfortable position of having an idea.  However, there is one nice thing about this idea.  It makes a concrete, exact and relatively easy to test physical prediction.  The idea predicts that there is a 11,187 m/s (Earth’s escape velocity) aethereal wind directly into the surface of the Earth at its surface.  I believe it would be possible to test this by performing a vertical variation of modern versions of the Michelson-Morley experiment (MMX) with one arm pointed in the vertical direction. ()  In 2003, Müller et al. performed a normal (2 horizontal orthogonal arms) modern MMX using cryogenic optical resonators that found a “possible anisotropy of the speed of light c, (of) 2.6 +/- 1.7 parts in 10^15” (  )  In a brief conversation with Holger Müller a Professor at Berkeley and the lead author of that paper, he stated that to this knowledge no one had ever performed a variation of the experiment using a vertical arm.  He also mentioned that such an experiment would be complicated by the fact that gravity would slightly compress the length of the vertical bar making two equal length bars no longer equal in length.  “They haven't been done as far as i know. The problem is that any interesting physics signal would be hard to tell from a large signal from stretching of the arms under their own weight.” - H. Müller  I am interested in attempting to run this experiment myself.  To that end, I have the following questions:   Given current Physics understanding, is there any reason to expect that such a vertical variation of the MMX wouldn’t return the exact same results as all other MMXs, namely that there is no anisotropy in the speed of light? Given the complications mentioned by Professor Müller, are there reasonable methods available to overcome them?  Especially considering the size of the effect (c + 11,187m/s vs c) is substantially larger than the accuracy obtained in his and similar modern MMXs. What is the order of magnitude cost of such an experiment?  If I am to fund this personally, would such a project cost \$10,000?  \$100,000? \$1,000,000? more?   Any insight offered on this topic will be greatly appreciated.  EDIT: For what its worth, for people looking at this years later.  As I originally alluded to in a comment to [WetSavannaAnimal aka Rod Vance]'s much appreciated and comprehensive answer.  While, I've become increasingly comfortable with the idea that there is a flow of aether or spacetime or whatever you want to call it into the Earth at 11km/s; I strongly believe that a vertical MMX would return the same null result as the horizontal one.  And I believe it will do so because of length contraction; that length contraction exactly masks any anisotropy of the speed of light by ensuring that the roundtrip time of light in any direction is a constant; that length contraction ensures Lorentz co-variance.


Bypass invalid SSL certificate errors when calling web services in .Net

We are setting up a new SharePoint for which we don't have a valid SSL certificate yet. I would like to call the Lists web service on it to retrieve some meta data about the setup. However, when I try to do this, I get the exception:     The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.   The nested exception contains the error message:     The remote certificate is invalid according to the validation procedure.   This is correct since we are using a temporary certificate.  My question is: how can I tell the .Net web service client (SoapHttpClientProtocol) to ignore these errors?


I was playing sims freeplay on my iPod yesterday but could not find the pet store. Where is the pet store in the preteens are here update?


How to remove the null pointer exception in java?

I have a file with values like:   a,9,1  b,2,4  c,2,4  till *,2,0 and this is my code:      public static final String letterFileLoc = "filelocation";     public static Map<Character, Integer> letterValueMap;     public static Map<Character, Integer> letterCountMap;     public static void constructLetterMaps() throws FileNotFoundException{     File pointvals = new File(letterFileLoc);     Scanner pts = new Scanner(pointvals);     while (pts.hasNext()){         String [] parts = pts.next().split(",");         char alpha = (parts[0]).charAt(0);         int counts = Integer.parseInt(parts[1]);         int values = Integer.parseInt(parts[2]);         letterValueMap.put(alpha, values);         letterCountMap.put(alpha, counts);       }   and I keep getting a null pointer expception when I'm putting the values. I don't understand why. Could someone please explain?


Has a double slit experiment ever been done using a track chamber or even contemplated?

I tried searches and the question has been posed in other fora, but no experiment came up.   Track chambers (cloud chambers, bubble chambers , time projection chambers, solid state detectors like the vertex detectors at LHC)  give the track of the particle as it ionizes the  medium, and could be carried out in geometry after the particle has passed the double slit. The straight track should be pointing back to the slit it came from and its record could be used as the points on the screen in the classical double slit experiment.  The set up as I see it would be the classical setup for single electron through the double slits but instead of a "screen" one has a detector and detects the track.  It should be a long enough detector to get an accuracy less than the slit difference so it could point back to the slit, as the interslit distance is of the order of 100 microns and detectors are giving order of microns accuracies.  This experiment, if possible,  would resolve the controversy whether the detection of the slit destroys the interference pattern or the  at the slits change the boundary conditions and destroy the interference pattern.  An expert's opinion is necessary whether the experiment is possible, whether the energies of the electrons to show interference with a specific d separation is enough to create an accurate track in a solid state detector. If not a cloud chamber would do , but again the energy of the electron would be important because it would have to pass the barrier air/chamber.  It could succeed if the double slits were within a cloud/ bubble chamber; the beam count was low  (10 to twelve per picture) but it was spread in the vertical direction. If the beam could be focused on the slits , it should be doable.


Here is my MWE:  \documentclass{scrartcl} \usepackage{beramono} \usepackage[T1]{fontenc} \begin{document} \begin{verbatim} ' only a test \end{verbatim} \end{document}   If I copy the text from the PDF viewer, the following characters are in the clipboard:  ’ only a test   The apostrophe is different. What can I do, that in the PDF I can grab the original input character?


What does ADB Back up restore to an android device?

Does ADB Back Up contain system files? Supposing an un-rooted android device has got an ADB back up and something goes wrong and the device does not boot up, then can the ADB back up be useful?


Suppose the following code:  class Person():     def __init__(self,name):         self.name = name  class Student(Person): pass  class Teacher(Person): pass  John = Student('John') Tom = Student('Tom') Victor = Teacher('Victor')   After the script is run, class Person is aware of its subclasses through  In [22]: Person.__subclasses__() Out[22]: [__main__.Student, __main__.Teacher]   How to find all instances of class Student like:  Student.__instances__() AttributeError: type object 'Student' has no attribute '__instances__'


Counting number of students who have failed in all four subjects

In an examination of a certain class, at least $69\%$ of the students failed in P, at least $72\%$ failed in C, at least $80\%$ failed in M, and at least $85\%$ failed in B. How many at least must have failed in all the four subjects?   My attempt:  I'm familiar with the type of questions where the exact number of students is given for each set (). But in this question, the minimum number for each set is given instead!  Every attempt I make is leading me nowhere. I counted the number of students who have passed in each subject, but it still does not help.  I feel like I'm missing a specific train of thought that'll lead me to the correct answer. Thus, I need hints for realizing the idea of this problem. Thanks!


What do the numbers next to the flame represent?

When you get an elimination the message that pops up has a number and a flame at the end. I assume that it has something to do with being "On Fire", but what exactly are the numbers tracking?


I have a 1/3 arc-second DEM downloaded from USGS that I am trying to use to create a slope analysis layer.    The DEM is in ESPG 4269 to start and I've re-projected it into NAD83 UTM Zone 11N (the DEM is for eastern Oregon) so the vertical and horizontal units are in meters.    The output looks correct except all of the lines through it (see screenshot).  Maybe I went wrong in how I projected it?


This might be a stupid question, but what exactly is the is function, and when would one use it?  From the context, i guess i could infer that it's equivalent to ==; but if that's the case, why have both? The  shows nothing, and help(is) returns a SyntaxError.


How to disable or delay "Time Machine hasn't backed up your computer in x days" message?

Mountain Lion and later OS X releases have a very useful feature where Time Machine can alternate between multiple backup destinations. I use this to back up to both a network share at home and an external drive I keep offsite. Because I only have physical access to the offsite drive occasionally, I don't back up to it often.  After 10 days, OS X gives me a message around the same time each day, such as:     Time Machine is still backing up successfully to the network share every hour, so this message is unnecessary (and the second sentence is incorrect).  I like being able to see when the last backup was completed, so I'd prefer not to remove the disk from Time Machine's destination list entirely. Likewise, turning Time Machine off (as suggested ) isn't an option because I still need my backups to run on the other drives.  Is there any way to disable or delay this message? Ideally I would be able to set it to a longer period of time, so it could remind me to go do an offsite backup every month or so.


At level one, can you really never recover hit dice?

I was reading a review of 5e game play  from our RSS Feed. And in it he makes an observation about a strange rule:     Weird rule thing. You recover half your level in hit dice during a   long rest, which means level 1 characters never recover hit dice.   That didn't make sense to me, and so I double checked the long rest rule and it reads:     At the end of a long rest, a character regains all lost it points.   The  character also regains spent Hit Dice, up to a number of dice   equal to half of the character’s total number of them. For example, if   a  character has eight Hit Dice, he or she can regain four spent Hit   Dice upon finishing a long rest.   And of course the rules state that in general you always round down.  Am I missing something? Is there a good explanation for why at first level you can't recover hitdice?


13.10 - PulseAudio puts audio into HDMI, but no sound out of TV

Basically, no sound is coming out the television. I'm running out of idea of why?  Viewing the PulseAudio control panel, it's putting sound out the HDMI    Alsamixer is not mute    The Television is not mute. I booted into Windows and the audio out the HDMI works fine.     Debugging Info:  Basics   Xubuntu 13.10 Linux desktop 3.11.0-15-generic #25-Ubuntu SMP ATI 4870   lshw -c video     description: VGA compatible controller    product: RV770 [Radeon HD 4870]    vendor: Advanced Micro Devices, Inc. [AMD/ATI]    physical id: 0    bus info: pci@0000:01:00.0    version: 00    width: 64 bits    clock: 33MHz    capabilities: vga_controller bus_master cap_list rom    configuration: driver=radeon latency=0    resources: irq:44 memory:d0000000-dfffffff memory:feae0000-feaeffff ioport:c000(size=256) memory:feac0000-feadffff   aplay -l     **** List of PLAYBACK Hardware Devices ****    card 0: SB [HDA ATI SB], device 0: ALC887-VD Analog [ALC887-VD Analog]      Subdevices: 0/1      Subdevice #0: subdevice #0    card 0: SB [HDA ATI SB], device 1: ALC887-VD Digital [ALC887-VD Digital]      Subdevices: 1/1      Subdevice #0: subdevice #0    card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]      Subdevices: 0/1      Subdevice #0: subdevice #0   sudo speaker-test -c 2 -r 48000 -D hw:1,3     speaker-test 1.0.27.1     Playback device is hw:1,3    Stream parameters are 48000Hz, S16_LE, 2 channels    Using 16 octaves of pink noise    Playback open error: -16,Device or resource busy


12-04 lts auto update is "broken" do I need to reinstall?

auto update is "broken" and will not work. I now have a red "no entry" sign at the top of the screen. It says "error: BrokenCount >0" I am completely lost, and what I have seen on the forum looks like its written in serbo-croat to me. Do I have to reload the Ubuntu disc and if I do will I lose everything I have on the machine? I do not want to go back to anything with Microsoft written on it please..


How to create an android app using python

I have tried searching for ways to create android apps using python but I haven't found any, is there any way to do so. I found kivy but no place shows how to convert it to a file.


I have a urgent requirement to make a page in which list of all classes be there with the check box embedded and having button Run. If i select one or more than one classes and click on run button(Run Test) the test class associate with the particular class should run. please help me out of this requirement.  Page Layout    Code for page  <apex:page sidebar="false" controller="classdemo">        <apex:form >

Classes

 <input type="checkbox" id ="SelectAll" onClick="checkAll(this);" name="chk[]"/>Select All

	 <apex:repeat value="{!labellist}" var="abc">
                     <input type="checkbox" id="selected" onchange="Selectedbox('{!abc.Name}',this);" class="checkedcase"></input>           {!abc.Name}
 </apex:repeat>

      <apex:commandButton value="Run Test"/>              </apex:form>     </apex:page>   Code for class      public class classdemo{ public list <ApexClass> labellist{get;set;}  public classdemo(){ Getlist1(); } public list<ApexClass> Getlist1(){     labellist = [select Name from ApexClass];       return labellist;     }  }


How can I recover my old Facebook account?

I had a Facebook account, but I forgot my password. When I created a new account using the same mobile number, I could no longer recover my old Facebook account.   I don't have an email account. I created my account by mobile number, so how can I recover my old Facebook account at this point?


Let $f(x) = x^2 + ax + b$ be a quadratic polynomial in which $a$ and $b$ are integers. If for a given $n$ , $f(n)f(n+1) = f(m)$ for some integer $m$ then the value of $m$ is ?  Do we have to substitute $x$ by $n$ and $n+1$ and then multiply it? or is there another method to get the solution because the mentioned process will give an extremely large equation.  Answer is $n(n+1)+an+b$


Why can't anonymous users vote more than once from different browsers/machines?

I created a poll in a Drupal 8 site and I enabled anonymous voting too, but when opening the pool in different browsers/machines, the poll results appear and anonymous users cannot vote. Please tell me where the issue is.


The Uncertainty Principle and Mach’s principle

Is there any understanding, or theories, of why the uncertainty principle exists at all in nature? Can anyone recommend any reasonable ideas, (especially involving cosmology) that have already been put forward, or is it something we just have to accept as part of nature? It’s because it’s something that I’d like to investigate further and wondered if any work has already been done on this kind of thing.  Are ‘hidden variable’ theories connected to this? It is well known that quantum mechanics is difficult for us humans to understand.  Books sometimes say things like – ‘we cannot expect the laws of nature on the smallest scales to make sense to the human brain.  Humans have daily experience of larger scales and we should just accept nature’s laws even if they don’t make intuitive sense to us’. But it would be better if there was a reason for the existence of the uncertainty principle. Here is some work done so far, attempting to understand the uncertainty principle and link it to cosmology. The uncertainty principle for position and momentum is $$\Delta x \Delta p\ge\frac{h}{4\pi}$$ But what is really meant by position? According to Mach’s principle, the position of an object is only meaningful if it’s defined relative to the positions of other objects in the universe. Similarly ‘momentum’ also only makes sense if it’s defined relative to other objects in the universe. If it’s the observer that the position or momentum of a particle (e.g an electron) is defined as relative to…then to what is the position or momentum of the observer defined relative to?  It seems that the whole universe should be involved when deciding ‘position’ or ‘momentum’. But then we have the problem of what counts as part of the universe.  According to most models in cosmology there is a horizon $R$ beyond which signals won’t reach us $$R=\frac{c}{H}$$ where $H$ is the Hubble parameter. We could imagine the universe as a kind of gas with particles continually entering and leaving the horizon. So there seems to be an inherent ‘unknowability’ about which particles are within the horizon and when, and hence an ‘unknowability’ about the position and momentum of a particle, such as the electron. It’s easier to proceed using the version of the uncertainty principle $$\Delta E \Delta t\ge\frac{h}{4\pi}$$ There is an uncertainty for an observer of the total energy of the universe $E=Mc^2$, where $M$ is the mass of the universe within the horizon, for a time $\Delta    t=\frac {R}{c}$ - as there is a time delay for the information of what constitutes the universe to reach the observer.  The fluctuation  or unknowability in energy, modelling it as a gas of $N$ particles, where the particles can enter or leave a boundary at random, is from thermodynamics $\frac{Mc^2}{\sqrt{N}}$ and if this unknowability is shared between the $N$ particles in the universe we get $$h=\frac{ Mc^2}{N^{3/2}}\times\frac{R}{c}$$ $$h=\frac{RcM}{N^{3/2}}$$ …it’s the right order of magnitude.  Of course this is just a model to see if it’s possible to get an understanding of why the uncertainty principle exists at all. Is it in principle possible to understand the origin of the uncertainty principle?  What ways have already been tried?  Or is it so fundamental to quantum mechanics that it’s not something that we should even attempt to explain or understand?  This question should be reopened as it's a discussion of relating the uncertainty principle of quantum mechanics to cosmological quantities and is different to the other questions.


Prove $f$ is constant if $|f(x)-f(y)|\leq M|x-y|^\alpha$

Let $\alpha > 1$ and $M \geq 0$. Suppose $f: \mathbb{R} \longrightarrow \mathbb{R}$ satisfies $|f(x)-f(y)|\leq M|x-y|^\alpha$ for all $x, y\in \mathbb{R}$.  How can we prove that $f$ is a constant function? I don't even know where to start.


I have used a Box-Behnken experimental design. I have a full quadratic model.   However, I had to transform the response, $Y$ for the model to fit; I did this using a Box-Cox transformation with $\lambda=0.5$.   For example, one of the regressions is like this:  $$Y = 1.28 - 0.008X_1-0.025X_2-0.05X_3-0.13X_1^2-0.01X_2^2-0.006X_3^2\\ +0.02X_1X_2-0.05X_1X_3+0.09X_2X_3$$  How do I interpret the terms?


Testing Speed of Various Sorting Algorithms

I've just started learning about various algorithms, and I'm attempting to write a program that tests the speed between the algorithms and outputs the time it takes each of them to run to the screen. As I've set it up, each algorithm is a subclass of a RunnableAlgorithm abstract class that creates new arrays of the same parameters for each iteration of the algorithm.   However, with each iteration of the algorithm, it seems to run faster! This is a snippet of the output - I've tried it several times, and it consistently will get faster the more times I run it.   SelectionSort warmup .. 45695528 ns SelectionSort: 996415 ns SelectionSort: 1044200 ns SelectionSort: 1260648 ns SelectionSort: 774839 ns SelectionSort: 738320 ns SelectionSort: 337446 ns   It has a "warmup" method called in the superclass ctor that (from my understanding) should load all of the used classes.   Warmup calls all the classes that are later called, which includes DecimalFormat, Random, System (for System.nanoTime() and System.out), along with running the algorithm several times.    SelectionSort s = new SelectionSort();    for (int i = 0; i < 6; i++) {      s.setTime();      s.algorithmAverage();      s.printTime();  }   setTime() sets a variable such that:   beginTime = System.nanoTime();    and printTime() is:   System.out.println(this.getClass().getName() + ": " + new     DecimalFormat(DECIMAL).format( System.nanoTime() - beginTime)     + " ns");   and algorithmAverage() runs the algorithm 10 times, which is what is being timed. Can anyone help me understand why it speeds up? Is the JVM optimizing the code to run because it's called so often? Is there a better, more consistent way for me to test the algorithms speeds other than System.nanoTime() which seems to be fairly unreliable?   Thank you in advanced!


Why don't the zoom buttons work on my DSLR?

I am a newbie to the new camera I just bought. It is a Nikon D5200 it has the original lens that came on the camera a 18-55 lens on it. My question is when I turn the lens to the 55 and then push the plus and minus buttons at the bottom of my camera to zoom in it appears to be zooming in and then I take the photo and the picture is not zoomed in at all.    I have a new Canon T3i and was able to take and capture zoomed in photos with the lens that came with the camera (EF-S 18-55mm) as well as a Canon zoom lens EF 75-300mm 1:4-5.6. Now when I zoom in with either lens and take a photo, when I review it, it shows original image before zooming. Is it a defect in the camera or inexperience of the operator?    (Two separate questions from separate users but with the same root cause.)


I assume -- and maybe wrong -- that lens flares, in photography, are caused by light getting "trapped" inside the curved lens and bouncing around (due to refraction and non-perfect total internal reflection) causing bright spots at periodic intervals, when they partially escape on the imaging side. This would give the classic circular(ish) spots when a camera pans up towards, say, the sun, where the shape of the spots mimics that of the lens/lenses and aperture.  However, I was looking at the Hubble Deep Field image and noticed that a few of the brighter stars have only horizontal and vertical flares. Similarly, stars (as in the light source) are often drawn as n-pointed polygons, implying distinct flares at regular angles.  What is it about the lens, in these cases, that causes flares to propagate seemingly non-uniformly or directionally?


... others suggest that lively colors are (the) best because they make people happier

Do we need the 'the' in this sentence?  While some have argued that pastels are better because they calm people down, others suggest that lively colors are (the) best because they make people happier.  The task suggests that the 'the' shouldn't be used, but I don't know how to explain it. How does the use of the article change the meaning of the sentence?


If $f,g$ are continuous and $g$ is $1$-periodic, $\int_0^1 f(x)g(nx)dx \xrightarrow[n\to\infty]{} \int_0^1 f \int_0^1 g$

Let $f,g\in C(\mathbb{R},\mathbb{R})$ where $g(x+1)=g(x) \; \forall x\in \mathbb{R}$. Prove that \begin{equation} \lim_{n\rightarrow\infty} \int_0^1 f(x)g(nx)dx=\int_0^1f(x)dx \int_0^1g(x)dx . \end{equation}


How do I stop iTunes from opening when I connect my iPad?

This is on Windows 7 x64 if that makes any difference.   says to Disable Automatic Syncing in the Preferences, but that option is grayed out for me.   Is there a way to do this with iPad?


Execution plan flips Filter and Execute Scalar when using the PK, causes cast to fail

I have some data tables that where imported in from a flat file source so everything is varchar(max) except FileRecordID which is a int that hold the row number the data came from in the flat file source (and is the primary key of the imported table.)  The following query works perfectly  SELECT *   FROM [CLIENT]   left outer join   (     select cast(ENTRY_CODE as int) as ENTRY_CODE, ENTRY_DESCRIPTION     from [ENTRY]     inner join [TABLE] on [ENTRY].ENTRY_TABLE = [Table].FileRecordID     where ENTRY_RECD = 'A' and TABLE_RECD = 'A' and TABLE_CODE = 'CLTDISC' and ISNUMERIC(ENTRY_CODE) = 1   ) as discounts on CLIENT_CLASS = ENTRY_CODE   where Client_recd = 'A'   --and client.[FileRecordID] = 10607   I get the exact number of rows I was expecting and everything is fine. However if I uncomment that last line so I only show the record from the client data table who has  client.[FileRecordID] = 10607 it reports to me      Msg 245, Level 16, State 1, Line 1   Conversion failed when converting the varchar value 'BK/TN' to data type int.   The problem is from cast(ENTRY_CODE as int) as ENTRY_CODE in the first outer join. ENTRY can contain text in the ENTRY_CODE column, however all records that have ENTRY_TABLE set to the line number from TABLE where TABLE_CODE = 'CLTDISC' will always be numbers only. I perform the cast as ENTRY_CODE may or may not have leading 0's and spaces so I am trying to get them to be well formed.  What appears to me to be happening is adding client.[FileRecordID] = 10607 to the outer query causes the where clause not to be evaluated before the cast to int in the inner query.  I have tried things like adding and ISNUMERIC(ENTRY_CODE) = 1 to both the inner and outer queries but it has no affect.   How do I fix this? Can anyone explain what is happening so I can understand how to avoid this in the future?   Non filtered query planed execution   Filtered (non working) query planned execution  Notice the reversed order of the Compute Scalar and the Filter    Other things I have tried that do not work:   Move TABLE_CODE = 'CLTDISC' in to the on clause in the inner join. Added OPTION (FORCE ORDER) query hint to the query.     Update:  but it is very "hackish" IMHO, I really would still like a explanation of how to avoid things like this in the future and how to do this correctly.  SELECT *   FROM [CLIENT]   left outer join   (     select ENTRY_CODE, ENTRY_DESCRIPTION     from [ENTRY]     inner join [TABLE] on [ENTRY].ENTRY_TABLE = [Table].FileRecordID     where ENTRY_RECD = 'A' and TABLE_RECD = 'A' and TABLE_CODE = 'CLTDISC' and ISNUMERIC(ENTRY_CODE) = 1   ) as discounts on CLIENT_CLASS = REPLACE(LTRIM(REPLACE(ENTRY_CODE, '0', ' ')), ' ', '0')   where Client_recd = 'A'   and client.[FileRecordID] = 10607


I am trying to fetch a range of rows in Oracle, but I am only able to fetch from the first row to a row number N.   I cannot do it in case i want to fetch a range in-between the table such as row no. 2 to 5   Lets consider EMP table below that is seen in the sample user SCOTT    Case 1: Fetch a range of rows from 1 to 5, I get the following  select EMPNO, ENAME from (select EMPNO,ENAME from EMP ORDER BY EMPNO)  WHERE ROWNUM BETWEEN 1 AND 5     Case 2: Now lets try and fetch 3 rows between 2 and 5.   select EMPNO, ENAME from (select EMPNO,ENAME from EMP ORDER BY EMPNO)  WHERE ROWNUM BETWEEN 2 AND 5     This gives me an empty Resultset. Why is that? What do I need to change so that I can get a range of rows from somewhere in between the table?


Let $f(x)$ be a separable irreducible polynomial of degree n with coefficients in a field F. Let E be a splitting field of f(x) over F. Show that $[E:F] \le n!$


.fail() fails to execute when ajax request is not successful

I am building a random quote machine (learning AJAX). AJAX request works and .done() successfully called. Now I am trying to do error handling and my .fail() does not work when AJAX request actually is not successful.  Any ideas what might be wrong here? Thank you!         `  var quoteRequestTimeout = setTimeout(function(){         if ($.isEmptyObject(backupQuote)){          $quoteText.text('Failed to get a new quote');          $author.text('');         }         else {         $quoteFail.text('Failed to get a new quote');         $quoteText.text(backupQuote.quoteText);         $author.text(backupQuote.quoteAuthor);         };         }, 8000);      $.ajax({         url: "https://api.forismatic.com/api/1.0/",         jsonp: "jsonp",         dataType: "jsonp",         data: {             method: "getQuote",             lang: "en",             format: "jsonp"         },         cache: false     })    .done(function(data, status, jqXHR) {         console.log(data);         $quoteText.text(data.quoteText);         $author.text(data.quoteAuthor);         backupQuote = {             quoteText: data.quoteText,             quoteAuthor: data.quoteAuthor         };         $quoteFail.text('');         clearTimeout(quoteRequestTimeout);      })    .fail(function(jqXHR, textStatus, errorThrown) {         console.log(errorThrown.toString());         console.log("it worked");      });`


What is the alternative for Multiple Inheritance in C#?

I am trying to achieve Multiple Inheritance in C#. Or Any alternative way to achive Multiple Inheritance.  Can anyone help me ? Thanx in advance.


Give the description of all commutative rings with unity of $8$ elements

The task is to give the description of all (with the precision of isomorphism) commutative rings with unity of $8$ elements.   As for addition definition, I understood that the are two options for the sum of the units: $1+1=0$ and $8 = 0$, for if $n = 0$ we will get a vector space over $\mathbb{F}_n$, and its amount of elements in should be the power of $n$, which is possible only for $2$ and $8$: $2^3$ and $8^1$. In both cases addition is completely defined.  In the case of $8 = 0$ the ring is isomorphic to $\mathbb{Z}/(8)$.   In the second case we can consider the ring as vector space over $\mathbb{F}_2$ of dimension $3$, with elements $\{1, 0, a, a+1,b,b+1,a+b,a+b+1\}$. Now the structure of the ring depends on the definition of multiplication in it. The only fact that I understood about it is that if we define $a^2=a$ and $b^2=b$ then for any element $r$ of the ring $r^2=r$, hence it is boolean ring, which in turn is isomorphic to $\mathbb{F}_2 \times \mathbb{F}_2 \times \mathbb{F}_2$.  Also I know that if we define $a^2=a+1$, then $\{1, 0, a, a+1\}$ is a field of $4$ elements, but how is it connected with the structure of the complete ring?  What are the other options for multiplication and what do they mean in terms of the ring structure?


How do you create a washed out effect with deep blacks?

I have been wondering how to achieve a great portrait effect I have been seeing a little bit more lately.  The portraits are usually washed out, but blacks are still deep (not dull), and there seems to be some kind of a blue tint.  Here are examples:      How would I achieve something like this from a well lit, standard portrait shot?


Could we make the migration search function for moderators be made available to regular users?

This question was  but I decided to make it a feature request and ask it here after some advice from a Writers mod. I was wondering if we could make the migration search function for moderators be made available to regular users? One reason for closing is that the question should belong on a different SE site. The pop-up box only gives you a couple possible sites to migrate the question to (depending on what site the question was asked on). For example, in Writing SE, it gives you the migration options of Writing Meta and EL&U. (see picture at the bottom) Could we include a search bar to pick any SE site to migrate to instead of just a couple of options? Most of the time, the question should be moved to the relevant options in the pop-up box - but there are oddball questions that should be moved to a different SE site than the given options. I understand that moderators have this ability, but why not give it to regular users? It would not hurt - it would actually make things more convenient. (example)


Is live patching now available for HWE kernels?

Since live patching has been released only LTS kernels were supported with a note that live patching for HWE is in the works and likely to be available in 2017. I thought there would be an announcement when HWE support is ready but I must have missed it. I'm certain that there was no support for the 17.04 based HWE kernel, but I had to use mainline kernels for a while on this machine in the past months.  I just installed 4.13.0-16.19~16.04.3-generic through linux-image-generic-hwe-16.04-edge but I'm not exactly sure if this kernel is supported by canonical-livepatch:  $ canonical-livepatch status client-version: "7.23" architecture: x86_64 cpu-model: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz last-check: 2017-11-08T21:16:29.971688844+01:00 boot-time: 2017-11-08T19:16:12+01:00 uptime: 2h54m26s status: - kernel: 4.13.0-16.19~16.04.3-generic   running: true   livepatch:     checkState: checked     patchState: nothing-to-apply     version: ""     fixes: ""   How do I know if a kernel is supported? Is there a support or wiki page where I can look this up? Or did someone find a URL in their networking logs showing some kind of hierarchy where these updates are fetched from?


What is the reason for extremely high speed of electric current?

I know that electric current is the flow of electrons but electrons have a very slow drift speed (about 2mm/s). How is it that electric current reaches its destination at almost the speed of light?


In GWT I have been receiving soft 404 errors for some URLs of my online shopping website. Ichecked all those URLs and those pages are looking good and there is nothing wrong in that page. Then why I'm receiving that errors?  This is the notification that I received in my GWT:     Dear owner or webmaster,      While crawling your site, we have noticed an increase in the number of   transient soft 404 errors around 2013-06-30 16:00 UTC (London, Dublin,   Edinburgh). Your site may have experienced outages. These issues may   have been resolved.


How is the tag chosen to prefix the title?

Which tag is used in the title of a question?   It does not seem to be the most popular It does not seem to be the first in the tagging order:   This question   is prefixed with NGINX (which is actually completely fine)  And it is tagged with "php nginx fastcgi magento" in the order of popularity.  Can we choose the tag to use in the title manually?


How is it possible for the Root Name Servers to handle all DNS requests?

I was reading about DNS some days ago and learned how the requests are processed. If you surf to www.example.com, then a request will go to the Root Name Servers to see who owns that .com address, then another request will go to another, more local, DNS server to see who owns the example.com address and so on.  How is it technically possible that the 13 Root Name Servers can handle all requests done by earth's billions of Internet users simultaneosly without beeing ddos:ed?


Which macros define spaces around table and float environments?

I am trying to define the length of vertical space between tables and text globally in my document. So far, I have been using       \setlength{\intextsep}{0cm}     \setlength{\floatsep}{0cm}     \setlength{\textfloatsep}{0cm}     \setlength{\intextsep}{0mm}     \setlength{\belowcaptionskip}{0cm}     \setlength{\abovecaptionskip}{0mm}   in my preamble. Moreover, I also use the caption package, which I define as follows:  \usepackage[%     font=small,     textfont=bf,     nooneline,     justification=raggedright,     format=hang,     labelsep=quad,     skip=0mm ]{caption}    I don't want the space to be zero, of course, but even if it is set to zero, I still have white space between tables and text as well as caption and text. This leads me to believe that there are more macros involved through whom the space between tables/captions and text is defined. I couldn't find a complete list of the macros involved, however (I looked e.g.  and ).  Are there still macros missing from the list above that potentially change the spacing between tables/captions and text?  EDIT:   A typical table in my document:  \begin{table}[H] \begin{center} \begin{tabular}{lll} 1 & 2 & 3 \\ \end{tabular} \end{center} \caption{...} \label{...} \end{table}   Where option H requires the float package.


Derivation of the formula for the vertex of a parabola

I'm taking a course on Basic Conic Sections, and one of the ones we are discussing is of a parabola of the form  $$y = a x^2 + b x + c$$  My teacher gave me the formula:  $$x = -\frac{b}{2a}$$  as the $x$ coordinate of the vertex.  I asked her why, and she told me not to tell her how to do her job.  My smart friend mumbled something about it involving calculus, but I've always found him a rather odd fellow and I doubt I'd be able to understand a solution involving calculus, because I have no background in it.  If you use something you know from calculus, explain it to someone who has no background in it.  Because I sure don't.  Is there a purely algebraic or geometrical yet elegant derivation for the $x$ coordinate of a parabola of the above form?


Placement of "?" in parentheses and quotation marks

Recently, I've found myself writing sentences which are statements, but which conclude with a question, either in parentheses or as a quotation, and being unable to decide quite how to punctuate.  For example:  She said, "Are you coming home?" -- versus -- She said, "Are you coming home"?  ... and:  He looks unhappy (but isn't he rich?)  -- versus --  He looks unhappy (but isn't he rich?).  Also, is this affected by whether on not one is using British Punctuation (cf. the Oxford Comma) or American Punctuation?


Back in 2007, there was a distribution  that enabled use of Tamil on top of Ubuntu.   How can I similarly use Tamil in a more up-to-date distro such as Ubuntu?


Time dilation in a gravitational field and the equivalence principle

A clock near the surface of the earth will run slower than one on the top of the mountain.  If the equivalence principal tells us that being at rest in a gravitational field is equivalent to being in an accelerated frame of reference in free space, shouldn't the clock near the earth run increasingly slower than the other clock over time?  If those two clocks are considered to be in two different frames of acceleration, the one near the earth will have a greater acceleration than the one on the mountain, and thus over time, their relative velocity will increase over time which will increase the time dilation.  Or is this not a proper use of the equivalence principle?


Azure Nested Hyper-V Child VM No Internet Access

I'm having problems getting the internet access working on a child vm inside hyper-v on my azure vm.  I've created two NIC's on azure and assigned them both to the VM.  From there I setup static IP's for both NIC's and create 3 public IP's assigned to NIC#2 (Reserved for VM traffic)  Install Hyper-V, create my first child VM & external switch. Assign that VM onto newly created switch, linked to NIC#2 so IP configurations get passed onto virtual adapter from (Azure virtual adapter NIC2)  Disabled IPV6 to remove any possible conflicts.  Started Child VM and setup NIC to my static address, existing within Azure's configuration for my network.   Still no internet, anyone run into this?


Find the function equation $f(x+f(y)+yf(x))=y+f(x)+xf(y)$

find  all functions $f:\Bbb R\to \Bbb R$ and such for any $x,y\in\Bbb R$,and such $$f(x+f(y)+yf(x))=y+f(x)+xf(y)$$     I have proven that $$f(f(x))=x$$   proof:Let $y=0$,we have $$f(x+f(0))=f(x)+xf(0)$$ let $x=0,y\to x$,we have $$f(f(x)+xf(0))=x+f(0)$$ so we have $$f(f(x+f(0))=x+f(0)$$ then $$f(f(x))=x$$  and $f(x)=x$ is one solution but I can't argue this to be the only solution. It doesn't seem easy.Thank for you help!


What is/are the molecular differences between HDL and LDL cholesterol?

Why exactly is HDL-cholesterol good for us and LDL-cholesterol bad for us. It has been well-established that LDL-cholesterol is associated with atherosclerosis and that HDL-cholesterol helps remove excess LDL-cholesterol from the circulation. From a biochemical view, however, what is the difference between the molecules that causes this difference?


I want to enumerate Dave-Letterman Style with the last listed first as in enumerating top ten items and having them  listed in  10 9 8 7 6 5 4 3 2 1. Is the etaremune package the only way to go?  Edit: I realized my question is vague and incomplete.  Does any package have the ability to change the order of appearance of a collection of entries. Consider a long already-typed list. I may want one of two things,    Changing the order of appearance of items. Say it is typed as 1) Apples, 2)Oranges 3)Pears and I want it to appear as 1)Pears, 2)Apples, 3)oranges.  Of course I could cut/paste the original text, but what if the table is long/etc ... Changing the way enumeration shows up as in  1,2,3 vs 3,2,1.   Also, what if a table of items breaks across a page. If all items are on one page then switching the enumeration from 1,2,3 to 3,2,1 would be easy. But if the list breaks across a page then many times it is better to count in reverse. And the question is how do you do this automatically.


should there be space between a sentence and question mark or not?

while asking questions in the sentence do we need to give space between question mark (?) and the sentence.  what is your name?  what is your name ?  which one is correct?