I see there are multiple same question like this but here I just want to confirm can I create an iso file from currently installed Ubuntu 16.04.1 with all the package I've installed? Also is it possible to also include the library installed in python virtualenvironment?  I have this tesseract-ocr library installed and other library that were not included when I first setting up Ubuntu 16.04.1, so is it possible to clone my current Ubuntu system and create an iso file from it? What are the current stable software that can do that specifically for Ubuntu 16.04.1   Thank you for the help
I installed Ubuntu 14.04.1 on one of my laptops and now I want distribute that exact installation to a few of my friends. I tried making an iso with Gparted on a live session but it makes a 500 GB file (I've only used around 8 GB) .   Thanks in Advance !
In a bash script, how can I redirect all standard outputs to a log file and tee the output on the screen using exec ?  log_file="$HOME/logs/install.txt-`date +'%Y-%m-%d_%H-%M-%S'`" [ -f "$log_file" ] || touch "$log_file" exec 1&gt;&gt; $log_file 2&gt;&amp;1   This code redirect all the log to the log file but not to the screen . I am trying to find duplicate accounts in the system and trying to merge them based on our filter criteria using apex. The issue is I am hitting the governor limit of 150 DML statements while doing this.  We will have to put the merge statement inside the loop as we need the parent and child as the parameters in the merge statement. I don't think we can bulkify Merge like other DML statements due to the above reason. I am not sure if there is any better way to do it and avoid hitting governor limits.  Any help in this regard would be greatly appreciated.  Code that I have tried is included below  global class LoyaltyAccountBatch implements Database.batchable&lt;sObject&gt;{        global Database.QueryLocator start(Database.batchableContext info){           String query;         query = ('SELECT  Id FROM  LoginHistory LIMIT 1');          return Database.getQueryLocator(query);    }       global void execute(Database.batchableContext info, List&lt;LoginHistory&gt; scope){             // Get those records based on the IDs         List&lt;Account&gt; templst1 = [SELECT Id,UniqID from account where createddate = LAST_N_DAYS:4 and UniqID &lt;&gt; ''];             system.debug('templist is '+templst1);               Set&lt;String&gt; insertedRecords = new Set&lt;String&gt;() ;         for (Account a : templst1)  {         insertedRecords.add(a.UniqID);     }                 List&lt;Account&gt; templst = [SELECT Id,UniqID from account where NewUniqID IN : insertedRecords                                   order by NewUniqID,UniqID asc];         // Process records          for(integer i=0;i+1&lt;templst.size();i++)          {             if(templst[i].UniqID &lt;  templst[i+1].UniqID)                     {                 system.debug('ids are '+templst[i].UniqID+'--&gt;'+templst[i+1].UniqID);                 String str = '1'+templst[i].UniqID.substring(1,templst[i].UniqID.length());                 String str1 = '1'+templst[i+1].UniqID.substring(1,templst[i+1].UniqID.length());                 system.debug('str is'+str);                 system.debug('str1 is'+str1);                 if(str.equals(str1))                 {                     Merge templst[i+1] templst[i];                     system.debug('value of i is'+i);                 }              }         }        }          global void finish(Database.batchableContext info){         }   } Where is the precmd command in android? I'm kind of used to linux. I'm using Busybox from the Busybox Free installer, with Busybox 1.21.0-Stericson. Trying to chance my shell to the Busybox shell using busybox ash gives the following error after every single command:  ash: precmd: not found echo $PS1 $(precmd)$USER@$HOSTNAME:${PWD: -?} $    I tried to go back to the normal shell and find out WHERE precmd is:  which precmd   It just changes the prompt to have "1|" in front of it, without giving me WHERE it is. I found a solution , but have no idea where to put it. I'm basically trying to do the same as  (make Busybox shell the default). I recently found out about Ubuntu for Android Multi-Core Smartphones and was digging around on the Ubuntu website as well as the Canonical website but have yet to find any information on if it available to the public yet ?  I am very interested to try it our on my Android and if it is available for the public am wondering where and how I can get a copy of "Ubuntu for Android" ?  If it is not available then perhaps someone can shed some lite on what sort of timeframe it will be until it is available to the general public? Sorting references with special characters alphabetically I have a problem within the reference list. Namely I have some references where the authors first surname letter is Š (\v{S}) and when listing them in the references they appear amid those authors whose surname starts with V instead after those whose surname starts with S and those whose starts with T (it should list R, S, Š, T... and not R, S, T, U, V with Š in between)  Here is my minimal working example:   \documentclass{article}  \usepackage{filecontents}  \begin{filecontents}{AA.bib}  @article{simovic13, Author = {\v{S}imovi\'{c}, H. and Deskar-\v{S}krbi\'{c}, M.}, Journal = {Zbornik radova Ekonomskog fakulteta u Rijeci}, Number = {1}, Pages = {55--78}, Title = {Dynamic effects of fiscal policy and fiscal multipliers in {Croatia}}, Volume = {31}, Year = {2013}}  @misc{tenhofen07, Author = {Tenhofen, J. and Wolff, G. B.}, Note = {Deutsche Bundesbank Discussion Paper Series 1: Economic Studies No. 14. Frankfurt am Main: Deutsche Bundesbank}, Title = {Does anticipation of government spending matter? Evidence from an expectation augmented {VAR}}, Year = {2007}}  @misc{spilimbergo09, Author = {Spilimbergo, A. and Symansky, S. and Schindler, M.}, Note = {IMF Staff Position Note No. 11. Washington: International Monetary Fund}, Title = {Fiscal multipliers}, Year = {2009}}  @misc{ver11, Author = {Verhelst, S.}, Note = {Egmont Paper, No. 47, Brussels: Egmont Institute}, Title = {The Reform of European Economic Governance: Towards a Sustainable Monetary Union?}, Year = {2011}}  @article{vuckovic10, Author = {Vu\v{c}kovi\'{c}, V.}, Journal = {Privredna kretanja i ekonomska politika}, Number = {125}, Pages = {61--88}, Title = {Political Business Cycles: Do They Exist in {Croatia?}}, Volume = {20}, Year = {2010}}  \end{filecontents}   \begin{document} \nocite{*}   \bibliographystyle{plain} % works % \bibliographystyle{alpha} % works ... % \bibliographystyle{apalike} % works \bibliography{AA} \end{document}   I am thankful for any help!!!  Ana how to convert batch file from .tif to .bil format using gdal_translate in windows CMD command line, file in the directory.   Directory path : D:\GDAL-TEST 001_mean.tif 002_mean.tif 003_mean.tif 004_mean.tif So on....   I have one code but by this code we can convert single file at a time but i want to loop through all raster which have .tif extension in the  directory and convert it to .bil format. Please want a solution   My code. I a running this code on GDAL Command window on windows 7 platform.      gdal_translate -of "ENVI" D:\GDAL-TEST\001_mean.tif D:\GDAL-TEST\001_mean.bil Can you add new statements (like print, raise, with) to Python's syntax?  Say, to allow..  mystatement "Something"   Or,  new_if True:     print "example"   Not so much if you should, but rather if it's possible (short of modifying the python interpreters code) Response.Redirect to new window I want to do a Response.Redirect("MyPage.aspx") but have it open in a new browser window. I've done this before without using the JavaScript register script method. I just can't remember how? Excluding empty(Null) fields when using EntityFieldQuery query condition If electrons were positive and protons were negative, would life be different? Passing multiple commands to gnome-terminal from a script My bash-script is not run in a terminal, but opens a terminal at runtime to ask for user input (sudo password). I would like to tell the user in this terminal what the script is trying to do. First, here is my script:  #!/bin/bash #This should install: Qt Linguist, lrelease  #for Qt Linguist dpkg-query -l qt4-dev-tools if echo $? == 0; then  check1=1 fi  #for lrelease dpkg-query -l qt4-default if echo $? == 0; then  check2=1 fi  echo $check1 echo $check2  if [ $check1 = 1 ] &amp;&amp; [ $check2 = 1 ];then  gnome-terminal -x sudo apt-get install qt4-dev-tools qt4-default fi $SHELL   This opens a terminal with this:  [sudo] password for "username":    But I would like to have:  qt4-dev-tools and qt4-default are missing. Now trying to install. [sudo] password for "username":    How do I get this when starting the terminal with gnome-terminal -x? Which serial protocol or encoding scheme does this scoreboard use? I am trying to decode a signal stream coming from a Nevco scoreboard controller:    Packets like this are sent every ~2.7 ms.  I suspect it is some sort of UART signal because it is on the RX line of a ATMEGA48, but I cannot identify the finer protocol details like parity and stop bits. All the combinations I have tried returns junk data, so it may be another encoding scheme.  What's unusual is that the same signal is also sent to the MOSI pin of the microcontroller, but there is no clock signal anywhere.  A .vcd file is .   The shortest pulses (both high and low) are always 8us in length.    This is what two packets look like. Anyone got ideas? ASP.NET MVC JsonResult Date Format I have a controller action that effectively simply returns a JsonResult of my model. So, in my method I have something like the following:  return new JsonResult(myModel);   This works well, except for one problem. There is a date property in the model and this appears to be returned in the Json result like so:  "\/Date(1239018869048)\/"   How should I be dealing with dates so they are returned in the format I require? Or how do I handle this format above in script? Determine which app is drawing on top of other apps? Learning special relativity and working with Minkowski diagrams for a while now i am still trying to get my head around some oddity.   From my understanding time can often be seen as the dependent variable in those diagrams, so why put it to the vertical axis? What confuses me even more is the apparent convention to denote a point in space time $(t,x)$ even though $x$ is on the horizontal and $t$ is on the vertical axis, so the usual notation would be to refer to that vector as $(x, t)$.  Are there mostly historical reasons or why is it beneficial to use this notation and to violate usual conventions? Insert result of a parallellized select query into a table, in Postgresql According to ,      "Even when it is in general possible for parallel query plans to be   generated, the planner will not generate them for a given query if any   of the following are true:       The query writes any data or locks any database rows. If a query contains a data-modifying operation either at the top level or within   a CTE, no parallel plans for that query will be generated. This is a   limitation of the current implementation which could be lifted in a   future release."   Indeed, when I try to insert result of a parallel SELECT query into a table (either by SELECT.. INTO either by WITH..SELECT..INTO, the query is not executed as parallel query.  My question is: Is there any way to trick the Postgresql so that a SELECT query is executed as parallel query and then its result inserted into a table? TV show that starts with debris encompassing Earth Why is AES resistant to known-plaintext attacks? Example where convergence in mean does not imply convergence in quadratic mean Is there an example where convergence in mean does not imply convergence in quadratic mean. $E|X_n-X|\rightarrow 0$ but $E|X_n-X|^2 \nrightarrow 0$.  It seems like this should be fairly straightforward, but I cannot really come up with an answer.  I'd imagine the answer would look something like   $$X_n=\begin{cases}a &amp; \text{with probability } \frac{1}{n} \\\  0&amp; \text{with probability } 1-\frac{1}{n} \end{cases}$$ I see a new logo with CA at youtube.com. Does anyone know what it means?