Return items from list in function. Python
Python Script returns unintended "None" after execution of a function
What is a "good fit" Brier score and Harrell's C Index How to execute hostapd command in cli? I always got error. When i execute hostapd command. I was changed everything in my hostapd.conf file but i got error.  hostapd_cli wps_pbc Failed to connect to hostapd - wpa_ctrl_open: No such file or directory  Can anyone help to me.? Make Blender usable on high resolution screen Is it possible to reference an excel cell in a comment? I have an Excel balance sheet with a total at the bottom. On that cell I have a comment that says that the reason the total is X is because of what happens in J2. What happens if I insert another row before that, now my comment is wrong because all the rows jumped up a value.  Is there any way to reference a cell dynamically in an Excel commment? Let the search find questions by ID Can “does” be contracted? Observed and Observable What is observed and what is observable? I found this two word frequently in the context of random variable and realization of random variable.  What is the difference between observed and observable? NewForm.aspx disappeared JSON+Node.js - Unexpected token o How can I find $\lim_{n\to \infty} a_n$ Let $$a_n=\left(1-\dfrac{1}{\sqrt2}\right)\dots \left(1-\dfrac{1}{\sqrt{n+1}}\right),n\ge1$$ Then find $\lim_{n\to \infty} a_n$.   How can I proceed? I am stuck at the first step. Please help. Data recovery from an accidental format on ext4 partition When I was installing Mint Debian edition unlike the classic edition, the installation automatically formated my home partition when I did not specify to format.  So the formatting previously was ext4 as is now. I believe the data is still there as it was a quick format.   I have now booted the computer up on a live USB to prevent writing on it.  Ran testDisk. Is there anyway to recover to a previous superblock so i can recover my data? Hyperlinks are not visible in the generated PDF CV Obtain user and kernel time of a running process? Is there way to determine using standard Linux/Unix tools how much a process has spent in User mode and how much waiting for kernel?  In other words, exactly the "user" and "sys" values that you get when using time, but during process runtime?  NOTE: one way is to use WBEM and enumerate Linux_UnixProcess, but I need to use other tool than this; my aim is to verify what WBEM provider tells me, i.e. I need to use different tool. nth fibonacci number in sublinear time AMPscript Error with XML I have a Partner sending some data to a Triggered Email/Data Extension which includes a column for XML data.   The trigger is erroring and not allowing the data to get to the Data Extension.   Below is what they are sending over. Is the formatting of the XML incorrect?  XML data that I've used in the past in Data Extensions starts with....   &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;   This version of XML starts with... {"XML":  Could that be it?  {"To": {"SubscriberKey": "test@acme.com", "ContactAttributes": {"SubscriberAttributes": **{"XML":** "&lt;root&gt;&lt;ITEM&gt;&lt;ITEM_PRODUCT_NAME&gt;dark chocolate nuts &amp; sea salt&lt;/ITEM_PRODUCT_NAME&gt;&lt;ITEM_PRODUCT_SKU&gt;15127&lt;/ITEM_PRODUCT_SKU&gt;&lt;ITEM_PRODUCT_URL&gt;https://www.test.com/15127.html&lt;/ITEM_PRODUCT_URL&gt;&lt;ITEM_PRODUCT_IMG_URL&gt;https://www.test.com/images/nuts.png&lt;/ITEM_PRODUCT_IMG_URL&gt;&lt;ITEM_QTY&gt;1&lt;/ITEM_QTY&gt;&lt;ITEM_SUBSCRIPTION_PRICE&gt;12.59&lt;/ITEM_SUBSCRIPTION_PRICE&gt;&lt;ITEM_TOTAL&gt;12.59&lt;/ITEM_TOTAL&gt;&lt;/ITEM&gt;&lt;ITEM&gt;&lt;ITEM_PRODUCT_NAME&gt;crunchy peanut butter&lt;/ITEM_PRODUCT_NAME&gt;&lt;ITEM_PRODUCT_SKU&gt;41800&lt;/ITEM_PRODUCT_SKU&gt;&lt;ITEM_PRODUCT_URL&gt;https://www.test.com/images/butter.png&lt;/ITEM_PRODUCT_IMG_URL&gt;&lt;ITEM_QTY&gt;1&lt;/ITEM_QTY&gt;&lt;ITEM_SUBSCRIPTION_PRICE&gt;11.37&lt;/ITEM_SUBSCRIPTION_PRICE&gt;&lt;ITEM_TOTAL&gt;9.55&lt;/ITEM_TOTAL&gt;&lt;/ITEM&gt;&lt;ITEM&gt;&lt;ITEM_PRODUCT_NAME&gt;pear cinnamon &amp; pecan&lt;/ITEM_PRODUCT_NAME&gt;&lt;ITEM_PRODUCT_SKU&gt;17227&lt;/ITEM_PRODUCT_SKU&gt;&lt;ITEM_PRODUCT_URL&gt;https://www.test.com&lt;/ITEM_PRODUCT_URL&gt;&lt;ITEM_PRODUCT_IMG_URL&gt;https://www.test.com/images/apples.png&lt;/ITEM_PRODUCT_IMG_URL&gt;&lt;ITEM_QTY&gt;1&lt;/ITEM_QTY&gt;&lt;ITEM_SUBSCRIPTION_PRICE&gt;12.59&lt;/ITEM_SUBSCRIPTION_PRICE&gt;&lt;ITEM_TOTAL&gt;12.59&lt;/ITEM_TOTAL&gt;&lt;/ITEM&gt;&lt;/root&gt;", "SHIPPING_LNAME": "Tester", "FIRST_NAME": "Test", "LAST_NAME": "Tester", "ORDER_TOTAL_SAVINGS": -5.97, "MERCHANT_ORDER_ID": "1810002352", "SHIPPING_ADDRESS_STATE": "NY", "ORDER_PLACE_DATE_LONG": "Fri 11 January 2019", "SHIPPING_ADDRESS_ZIP": "10004", "ORDER_SHIPPING": 0.00, "CARD_TYPE": "Visa", "ORDER_SUBTOTAL": 47.32, "ORDER_PLACE_DATE_SHORT": "01/11/2019", "SHIPPING_FNAME": "Test", "SHIPPING_ADDRESS_TOWN": "new york", "ORDER_TOTAL": 47.32, "CARD_EXPIRE": "12/2027", "CARD_HOLDER": "Test Tester", "SHIPPING_ADDRESS_1": "75 broad st", "SHIPPING_ADDRESS_2": "fl 23"}}, "Address": "acme@test.com"}}   AMPSCRIPT IN EMAIL Calling the XML....  %%[   var @LOOPINGAPPENDIX  set @LOOPINGAPPENDIX = AttributeValue("LOOPINGAPPENDIX")  set @productRows = BuildRowSetFromXML(@LOOPINGAPPENDIX, "/root/ITEM", 0)  ]%%   %%[   for @j = 1 to RowCount(@productRows) do       set @productXML = Concat("", Field(Row(@productRows, @j), "XML"), "")      set @ITEMPRODUCTNAME = Trim(Field(Row(BuildRowSetFromXML(@LOOPINGAPPENDIX, "/root/ITEM/ITEM_PRODUCT_NAME", 0), 1), "Value"))      set @ITEMPRODUCTSKU = Trim(Field(Row(BuildRowSetFromXML(@LOOPINGAPPENDIX, "/root/ITEM/ITEM_PRODUCT_SKU", 0), 1), "Value"))      set @ITEMPRODUCTURL = Trim(Field(Row(BuildRowSetFromXML(@LOOPINGAPPENDIX, "/root/ITEM/ITEM_PRODUCT_URL", 0), 1), "Value"))      set @ITEMPRODUCTIMGURL = Trim(Field(Row(BuildRowSetFromXML(@LOOPINGAPPENDIX, "/root/ITEM/ITEM_PRODUCT_IMG_URL", 0), 1), "Value"))      set @ITEMQTY = Trim(Field(Row(BuildRowSetFromXML(@LOOPINGAPPENDIX, "/root/ITEM/ITEM_QTY", 0), 1), "Value"))      set @ITEMSUBSCRIPTIONPRICE = Trim(Field(Row(BuildRowSetFromXML(@LOOPINGAPPENDIX, "/root/ITEM/ITEM_SUBSCRIPTION_PRICE", 0), 1), "Value"))      set @ITEMTOTAL = Trim(Field(Row(BuildRowSetFromXML(@LOOPINGAPPENDIX, "/root/ITEM/ITEM_TOTAL", 0), 1), "Value"))      set @rowColor = Iif(Mod(@j,2) == 0, "#efefef", "#ffffff")   ]%%   %%[endif]%%   %%[next @j]%% Install brother dcp195c, receiving data but nothing happens, why? Can someone please help me to install brother dcp195c drivers on Ubuntu v12?  Using the default driver, the printer says that it is receiving data but nothing happens. If a mass moves close to the speed of light, does it turn into a black hole? Proof of $\lim_{n\to \infty} \sqrt[n]{n}=1$ Thomson et al. provide a proof that $\lim_{n\rightarrow \infty} \sqrt[n]{n}=1$ in . It has to do with using an inequality that relies on the binomial theorem:  I have an alternative proof that I know (from elsewhere) as follows.  Proof. \begin{align} \lim_{n\rightarrow \infty} \frac{ \log n}{n} = 0 \end{align} Then using this, I can instead prove: \begin{align} \lim_{n\rightarrow \infty} \sqrt[n]{n} &amp;= \lim_{n\rightarrow \infty} \exp{\frac{ \log n}{n}} \newline &amp; = \exp{0} \newline &amp; = 1 \end{align}  On the one hand, it seems like a valid proof to me. On the other hand, I know I should be careful with infinite sequences. The step I'm most unsure of is: \begin{align} \lim_{n\rightarrow \infty} \sqrt[n]{n} = \lim_{n\rightarrow \infty} \exp{\frac{ \log n}{n}} \end{align} I know such an identity would hold for bounded $n$ but I'm not sure I can use this identity when $n\rightarrow \infty$. Question: If I am correct, then would there be any cases where I would be wrong? Specifically, given any sequence $x_n$, can I always assume: \begin{align} \lim_{n\rightarrow \infty} x_n = \lim_{n\rightarrow \infty} \exp(\log x_n) \end{align} Or are there sequences that invalidate that identity?  (Edited to expand the last question) given any sequence $x_n$, can I always assume: \begin{align} \lim_{n\rightarrow \infty} x_n &amp;=  \exp(\log \lim_{n\rightarrow \infty} x_n) \newline &amp;=  \exp(\lim_{n\rightarrow \infty} \log x_n) \newline &amp;=  \lim_{n\rightarrow \infty} \exp( \log x_n) \end{align} Or are there sequences that invalidate any of the above identities? (Edited to repurpose this question). Please also feel free to add different proofs of $\lim_{n\rightarrow \infty} \sqrt[n]{n}=1$. Will Unity allow making custom launcher icons from .desktop files or via menu editing system? (Right now the launcher doesn't give the option to "keep in launcher" on all programs.  For some programs I use, I have to make custom launchers or .desktop files.  For instance, daily blender builds are generally just folders with an executable.  In basic Gnome or KDE, I can make a new menu entry with the menu editing system. Then, I can also add it to Docky either from the menu or by dragging a .desktop file to it. Unity launcher doesn't support drag and drop, so thats not a bug or anything, but when I open a .desktop file, it has unpredictable results. Most time it will not have "keep in launcher". Sometime it will have a pinnable item without the .desktop's icon, and if I pin the item to the launcher, it will not call upon the program again after closing it. I've also gotten it to just work with a .desktop file for celtx. What does the '!' really do when it's added to an ex command (:wq! | :w! | :q! )? I understand that it means force to do something.  When doing $ vim -R file I enter in read-only mode, but this works as preventive mode only   -R  Readonly mode.  The 'readonly' option will be set for all the     files being edited.  You can still edit the buffer, but will     be prevented from accidentally overwriting a file.  If you     forgot that you are in View mode and did make some changes,     you can overwrite a file by adding an exclamation mark to     the Ex command, as in ":w!".  The 'readonly' option can be     reset with ":set noro" (see the options chapter, |options|).     Subsequent edits will not be done in readonly mode.  Calling     the executable "view" has the same effect as the -R argument.     The 'updatecount' option will be set to 10000, meaning that     the swap file will not be updated automatically very often.   But what I can't get yet is why it makes the instruction to skip permissions even if the file's owner is root user, besides it also change owner &amp; group.