I am kinda new to Linux.   My base issue: I need to show the output of curl cheat.sh/python like a man or less page, so that I can easily scroll up and down.  What have I tried: curl cheat.sh/python | less  outout: some weird text like this-     ESC[38;5;246m# Python is a high-level programming languageESC[39m   ESC[38;5;246m# and python is a Python interpreter.ESC[39m      ESC[38;5;246m# Basic example of server with pythonESC[39m   ESC[38;5;246m# Will start a Web Server in the current directory on   port 8 000ESC[39m ESC[38;5;246m# go to    ESC[38;5;246m#ESC[39m ESC[38;5;246m# Python v2.7ESC[39m   ESC[38;5;252mpythonESC[39mESC[38;5;252m   ESC[39mESC[38;5;252m-mESC[39mESC[ 38;5;252m   ESC[39mESC[38;5;252mSimpleHTTPServerESC[39m ESC[38;5;246m# Python   3ESC[39m ESC[38;5;252mpythonESC[39mESC[38;5;252m   ESC[39mESC[38;5;252m-mESC[39mESC[ 38;5;252m   ESC[39mESC[38;5;252mhttp.serverESC[39mESC[38;5;252m ESC[39mESC[   38;5;67m8000ESC[39m ...   After having a look at , I tried: curl -vs cheat.sh 2&gt;&amp;1 | less  but output was kinda same:     Accept: /    * Mark bundle as not supporting multiuse HTTP/1.1 200 OK Server: nginx/1.13.12 Date: Wed, 25 Mar 2020 17:50:04 GMT Content-Type:      text/plain; charset=utf-8 Content-Length: 25502 Connection: keep-alive      Strict-Transport-Security: max-age=63072000; includeSubdomains      X-Frame-Options: DENY X-Content-Type-Options: nosniff  { [2429 bytes data]   ESC[38;2;0;204;0m_ESC[0mESC[38;2;0;204;0m_ESC[0mESC[38;2;0;204;0m   ESC[0mESC[38;2;0;204;0m ESC[0mESC[38;2;0; 204;0m ESC[0m   | |     __ | |   _| |__ ESC[38;2;0;204;0m\ESC[0mESC[38;2;0;204;0m   ESC[0mESC[38;2;0;204;0m\ESC[0mESC[38;2;0;204;0m ESC[0mESC[38;2;0;   204;0m ESC[0m ESC[48;2;85;85;85m ESC[0mESC[48;2;85;85;85m   ESC[0mESC[48;2;85;85;85m   ESC[0mESC[48;2;85;85;85mTESC[0mESC[48;2;85;85;85mhESC[0mESC[48   ;2;85;85;85meESC[0mESC[48;2;85;85;85m   ESC[0mESC[48;2;85;85;85moESC[0mESC[48;2;85;85;85mnESC[0mESC[48;2;85;85;85mlESC[0mESC[48;2;85;85;85myESC[0m   ESC[48;2;85;85;85m   ESC[0mESC[48;2;85;85;85mcESC[0mESC[48;2;85;85;85mhESC[0mESC[48;2;85;85;85meESC[0mESC[48;2;85;85;85maESC[0mESC[48;2;85;85;85mt   ESC[0mESC[48;2;85;85;85m   ESC[0mESC[48;2;85;85;85msESC[0mESC[48;2;85;85;85mhESC[0mESC[48;2;85;85;85meESC[0mESC[48;2;85;85;85meESC[0mESC[48;2;85;85   ;85mtESC[0mESC[48;2;85;85;85m   ESC[0mESC[48;2;85;85;85myESC[0mESC[48;2;85;85;85moESC[0mESC[48;2;85;85;85muESC[0mESC[48;2;85;85;85m   ESC[0mESC[48;2;   85;85;85mnESC[0mESC[48;2;85;85;85meESC[0mESC[48;2;85;85;85meESC[0mESC[48;2;85;85;85mdESC[0mESC[48;2;85;85;85m   ESC[0mESC[48;2;85;85;85m ESC[0mESC[ 48;2;85;85;85m ESC[0m ...   Finally if I change the above code like (this is probably the wrong approach) : curl -vs cheat.sh 1&gt;&amp;2 | less  Then I will get the needed output of curl, but upon pressing a button the terminal shows like:     ~       ~       ~       ~       ~       ~       ~       ~       ~       ~       ~ (END)   and I can basically press q to quit out of less from there.
I have a file with ANSI colors.  test.txt: \e[0;31mExample\e[0m  I would like to display the content of this file in a terminal, like cat does, but I would like to display the colors as well.
Function with varying number of For Loops (python) I have problems with getting an Asus PCE-N53 11n N600 PCI-E Adapter card to work on my desktop computer.  As far as I can tell no drivers are installed for the card. I know I can manually download the drivers directly from Asus, but I would rather not go that route.  If there are anyone that knows about any packages or other things I can do to make this work would be much appreciated.  Some systems details:  $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.1 LTS Release:    12.04 Codename:   precise   $ sudo lshw -C network   *-network                       description: Ethernet interface        product: RTL8111/8168B PCI Express Gigabit Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: eth0        version: 06        serial: d4:3d:7e:03:b9:1d        size: 100Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.0.173 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:43 ioport:d000(size=256) memory:f2104000-f2104fff memory:f2100000-f2103fff  *-network UNCLAIMED        description: Network controller        product: Ralink corp.        vendor: Ralink corp.        physical id: 0        bus info: pci@0000:04:00.0        version: 00        width: 32 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: latency=0        resources: memory:f7100000-f710ffff  $ lsmod Module                  Size  Used by nvidia              12319264  51  vesafb                 13844  1  snd_hda_codec_hdmi     32474  1  joydev                 17693  0  bnep                   18281  2  rfcomm                 47604  0  bluetooth             180104  10 bnep,rfcomm snd_hda_codec_realtek   224173  1  snd_seq_midi           13324  0  ppdev                  17113  0  snd_rawmidi            30748  1 snd_seq_midi usbhid                 47199  0  hid                    99559  1 usbhid nouveau               774641  0  parport_pc             32866  1  snd_hda_intel          33773  5  ttm                    76949  1 nouveau snd_hda_codec         127706  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel drm_kms_helper         46978  1 nouveau drm                   242038  3 nouveau,ttm,drm_kms_helper snd_seq_midi_event     14899  1 snd_seq_midi snd_hwdep              13668  1 snd_hda_codec snd_seq                61896  2 snd_seq_midi,snd_seq_midi_event i2c_algo_bit           13423  1 nouveau mxm_wmi                12979  1 nouveau wmi                    19256  1 mxm_wmi mac_hid                13253  0  snd_pcm                97188  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec psmouse                97362  0  video                  19596  1 nouveau snd_timer              29990  2 snd_seq,snd_pcm snd_seq_device         14540  3 snd_seq_midi,snd_rawmidi,snd_seq snd                    78855  20 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_rawmidi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_pcm,snd_timer,snd_seq_device serio_raw              13211  0  soundcore              15091  1 snd snd_page_alloc         18529  2 snd_hda_intel,snd_pcm mei                    41616  0  lp                     17799  0  parport                46562  3 ppdev,parport_pc,lp r8169                  62099  0 How does SO's (or other SE sites) versioning work of questions and answers? Do they use some standard piece of code or is it something homebrew?  With versioning I meant if for example a question is edited you'll see all the changes (a diff). Passing functions to setTimeout in a loop: always the last value? I'd like some suggestions for good reading materials on the Keldysh formalism in the condensed matter physics community. I'm familiar with the imaginary time, coherent state, and path integral formalisms, but lately, I've been seeing Keldysh more and more in papers. My understanding is that it is superior to the imaginary time formalism at least in that one can evaluate non-equilibrium expectations. bash function cannot change the value of a local variable when called by $() The following code works differently depending on which way Parse_Short_Switches() is called.  After calling the function 'Parse_Short_Switches' by using result=$(Parse_Short_Switches), the value of $error_flag is NOT set to -1 as I would expect.  After calling the function 'Parse_Short_Switches' by simply using Parse_Short_Switches, the the value of $error_flag is set to -1 as I would expect.  Any help would be greatly appreciated.  Thanks  #!/bin/bash  function Parse_Short_Switches() { echo "error_flag inside of the function= $error_flag" 1&gt;&amp;2 error_flag="-1" echo "blah blah ..." }  # --- MAIN --- error_flag="999" echo "error_flag= $error_flag" #result=$(Parse_Short_Switches) Parse_Short_Switches echo "error_flag= $error_flag" TZInfo::DataSourceNotFound error starting Rails v4.1.0 server on Windows Segmentation fault with strcpy() Finder search doesn't work properly after Yosemite update Ever since I upgraded to Yosemite, search no longer works properly in Finder. Spotlight works fine but Finder search just gives me a blank window with a spinning ball.  I've tried reindexing and I've also tried deleting Spotlight's .plist file. I restart my MacBook Pro after doing either. Finder search will work for one or two queries and stop again. I don't know what else I can do. Why did Owen Chase not fire his harpoon at Moby Dick? In movie In the Heart of the Sea, when Owen Chase finally faces the big white whale (later named Moby Dick) with his harpoon, why does he not do it? Not sure this is something which people will know on here are not.    We currently have a BI setup where we have Integration services on one SQL instance and the data warehouse database on a separate SQL Instance.    My question is, as no users physically connect to the Integration services SQL instance and it is purely used to execute package from the integrations service catalog via SQL agent, do we need to License every user i.e. Cal's for that SQL instance.  Basically i'm wanting to know if I could utilize SQL 2016 for an integration services instance and use features like Json manipulation etc and then load this data into the 2014 version instance...but what level of licensing will I need? Auto.arima with daily data: how to capture seasonality/periodicity? I am fitting an ARIMA model on a daily time series. Data are collected daily from 02-01-2010 to 30-07-2011 and are about newspaper sales. Since a weekly pattern in sales can be found (the daily average amount of copies sold is usually the same from Monday to Friday, then increases on Saturday and Sunday), I am trying to capture this "seasonality". Given the sales data "data", I create the time series as follows:  salests&lt;-ts(data,start=c(2010,1),frequency=365)   and then I use the auto.arima(.) function to select the best ARIMA model via AIC criterion. The result is always a non-seasonal ARIMA model, but if I try some SARIMAs model with the following syntax as example:  sarima1&lt;-arima(salests, order = c(2,1,2), seasonal = list(order = c(1, 0, 1), period = 7))   I can obtain better results. Is there anything wrongs in the ts command / arima specification? The weekly pattern is very strong so I would not expect so many difficulties in capturing it.  Any help would be very useful. Thank you, Giulia Deppieri  Update:  I have already changed some arguments. More precisely, the procedure selects ARIMA(4,1,3) as the best model when I set D=7, but AIC and the others good of fit indexes and forecasts as well) do not improve at all. I guess there's some mistakes due to confusion between seasonality and periodicity..?!   Auto.arima call used and output obtained:  modArima&lt;-auto.arima(salests,D=7,max.P = 5, max.Q = 5)     ARIMA(2,1,2) with drift         : 1e+20  ARIMA(0,1,0) with drift         : 5265.543  ARIMA(1,1,0) with drift         : 5182.772  ARIMA(0,1,1) with drift         : 1e+20  ARIMA(2,1,0) with drift         : 5137.279  ARIMA(2,1,1) with drift         : 1e+20  ARIMA(3,1,1) with drift         : 1e+20  ARIMA(2,1,0)                    : 5135.382  ARIMA(1,1,0)                    : 5180.817  ARIMA(3,1,0)                    : 5117.714  ARIMA(3,1,1)                    : 1e+20  ARIMA(4,1,1)                    : 5045.236  ARIMA(4,1,1) with drift         : 5040.53  ARIMA(5,1,1) with drift         : 1e+20  ARIMA(4,1,0) with drift         : 5112.614  ARIMA(4,1,2) with drift         : 4953.417  ARIMA(5,1,3) with drift         : 1e+20  ARIMA(4,1,2)                    : 4960.516  ARIMA(3,1,2) with drift         : 1e+20  ARIMA(5,1,2) with drift         : 1e+20  ARIMA(4,1,3) with drift         : 4868.669  ARIMA(5,1,4) with drift         : 1e+20  ARIMA(4,1,3)                    : 4870.92  ARIMA(3,1,3) with drift         : 1e+20  ARIMA(4,1,4) with drift         : 4874.095   Best model: ARIMA(4,1,3) with drift           So I assume the arima function should be used as:  bestOrder &lt;- cbind(modArima$arma[1],modArima$arma[5],modArima$arma[2]) sarima1&lt;-arima(salests, order = c(4,1,3))   with no seasonal component parameters and period specifications. Data and exploratory analysis show that the same weekly pattern can be approximatively considered for each week, with the only exception of August 2010 (when a consistent increase in sales is registered). Unfortunately I have no expertise in timeseries modeling at all, in fact I am trying this approach in order to find an alternative solution to other parametric e non-parametric models I have tried to fit for these problematic data. I have also many dependent numeric variables but they have shown low power in explaining the response variable: undoubtedly, the most difficult part to model is the time component. Moreover, the construction of dummy variables to represent months and weekdays turned out not to be a robust solution. how to remove the double quotes in a csv I have a CSV file like  a.csv "1,2,3,4,9" "1,2,3,6,24" "1,2,6,8,28" "1,2,4,6,30"   I want something like   b.csv 1,2,3,4,9 1,2,3,6,24 1,2,6,8,28 1,2,4,6,30   I tried awk '{split($0,a,"\""); But did not help.Any help is appreciated. Why does a helium filled balloon move forward in a car when the car is accelerating? I noticed that when I had a helium filled, latex balloon inside of my car, it moved forward in the cabin as I accelerated forward. The faster I accelerated forward, the faster the balloon went from the back of the car to the front of the car. The balloon didn't have a string.  This became a game with my 4 year old as we drove home. We figured out where the balloon would go based on how fast I accelerated, turned corners etc.  I expected that it would act a lot like the water in a cup does, but it was the total opposite it seemed.  What forces caused this behavior?  I assumed it has something to do with the fluid dynamics in the closed cabin, but I can't figure it out. Get string after character Batch files: How to read a file? I read on here of an exercise in interviews known as validating a binary search tree.  How exactly does this work? What would one be looking for in validating a binary search tree? I have written a basic search tree, but never heard of this concept. Question: Let $F_n$ the sequence of Fibonacci numbers, given by $F_0 = 0, F_1 = 1$ and $F_n = F_{n-1} + F_{n-2}$ for $n \geq 2$. Show for $n, m \in \mathbb{N}$: $$F_{n+m} = F_{n-1}F_m + F_n F_{m+1}$$   My (very limited) attempt so far: after creating a small list of the values $F_0=0, F_1=1, F_2=1, F_3=2, F_4=3, F_5=5, F_6=8, F_7=13, F_8=21, F_9=34, F_{10}=55$ i can see that yes it does seem to work for instance $F_{6+3}=F_5 F_3 +F_6 F_4 = 10 +24 = 34 = F_9$. However, I really don't know where to begin as showing that this must hold in general terms. Should I be looking to use limits? Or perhaps induction? What is the best way to solve this? Children's book with "square triangles" in parallel universe? In the 1960s I read book--an older children's book, I think--which I loved, and still remember, roughly.  I have no idea what the title is or who the author is, and I'm wondering if anyone knows this one:  Scientists had invented a device which they didn't fully understand, and which had puzzling effects.  For example, when a pencil was put into the machine, it disappeared, and then reappeared inside out: The lead was on the outside.  When people went into the machine, they came back dead, having died from fright.  Finally they sent a very open-minded person into the machine.  She was an artist, I think.  She was able to return alive, and described an alternate universe in which geometry was very different.  I distinctly remember that there were supposedly square triangles or four-sided triangles--or was it three-sided squares?  (This is, of course, a literally contradictory claim, but I didn't see the matter as clearly then.)  Thanks! Let $n\in\mathbb N$ and let $a_1,\ldots,a_n$ be natural numbers smaller than $10^n$. Write each $a_k$ in base $10$ and add $0$'s to the left of each decimal expansion, if needed, so that each $a_k$ is written with $n$ digits. Consider the matrix such that the entries of the $k$th row are the digits of $a_k$ (written in the same order). Let $d\in\mathbb N$ be such that $d$ divides each $a_k$. Prove that $d\mid\det A$.   For instance, suppose that $n=4$ and that your numbers are $3876$, $2784$, $684$, and $8388$, each of which is a multiple of $12$. Then$$A=\begin{bmatrix}3 &amp; 8 &amp; 7 &amp; 6 \\  2 &amp; 7 &amp; 8 &amp; 4 \\ 0 &amp; 6 &amp; 8 &amp; 4 \\  8 &amp; 3 &amp; 8 &amp; 8\end{bmatrix}$$and $\det A=-360$, which is, in fact, a multiple of $12$.  I learned about this problem yesterday. I found it quite cute and I decided to share it with all of you.  Note: I know how to prove it.