I'm trying to launch an application (lets call it test), but it fails giving the following error:  ./test ./test: error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory   Although this library does exist:  locate libuuid.so.1 /lib/x86_64-linux-gnu/libuuid.so.1 /lib/x86_64-linux-gnu/libuuid.so.1.3.0   It also can be found when using sudo ldconfig -v under the same folder.  Running ldd on the app gives the following info:  ldd test  linux-gate.so.1 =&gt;  (0xf76fe000) libsteam_api.so =&gt; ./libsteam_api.so (0xf7665000) libcrypto.so.1.0.0 =&gt; ./libcrypto.so.1.0.0 (0xf74ba000) libX11.so.6 =&gt; /usr/lib/i386-linux-gnu/libX11.so.6 (0xf736d000) libGL.so.1 =&gt; /usr/lib/i386-linux-gnu/mesa/libGL.so.1 (0xf730d000) libz.so.1 =&gt; /lib/i386-linux-gnu/libz.so.1 (0xf72f3000) libpthread.so.0 =&gt; /lib/i386-linux-gnu/libpthread.so.0 (0xf72d7000) librt.so.1 =&gt; /lib/i386-linux-gnu/librt.so.1 (0xf72ce000) libdl.so.2 =&gt; /lib/i386-linux-gnu/libdl.so.2 (0xf72c8000) libm.so.6 =&gt; /lib/i386-linux-gnu/libm.so.6 (0xf7282000) libuuid.so.1 =&gt; not found libc++.so.1 =&gt; ./libc++.so.1 (0xf71d8000) libcxxrt.so =&gt; ./libcxxrt.so (0xf71b9000) libc.so.6 =&gt; /lib/i386-linux-gnu/libc.so.6 (0xf7008000) libgcc_s.so.1 =&gt; /lib/i386-linux-gnu/libgcc_s.so.1 (0xf6feb000) libiconv.so.2 =&gt; ./libiconv.so.2 (0xf6f07000) libstdc++.so.6 =&gt; /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf6e1e000) libasound.so.2 =&gt; not found libssl.so.1.0.0 =&gt; ./libssl.so.1.0.0 (0xf6dc7000) libopenal.so.1 =&gt; not found libxcb.so.1 =&gt; /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf6da5000) libglapi.so.0 =&gt; /usr/lib/i386-linux-gnu/libglapi.so.0 (0xf6d8d000) libXext.so.6 =&gt; /usr/lib/i386-linux-gnu/libXext.so.6 (0xf6d7a000) libXdamage.so.1 =&gt; /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xf6d75000) libXfixes.so.3 =&gt; /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xf6d6f000) libX11-xcb.so.1 =&gt; /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xf6d6c000) libxcb-glx.so.0 =&gt; /usr/lib/i386-linux-gnu/libxcb-glx.so.0 (0xf6d54000) libxcb-dri2.so.0 =&gt; /usr/lib/i386-linux-gnu/libxcb-dri2.so.0 (0xf6d4e000) libxcb-dri3.so.0 =&gt; /usr/lib/i386-linux-gnu/libxcb-dri3.so.0 (0xf6d49000) libxcb-present.so.0 =&gt; /usr/lib/i386-linux-gnu/libxcb-present.so.0 (0xf6d45000) libxcb-sync.so.1 =&gt; /usr/lib/i386-linux-gnu/libxcb-sync.so.1 (0xf6d3e000) libxshmfence.so.1 =&gt; /usr/lib/i386-linux-gnu/libxshmfence.so.1 (0xf6d3b000) libXxf86vm.so.1 =&gt; /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0xf6d35000) libdrm.so.2 =&gt; /usr/lib/i386-linux-gnu/libdrm.so.2 (0xf6d27000) /lib/ld-linux.so.2 (0xf76ff000) libXau.so.6 =&gt; /usr/lib/i386-linux-gnu/libXau.so.6 (0xf6d23000) libXdmcp.so.6 =&gt; /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf6d1c000)   So I'm missing 3 libraries in total, although all of them can be found using locate or sudo ldconfig -v.  I've tried using sudo ldconfig, and it did not change anything. I've also tried setting LD_LIBRARY_PATH to the directory of library.
I have a 64-bit version of Ubuntu 13.10.  I want to run a 32-bit version of a program.  However I see ia32-libs is not included in 13.10.  Is there a replacement package for this or what?
I am trying to mimic our institute's PPt-template for presentation foils using the beamer-class. The corporate quidelines prescribe the use of Helvetica as the main font. However, package helvet does not provide a good mathematical font. Therefore I want to replace it with the math font from the cmbright package:  \documentclass{beamer}  \usepackage{lmodern} \usepackage[T1]{fontenc}  %main font Helevtica \renewcommand{\familydefault}{\sfdefault} \usepackage{helvet}  %prevent beamer from meddling with math fonts \usefonttheme{professionalfonts}  %following lines borrowed from cmbright.sty \DeclareSymbolFont      {operators} {OT1}{cmbr}{m}{n} \DeclareSymbolFont        {letters} {OML}{cmbrm}{m}{it} \SetSymbolFont      {letters}{bold} {OML}{cmbrm}{b}{it} \DeclareSymbolFont        {symbols} {OMS}{cmbrs}{m}{n} \DeclareMathAlphabet{\mathit} {OT1}{cmbr}{m}{sl} \DeclareMathAlphabet{\mathbf} {OT1}{cmbr}{bx}{n} \DeclareMathAlphabet{\mathtt} {OT1}{cmtl}{m}{n} \DeclareMathAlphabet{\mathbold}{OML}{cmbrm}{b}{it} \DeclareMathSymbol{\alpha}{\mathalpha}{letters}{11} \DeclareMathSymbol{\beta}{\mathalpha}{letters}{12} \DeclareMathSymbol{\gamma}{\mathalpha}{letters}{13} \DeclareMathSymbol{\delta}{\mathalpha}{letters}{14} \DeclareMathSymbol{\epsilon}{\mathalpha}{letters}{15} \DeclareMathSymbol{\zeta}{\mathalpha}{letters}{16} \DeclareMathSymbol{\eta}{\mathalpha}{letters}{17} \DeclareMathSymbol{\theta}{\mathalpha}{letters}{18} \DeclareMathSymbol{\iota}{\mathalpha}{letters}{19} \DeclareMathSymbol{\kappa}{\mathalpha}{letters}{20} \DeclareMathSymbol{\lambda}{\mathalpha}{letters}{21} \DeclareMathSymbol{\mu}{\mathalpha}{letters}{22} \DeclareMathSymbol{\nu}{\mathalpha}{letters}{23} \DeclareMathSymbol{\xi}{\mathalpha}{letters}{24} \DeclareMathSymbol{\pi}{\mathalpha}{letters}{25} \DeclareMathSymbol{\rho}{\mathalpha}{letters}{26} \DeclareMathSymbol{\sigma}{\mathalpha}{letters}{27} \DeclareMathSymbol{\tau}{\mathalpha}{letters}{28} \DeclareMathSymbol{\upsilon}{\mathalpha}{letters}{29} \DeclareMathSymbol{\phi}{\mathalpha}{letters}{30} \DeclareMathSymbol{\chi}{\mathalpha}{letters}{31} \DeclareMathSymbol{\psi}{\mathalpha}{letters}{32} \DeclareMathSymbol{\omega}{\mathalpha}{letters}{33} \DeclareMathSymbol{\varepsilon}{\mathalpha}{letters}{34} \DeclareMathSymbol{\vartheta}{\mathalpha}{letters}{35} \DeclareMathSymbol{\varpi}{\mathalpha}{letters}{36} \DeclareMathSymbol{\varrho}{\mathalpha}{letters}{37} \DeclareMathSymbol{\varsigma}{\mathalpha}{letters}{38} \DeclareMathSymbol{\varphi}{\mathalpha}{letters}{39} \let\upDelta\Delta \let\upOmega\Omega \let\upGamma\Gamma \let\upTheta\Theta \let\upLambda\Lambda \let\upXi\Xi \let\upPi\Pi \let\upSigma\Sigma \let\upUpsilon\Upsilon \let\upPhi\Phi \let\upPsi\Psi  %doesn't seem to have an effect %\DeclareMathSizes{12}{12.5}{10}{10}  \begin{document} \begin{frame}  Some Math E$E$ \end{frame} \end{document}   This works quite well, except that the math letters are somewhat smaller than the normal Helvetica text. Is there a way to scale the fontsize, say by 1.1, if the typesetter is in math mode? What is happening here, when I use squared loss in logistic regression setting? I am trying to use squared loss to do binary classification on a toy data set. I am using mtcars data set, use mile per gallon and weight to predict transmission type. The plot below shows the two types of transmission type data in different colors, and decision boundary generated by different loss function. The squared loss is $\sum_i (y_i-p_i)^2$ where $y_i$ is the ground truth label (0 or 1) and $p_i$ is the predicted probability $p_i=\text{Logit}^{-1}(\beta^Tx_i)$. In other words, I am replace logistic loss with squared loss in classification setting, other parts are the same. For a toy example with mtcars data, in many cases, I got a model &quot;similar&quot; to logistic regression (see following figure, with random seed 0).  But in somethings (if we do set.seed(1)), squared loss seems not working well.  What is happening here? The optimization does not converge? Logistic loss is easier to optimize comparing to squared loss? Any help would be appreciated.  Code d=mtcars[,c(&quot;am&quot;,&quot;mpg&quot;,&quot;wt&quot;)] plot(d$mpg,d$wt,col=factor(d$am)) lg_fit=glm(am~.,d, family = binomial()) abline(-lg_fit$coefficients[1]/lg_fit$coefficients[3],        -lg_fit$coefficients[2]/lg_fit$coefficients[3]) grid()  # sq loss lossSqOnBinary&lt;-function(x,y,w){   p=plogis(x %*% w)   return(sum((y-p)^2)) }  # this random seed is important for reproducing the problem set.seed(0)  x0=runif(3) x=as.matrix(cbind(1,d[,2:3])) y=d$am opt=optim(x0, lossSqOnBinary, method=&quot;BFGS&quot;, x=x,y=y)  abline(-opt$par[1]/opt$par[3],        -opt$par[2]/opt$par[3], lty=2) legend(25,5,c(&quot;logisitc loss&quot;,&quot;squared loss&quot;), lty=c(1,2)) How do I change my update server in Ubuntu 18.04? The first thing I did after installing 16.04 LTS was to change my update server to Main Server. I can not find a similar option in Ubuntu 18.04.  How do I change it? Password Protect QGIS project On a shared computer, I have a QGIS project which links up to a PostGIS database that contains my data. If a user wants to access layers from the db, they have to enter the db credentials, so that's OK.   However, I have previously logged on and imported layers from my db into QGIS, and manipulated them in QGIS (styling options based on meta-data, etc.)... Anybody who opens my QGIS project can view these layers in QGIS, and can therefore see the data I wish to be protected in my db.  Is there a way to password protect my QGIS project? How to prove $\cos \frac{2\pi }{5}=\frac{-1+\sqrt{5}}{4}$? I would like to find the apothem of a regular pentagon. It follows from   $$\cos \dfrac{2\pi }{5}=\dfrac{-1+\sqrt{5}}{4}.$$  But how can this be proved (geometrically or trigonometrically)? Converting a .lasd (Lidar) coordinate system? How can one change a coordinate system for a .lasd (Lidar) dataset?  The file is currently in UTM_Zone_15N and I am trying to convert it to IL_East. I've created main SELECT statement like below. For every row in Base table (base on IDKey I've added columns with values from result of INNER JOIN of few tables.  SELECT   IDKey,    Name,    (select Amount from Table1 INNER JOIN Table2 ... where ID=IDKey) AS AmountTypeX,    (select Amount from Table1 INNER JOIN Table2 ... where ID=IDKey) AS AmountTypeY FROM BaseTable   BaseTable:  IDKey Name  ---------- 1     Ian 2     John 3     Ann ...   INNER JOIN of few tables Table1, Table2... :   ID Amount Type -------------- 1  100    X 1  200    Y 2  300    X 2  400    Y 3  500    X 3  600    Y ...   Result looks like:  IDKey  Name  AmountTypeX  AmountTypeY ------------------------------------- 1      Ian   100          200 2      John  300          400 3      Ann   500          600 ...   Do you have any suggestion how to avoid this nested SELECT statements in the main query at the begining and made this query simpler and more effective ?  I wast thinking about PIVOTING of the INNER JOIN result to look like below (all data for particular ID in one row) and then JOIN with main query but Have no idea how to do this and is it possible.  ID  X   Y ----------- 1   100 200 2   300 400 3   500 600 ... I have no idea how to find this integral:  $$\int_0^1\frac{(x-x^2)^4}{1+x^2}\ dx\ ?$$  Any help would be appreciated. Thanks in advance. What is the proper way to write the plural of a single letter? Or a word used as a word ('mention' usage)? (another apostrophe question) When writing (a blog post, script, etc..) what is the proper way to indicate two or more instances of a single letter? For instance, in Monty Python's Bookshop Sketch:     C: I wonder if you might have a copy of "Rarnaby Budge"?      P: No, as I say, we're right out of Edmund Wells!      C: No, not Edmund Wells - Charles Dikkens.      P: (pause - eagerly) Charles Dickens??      C: Yes.      P: (excitedly) You mean "Barnaby Rudge"!      C: No, "Rarnaby Budge" by Charles Dikkens.  That's Dikkens with two Ks, the      well-known Dutch author.      P: (slight pause) No, well we don't have "Rarnaby Budge" by Charles Dikkens      with two Ks, the well-known Dutch author, and perhaps to save time I      should add that we don't have "Karnaby Fudge" by Darles Chickens, or      "Farmer of Sludge" by Marles Pickens, or even "Stickwick Stapers" by Farles      Wickens with four M's and a silent Q!!!!!  Why don't you try W. H. Smith's?      C: Ah did, They sent me here.   I had always believed that plural never uses an apostrophe before the 's' (it's only used for possession), but I have rarely seen in written material the format "four Ms". (On a side note, whoever wrote  also used "two Ks".)  On a side note, and perhaps this should be a separate question, if a Compact Disc is a CD, then two Compact Discs would be two CDs right? (I see "CD's" written everywhere) ASP.NET MVC How to pass JSON object from View to Controller as Parameter I have a complex JSON object which is sent to the View without any issues (as shown below) but I cannot work out how Serialize this data back to a .NET object when it is passed back to the controller through an AJAX call. Details of the various parts are below.     var ObjectA = {         "Name": 1,         "Starting": new Date(1221644506800),          "Timeline": [             {                 "StartTime": new Date(1221644506800),                 "GoesFor": 200              }             ,             {                 "StartTime": new Date(1221644506800),                 "GoesFor": 100              }          ]     };   I am not sure how this object can be passed to a Controller Method, I have this method below where the Timelines object mirrors the above JS object using Properties.  public JsonResult Save(Timelines person)   The jQuery I am using is:          var encoded = $.toJSON(SessionSchedule);          $.ajax({             url: "/Timeline/Save",             type: "POST",             dataType: 'json',             data: encoded,             contentType: "application/json; charset=utf-8",             beforeSend: function() { $("#saveStatus").html("Saving").show(); },             success: function(result) {                 alert(result.Result);                 $("#saveStatus").html(result.Result).show();             }         });   I have seen this question which is similar, but not quite the same as I am not using a forms to manipulate the data.   I have also seen references to using a 'JsonFilter' to manually deserialize the JSON, but was wondering if there is a way to do it nativly though ASP.NET MVC? Or what are the best practices for passing data in this way? pfsense more than 2 isp provider is it possible to bridge more than 2 isp provider using pfsense? what router or device can bridge 2 or more isp providers in a router? i am planning to bridge at lease 5 isp providers to create a very good internet connection, what can i do to link all 5 providers in 1 router? Dr Math told his family to write 4 different integers from 1 to 9 on to the 4 ] Profitable strategy in coin tossing? There is a coin with a probability $p$ of heads, and $1-p$ of tails. Tosses are independent of each other. When you bet an amount of money $x$, you receive $2x$ if it lands heads, and you lose what you bet if it lands tails.  We are going to use the following strategy:  You start betting an initial amount $x_0$. Every time you lose, you bet twice what you bet in the previous throw. You keep doing this, until you win, at which point you retire, or start again, betting $x_0$.  The interesting case of course is when $p &lt; 0.5$.  The question is: How profitable is this strategy? Intuitively I feel that eventually I can always win an arbitrarily large amount of money. But that can't be entirely right ("the house always wins!"). So what am I missing here? What's the expected win in each run?  Also, does this sort of strategy have a name in the literature?  P.S.: Found this later, Vectors, structs and std::find I have a third-party library which consists mainly of a large number of static (.a) library files.  I can compile this into a single .a library file, but I really need it to be a single .so shared library file.  Is there any way to convert a static .a file into a shared .so file?  Or more generally is there a good way to combine a huge number of static .a files with a few .o object files into a single .so file? I have a loop going, but there is the possibility for exceptions to be raised inside the loop. This of course would stop my program all together. To prevent that I catch the exceptions and handle them. But then the rest of the iteration runs even though an exception occurred. Is there a keyword to use in my except: clause to just skip the rest of the current iteration? Proof a $2^n$ by $2^n$ board can be filled using L shaped trominoes and 1 monomino C# regex pattern to extract urls from given string - not full html urls but bare links as well Remove all content using pure JS Is there a noun for something that is "out of place" in space, like an anachronism is "out of place" in time? E.g., an old-timey barber shop in a chic neighborhood.