So I got this VM up and running with Plex andNextcloud a while ago but I've not been happy with the plex performance so I wanted to move it from a snap install to a regular install but apparantly I can't install plexmediaserver because I'm offline??  Makes no sense to me - I can use the browser just fine as well as run apt updates and still access my nextcloud and plex installs  Anyone have any ideas?   my network icon in the top left says "wired unmanaged" and has a little x in the bottom right of the icon and if I click connect in the drop-dwon nothing happens...

I recently upgraded to ubuntu 18.04 but I'm facing issues with the wired connection. First off, I must say that the wifi connection is working fine.  When I start my computed I don't even get the wired network icon. Going into the settings/Network parameters, I don't see anything about wired connection (only VPN and proxy).  Thus I tried to understand what was happening and I used a couple of different commands:  ~$ lshw -C network  WARNING: you should run this program as super-user. *-network                     description: Wireless interface    product: Wireless 8265 / 8275    vendor: Intel Corporation    physical id: 0    bus info: pci@0000:01:00.0    logical name: wlp1s0    version: 78    serial: 00:28:f8:f8:80:b8    width: 64 bits    clock: 33MHz    capabilities: bus_master cap_list ethernet physical wireless    configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-  22-generic firmware=34.0.1 ip=10.4.26.243 latency=0 link=yes multicast=yes wireless=IEEE 802.11    resources: irq:144 memory:dc100000-dc101fff *-network DISABLED    description: Ethernet interface    physical id: 2    logical name: enx3c18a070d46d    serial: 3c:18:a0:70:d4:6d    size: 1Gbit/s    capacity: 1Gbit/s    capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.09.9 duplex=full link=no multicast=yes port=MII speed=1Gbit/s   Then I decided to enable the ethernet interface as follows  sudo ip link set enx3c18a070d46d up   The result of the "lshw" command does not show DISABLED anymore. The wired connection icon came back but still no internet connection and now showed the following message  Wired unmanaged   I would be very interested if any of you have an idea about how to solve this problem.  Thank you and have a good day.  Finally, here are the results of a couple of commands (note that ifconfig is obsolete on ubuntu 18.04)  ~$ ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN     mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000 link/ether 00:28:f8:f8:80:b8 brd ff:ff:ff:ff:ff:ff 3: enx3c18a070d46d: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc     fq_codel state UP mode DEFAULT group default qlen 1000 link/ether 3c:18:a0:70:d4:6d brd ff:ff:ff:ff:ff:ff  ~$ ip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN  group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo    valid_lft forever preferred_lft forever inet6 ::1/128 scope host     valid_lft forever preferred_lft forever 2: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state  UP group default qlen 1000 link/ether 00:28:f8:f8:80:b8 brd ff:ff:ff:ff:ff:ff inet 10.4.26.243/23 brd 10.4.27.255 scope global dynamic noprefixroute wlp1s0    valid_lft 42269sec preferred_lft 42269sec inet6 fe80::11e5:2546:9014:171b/64 scope link noprefixroute     valid_lft forever preferred_lft forever 3: enx3c18a070d46d: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc  fq_codel state UP group default qlen 1000 link/ether 3c:18:a0:70:d4:6d brd ff:ff:ff:ff:ff:ff inet6 fe80::3e18:a0ff:fe70:d46d/64 scope link     valid_lft forever preferred_lft forever


I am having a hard time understanding what is wrong with the code below. When I run it in tex, I get an error input limit exceeded. The exact error is pasted below:     I am using texmaker to run the code.     \documentclass[a4paper,12pt]{article} %{scrartcl}      \usepackage{filecontents}     \begin{filecontents*}{Bibliografy.bib}     @misc{wikipedia1,       title = "Scripting language",       author = "Wikipedia",       url = {http://en.wikipedia.org/wiki/Scripting_language},       year = 2014,     }     \end{filecontents*}      \usepackage[numbers]{natbib}     \usepackage{url}      \begin{document}         \cite{wikipedia1}     \bibliographystyle{plainnat}     %\bibliography{Bibliografy}     \end{document}

I am having a hard time figuring out where the problem is with my code/workflow. I previously posted this question , but then the same problem came straight back. When I run it in tex, I get an error input limit exceeded. The exact log is pasted below:  This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6210 64-bit) (preloaded format=pdflatex 2017.1.26)  26 JAN 2017 20:45 entering extended mode **./master.tex (master.tex LaTeX2e <2016/03/31> patch level 3 Babel <3.9r> and hyphenation patterns for 75 language(s) loaded. ("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2014/09/29 v1.4h Standard LaTeX document class ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size11.clo" File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) ("C:\Program Files\MiKTeX 2.9\tex\latex\apacite\apacite.sty" Package: apacite 2013/07/21 v6.03 APA citation \c@BibCnt=\count87 \bibleftmargin=\skip43 \bibindent=\skip44 \bibparsep=\skip45 \bibitemsep=\skip46 \biblabelsep=\skip47 ) No file master.aux. \openout1 = `master.aux'.  LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5. LaTeX Font Info:    ... okay on input line 5. LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5. LaTeX Font Info:    ... okay on input line 5. LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5. LaTeX Font Info:    ... okay on input line 5. LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5. LaTeX Font Info:    ... okay on input line 5. LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5. LaTeX Font Info:    ... okay on input line 5. LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5. LaTeX Font Info:    ... okay on input line 5. \c@maskedRefs=\count88 ("C:\Program Files\MiKTeX 2.9\tex\latex\apacite\english.apc" File: english.apc 2013/07/21 v6.03 apacite language file LaTeX Info: Redefining \BPBI on input line 129. LaTeX Info: Redefining \BHBI on input line 130. ) ! TeX capacity exceeded, sorry [input stack size=5000]. \AtBeginDocument #1->#1  l.5 \begin{document}  If you really absolutely need more capacity, you can ask a wizard to enlarge me.   Here is how much of TeX's memory you used:  641 strings out of 493333  7639 string characters out of 3139188  74825 words of memory out of 3000000  4254 multiletter control sequences out of 15000+200000  3940 words of font info for 15 fonts, out of 3000000 for 9000  1141 hyphenation exceptions out of 8191  5000i,0n,4998p,136b,36s stack positions out of 5000i,500n,10000p,200000b,50000s !  ==> Fatal error occurred, no output PDF file produced!   I previously posted this question and thought I solved it but am having the same problem again.   The latex code I am trying to execute is below:   \documentclass[11pt,twoside]{article} \usepackage{apacite} \nocite{*}  \begin{document}   % title page. Edit as needed for future publications.  \title{Research Proposal} \author{Teererai Marange \\ Department of Computer Science \\ University of Auckland\\ \texttt{t.marange@auckland.ac.nz}} \date{January 26, 2017} \maketitle % end title page.    % abstract goes here \newpage \begin{abstract} Abstract goes here  \end{abstract} \newpage   % table of contents  \tableofcontents \newpage   %begin introduction  \section {Introduction} Lorem Ipsum Doremifaso   %\cite{Nedakeyword} use to cite     %references our biliography. This must go whereever we use our bibtex references  \bibliography{references} \bibliographystyle{apacite}   \end{document}   and the bib file that I am using to build the bibliography is below:   @misc{wikipedia1,   title = "Scripting language",   author = "Wikipedia",   url = {http://en.wikipedia.org/wiki/Scripting_language},   year = 2014, }


I  built my computer about 3 months ago. It has a Seagate Barracuda 7200.12 1TB HDD (model ST31000524AS) on an AsRock 970 Extreme Mobo. My HDD was split into 3 partitions, a partition for windows 7 ultimate 64bit, a partition for ubunu 11.04, and a partition I use to store files. Last night I went to bed while my brother was playing Skyrim on my computer. He said there were no problems when he went to bed last night, but when I woke up this morning, I received the POST message "Reboot and Select proper Boot Device or Insert Bootable media in selected boot device and press a key". I tried switching both the power and sata connections on my CD drive, which still works., and that made no difference. I have no devices except for my monitor plugged in. What's more is that in the UEFI, it doesn't even show my HDD, and when i try to run windows 7 repair with the installation disk I have, there are no Operating Systems, partitions, or any other things to be repaired.  EIDT: After running seatools for dos off a cd, it instantly failed the tests because it could not access the drive. I had a friend put it in his rig and got the same results.

My computer no longer boots Windows or the installed operating system. Instead, I may get this error:  PXE-E61: Media test failure, check cable -or- Check cable connection!  PXE-M0F: Exiting PXE ROM.   and/or one of the following messages or similar:  Operating System not found  No boot device available- No bootable devices--strike F1 to retry boot, F2 for setup utility  No bootable device -- insert boot disk and press any key  No Boot Device Found. Press any key to reboot the machine  Default Boot Device Missing or Boot Failed  Reboot and Select proper Boot device or Insert Boot Media in selected Boot device   What does this mean and what can I do?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


I am new to the Entity Framework and while I have the basics down, I am stumbling over a specific syntax that I do not understand. The code works, but it is a bit of a "black box" to me and I fee a bit hampered by not understanding it.  I have a local private variable declared in my class as thus:  private clientexperienceEntities ceContext;   Farther in my code I instantiate it thus:  ceContext = new clientexperienceEntities();   This next line is the portion I am having difficulty with:  var client = ceContext.clients.First(a => a.ID == _ID);   Specifically the parameters to the First method, what exactly does a => a.ID == _ID mean? I know it is telling the context to find the first matching record based on the primary key value contained in the _ID value. But I don't understand where the 'a' comes from, or whatever other name I want to use, 'b' or 'cat'.   Is this syntax part of Linq? I am not even sure what exactly to search for to understand it.  As I said the statement works, and I can the manipulate the entity returned, but I just don't fully understand that parameter construct.

I have quickly read over the  documentation.  This kind of example has helped me to understand better, though:   delegate int del(int i); del myDelegate = x => x * x; int j = myDelegate(5); //j = 25   Still, I don't understand why it's such an innovation. It's just a method that dies when the "method variable" ends, right? Why should I use this instead of a real method?


Entropy  As per the second law of thermodynamics  "Order tends to disorder" And recently I watched a video series by minute physics   As per that with increasing time there will be increasing entropy. And therefore it is said:- As time progresses we will be left with just empty space, Thus based on the above information I would like to ask  1)thus the big crunch of the ending of the universe cannot take place! 2)how did the big bang infinitely small point come into play! ???

I recently read that:     What our current level of thermodynamics does tell us though is that if there is such a thing as a Big Crunch, the universe will look a lot different as it heads towards collapse than it did when expanding – the universe started in a state of low entropy and high order and will end in a state of high entropy and   low order.   But shouldn't the order be in a high state and hence entropy becomes a low state in the Big Crunch (assuming a closed universe)?  The reason I write this is because the gravitational forces in a closed universe are so strong they will cause gravitational collapse so the universe will shrink and go backwards, eventually through all the stages of the big bang and become a singularity once more.   It was my understanding that a singularity has a state of high order and low entropy. Have I got this the wrong way round?   If so; Can someone please explain why?


I'm currently studying over algorithms and my book uses Python for the code examples, but I'm not much of a Python expert. For quicksort, I ran into this code where I don't understand some of the lines:  def quickSort(array):     if len(array) < 2:         return array;     else:         pivot = array[0];         less = [i for i in array [1:] if i <= pivot]         greater = [i for i in array [1:] if i > pivot]         return quickSort(less) + [pivot] + quickSort(greater);  print (quickSort([1, 16, 22, 15, 7, 60, 65, 23]))   for the definition of less, what is the meaning of the snippet [i for i in array [1:] if i <= pivot] I understand that loops in Python go like "for book in books", but I don't understand what they mean by "i for i in array" and why is it all enclosed in square brackets?  Then at the return statement, why is [pivot] also enclosed in brackets?  I tried googling it but I didn't get any proper results, since I just don't know the names for this syntax.  Thank you!

What are the lesser-known but useful features of the Python programming language?  Try to limit answers to Python core. One feature per answer. Give an example and short description of the feature, not just a link to documentation. Label the feature using a title as the first line.  Quick links to answers:


I am getting values as True and False from back-end. I am trying to convert those values as real Boolean values, But I am getting always true with my approach. What would be the correct way to do this?  here is my try:  var x = Boolean("False".toLowerCase());  console.log( x ); //giving true instead of false.

Can I convert a string representing a boolean value (e.g., 'true', 'false') into a intrinsic type in JavaScript?  I have a hidden form in HTML that is updated based upon a user's selection within a list. This form contains some fields which represent boolean values and are dynamically populated with an intrinsic boolean value. However, once this value is placed into the hidden input field it becomes a string.  The only way I could find to determine the field's boolean value, once it was converted into a string, was to depend upon the literal value of its string representation.  var myValue = document.myForm.IS_TRUE.value; var isTrueSet = myValue == 'true';   Is there a better way to accomplish this?


I'm trying to set 'orderby = none' to my loop but it is not working. Here's my code:  $query = new WP_Query(array('showposts'=>2, 'post__in' => array(99,4,5,2,8,55), 'orderby'=>'none'));   Could anyone help me?  Thanks.

I have another database which stores post's IDs and I want do display them using WP_query to use the WP default pagination. I'm using orderby => none to preserve the original order, but the result reorders them by IDs.  $ids = array (60, 23, 78, 46, 105, 130)  $args = array (     'posts_per_page' => -1,     'post__in' => $ids,     'orderby' => 'none' );  $query = new WP_Query ( $args );  while ( have_posts() ) : the_post();     echo '<li>';     the_title();     echo '</li>'; endwhile;   Could anyone help me?  Thanks, Romulo De Lazzari


How do I change the color of the following line in bibliography?  \bibitem{Alexander} J. W. Alexander, \textit{Functions which map the interior of the unit circle upon simple regions}, Ann. of Math., \textbf{17}(1915-1916), 12-22.

I am editing a LaTeX paper with Emacs. Sometimes I want to make a block of texts less obvious (or less important to see). Instead of totally hiding them, they should still be there. Is there an easy way to embed them in something so that it changes color (to grey for instance)?  By the way, besides changing color, are there other ways to easily make a block of texts look less important?


I have long wondered what this port is on some harddrives?  I assume it may be some sort of serial or factory programming port. The top-most hard drive in the stack pictured below is an SSD, it has the same pins, just not broken out on a connector.

I have 4 HDDs here with me, from 3 different manufacturers, and all of them have the following 4-pin extra interface beside the SATA connector:    Looking on internet, I can see that it exists on all HDD devices, but not on SSDs:    On old IDE devices there was a similar interface used to select operational mode(master/slave), but on SATA it doesn't makes sense any more.... So, could someone tell me what this interface is intented to do and why it doesn't exists on SSDs? It is used on any practical situation?


I want a piece of code to be monospaced. So I do the following. Commands are highlighted in Eclipse. But as soon as I type \verbatim all inside and the color of the command itself become gray.  \begin{verbatim}   public class main {  public statik void main (string[] args){      for(int i = 0; i < arg.length; i ++){          System.out.println(args[i]);      }    }  };  \end{verbatim}   The following packages are included. \usepackage{verbatim} \usepackage{alltt}  What am I doing wrong?

I want my Java code to be typeset in a monospaced font, so I am using the verbatim environment. LaTeX commands are highlighted in Eclipse, but as soon as I use the verbatim environment everything inside and the color of the environment itself becomes gray.  \begin{verbatim}   public class main {  public static void main (string[] args){      for(int i = 0; i < arg.length; i ++){          System.out.println(args[i]);      }    }  };  \end{verbatim}   I'm using the verbatim and alltt packages.  Update 1.  MWE.  \documentclass[xcolor=dvipsnames]{beamer}  \mode<presentation> { \usetheme{CambridgeUS} \setbeamercovered{transparent} }  % Поддержка русского языка \RequirePackage[utf8]{inputenc} \RequirePackage[T2A]{fontenc} \RequirePackage[russian]{babel}  \RequirePackage{amsfonts}  \usepackage{algorithmic} \usepackage{mathptmx} \usepackage[scaled=.90]{helvet} \usepackage{courier} \usepackage{pst-node} \usepackage{pst-tree} \usepackage{auto-pst-pdf} \usepackage{color} \usepackage{colortbl} \usepackage{pstricks} \usepackage{verbatim} \usepackage{alltt} \usepackage{listings} \usepackage{animate} \usepackage{multimedia}  \title{Title}  \author{Name}  \institute{}  \date{\today}  \begin{document}  \begin{frame} \titlepage \end{frame}  \begin{frame} \frametitle{Outline} \tableofcontents \end{frame}  \section{Introduction}  \begin{frame}{Классификация по поколениям}  \begin{itemize}  \item Третьего поколения (высокоуровневые языки) - последовательность высокоуровневых конструкций (циклы, условные выражения, классы, интерфейсы, методы, процедуры, \ldots) \pause  \begin{exampleblock}{Пример}  \begin{centering}  Fortran, C, C++, C\#, Java, Lisp.  \begin{verbatim}  public class main { public statiс void main (string[] args){ for(int i = 0; i < arg.length; i ++){ System.out.println(args[i]); } } };  \end{verbatim}  \end{centering}  \end{exampleblock}\pause  \item Четвертого поколения (для конкретного применения) - последовательность инструкций конкретной предметной области \pause  \begin{exampleblock}{Пример} SQL, Postscript, XML, Mathlab. \end{exampleblock} \pause  \end{itemize}  \end{frame}  \end{document}


I can't figure out how on earth I get the tool back to normal mode..... right now it's stuck at whereever my cursor-thing is located.  I can switch between 4 modes, but none of them get's me back at how it was.  I tried deleting the program and reinstalling because I can't figure it out and it seems like such a small thing, probably some hotkey I miss-clicked. Anyways, after deleting and reinstalling it just starts up with the same UI :(  such a small thing can be so god damn annoying!

I think I accidentally pressed something to make it like this:    See how the XYZ arrows are at the 3D cursor instead of those vertexes I've selected?  How do I fix that? Whenever I select on a vertex or something, those blue, red, green arrows would always be where I selected, now it just keeps going to the 3D cursor.


I am developing a Java application with MySQL 5.6.13. A few days earlier I purchased a new laptop. I forgot to create a dump of application from previous laptop and instead I copied folder of my database(.ibd and .frm files) from datadir, when I installed MySQL 5.6.13 in new machine, and I had pasted my database(.ibd and .frm files) into datadir. The server is running fine. But in MYYOG IDE, when I open any of tables I am getting this error:

I have previously saved a copy of /var/lib/mysql/ddms directory ("ddms" is the schema name). Now I installed a new MySQL on a freshly installed Ubuntu 10.04.3 LTS by running apt-get install mysql-server, I believe version 5.1 was installed. After I copy the ddms directory under /var/lib/mysql, some of its tables work fine, these are the tables with an associated set of three files: a .frm file, a .MYD file and a .MYI file.  However, there are two tables with a different set of files: a .frm file and a .ibd file. These two tables didn't show up in the table list in phpMyAdmin. When I look at the error log, it says:  [ERROR] Cannot find or open table ddms/dictionary_item from the internal data dictionary of InnoDB though the .frm file for the table exists. Maybe you have deleted and recreated InnoDB data files but have forgotten to delete the corresponding .frm files of InnoDB tables, or you have moved .frm files to another database? or, the table contains indexes that this version of the engine doesn't support.   Please help with restoring these two tables. Thanks.


I know $(x^2+1)$ is prime ideal of $\Bbb Z[x]$ without being maximal ideal.  It can be easily proved  as quotient ring isomorphic to integral domain $\Bbb Z[i]$. My question is the generalization of this i. e.  if $(x^2+1)$ is replaced by arbitrary irreducible polynomial $f(x)$  over $\Bbb Z$.  Can anyone suggest me an outline of this proof ? Thank you.

I know how to show that if $(x)$ is prime ideal then $x$ irreducible element.   I know the converse is true if the ring is a UFD, but how to show it?     i.e. in a UFD, if $x$ is irreducible, then $(x)$ is a prime ideal.


having problems ending this loop when I type "quit"  String employee=" "; double pay; int hours;    while(employee != "quit")  {     System.out.print("Enter employee name: ");     employee = input.next();      System.out.print(employee);     System.out.println("\n"); }

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


I wrote a simple shell script in centOS and executing this from a cron job. My script looks like below:  #!/bin/bash  export PATH=$PATH:$(pwd)  echo $PATH echo $PATH| mail -s "PATH" me@gmail.com   And if I execute this script directly from terminal, it outputs below:  /sbin:/bin:/usr/sbin:/usr/bin:/vagrant   where /vagrant is the one I expected.  But if this is executed from cron job, it outputs (in my mail) like:  /usr/bin:/bin:/root   How I can set /vagrant properly when executed from a cron job?  UPDATE: I can set the /vagrant as PATH but it will work for me only. If I deploy my script to some other user, they have to make this directory. So I want to make the script like it will export the location from where it is running.  In my case , my script is running from /vagrant but the current directory is being exported as /root. This is the problem.  UPDATE: Sadly speaking, path was exported correctly but files from the /vagrant directory was reported to be not found.

How do I get the path of the directory in which a  script is located, inside that script? I want to use a Bash script as a launcher for another application. I want to change the working directory to the one where the Bash script is located, so I can operate on the files in that directory, like so: $ ./application


There is a small boat in a water tank and the boat is loaded with a huge piece of rock .The water tank is totally filled with water .If the rock is taken off from the boat and totally submerged in the tank water then what will happen to the water level of the tank?

This comes from a brain teaser but I'm not sure I can solve it:     You are in a rowing boat on a lake. A large heavy rock is also in the boat. You heave the rock overboard. It sinks to the bottom of the lake. What happens to the water level in the lake? Does it rise, fall or stay the same?   I'd say that the water level drops, because when you drop the stone in the lake, the water level rises according to the volume of the stone, BUT the water level decreases by a volume of water weighting the stone's weight, when you take it off the boat.  Is that correct?


I've got a distance matrix with entities with an Input ID, target ID, and distance. I'm looking for a way to find out the relative direction of the input ID columnn to the target ID column.

I just want to add direction (Bearing: i.e N 25 35 E) and Distance (Length: 125 meters) as my new field in polyline/line data. Is there a Plugin to generate these fields? I tried to used "Export/Add geometry columns" in my line data, but only "Length" value was added.


I hit something that now makes accented vowels come up whenever I hit the apostrophe key. I don't know how to fix it.

in Windows XP, when I type an apostrophe ', or  ", no character is displayed.  If I type another character, the apostrophe or dumb quote and the next character appear at the same time.  This happens with double quotes ", apostrophes ' and tilde ~ characters.  What could possibly be causing this?  This occurs in all applications I have tested - wordpad, firefox, ms word etc.


I have tried for the power series but when suppose the solution is $y(x)=\sum _{n=0}^\infty a_nx^n$ appeared sums dependents of $a_n$, $a_{n+2}$ and $a_{n-1}$ and this is not possible.  assume $y(x)=\sum _{n=0}^\infty a_nx^n$ solution,  so   $ y'(x) = \sum_{n=1}^\infty na_nx^{n-1}$ and $y''(x)=\sum_{n=2}^\infty n(n-1)a_nx^{n-2}$  then the equation $(1+x^2)y'' - 6xy=0$ is:  $\sum_{n=2}^\infty n(n-1)a_nx^{n-2}+ \sum_{n=2}^\infty n(n-1)a_nx^{n} - \sum_{n=0}^\infty 6a_nx^{n+1}=0$  We can shift the dummy indices, taking k=n−2 in the first sum, k=n in the second sum and k=n+1 in the last sum:  $\sum_{k=0}^\infty(k+2)(k+1)a_{k+2}x^k+\sum_{k=2}^\infty k(k-1)a_{k}x^k- \sum_{k=1}^\infty6a_{k-1}x^k=0$  taking $k=0$ and $k=1$, we have $2a_{2}=0$ so $a_2=0$ and $ 6a_3x-6a_0x=0$ so $a_3=a_0$. For $k>1$ we have  $(k+2)(k+1)a_{k+2} + k(k-1)a_k - 6a_{k-1}=0$  so  $a_k=\frac{ 6a_{k-1} -(k+2)(k+1)a_{k+2} }{k(k-1)}$    and $a_2=0, a_3=a_0$.  but this recorrence not determines the solution cause $a_k$ depends of $a_{k-1}$ and $a_{k+2}$.


I have a 48*48 png file that I'm trying to scale up. Even though I converted it to a Smart Object, when I scale it up, Photoshop mixes the color of adjacent pixels to make more pixels for the transformed sized which is not what I want.  Here's a screenshot of the image:   When I'm scaling it, the preview does not show mixed colors:   But when I hit enter, Photoshop mixes the colors:   Which as you can see looks very blurry. How can I achieve the the second photo?  Basically I want to tell Photoshop to treat the layer as a Vector and not an Image.  Here's the original png file if you want to download:

How to resize an image or selection without resampling the pixels? I have some pixel art that I want to enlarge without losing the hard, non-anti-aliased, pixel edges. In other words, 1px should become 4px of the same color— fake big pixels. Is there any way to achieve this procedurally?  Example (of what I don't want):  before resize:    after resize:    Open to other tools/methods beyond photoshop, thanks in advance.


Can I install only UBUNTU as an operating system and use Windows Office and the work program? Would this minimize or eliminate the virus problem we have with windows?

I want to know how to install Microsoft Office (specifically, Microsoft Office 2010) in Ubuntu?   I am a die hard fan of MS Office and I want to know if there is a way I can use it in Ubuntu.


If you want to find b such that $a \equiv b \pmod{11}$, you do (assuming a has 4 digits, for example):  $$a_4*10^4+a_3*10^3+a_2*10^2+a_1*10^1+a_0*1$$  Then you calculate mod 11 for each product then add everything and do mod 11 again, like you do with other numbers.  The problem is that my theory book states that $10^k\equiv (-1)^k\pmod{11}$. I don't get this. How isn't the remainder of the division of 10 by 11 10? I thought that to calculate the remainder when your divisor is greater than the dividend, you to d*0 and your remainder is your dividend. For example, 10/11 = 0*11+10. Have I been doing it wrong?

I found two examples that I'd like to understand:  Example 1: Find $112358132134 \mod 9$.  Solution is: $1+1+2+3+5+8+1+3+2+1+3+4 \mod 9 = 7 \mod 9 = 7$  Example 2: Find $62831853 \mod 11$.  Solution is: $(-6)+2+(-8)+3+(-1)+8+(-5)+3 \mod 11 = -4 \mod 11 = 7$  My question is: Based on what property we sum the digits of the number ( as Example 1) or subtract (as Example 2)?


I have a friends previously xp machine, that is about 10 years old. It only boots through CD but I've made two different CD-R's with Lubuntu and it won't take. I do get mini-iso to load, and have installed Lubuntu, but is there a more efficient desktop than Lubuntu-desktop?   The computer has 256mb RAM, and when I had Lubuntu-Desktop installed half of it was used up by the desktop. The machine loads Chrome well enough and plays youtube videos barely, but getting movies to play through xbmc/vlc is almost impossible (even logging out and logging in directly to xbmc).   So is there any other desktop I can install other than sudo apt-get install lubuntu-desktop that would allow the computer to browse/watch movies.

My computer has 1GB ram and a very end low graphics card, but I don't know how much power it has.  Unity is very slow on my computer, and I saw that there are many desktop environments which are much lighter and faster, even for a slow computer.  So, what's the lightest desktop environment?


suppose I have some classes  class word{ public:     string term;     word(){}     word(string s){term = s;} };  class cont{ public:     word** terms;     cont(){};     cont(int n){terms = new word*[n];} };   suppose now I initialize a cont and its attribute terms like this  cont c(5); c.terms[0] = new word("a"); c.terms[1] = new word("b"); c.terms[2] = new word("c");   how should I delete the elements of this array? one by one? all at once? I didn't get how the delete/delete[] syntax works for pointer of pointers.

So I have a pointer to an array of pointers.  If I delete it like this:  delete [] PointerToPointers;   Will that delete all the pointed to pointers as well?  If not, do I have to loop over all of the pointers and delete them as well, or is there an easier way to do it?  My google-fu doesn't seem to give me any good answers to this question.  (And yeah, I know I need to use a vector.  This is one of those "catch up on C++" type assignments in school.)


I'm creating a location based site and was debating between two styles of writing urls. The first shows the name of the restaurant followed by the city its located in.  example.com/hillstone-new-york   The other would be a sub-directory in the form of the city and state followed by just the name of the restaurant:  example.com/new-york-ny/hillstone   From an SEO and overall usability perspective which of the two would be most advantageous?

Let’s take an example of a movie site. So a well structured set of URLs for this site can be:     Movie page - example.com/movies/the-matrix Review for movie - example.com/movies/the-matrix/reviews Trailers for movie - example.com/movies/the-matrix/trailers Specific trailer for movie - example.com/movies/the-matrix/trailers/trailer1   where it’s possible to navigate the resource even by directly deleting/appending resource name seamlessly.  For SEO purpose I read somewhere that for two given pages, Google will prefer the page which have search query up in the URL hierarchy among other things. So for the given 2 URLs and the query "the matrix trailer"    example.com/movies/the-matrix/trailers example.org/trailers/the-matrix/    `     Google might prefer the second URL as it has the keyword "trailer" at first level comparing to first URL which has "trailer" at 3rd level (a resource deeper in URL hierarchy may be less important).    If it is correct, one may be tempted to create URL hierarchy somewhat like      Movie page - example.com/movies/the-matrix Review for movie - example.com/reviews/the-matrix/ Trailers for movie - example.com/trailers/the-matrix/ Specific trailer for movie - example.com/trailers/the-matrix/trailer1     which will break the seamless hierarchy.    My questions are:   Is it true that resource deeper in URL hierarchy is tend to be less important when comparing to URLs of other site?   Is sacrificing meaningful, seamless hierarchy worth for this SEO optimization?


I've got an issue with an exercise in Perl. I would like to scan huge textfiles with Regex. Everything works just fine, but when i've found the Stop Codon at the nested while loop, the first while loop takes over, but it should continue from the last position of the found stop codon. Could someone give me a hint where to look?  I've tried the last statement, but that doesn't work.  use strict; use warnings; $|=1;  sub read_Fasta {     my ($filename) = @_;   open (FIN, "<$filename") or die "Bestand $filename niet te openen\n";   my $sequence = "";   while (my $line = <FIN>) {       if ($line =~ /^\s*$/) {       next;     } elsif ($line =~ /^\s*#/) {       next;     } elsif ($line =~ /^>/) {       next;     } else {       $sequence .= $line;     }   }   close (FIN);   $sequence =~ s/\s//g;   return ($sequence); }  print "Het vinden van ORF's in een organisme.\n\n"; print "Bestanden worden geladen vanuit de locatie C:\\ \n"; print "Voer bestandsnaam (inclusief extensie) in:\n"; my $path = <STDIN>; chomp ($path); $path = "C:\\$path";   my $DNA_seq = &read_Fasta($path); chomp ($DNA_seq); print "De DNA sequentie is gevonden\n";  print "voer de minimale lengte van de ORF in: \n";  my $minlengte_ORF = <STDIN>; chomp ($minlengte_ORF);  if ($minlengte_ORF =~ /^[0-9]+$/ && $minlengte_ORF >= 1) { print "De gevonden ORF's zijn:\n";  while(($DNA_seq =~ (/[ATG]TG/ig))) {     my $startcodon = $&;     my $pos_startcodon = pos($DNA_seq);     $pos_startcodon -= 2;     my $stringvanafstart = $';     while($stringvanafstart =~ (/(TAA)|(TAG)|(TGA)/ig)){         my $stopcodon = $&;         my $lengte_ORF = length ($`);         $lengte_ORF += 3; #vanwege meetellen startcodon.         my $pos_stopcodon = pos ($stringvanafstart);         $pos_stopcodon -= 2;         if($lengte_ORF % 3 == 0){             if($lengte_ORF >= $minlengte_ORF)   {             print "de positie van het startcodon $startcodon is $pos_startcodon \n";             print "de positie (vanaf het startcodon) van het stopcodon $stopcodon is $pos_stopcodon \n";             print "de totale lengte van de ORF bedraagt $lengte_ORF basen\n";             #Go back to first while loop, exclude everything till endposition.  } else{     next; } } else{     next; } } } } else{     print "Invoer is onjuist, minimale lengte mag alleen getallen bevatten en/of moet groter zijn dan 0! \n"; }

I'm trying to use a break statement in a for loop, but since I'm also using strict subs in my Perl code, I'm getting an error saying:     Bareword "break" not allowed while   "strict subs" in use at ./final.pl   line 154.   Is there a workaround for this (besides disabling strict subs)?  My code is formatted as follows:  for my $entry (@array){     if ($string eq "text"){          break;     } }


Me and my highschool teacher have argued about the limit for quite a long time.  We have easily reached the conclusion that integral from $0$ to $x$ of $e^{-t^2}dt$ has a limit somewhere between $0$ and $\pi/2$, as we used a little trick, precisely the inequality $e^t>t+1$ for every real $x$. Replacing $t$ with $t^2$, inversing, and integrating from $0$ to $x$, gives a beautiful $\tan^{-1}$ and $\pi/2$ comes naturally.  Next, the limit seemed impossible to find. One week later, after some google searches, i have found what the limit is. This usually spoils the thrill of a problem, but in this case it only added to the curiosity. My teacher then explained that modern approaches, like a computerised approximation, might have been applied to find the limit, since the erf is not elementary. I have argued that the result was to beautiful to be only the result of computer brute force.  After a really vague introduction to fourier series that he provided, i understood that fourier kind of generalised the first inequality, the one i have used to get the bounds for the integral, with more terms of higher powers.  To be on point: I wish to find a simple proof of the result that the limit is indeed $\sqrt\pi/2$, using the same concepts I am familiar with. I do not know what really Fourier does, but i am open to any new information.  Thank you for your time, i appreciate it a lot. I am also sorry for not using proper mathematical symbols, since I am using the app.

How to prove  $$\int_{0}^{\infty} \mathrm{e}^{-x^2}\, dx = \frac{\sqrt \pi}{2}$$


I am trying to work with census block data at the moment, and I want each of the 4178 blocks making the entire state to be their own shapefiles. How can I do this without having to manually query or iterate through each feature and turn each census block into a shapefile with the "Extract Data" function?

I have a feature class with over 2,000 features, and I need to make them all individual feature classes based on a field.   Is there a way to do this?


I want to create a sld style in road lines in qgis. the style has a fill and a border symbology. Everything is ok in qgis but i have an issue with the style in geoserver.  The lines do not merge at the joins. How do i join lines with sld style? I use the sld for three layers in geoserver (I have three layers in a group layer). The other solutions like  work for just one layer with filtering. <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:se="http://www.opengis.net/se" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink">   <NamedLayer>     <se:Name>test</se:Name>     <UserStyle>       <se:Name>test</se:Name>       <se:FeatureTypeStyle>         <se:Rule>           <se:Name>Single symbol</se:Name>           <se:LineSymbolizer>             <se:Stroke>               <se:SvgParameter name="stroke">#000000</se:SvgParameter>               <se:SvgParameter name="stroke-width">14</se:SvgParameter>               <se:SvgParameter name="stroke-linejoin">round</se:SvgParameter>               <se:SvgParameter name="stroke-linecap">round</se:SvgParameter>             </se:Stroke>           </se:LineSymbolizer>           <se:LineSymbolizer>             <se:Stroke>               <se:SvgParameter name="stroke">#ffffff</se:SvgParameter>               <se:SvgParameter name="stroke-width">11</se:SvgParameter>               <se:SvgParameter name="stroke-linejoin">round</se:SvgParameter>               <se:SvgParameter name="stroke-linecap">round</se:SvgParameter>             </se:Stroke>           </se:LineSymbolizer>         </se:Rule>       </se:FeatureTypeStyle>     </UserStyle>   </NamedLayer> </StyledLayerDescriptor>   I tested it with just one layer and faced the same problem.

Is it possible to have an sld blend the symbology in the lines together just as QGIS and ArcGIS allow using symbol levels?  In QGIS I can use symbol levels on the line layer and have this appearance:    currently in sld it has this appearance:   I was hoping to have the appearance of the individual lines blending together as one. The intent is to apply the sld to a geoserver layer. Currently I am only using rules like the one listed below.      <Rule>       <MinScaleDenominator>2500</MinScaleDenominator>       <MaxScaleDenominator>12500</MaxScaleDenominator>       <LineSymbolizer>         <Stroke>           <CssParameter name="stroke">#ffe14c</CssParameter>           <CssParameter name="stroke-width">3</CssParameter>           <CssParameter name="stroke-linejoin">round</CssParameter>           <CssParameter name="stroke-linecap">round</CssParameter>         </Stroke>       </LineSymbolizer>     </Rule>


In a pipeline such as command1 | command2,    are the commands run simultaneously (i.e. have the same lifetime), or  command2 starts to run at the time command1 exits, or something else?   My question arises when I heard that the commands' processes form a process group. If they don't have the same lifetime, isn't the process group of the commands' processes meaningless?

I've never really thought about how the shell actually executes piped commands. I've always been told that the "stdout of one program gets piped into the stdin of another," as a way of thinking about pipes. So naturally, I thought that in the case of say, A | B, A would run first, then B gets the stdout of A, and uses the stdout of A as its input.    But I've noticed that when people search for a particular process in ps, they'd include grep -v "grep" at the end of the command to make sure that grep doesn't appear in the final output. This means that in the command ps aux | grep "bash" | grep -v "grep" it is implied that ps knew that grep was running and therefore is in the output of ps. But if ps finishes running before its output gets piped to grep, how did it know that grep was running?   flamingtoast@FTOAST-UBUNTU: ~$ ps | grep ".*" PID TTY          TIME CMD 3773 pts/0    00:00:00 bash 3784 pts/0    00:00:00 ps 3785 pts/0    00:00:00 grep


I want a easy-to-use, drag and drop based website design/development IDE for frameworks like bootstrap, foundation, etc...

Bootstrap is a great framework, and I want know if there is a tool that gives you the possibility of dragging html components, re-sizing and moving them, changing colours, all while generating the bootstrap html code.  I don't want to use Dreamweaver because you need to go and add classes and IDs to the html, which could be a pain sometimes.


For example, R (R (R (R (R (m))))) = m where R(m) denotes the RSA encryption with public keys N and e.  What property of the RSA keys would cause this?

If I perform RSA on my input 5 times, I get the original input back out. Why is it that often, iterating RSA encryption just a few times cycles yields back the original value, when the public modulus N is small?


Good evening everybody! The "setup": My "online PC": Running Win10, I don't want to bother with installing another OS on that machine. My "offline PC": Running ubuntu 15.04 32bit. It has never been connected to the internet and I want to keep it that way. The problem / question I want to download software on my online windows PC, transfer it to the offline ubuntu PC (with a USB-drive or whatever) and then install it there. I have only found tutorials and infos for running two ubuntu PCs and "exchanging" software between them, but not really anything for downloading stuff on a windows machine and then installing it on a ubuntu machine. And like I said, I don't want to set up a second OS on that "online PC". So, is there a (noob-friendly) way to do this? (I have almost 0 experience with ubuntu or linux in general, I know that you can use "get-apt" to install software on ubuntu if an internet connection is available, or something like that) Why? I only have one PC (a laptop actually) that is connected to the internet, all my other devices are offline, for privacy / security reasons. (I know, I am a bit paranoid, and yes, I know that beeing paranoid and running Win10 is a bit of a contradiction)

Similar questions have been asked already but none of them have solved my problem:  I need to install a package on a standalone Linux box, specifically kdbg. Now I tired the command   sudo apt-get install --download-only kdbg   on a box connected to the internet, but it only downloads the package and dependencies that I don't have installed. Some of those dependencies (that command downloaded 117 total packages) have sub dependencies, and those sub dependencies have even more dependencies and I'm going down a rabbit hole trying to fish those packages out of the repo.  Now I tried using a couple of other commands that supposedly will download all dependencies, even the ones I have installed. I've tried    apt-get download PACKAGE && apt-cache depends -i PACKAGE | awk '/Depends:/ {print $2}' | xargs  apt-get download    and    apt-get download $(apt-rdepends <package>|grep -v "^ ").   Command one only downloads the direct dependencies, like the ones you'd find on packages.ubuntu.com if you were to search kdbg, and command two gives me the error message:  Can't select candidate version for package <package> as it has no candidate   for several different packages.  So, to restate my question, is there a way for me to download kdbg, all of its dependencies, all of those dependencies' dependencies, so on and so forth? Or perhaps I am using one of the above commands incorrectly?  Thanks in advance.


I have downloaded the Ubuntu 14.04 ISO through Firefox, do I have to save it to a disk? Or how do I get it to just run? I have changed the repositories to [...]old-release[...] but I still can't get any update. When I run /etc/apt/sources.list I get a permission denied error.

What are the different ways I can use to upgrade Ubuntu from one release to another?


How do I convert a a string of datetime into datetime format in python so that it can be compared with another date?  string_date = "2013-09-28 20:30:55.78200" abc = datetime.datetime.now()  if abc  > string_date :     print True

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


Suppose $G$ is a set with a binary operation such that:  (Associativity) For all $a, b, c \in G$, $(ab)c = a(bc)$. (Identity) There is $e \in G$ such that, for all $a \in G$, $ae = ea = a$. (Left inverse or right inverse) For all $a \in G$, $ba = e$ for some $b \in G$ or $ac = e$ for some $c \in G$.  Does this imply that every element $a \in G$ has an inverse, i.e. an element that is both a left and right inverse? That is, for all $a \in G$, is there $a’$ such that $aa’ = a’a = e$? In other words, is $G$ a group?

Related Link:    Reference: Fraleigh p. 49 Question 4.38 in A First Course in Abstract Algebra     I will present my proof (distinct from those in the link) for critique and then ask my question.  $G$ is a set and $ \times $ is an associative binary operation.  Suppose that there exists a $e \in G$ such that, for all $a \in G$, $ea = a$ and $a^{-1}a = e$ for some $a^{-1} \in G$.  Show that for the same $e$, $ae = a$ and $aa^{-1} = e$.  $a^{-1}(aa^{-1})a = (a^{-1}a)(a^{-1}a) = ee = e = a^{-1}a = a^{-1}(a^{-1}a)a$  Since $a^{-1} \in G$, it has a left inverse; apply it to both ends, and we have $(aa^{-1})a = (a^{-1}a)a$.  As a result, $ae$ = $a(a^{-1}a) = (aa^{-1})a = (a^{-1}a)a = ea$.  For the right inverse, start with $aa^{-1} = a(a^{-1}a)a^{-1} = (aa^{-1})(aa^{-1})$.  Since $\times$ is a binary operation, $aa^{-1} \in G$ and has a left inverse; apply it to both ends, and we have $e = aa^{-1}$.  In second comment following the question in the link, Mr. Derek Holt pointed out that the requester did not word his/her question correctly.  Specifically, the identity in the second axiom is not well-defined.     Let $(G, *)$ be a semi-group. Suppose    1. $ \exists e \in G$ such that $\forall a \in G,\  ae = a$;    2. $\forall a \in G, \exists a^{-1} \in G$ such that $aa^{-1} = e$.    How can we prove that $(G,*)$ is a group?    This formulation makes the same technical error as many textbooks. The $e$ in your second axiom is not well-defined. "But obviously it's intended to be the same $e$ as in the first axiom" you reply. But the first axiom does not necessarily specify a unique element $e$. So should we interpret the second axiom as meaning "for some $e$ as in 1" or "for all $e$ as in 1"? –  Derek Holt Sep 17 '11 at 15:31   Was he saying that if, in axiom 1, we have $ae_1 = a, ae_2 = a$, but $e_1 \neq e_2$,  when we get to axiom 2, do we have $aa^{-1} = e_1, aa^{-1} = e_2$, or two different inverses so that $aa_1^{-1} =  e_1, aa^{-1}_2 = e_2$?  I think my wording eliminated the ambiguity.  It does not imply that $e$ is unique, but if $e$ is a left identity and produces left inverses, then it is also a right identity and produces right inverses. I tried really hard on this one; please kindly point out my mistakes.


s = "June 19, 2010"   How do I conver that to a datetime object?


Is it possible to tell if a terminal is SSH'd into a machine ? some kind of command to do this for me and execute something if I am SSHd?

I want to detect from a shell script (more specifically .zshrc) if it is controlled through SSH. I tried the HOST variable but it's always the name of the computer which is running the shell. Can I access the hostname where the SSH session is coming from? Comparing the two would solve my problem.  Every time I log in there is a message stating the last login time and host:  Last login: Fri Mar 18 23:07:28 CET 2011 from max on pts/1 Last login: Fri Mar 18 23:11:56 2011 from max   This means the server has this information.


Sample script to copy /tmp/template.txt file to any directory as specified in $1. copy_script.sh if [ $# -eq 0 ]; then     echo No Argument     echo "Usage: $0 <path>" else     cp /tmp/template.txt $1 fi  Before wolf@linux:~$ ls -lh total 4.0K drwxrwxr-x 2 wolf wolf 4.0K Dis  31 10:08 'another directory' wolf@linux:~$   Testing script wolf@linux:~$ copy_script.sh  No Argument Usage: /home/wolf/bin/copy_script.sh <path> wolf@linux:~$   Testing code with current path wolf@linux:~$ copy_script.sh .  After (it works) wolf@linux:~$ ls -lh total 8.0K drwxrwxr-x 2 wolf wolf 4.0K Dis  31 10:08 'another directory' -rw-rw-r-- 1 wolf wolf   12 Dis  31 10:26  template.txt wolf@linux:~$   Then, I test with another directory which has space in it. This time, it doesn't work anymore even though the directory has been put it quote (both single/double quote doesn't work). wolf@linux:~$ copy_script.sh 'another directory' cp: target 'directory' is not a directory wolf@linux:~$  wolf@linux:~$ ls -lh another\ directory/ total 0 wolf@linux:~$   How do I make this work with directory name with space in it?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


My company has tons of disparate databases - Oracle, SQL Server, and (shudder) MS Access - lying around, and the CIO wants to bring in a third party to track them all down and document them. But, rather than having them just give us a big ole ERD, my manager (who is writing the project's requirements) wants to specify that the findings be given to us in some useful format. We were thinking Visio, but that's just a big ERD that's zoom-able. Any suggestions?

I find that most of my clients are not documenting their databases at all and I find that pretty scary. To introduce some better practice, I would like to know what tools/process people are using.   How do you document your database? (SQL-Server)  What tool do you use?  Documentation Storage Format for database schema/meta-data?   Word documents Excel spreadsheet Plain Text  Documentation process or policies?   I am not talking about reverse engineering / document a existing database, but mainly on the documentation best practices while you develop your system/database.


i Want to validate a text field in keyup event .  in the field it should accept money type decimal like   (12.23) (.23) (0.26) (5.09) (6.00)  if i enter some wrong value then it should return to the previous value and remove the wrong one

What is the regular expression for a decimal with a precision of 2?  Valid examples:  123.12 2 56754 92929292929292.12 0.21 3.1   Invalid examples:  12.1232 2.23332 e666.76   The decimal point may be optional, and integers may also be included.


On a linux system what is the purpose of the .profile file I know a small amount on this topic but I need an explanation of the purpose of the .profile file and a explanation of the contents.

# ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package.  # the default umask is set in /etc/profile; for setting the umask # for ssh logins, install and configure the libpam-umask package. #umask 022  # if running bash if [ -n "$BASH_VERSION" ]; then     # include .bashrc if it exists     if [ -f "$HOME/.bashrc" ]; then     . "$HOME/.bashrc"     fi fi  # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then     PATH="$HOME/bin:$PATH" fi   Can anyone explain the contents of the ~/.profile file? So when you enter into the ~/.profile file what does all the writing mean?


I intend to travel to the US for a month, and I would really like to use a lot of data traffic during the trip, for browsing, maps, Skype calls, etc. How can I do that? Should I buy a SIM? Do I have to order one in advance, or are data SIMs readily available in the airport? Is there any website that can show me competing options and maybe compare them?  Also, I guess SIMs are linked to one specific carrier. Does it matter which cellular carrier I choose, or do all have similar coverage and do all support GSM phones? Does it change from state to state? e.g. do some of the more states, like Hawaii, have limited coverage for some of the carriers?  In short I am clueless here, and would really appreciate any information about this.  EDIT: meanwhile I have found , seems very useful though I'm not sure how reliable or up-to-date this page is.

Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs?


I had Windows 8 installed on my laptop. I then installed Ubuntu 12.04 along on separate partition. After a few days I mistakenly deleted the Ubuntu partition. Now I every time I start my laptop it don't show boot options (F2 & F12). It just gets stuck at a screen showing   unknown file name  grub rescue>   It's not booting either into Windows nor into Ubuntu.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


With feature scaling we just change representation of the data. This can make our model run faster but how this can improve accuracy? It is the same data after all.  When I train my SVM without feature scaling I get an accuracy of %61, after MinMax scaling from sklearn accuracy increases to %96. How is this possible even we work with same data and use the same model?

My understanding is that when some features have different ranges in their values (for example, imagine one feature being the age of a person and another one being their salary in USD) will affect negatively algorithms because the feature with bigger values will take more influence, is it a good practice to simply ALWAYS scale/normalize the data?  It looks to me that if the values are already similar among then, then normalizing them will have little effect, but if the values are very different normalization will help, however it feels too simple to be true :)  Am I missing something? Are there situations/algorithms were actually it is desirable to let some features to deliberately outweigh others?


I have a dictionary with several items.   d = {} d['name'] = 'Umair' d['field'] = 'Programmer' FunctionHere(name = d['name'], field = d['field'])   How can I pass that dictionary as named parameters without writing each value?

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


I apologize in advance if this does not fit the scope of this forum. However I'd like to bring up the question if anything is known about Ubuntu compatibility for this bundled desktop computer: Acer Aspire Revo RN86 Mini-PC Intel i5-9400T 6x 1,80GHz, 8GB RAM, 256GB SSD

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


I need to create a system whereby I can scan a barcode and every picture taken after that code is scanned is sequentially named with that barcode and then when the next barcode is scanned, the images are named with that code etc...  As an example SCAN: CODE12345 PIC 1 CODE12345_001 PIC 2 CODE12345_002  SCAN: CODE56789 PIC 3 CODE56789_001 PIC 4 CODE56789_002  ... .. .  Any help would be totally appreciated.  Thanks

I need a DSLR camera with a barcode scanner for on-site tours photography, which means it needs to be untethered! The image would have to contain the barcode scanned information in the image metadata or in the name itself.  I've seen solutions like, Foolography and a $2600 Canon Studio Edition launched in 2010. But I'm not sure of either those products!  So I'm asking the gurus here how I can get this working, which camera would I need and any accessory necessary?  I'm trying to recreate something like I saw the on-site volume photographers do in Disney's parks.


Is there a way with latex to enable Adobe Reader Extended PDF Features? I am creating a pdf form using hyperref/eforms and want users to be able to save the data entered into the form locally, and to be able to do so with older versions of Adobe reader.  I don't want to require users to email the form to me. I just want the data entered into the form to be able to be saved locally and retain all form editing capability.

I am using the eforms package in order to build pdf fillable forms. However there is something I haven't found yet, which Adobe product do I need to purchase in order to save the edited forms? Does anyone know if I can use something for free?  I would like to create the forms using LaTeX and then offer them through our website to our customers. They should be able to complete them with their details, save them and send them back to us. We don't want our customers to buy anything extra in order to fill in a form. We just want them to open the pdf using Acrobat Reader, edit it and then send it to us.


I am trying to find the non-negative integer solutions of the following exponential equations: $2^a=3^b+1\quad\color{blue}{(1)}$ $3^a=2^b+1\quad\color{blue}{(2)}$ I have found a way to obtain the non-negative integer solutions of these two exponential equations, but I think there exists a most refined and shorter way. Could you help me to get it?  I am going to solve the equation $\;(1)\;\;2^a=3^b+1\;$. If $\;b=0\;$ then $\;a=1\;.$ If $\;b\ge 1\;$ then $\;a\;$ is even. I prove it by contradiction. If $\;a\;$ were odd, it would exist $\;\alpha\in\mathbb{N}_{0}=\mathbb{N}\cup\{0\}$ such that $\;a=2\alpha+1.$ Consequently, $\;2\cdot 4^\alpha=3^b+1\;,$ hence $\;2\left(3+1\right)^\alpha=3^b+1\;.$ So there exists $\beta\in\mathbb{N}_{0}\;$ such that $\;2\left(3\beta+1\right)=3^b+1\;,$ that is $\;1=3\left(3^{b-1}-2\beta\right),$ but the last equality contradicts the fact that $\;1\;$ is not a multiple of $\;3\;.$ Therefore $\;a\;$ is even otherwise it would lead to a contradiction. Since $\;a\;$ is even, there exists $\;\alpha\in\mathbb{N}\;$ such that $\;a=2\alpha\;,\;$ so the equation $\;(1)\;$ turns into the following one: $4^\alpha-1=3^b\;,$ $\left(2^\alpha+1\right)\left(2^\alpha-1\right)=3^b\;.$ Hence, $\begin{cases}   2^\alpha+1 &= 3^h\\   2^\alpha-1 &= 3^{b-h} \end{cases}\quad$ where $\;h\in\mathbb{N}\;$ and $\;h\le b\;.$ By subtracting the previous equalities, we get that $2=3^{b-h}\left(3^{2h-b}-1\right)\;.$ Hence $\;h=b\;$ and $\;3^b-1=2\;$. So $\;b=1\;,\;\alpha=1\;$ and $\;a=2\;.$ Consequently the non-negative integer solutions of the equation $(1)$ are $\;a=1\;,\;b=0\;$ and $\;a=2\;,\;b=1\;.$  Now I am going to solve the equation $\;(2)\;\;3^a=2^b+1\;$. Since $\;a\in\mathbb{N}\;$ there exist $\;n\in\mathbb{N}_{0}\;$ and $\;a_1\in\mathbb{N}\;$ ($a_1$ odd) such that $\;a=2^n a_1\;.$ So the equation $(2)$ turns into the following one: $\left(3^{2^n}\right)^{a_1}-1=2^b\;,$ $\left(3^{2^n}-1\right)\cdot\left[1+3^{2^n}+\left(3^{2^n}\right)^2+\ldots+\left(3^{2^n}\right)^{a_1-1}\right]=2^b.$ Since inside the square brackets there is a sum of a number odd $\;a_1\;$ of addends which are all odd, the sum inside the square brackets is odd, so the sum has to be equal to $\;1\;$ otherwise it could not be a factor of $\;2^b\;,\;$ consequently $\;a_1=1\;$ and $\;a=2^n\;.$ $3^{2^n}-1=2^b\;.$ If $\;n=0\;$, then $\;a=1\;$ and $\;b=1\;.$ If $\;n\ge1\;$ the last equality turns into the following one by decomposing the left-hand side into factors: $\left(3^{2^{n-1}}+1\right)\left(3^{2^{n-2}}+1\right)\cdots\left(3^{2^1}+1\right)\left(3^{2^0}+1\right)\left(3^{2^0}-1\right)=2^b\;,$ Since $\;\left(3^{2^1}+1\right)=2\cdot 5\;$ and $\;5\;$ is not a factor of $\;2^b\;$, it follows that $\;n-1<1\;,\;$ hence $\;n=1\;,\;a=2\;$ and $\;b=3\;.$ Consequently the non-negative integer solutions of the equation $(2)$ are $\;a=1\;,\;b=1\;$ and $\;a=2\;,\;b=3\;.$  Could you help me to get a most refined and shorter solution to the two exponential equations?

Consider the equation $$|2^x-3^y|=1$$ in the unknowns $x \in \mathbb{N}$ and $y \in \mathbb{N}$. Is it possible to prove that the only solutions are $(1,1)$, $(2,1)$ and $(3,2)$?


Taylor Series of $f(x) = \sqrt{x}$ about $c = 1$  I've tried doing this problem but stuck at finding a pattern..  Work:  $$T_n = \sum^\infty_{n=0}\frac{f^n(c)}{n!}(x-c)^n = f(a) + \frac{f'(c)}{1!}(x-a)^1 + \frac{f''(c)}{2!}(x-a)^2+... $$  So $f(x) = \sqrt{x}$  $$ f'(x)=\frac12x^{-\frac12}$$ $$ f''(x)=\frac{-1}4x^{-\frac{3}2}$$ $$ f'''(x)=\frac{3}8x^{-\frac{5}2}$$ and  $$f(1) = 1$$ $$f'(1) = \frac12$$ $$f''(1) = -\frac14$$ $$f'''(1) = \frac38$$  So far I know that its alternating so $(-1)^n$  But I'm having trouble with the fractions since I thought it would have been $\left(\frac12\right)^n$ but the $\frac38$ wont work with that. Have I done something wrong so far or am I just not thinking of this the right way?  So I've noticed that starting from the $n=3$ the numerator is $3$ then $3*5$ then $3*5*7$ and so on... but how do I account for the first 3 terms? (n = 0, 1, 2)  I learned that I can exclude it by simply taking it out and adding it from where the pattern starts to work so...  $$1+\frac{x-1}{2}-\frac{(x-2)^2}{8} + \sum^\infty_{n=3}something$$

I seem to be stuck defining an alternating sequence of terms in this series because $f^{(0)}(x)=f(x)$ is positive, as well as $f'(x)$, but then every other term starting with $f''(x)$ is negative. How can I define $f^{(n)}(x)$ given this?  \begin{array}{ll}     f(x)=x^{\frac{1}{2}} & f(1)=1 \\     f'(x)=\frac{1}{2}\cdot x^{-\frac{1}{2}} & f'(1)=\frac{1}{2} \\     f''(x)=(-1)^1\cdot\left(\frac{1}{2}\right)^{2}\cdot x^{-\frac{3}{2}} & f''(1)=(-1)^1\cdot\left(\frac{1}{2}\right)^{2} \\     f'''(x)=(-1)^2\cdot 3\cdot\left(\frac{1}{2}\right)^{3}\cdot x^{-\frac{5}{2}} & f'''(1)=(-1)^2\cdot3\cdot\left(\frac{1}{2}\right)^{3} \\     f^{(4)}(x)=(-1)^3\cdot3\cdot 5\cdot\left(\frac{1}{2}\right)^{4}\cdot x^{-\frac{7}{2}} & f^{(4)}(1)=(-1)^3\cdot3\cdot 5\cdot\left(\frac{1}{2}\right)^{4} \\     f^{(n)}(x)=(-1)^{n-1}\left(\frac{1}{2}\right)^{n}\cdot x^{\frac{1-2n}{2}} & f^{(n)}(1)=(-1)^{n-1}\left(\frac{1}{2}\right)^{n} \end{array}  I thought I had the right answer until I realized that I'd be defining $f(x)$ to be negative.


I'm having troubles solving the following exercise, proposed in T. Jech, 'Set theory' Exercises 5.4.     Let $X$ is well-ordered set then $\mathcal{P}(X)$ can be linear ordered.       [Let $X<Y$ if the least element of $X\triangle Y$ belongs to $X$.]   I can prove that $<$ satisfies totality (i.e. $X<Y$ or $X=Y$ or $Y<X$) and $X\not< X$, but I can't prove transitivity of $<$. Thanks for any help.

Let's say I take a set $S$, where $S$ can be well ordered. From what I understand, one can use that well ordering to totally order $\mathscr{P}(S)$.  How does a body actually use the well ordering of $S$ to construct a total ordering of $\mathscr{P}(S)$?  Perhaps construct is too strong a word. Is there a way to prove that a total ordering of $\mathscr{P}(S)$ just exists, no need to explicitly state what it is, since that might be very difficult.


Of course I know what  is, like everyone else who has taken a thermal or statistical physics course. But it was recently pointed out to me that one thing that is rarely taught (including to me) is what the mechanism for the radiation is.  At the particle level, how does black-body radiation arise (which radiative process is this)? In other words, where are the photons coming from?    To perhaps clarify a bit further, borrowing a comment from Kevin Driscoll on an answer:     The point of the question is that there are materials whose emission spectra are quite well described by a black-body spectrum. And yet we know that at the atomic level photon emission are caused by some quantum mechanical transitions. So, how is it that such an underlying quantum mechanical description gives rise to a black-body spectrum at everyday temperatures? What is the mechanics that causes light to be absorbed/emitted at all frequencies rather than at the discrete set we might expect from the electronic transitions in isolated atoms?   With a caveat from me:     That's a good re-statement, though I'd caution that the description need not a priori be quantum mechanical in nature - there is radiation in classical electrodynamics.

By conservation of energy, the solid is left in a lower energy state following emission of a photon.  Clearly absorption and emission balance at thermal equilibrium, however, thermodynamic equilibrium is a statement of the mean behaviour of the system, not a statement that the internal energy is constant on arbitrarily short timescales.  The energy has to come from somewhere during emission, and go somewhere during absorption.  Energy in a solid can be stored as kinetic and potential energy of electrons and nuclei, either individually or in collective modes such as phonons and plasmons.  In thermal equilibrium energy will be stored more or less in various forms depending on the temperature and material.  However, even if most of the thermal energy in a particular solid at temperature $T$ is stored in the form of phonons, it could be that phonons primarily interact with light indirectly via electrons, e.g. a phonon excites an electron in a phonon-electron interaction, which can interact with light via the EM field.  Given that light is an EM field, it makes sense to me that it is emitted and absorbed by charged particles.  The electron-photon interaction is probably dominant for visible and ultraviolet light, given that metals are opaque, while semiconductors and insulators are transparent to (visible and UV) light with energy lower than their bandgap. However, once you get into energies in the IR and below, or X-rays and above, other mechanisms apparently take over.  For example, on the high-energy end of the spectrum I've heard that gamma rays can interact directly with nuclear degrees of freedom, which is reasonable considering that gamma rays are emitted during a lot of nuclear reactions.  A review of  might give clues to important light-matter interactions over a broad range of wavelengths.  Whether all of the these processes are involved in blackbody emission is a somewhat different question.  What physical processes mediate energy transfer during blackbody emission, and in which energy ranges are the various processes dominant?


I have a ssd, and two hard drives. I have windows on the ssd, and use the one hard drive on windows as well. I just picked up another hard drive and haven't even installed it into my system yet. My question is, can I dedicate the new drive for Ubuntu only? and still keep the other two windows only. If I can, how exactly?

I have 2 1tb hard drives on my computer with Windows 8 on the first hard drive and nothing on the other.  I want to install Ubuntu 14 on the second hard drive. I've looked up some guides and they all say to install Ubuntu on the sdb partition when booting off a usb stick. I have also seen some say to unplug the Windows HDD and then install Ubuntu onto the second HDD, and Ubuntu will automatically detect Windows and ask what you want to boot into upon boot.   I am really concerned about this - Will it ask me to choose what OS I want to boot into? Is there something like rEFInd(Mac) for Windows? Can anyone please give me a guide on how to do it without ruining my computer?  Thanks


Suddenly Safari won't work on my iPhone 6s. I cannot open links either.  The whole thing freezes.   How do I solve this? I updated to iOS 9.3 a couple of days ago.

Update 2:   Update: .  My Safari on iOS 9.2.1 (update: and now 9.3) won’t open most links anymore, i.e. tapping on a link on a page does not do anything. Worse, other apps like Messages, Chrome are having issues when they try to open URL/Links.  The common issue is pauses when tapping links and even Mobile Safari tap and hold (to get the app open a link in a new tab), the device freezes and eventually crashes.   Looking at the html source for the links causing issues, it seems all scheme absolute links are affected (e.g. http://example.com/something), while relative links work (e.g. /some/page.html).  This makes me think third party registration of URL handlers (or what they are called) is related to the bug All apps that can open links, such as Mail or Spark, are affected. Tapping a link freezes the device. Tap & hold and then selecting copy link, switch to Safari or Chrome and paste URL sometimes helps/works. It happens mostly on Google and DuckDuckGo result pages. On some other pages it works.   I tried things to rule out a simple setting error:   disable all content blockers delete website data from Safari (in preferences app) kill all apps, restart iOS. Tried Chrome, and it doesn't work there on simple taps, but tap and hold works, and I can open them in a new tab at least.   My conclusion is that this bug relates to iOS 9.2 and third party app updates triggering bad behavior, I saw constant crashes of the swdc process in my iPhone logs and I . Suspect apps include:   Wikipedia Booking.com   Is there a way to list these apps that change link handling so I can selectively uninstall them?


The solution  does not work.  I'm trying to use alt+grave on ccsm, but Unity's shortcut is taking precedence. How can I disable Unity's version of alt+grave?  Thank you!

I can't find where this shortcut is defined. How can I disable it?


Is there a site already for SEO questions or is this maybe a subject I should take to Area 51?  This company has a site for virtually every other computing discipline, but I don't seem to see a place where SEO questions can be asked. Is it maybe on-topic at the ?

Which Stack Exchange site should I use to ask a question about the Google search engine and SEO?


I've been thinking in doing a car game, but i wanted to add "real" cars into the game. Are 2D renditions of the cars with sprites/vector 2d graphics fine?

Is it legal to use car manufacturers' names in a game?   For example:   to describe Audi's quattro drive system? to display a rendering of an Audi? to include a photo (to which I have rights) of an Audi?


"Smartphone is very useful"      "Dog is loyal animal"   are these sentences incorrect? or do they require articles before the subjects? if yes, how to decide which article to use, definite or indefinite?

I can’t for the life of me figure out where to use a and where to use the — and where there is no article at all. Is there a simple rule of thumb to memorize?   The standard rule you always hear:     “If a person knows which item you are talking about then use "the"   . . . doesn’t clear things up for me, as I have no idea whether or not they know.


I have a baked particle system that uses the Molecular Physics addon, and I'd like to convert the particles into keyframed objects... Is there any way I can achieve that? I know it's possible with rigid bodies, and others etc, but I haven't seen anyone do it with particles before (it might be a several step process). Any and all help is appreciated!

I've started trying to make a 3D model that I will end up exporting to an augmented reality app but I've hit a problem in terms of the particle system. The app wants the 3D file in .dae(collada) format which blender allows, but it doesn't seem to export particle systems. I've read that blender doesn't support exporting particle systems at all so I'm now focused on converting the particle system to lots of meshes which will (hopefully)animate using key frames. Then I can export all the meshes and the particles will 'work'.  Currently I'm just using a standard particle system emitting small icospheres. I've tried a few different techniques, such as 'make duplicates real' and using a particle instance instead but they don't seem to animate. Instead it just freezes the current frame into an object(which exports fine but is not what I want). I've also tried recording the animation in the blender game engine but particle systems don't work with it so that didn't work either.  Any help would be appreciated! Thanks


I am able to retrieve data from my api and store in localStorage and display on my views. But when there is change, how can my localStorage update itself? I understand it is a bad practice to call API's everytime you land on a page.  I store data in a localStorage but my issue is, when there is a change in the data in the server side, how can i detect it i am using localStorage to display data in my views.   How can i update my localStorage anytime there is a change or update in the API / server side ?

Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load.  Is there any better method (even using Ajax) other than polling the server frequently?


I tried to compute a limit: $$\lim_{x\to\infty}x\left(\frac 1e-\left(\frac x{x+1}\right)^x\right)$$ What I've done is that: $$\begin{align} &\lim_{x\to\infty}x\left(\frac 1e-\left(\frac x{x+1}\right)^x\right)\\ =&\lim_{x\to\infty}x\left(\frac 1e-\left(\frac x{x+1}\right)^{x+1}\left(\frac{x+1}{x}\right)\right)\\ =&\lim_{x\to\infty}\left(1-\frac 1{x+1}\right)^{x+1}x\left(1-\frac{x+1}{x}\right)\\ =&-\frac1e \end{align}$$ But Wolfram|Alpha seems not to agree with me, in which it gave $$-\frac1{2e}$$ So what actually does the error come from in my approach? And how should I compute the limit? Thanks in advance.

Finding $\displaystyle \lim_{y\rightarrow \infty}\bigg[\frac{y}{e}-y\bigg(\frac{y}{y+1}\bigg)^y\bigg]$   Attempt: Put $\displaystyle y=\frac{1}{z}$ . Then $\displaystyle \lim_{z\rightarrow 0}\bigg[\frac{1}{ze}-\frac{1}{z}\bigg(\frac{z}{z+1}\bigg)^{\frac{1}{z}}\bigg]$  Could some help me to solve it, thanks


Right now all that happens is that it will always say email banned  My code   //email validation     $email = htmlspecialchars_decode($_POST['email'], ENT_QUOTES);   $domain_name = substr(strrchr($email, "@"), 1);     $domainBlock = 'example.org';     echo "Domain name is : " . $domain_name;    if ($domain_name = $domainBlock) {     $error[] = 'Website Down For Maintenance';   }

What is the difference between == and ===?  How exactly does the loosely == comparison work? How exactly does the strict === comparison work?  What would be some useful examples?


Hi I wish to motion track a scene that involves large sweeps which means the end frame contains none of the markers placed in the first frame. I'm not sure how to have adaptive markers or markers that are not in the first frame which are included in the solve/bundle? I'm coming from boujou where it updates new trackers if old ones are not on screen.

Is it possible to track an handheld shot (there is already an answer on here about tripod shots: ) that doesn't have any visible points in common between the first and the last frame? As an example, imagine a shot of someone driving in a car for thirty minutes. Obviously everything from the first couple of seconds won't be there anymore at minute 15.


I have always liked my play/pause button to always affect my iTunes music and never any other application.  Since before macOS High Sierra, the media keys on the function bar always used to control iTunes. This was great as it allowed me to have full control over my music. that is, play music; find a YouTube video, pause music, start YouTube video. That YouTube video would then end then I would be able to play my music again.  Now since High Sierra, that doesn't happen. If I have a YouTube video up, it controls that instead of my music. This means that I have to open up iTunes, then click the play button and go back to Safari. I fixed this by using BetterTouchTool to reprogram the function buttons to bring back the pre High Sierra functionality.  Today, with the TouchBar, I am back with the same issue. Yes, I can use BetterTouchTool but now that requires two clicks. One to activate the BTT controller strips and another to press the play/pause button.  Is it posible to have a global button in the TouchBar controls strip that controls iTunes only?

While browsing on Safari and listening to iTunes I come across a video and then press the "play" button on the keyboard (to stop the music while I watch the video) it starts/stops the video instead of the music (I have no control over the music).  How can I quickly play/pause my music without affecting the video?


I have created a content type based on the oob item content type, list definition and a list instance and they are activated via a web scoped feature.  It all works as expected apart from one thing.  The content type name and description are not displayed in the new item menu.  It prints the default "Add new item" text, but i want it to use the content type name and description.  I thought this would happen automatically but that doesnt seem the case.  Am i missing something in my list defintion / instance or content type definition?   As a note clicking the "Add new item" option does bring up the form based on the correct custom content type  Any ideas?

How do you set "Allow management of content types?" to "Yes" within a Content Type or List Definition?


So, I would like to ask those of you who have had this experience for some advice.   What book is best for GRE subject exam? I have noticed that some books online have mistakes, so I would like if you can give me specific publisher for GRE subject exam in physics book. I would appreciate any advice on how to prepare for it. How to get best out of my studying period?

Every once in a while, we get a question asking for a book or other educational reference on a particular topic at a particular level. This is a meta-question that collects all those links together. If you're looking for book recommendations, this is probably the place to start.  All the questions linked below, as well as others which deal with more specialized books, can be found under the tag  (formerly ).  If you have a question to add, please edit it in. However, make sure of a few things first:   The question should be tagged  It should be of the form "What are good books to learn/study [subject] at [level]?" It shouldn't duplicate a topic and level that's already on the list   Related Meta:


Is this statement:     the letters have been troubling me since over a year   grammatically correct? Or should I instead use:     ...for over a year

Since is used to refer to a point of time in the past and for is used with time interval. However I've come across this phrase      I haven't seen you since ages.    Is this a correct usage of since since ages denotes an interval of time?


I have enabled the Ubuntu bash command line feature that comes with Windows Developer Mode.  I cannot seem to be able to access any directories outside of a linux looking filesystem (ex. / has bin, usr, etc...) and cd / leaves me at that root folder. Perhaps there's a sandbox being used here.  How do I access local windows files, say in my Downloads or Desktop directory and use them with the Developer command line?

Why, when I create a file from within Windows for example, can I not see it under the Linux sub system in Windows 10 (bash.exe)   The screenshot should explain.  Folder: OMG was created from within Windows Explorer.  Folder OMGBash was created from with Linux sub system bash.exe  When a folder OR file is created outside of bash.exe I can never see it, regardless of permissions and ownership.  To show the information I have had to use Cygwin to show file permissions, I have also altered the permissions to see if the folder would appear. (The two command windows at the bottom)   Screenshot showing folder, bash.exe and Cygwin permissions:    I am trying to move all my Cygwin scripts over to the Linux subsystem, but I don't fancy recreating every file, then having to copy and past using bash, then reformatting then using Dos2unix (very long winded).  Found this on GitHub for the Linux subsystem:      copying directly into the Linux subsystem from Windows is not   supported, according to discussion on other tickets. There is a   directory under AppData somewhere (I forget where) that appears to   contain the files for the WSL filesystem. But if you put new files   there, or modify existing files there, your changes are not reflected   correctly inside WSL.      My best guess is that Linux needs to store different metadata (and   more caching information, etc, since its disk-buffering model is also   different) about its files than Windows does, and that this is   currently implemented by storing the master copy of the structure of   the Linux filesystem in a database of some sort, and just using the   Windows filesystem as a convenient BLOB-store for that database.      If you really need to do this, a workaround would be to write a   drag'n'drop .bat script or somesuch that does bash.exe -c "mv %1   /home/$USER/". (You'll have to do some clever work with sed and tr,   probably, to translate %1 to a valid WSL path.)      Alternatively -- could you put your files in a Windows directory and,   within WSL, do "cd ~; ln -s /mnt/c/path/to/my/files" to make them   appear to be in your WSL homedir?


This is with reference to the Sony NEX-5R. I have gotten into the habit of telling Lightroom to convert all ARW to DNG when I import them, in the hope that DNG, being an open format rather than a proprietary, encrypted one, will let me easily access my photos decades from now. It's a nice bonus that DNGs are little smaller than ARW.  Are there any other factors that would affect this decision? Or am I over-doing the longevity part?  To be clear, I don't want to keep both the ARW and the DNG. I don't plan to convert to JPEG and delete the RAW, either.

I'd like to convert all my ARW (Sony) files to DNG for several reasons, but the only thing keeping me back from doing it is the fear of losing useful metadata during the conversion. I know that the image it's self is completely safe during the conversion but what about proprietary maker noteS? Will those stay too? And even if they do, are they actually useful and can be actually used by something other then Sony's own RAW converter?  P.S. I'm using Ubuntu so I'd prefer to use KipiPlugins' DNG converter because from what I understand it does everything the Adobe converter does, but if I'm wrong I can use Adobe's instead.  EDIT:  It looks like the LensID does carry over! With the ARW and the DNG files converted by Kipiplugins' built in converter, info is stored as "Exif.Sony.0x___". With Adobe's official converter, it moves the info to more logically named fields in the XMP, such as "LensID" and "Lens".  Now that I've figured it out, I think I might use Adobe's Official converter, just because I prefer how it reorganizes the Exif Data.  I'm not fully convinced though and I'd like to hear others take on all this.


How do I check what file $_FILES is? I've seen ways, where MIME-TYPE is used, but I've read that checking the MIME-TYPE is not a save method. I know how it works with images. There you can use Attributes like "IMAGE_JPG" or "IMAGE_PNG". But "TEXT_HTML" doesnt exist.  So please help me, i would like to use the only proper Way.

On the PHP website, the only real checking they suggest is using is_uploaded_file() or move_uploaded_file(), . Of course you usually don't want user's uploading any type of file, for a variety of reasons.  Because of this, I have often used some "strict" mime type checking. Of course this is very flawed because often mime types are wrong and users can't upload their file. It is also very easy to fake and/or change. And along with all of that, each browser and OS deals with them differently.  Another method is to check the extension, which of course is even easier to change than mime type.  If you only want images, using something like getimagesize() will work.  What about other types of files? PDFs, Word documents or Excel files? Or even text only files?  Edit: If you don't have  or  and system("file -bi $uploadedfile") gives you the wrong file type, what other options are there?


We are given a $100$ by $100$ matrix. Each number from $\{1,2,...,100\}$ appears in the matrix exactly a $100$ times.  Show there is a column or a row with at least $10$ different numbers.  I'd like a small tip how to tackle this problem. I tried of thinking what are the pigeons and what are the holes. obviously there are 200 holes (100 rows and 100 columns). what are the pigeons?

On each cell of an $n \times n$ chessboard, we write a number from $1, 2, 3, .  . . , n$ in such a way that each number appears exactly $n$ times. Prove   that there exists a row or a column of the chessboard which contains   at least $\sqrt{n}$ distinct numbers.   This question is dying for a proof by contradiction, but I can't seem to show how. When I searched through the Internet, there is the following hint:     Assume each row and each column has less than $\sqrt{n}$ distinct numbers in   it. For each row or column, consider the number of distinct numbers in   it.   I feel like double counting is involved in the process, but what to count in two different ways? Also I can prove the statement with the probabilistic method but I would really like to learn the double counting approach.  Here is the other proof:  Choose a random row or column ($2n$ choices). Let $\textbf X$ be the number of distinct entries in it. Use the indicator variable $I_i$, for the existence of number $i$ in the block: $\textbf X = \sum I_i.$ Clearly, $E[I_i] = P[I_i = 1]$.  Then $P[I_i = 1] \geq 2\sqrt n / (2n) = 1/\sqrt n$. The lower bound is obtained if all the $i$ happens to be in some $\sqrt n$ edged square sub-matrix. Hence, by linearity $\textbf E[X] \geq \sqrt n$. This proves the existence.


My questions are divided into two parts:   How to know the version of installed package? How to install a specific package version?

I want to setup a new virtual machine with some specified packages (name and version), that are provided.  For example apache2 in version 2.2.20-1ubuntu1 with all dependencies. Even if there is a new version of this package on the servers this one should be installed.  The solution has to work/scale with multiple (n) "setups". Another virtual machine might need an older version of apache2.  I currently know of some possibilities that install the exact packages, but do not scale that good:   Copy all required *.deb to every virtual machine manually and enter: dpkg -i ... -> Could work, but it is very error prone. (Manual scripts etc.) Create and use a new Ubuntu repository for each setup. -> Does not work because I would need n repositories. Setup the machine once and copy the VM / create a snapshot. -> Does not work because I would need to store n VMs.   My problem could be labeled as patch management, but I do not want to update my packages to the current version. My goal is to install old packages.


I want to prove this equality holds:  $$\tan\big(\frac{\pi}7\big)  \tan\big(\frac{2\pi}7\big)  \tan\big(\frac {3\pi}7\big)= \sqrt 7.$$  Please help me.  Thanks.

Questions:    $\cos\dfrac{\pi}{7}\cos\dfrac{2\pi}{7}\cos\dfrac{3\pi}{7}=?$ $\sin\dfrac{\pi}{7}\sin\dfrac{2\pi}{7}\sin\dfrac{3\pi}{7}=?$ $\tan\dfrac{\pi}{7}\tan\dfrac{2\pi}{7}\tan\dfrac{3\pi}{7}=?$   Approach:  If $x=\dfrac{\pi}{7}\implies 7x=\pi\implies 4x=\pi-3x\implies \sin 4x = \sin 3x$.Upon expansion, $$8cos^3x-4cos²x-4cosx+1=0$$     "$\cos \dfrac{\pi}{7}, \cos \dfrac{3\pi}{7}, \cos \dfrac{5\pi}{7}$will satisfy this cubic."   Note: I'm not able to understand the above line. Why do these values satisfy this cubic and how did we get these values?   These are therefore the roots of the cubic, and their product is:  $$\cos\dfrac{\pi}{7}\cos\dfrac{3\pi}{7}\cos\dfrac{5\pi}{7}=\dfrac{-1}{8}$$  Finally, $\cos\dfrac{5\pi}{7} = \cos\left(\pi-\dfrac{2\pi}{7}\right)=-\cos \dfrac{2\pi}{7}$. Replacing this in (1) gives $$\cos\dfrac{\pi}{7}\cos\dfrac{2\pi}{7}\cos\dfrac{3\pi}{7}=\dfrac{1}{8}$$  How can we apply this concept to find the values of    $\sin\dfrac{\pi}{7}\sin\dfrac{2\pi}{7}\sin\dfrac{3\pi}{7}?$ $\tan\dfrac{\pi}{7}\tan\dfrac{2\pi}{7}\tan\dfrac{3\pi}{7}?$   I'm not able to form the equations for these two problems. Please Help. .


This picture shows my actual chapter design. It contains the Norwegian text "Kapittel" for chapter, and I want to get rid of it. How can I do this?

Using \chapter I get:     Chapter 1. The meaning of this novel   Chapter 2. The plot of this novel   Chapter 3. The moral of this novel   I want to get instead:     1. The meaning of this novel   2. The plot of this novel   3. The moral of this novel


I'm Belgian and I'm trying to apply for a Russian tourist visa. I'll arrive in Russia September 5th and I'll leave September 20th, which is 16 days.  Now I've read somewhere that the max duration of stay is 30 days, BUT if you stay longer than 15 days, You'll have to provide a detailed itinerary of your trip, signed and stamped by the same Russian travel agency.   What kind of organized trips am I required to book/or must I book for this? Do they mean I need to book a pre-organized trip for a week or 16 days or something? Or just book a few single (half)day trips/tours and print these? Depending on the answer of question 1, what are these organizations (examples) and do they automatically provide me a document with a stamp for this?   Note after closure: This question is not about the invitation letter you need from Russia that contains list of cities and hotels you'll stay (which is answered in the duplicate). This is about an extra document from a travel agency with a stamp if you stay longer than 15 days, which I don't know what it is.

I believe there are certain countries which in order to be granted a visa you must submit your intended itinerary. I am pretty sure I've heard Russia is or was formerly such a country.  What do independent travellers do? I've been thinking of hitch-hiking across Russia without a precise plan and a friend of mine has wanted to do a road trip across Russia also without an exact plan.  Is this a no-brainer or is there lots of red tape we would have to deal with? Or is it just official-speak / bureaucracy where they make it look complicated but in practice it turns out to be easy?


Let $(V,+, \cdot)$ be a $\mathbb{K}$ -vector space. Prove the following relations.  $\mathrm{o} \cdot x=\mathrm{o},$ for all $x \in V$ $\lambda \cdot \mathrm{o}=\mathrm{o},$ for all $\lambda \in \mathbb{K}$. $(-1) \cdot x=-x$ for all $x \in V$.   Here is my idea, if it has some problems or you have to add for me please kindly share an idea for me. Since $(V,+,\cdot)$ be a $\mathbb{K}$ -vector space.  $\exists \mathrm{o}=0 \in\mathbb{K}$ for all $x\in V$ $$\mathrm{o}x=0x=0=\mathrm{o}$$ $\exists \lambda\in\mathbb{K}, \lambda\cdot\mathrm{o}=\lambda \cdot 0=0=\mathrm{o}$ Since $-x\in V$ such that $(-1)\cdot x=1\cdot(-x)$   Please kindly share or recommend me. Thank in advance!

Let $x$ be an element of a vector space. I am trying to use the definition of a vector space to prove that $0x = 0$ and $(-1)x = -x$. Let $w + x = x$  for all $x \in E$. $$\begin{align} 0x &= 0(w + x) \\ &= 0w + 0x \\ &= 0w + 0(-w) \\ &= 0w - 0w \\ &= 0 \end{align}$$ Now, I think this is correct for proving that $0x = 0$, but I don't think it actually proves that $(-1)x = -x$, but rather just assumes it to be true. Am I correct in my assessment of this? If so, I would greatly appreciate it if people would please take the time to explain how we are supposed to prove both of these at the same time. EDIT The definition of vector space is given as follows:  By a vector space we mean a nonempty set $E$ with two operations: $(x, y) \mapsto x + y$ from $E \times E$ into $E$ called addition. $(\lambda, x) \mapsto \lambda x$ from $\mathbb{F} \times E$ into $E$ multiplication by scalars, such that the following conditions are satisfied for all $x, y, z \in E$ and $\alpha, \beta \in \mathbb{F}$: (a) $x + y = y + x$; (b) $(x + y) + z = x + (y + z)$ (c) For every $x, y \in E$ there exists a $z \in E$ such that $x + z = y$; (d) $\alpha (\beta x) = (\alpha \beta) x$; (e) $(\alpha + \beta)x = \alpha x + \beta x$; (f) $\alpha(x + y) = \alpha x + \alpha y$ (g) $1x = x$ Elements of $E$ are called vectors. If $\mathbb{F} = \mathbb{R}$, then $E$ is called a real vector space, and if $\mathbb{F} = \mathbb{C}$, $E$ is called a complex vector space.  From chapter 1 of Introduction to Hilbert Spaces with Applications, third edition, by Debnath and Mikusinski. I found  (see 3.(c) on page 5) solution:  Since $0x = (0 + 0)x = 0x + 0x$, it follows that $0x = 0$. Then $$\begin{align} x + (-1)x &= 1x + (-1)x \\ &= [1 + (-1)]x \\ &= 0x \\ &= 0 \end{align}$$ Therefore $(-1)x = 0 - x = -x$.  How is the first line of this solution valid reasoning?  Since $0x = (0 + 0)x = 0x + 0x$, it follows that $0x = 0$.  In order to deduce from $0x = 0x + 0x$ that $0x = 0$, doesn't one already have to assume that $0x = 0$?


I am new to learning JavaScript,I found this code, I had learnt earlier that equality is checked using 3 equal symbols, so shouldn't this program crash(it doesn't surprisingly)  /*jshint multistr:true */  text = "Blah blah blah blah blah blah Eric \ blah blah blah Eric blah blah Eric blah blah \ blah blah blah blah blah Eric EdiEk";  var myName = "Eric"; var hits = [];  // Look for "E" in the text for(var i = 0; i < text.length; i++) {     if (text[i] == "E") {         // If we find it, add characters up to         // the length of my name to the array         for(var j = i; j < (myName.length + i); j++) {             hits.push(text[j]);         }     } }  if (hits.length === 0) {     console.log("Your name wasn't found!"); } else {     console.log(hits); }   The program checks if your name or something similar to it is in the text[]

I'm using  to go through JavaScript, and it's returning many suggestions to replace == (two equals signs) with === (three equals signs) when doing things like comparing idSele_UNVEHtype.value.length == 0 inside of an if statement.  Is there a performance benefit to replacing == with ===?   Any performance improvement would be welcomed as many comparison operators exist.  If no type conversion takes place, would there be a performance gain over ==?