After installing NVIDIA driver, X isn't showing

I recently installed the NVIDIA 319 driver from the Jockey window, and now X won't load! I'm stuck with a blinking cursor. I used to have the 304 drivers installed.  How do I fix this?


Adding custom css to only one lightning input in LWC

Not a duplicate question, Question is 'how to apply custom css to only one lightning input without affecting css of any other lightning input elements.  I am trying to apply custom css to lightning input but it is not working.  HTML  <lightning-input class ="lastName" name="lastName" onblur={handleEmptyValidation} >   JS  export default class registration extends LightningElement { handleEmptyValidation(event) {             let srcElement = this.template.querySelector('.lastName');             const style = document.createElement('style');             style.innerText = `c-registration lightning-input input {                 border-color: #54C2B2;                 }`;             srcElement.appendChild(style);     }   It works when I use .slds-input instead of lightning-input input but for some reason it gets applied to all lightning-inputeven though when I am using srcElement.appendChild(style);


Visa waiver program when receiving fee as a conference speaker

I will be speaking at a conference in the USA soon, where I will receive a fee and reimbursement for my travel expenses. The conference will not be held by a University, but by a private company. I have a German passport and I am currently residing in Germany. Am I eligible for the Visa Waiver Program?


Fill a "form" and "submit" using javascript automatically without pressing "submit"

I have looked at different threads but couldn't find a proper solution. I want to make a fake html file which fills a form automatically and submits when it is loaded by the browser.  The two input fields maks and reciever are filled by the values I have given, but I need to press submit. And if possible it could be nice if the values of the input fields are invisible. Thank you.  <html xmlns="http://www.w3.org/1999/xhtml">   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    <head>     <script type="text/javascript">       function postReq() {         var frm = document.getElementById('post_req');         if (frm) {           frm.submit();         }       }     </script>    <body onload="postReq()">     <form method=POST name=exampleform id='post_req'        action="/ex/makfoer.php">       <input name=maks type=hidden value="2" />        <input name=reciever type=hidden value="otto" />       <input type=submit />     </form>   </body>  </html>


How to find Hard Drive capacity in Mavericks?

I usually check the Hard Drive capacity in the Activity Monitor. But when I checked it, it literally looked different. I selected each tabs, trying to find the information about my disk but to no avail. How can I find the disk occupied in my hard drive?


Why least square problem always has solution for arbitrary b?

We know from linear algebra, the least square solution of linear equation system : $$Ax=b$$ always exists. That is, the equation  $$A^TAx=A^Tb$$ always has at least one solution. Most of us explain it existence by interpreting least square problem as a matter of orthogonal projection. It's correct, I know. But can we prove this by showing that the rank of matrix $$A^TA$$ is equal to the rank of the augmented matrix:$$[A^TA,A^Tb]$$for any given vector b?   I've worked for hours but failed to show that.  Although there is a similar thread in mathematics.SX, but I personally think there is no good answer presented there. So I address this problem again.  Thanks at first!  [update]  Now I come up with a proof for this proposition:  suppose that rank $A^TA$=k, and the matrix $[A^TA,A^Tb]$ has one more column than $[A^TA]$, so rank $[A^TA,A^Tb]\ge k$. But on the other hand, we have $[A^TA,A^Tb]=A^T[A,b]$, using the rank inequality, we have $rank [A^TA,A^Tb]\le rank A^T$. Since (we can prove that) $ rank A^TA= rank A= rank A^T$ for any given matrix A. So the inequality is actually $rank [A^TA,A^Tb]\le k$. Combining the two inequalities, we have $rank [A^TA,A^Tb]=rank A^TA$. Q.E.D.


Using LuaTex / LuaLaTeX with Latexian on Mac

I've been using Latexian for a while. Its LivePreview feature is very convenient, which is why I'm keeping using it.  Recently, I've heard about LuaTeX / LuaLaTeX. I tried a couple of examples but I couldn't make it work with Latexian.  Specifically, compiling the following code via terminal "lualatex test.tex" works ok.  \documentclass{article}  \begin{document} The standard approximation $\pi = \directlua{tex.sprint(math.pi)}$ \end{document}   As expected, this doesn't compile in Latexian since it uses "pdflatex".  I tried to delete "pdflatex" file in /usr/texbin and create a symbolic link named "pdflatex" pointing to "lualatex" to trick Latexian, but it didn't work. I get the following error:   This is LuaTeX, Version beta-0.76.0-2013061817 (rev 4627)   \write18 enabled.  ---! pdflatex.fmt was written by pdftex (Fatal format file error; I'm stymied)    Even in terminal, trying to compile with "pdflatex" (now pointing to "lualatex") doesn't work. Same error as above.  Any ideas?


Auto-deletion of old comments based on the number of upvotes

I've encountered some Meta posts on the sites I am active or used to be active that complain about moderators' deleting comments without notifying the OP. Some OPs even complain that their comments are legitimate and should not have been deleted. Some raised the issue of moderators' abuse of power.   Most of the answers posted to the questions read:      Comments are ephemeral and they should not be treated as important as questions and answers.    OK. I got it. I would like to suggest the followings:         Comments with no upvote should be auto-deleted after six months from their posting.   Comments with less than three upvotes should be auto-deleted after longer-than six months but less than one year.    Comments with five upvotes or more should be auto-deleted after longer than one year, but less than two years.          However, moderators should not delete any comment unless they are flagged   as offensive/rude/spam.   The periods suggested above are just based on my personal opinion. But I think this will help some sites, especially old ones with heavy traffic, clean up obsolete comments. Also, this feature can help users understand better why comments are ephemeral. They will not complain about it if they know the comments are actually and systematically ephemeral.   Your thoughts, please?


Application to block icon movements on home pages

Is there an application that doesn't allow me to move icons on the home page when I long press them in order to prevent accidental movements?  So for instance if I long press the Camera icon on the main screen I'd like nothing to happen while this application I'm asking about is active/installed.  LE: Of course I search the Play store and haven't found such an app.


There is a reading exercise in this book I am using to teach. It goes ...     A: Excuse me, is there a post office near here?   B: Yes. There's post office in Jindrisska Street. Turn right a the traffic lights. It's a big building on a corner.     My question is whether there should be a or the in the last sentence: It's a big building or It's the big building?


Parameterize a line corresponding to t values

Parameterize the line that passes through $P(2,-2)$ and $Q(6,2)$ so that the points $P$ and $Q$ correspond to the parameter values $t=11$ and $t=12$.


Can I get steps to install LAMP with php 5.3 and all other supported apps like php_mysql  I have tried this   But this didn't work for me.


Why did Ubuntu skip letters in the 1st four release names for Ubuntu?  The story of the 1st release being named "Warty Warthog", because it lacked polish, is well know, but why didn't they continue alphabetically from there?  Here are the 1st four releases:   "W"... Ubuntu 4.10 - Warty Warthog "H"... Ubuntu 5.04 - Hoary Hedgehog "B"... Ubuntu 5.10 - Breezy Badger "D"... Ubuntu 6.06 LTS - Dapper Drake   They skipped to "H" for the 2nd Ubuntu release, instead of continuing with the next letter, "X".  Then skipped to "B" for the 3rd Ubuntu release, instead of continuing with the next letter, "I", or even starting at the beginning with "A".  They skipped "C" entirely for the 4th Ubuntu release and jumped to the letter "D".  After Dapper Drake, every release has been consistently named with the next letter of the alphabet.


Has confinement been experimentally observed?

So, confinement has obviously been shown by lattice gauge theory to be a predicted aspect of QCD. However, to what extent has it been observed in experimental physics?


I had a trigger that fired from webhook, this trigger receive JSON that contain external Id for account object, inside the trigger I do an upsert on account object using the following code  Database.upsert(accountrecord, external_id__c)   but sometimes for unknown reason I got the following exception   System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: External_Id__c duplicates value on record with id: 0011x00000Gc4LI: []    I tried to add SOQL query to retrieve the account record with the external Id I have to testing purpose and I didn't get any records!  New Update:  I think it's related to this known issue, they said that it solved in Summer 18, but I'm still facing this issue.


Defining Winkel Tripel projection in QGIS

I'm new to QGIS and used to ArcMap.  I'm trying to project to Winkel III and it's not included in  my version 2.18.2  I came across a thread outlining how to define a North American Conic, which included a link to  where the user apparently got the proj4 line that they plugged into the custom CRS in QGIS with success.  However, there is no proj4 line on spatialreference.org for Winkel III.  Does anybody have it/willing to share it?  Then again, another thread mentions how Winkel cannot be custom defined in this manner:


Canon 80 D with DIGIC 6 was released in Feb 2016. Canon 77D with DIGIC 7 was released in Feb 2017.Does that make the canon 77D better than canon 80 D eventhough 80D has better features and is more expensive. What is the effect of a better sensor?


Throughout my life I've been told that an inertial frame is one that is not accelerating and I was satisfied with that. Well up to this day, until I asked: accelerating with respect to what ? Now this seems as a flawed definition to me.  Another definition states that an inertial frame is one in which a body remains at rest or moves at constant velocity unless acted upon by forces. This definition seems to be flawed too, don't we usually tell whether or not a force is acting on a body by measuring its acceleration ? How can we switch to doing the opposite so quickly ?  Wikipedia defines an  as:     In classical physics and special relativity, an inertial frame of reference (also inertial reference frame or inertial frame, Galilean reference frame or inertial space) is a frame of reference that describes time and space homogeneously, isotropically, and in a time-independent manner.[1] The physics of a system in an inertial frame have no causes external to the system.[2]   Well this looks too complicated for me, can any one help explaining it in simpler terms please ? How can time and space be "homogeneous", "isotropic", and "time-independent" ?  Finally, can we define an inertial frame as the one in which Newton's three laws of mechanics hold?


Extract with regex a dates that might or might not contain also time

Please consider the following  library(stringr)  text <- c("blabla bla blabla bla 6:05, 15 July 2005, blabla bla",            "blabla bla bla 7:06, 3 November 2006, blabla bla",           "blabla bla 24 November 2006, blabla bla",           "blabla bla blabla bla bla blabla bla")  dates <- str_extract_all(text, ???)   I am trying to extract from the vector all dates, and in case they come with time also the time.


Repeat a Unix command every x seconds forever

There's a built-in Unix command repeat whose first argument is the number of times to repeat a command, where the command (with any arguments) is specified by the remaining arguments to repeat.  For example,  % repeat 100 echo "I will not automate this punishment."   will echo the given string 100 times and then stop.  I'd like a similar command – let's call it forever – that works similarly except the first argument is the number of seconds to pause between repeats, and it repeats forever.  For example,  % forever 5 echo "This will get echoed every 5 seconds forever and ever."   I thought I'd ask if such a thing exists before I write it. I know it's like a 2-line Perl or Python script, but maybe there's a more standard way to do this. If not, feel free to post a solution in your favorite scripting language.  PS: Maybe a better way to do this would be to generalize repeat to take both the number of times to repeat (with -1 meaning infinity) and the number of seconds to sleep between repeats. The above examples would then become:  % repeat 100 0 echo "I will not automate this punishment." % repeat -1 5 echo "This will get echoed every 5 seconds forever."


How to sum this series for $\pi/2$ directly?

The sum of the series $$ \frac{\pi}{2}=\sum_{k=0}^\infty\frac{k!}{(2k+1)!!}\tag{1} $$ can be derived by accelerating the  $$ \frac{\pi}{4}=\sum_{k=0}^\infty\frac{(-1)^k}{2k+1}\tag{2} $$ using . Mathematica is able to sum $(1)$, so I assume there must be some method to sum the series in $(1)$ directly; what might that method be?


Consider the below file:   foo,boo,900 foo,boo,900 foo,boo,850   I need to compare the a field ($3) with the next record, if the difference is equal or more than 50, then print the record.   i.e from the sample above, $3 from second record - $3 from the third record = 50, then the output would be:   foo,boo,850


I can copy but pasting yields nothing   App Version: 1.6.6.2 Device: iPhone 6s Plus OS Version: Version 11.2.1 (Build 15C153)


Can someone explain why: Given a set of n independent observations Z1...Zn, each with variance K. The variance of the mean is K/n?


How to Get only Shadows from a Collection in 2.8 EEVEE?

I want to know is there a way to render Shadows only in Blender's new EEVEE Render Engine. I want my objects in a separate collection and a ground plane on a separate collection(to receive shadows from the objects collection).I want to render the shadows only and not the objects.


$x_{n+m}\le \frac{x_n+x_{n+1}+\cdots+x_{n+m-1}}{m}$. Prove that this sequence has a limit.

Let $m \ge 2 -$ fixed positive integer. The sequence of non-negative real numbers $\{x_n\}_{n=1}^{\infty}$ is that for all $n\in \mathbb N$   $$x_{n+m}\le \frac{x_n+x_{n+1}+\cdots+x_{n+m-1}}{m}$$   Prove that this sequence has a limit.   I know I need to prove 1) the sequence is monotone; 2) the sequence is limited. But I can not do any of these items.


Is it possible to make a custom sort on column other than A-Z or Z-A in Google Sheets?

The Sheet has a column with cells populated by a dropdown list offering 3 choices: Good; Very Good; Rejected;  In that context, it would be practical to sort the column according to a specific/custom order on those 3 values, no matter the alphabetic order.  E.g.: Rejected in first, Very Good in second and Good in last.  Filter offers only A-Z or Z-A. Is there a way to decide the order base on values in a column?


Prove the general arithmetic-geometric mean inequality

Prove that the general arithmetic-geometric mean inequality \begin{equation*} (a_{1}a_{2}...a_{n})^\frac{1}{n}\leq\frac{a_{1}+a_{2}+...+a_{n}}{n} \end{equation*} holds for all $a_{i}$ positive real numbers.  I keep getting stuck half way. This is review material for me (which I feel like I should be getting easily, but that's not the case unfortunately).


How will multiple GPUs improve Cycles' rendering performance?

I have an NVIDIA Titan GPU and I'm able to add another card, but I wonder whether  Blender will benefit from more than one GPUs?  Should I do it as SLI or should I just do it as an added card? I just need some help in understanding how Blender will use either SLI or a second GPU.  Note that I only use Cycles.


Expectation and variance of the geometric distribution

How can one use memorylessness and the  and the  to find the expectation and variance of the geometric distribution?  I will post my own answer, but as always, that shouldn't stop anyone else from posting theirs.


PHP object to array conversion strange behaviour

Can anybody explain?  <?php  $var = new stdClass(); $var->{1} = 1; $var->{2} = 2;  $test = (array) $var;  var_dump($test); var_dump(array_key_exists("2", $test));   It returns false. Is it expected result? OSX 10.10. PHP:5.5.14 Thanks!


Selecting dynamically changed elements by class name

I have a html page.This is the code:
sth
   When I click the div for the first time, page alerts the id, and the class and color changes.   The problem: When I click on it for the second and third time, it alerts the id again, But it shouldn't. Because the class is changed. So what is the problem?


Can I apply for a Schengen visa if my US visa expires in less than 90 days after my return?

I am planning a trip to Europe from May 18 to 28. I want to go to France and Italy. My employer has applied for H1B extension but I haven't received the 797 yet. I am expecting to get it before my trip. I am in the Bay Area and I will be going to the San Francisco consulate.  Was anyone successful in getting a visa  in this situation? Which consulate did you go to?


The latest xorg update was a big regression for me on a dual display setup. Is there a simple way to revert to the previous version?  I'm on Lucid Lynx.


To convert the readings in /proc/meminfo from "kB" to bytes, should I multiply by 1024, or 1000?


I would like to do a Dijkstra routing using pgrouting and openlayers. I have the downloaded osm data. I am following the workshop given in this . But since I am very new to this I found it difficult to understand  page.   Can anyone please explain me this page. Or provide me with some suggestions to do it in any other way.


I have a string passed from an API, and in place of certain characters, this appears � instead of the original char ç.  I've already tried html_entity_decode, utf8_encode, utf8_decode,htmlentities, etc..  Any idea what I can try? The string is originally encoded in UTF-8


For example, if the ex-dividend date is next Monday, and I buy the stock on next Monday, would I get the dividend? Or would the person who sold the stock to me get the dividend?


Simple harmonic motion in a horizontally accelerating lift

How would the time period of a pendulum in a lift be if the lift was accelerating horizontally to the right ?  My teacher did it by putting a pseudo force "ma" to the left, then getting the resultant of that and mg then substituted for g in the T equation as (a+g)^1/2 (power half) I'm not sure whether that is correct. Have tried drawing FBD but get confused over which force's are balanced. If somebody could explain along with an FBD explanation that'd be really helpful. Thanks so much.


Suspicious users with numbers are devouring entire CPU

On my test server which I have docker-run gitlab-ce, redis server and some other important services, I noticed I have an uninvited guest, kdevtmpfsi. I tried everything proposed by the community but I see kind of intelligence in this one. I runs some processes under nonexisting users, it started by gitlab-+, but I killed all the processed with this user. Now, I see a different behaviour. It runs some processes under some users with numbers, 998, 997, 996, etc. All the commands they run are not existing on my machine. I don't have a local postgres, redis-server,gitlab-exporter etc. 28741 999       20   0 2873420 2.289g      0 S 331.8 29.4   1:31.19 kdevtmpfsi  Can anyone help?


How to disable the advertisements when sshing into an Ubuntu machine

When sshing into my machine, I see the following:  Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.6-sound-29 x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage   * Security certifications for Ubuntu!    We now have FIPS, STIG, CC and a CIS Benchmark.     - http://bit.ly/Security_Certification   * Want to make a highly secure kiosk, smart display or touchscreen?    Here's a step-by-step tutorial for a rainy weekend, or a startup.     - https://bit.ly/secure-kiosk    * Canonical Livepatch is available for installation.    - Reduce system reboots and improve kernel security. Activate at:      https://ubuntu.com/livepatch  0 packages can be updated. 0 updates are security updates.  Last login: Sat Oct 13 18:31:05 2018 from ::1  How to disable these advertisements, without disabling the update and login parts (the Want to make a highly secure kiosk, smart display or touchscreen? ... part)?


What would happen if I connect two different DC voltage sources in parallel?

I have a computer power supply that I'm hacking together as a bench supply. For this particular model to power on, I need a minimum load across both +5V and +12V.  "Easy," I thought, "I'll just connect both +5 and +12 to my power resistor!" And it worked, but then I started thinking, what does it mean to have these two different voltages connected in parallel? If the voltages were the same, then I would be . But what about different voltages?  Also, what if I connected +5 and +12 in series, and then put a load on that? The equivalent voltage would be +17V; what would be the difference between that and parallel?  Or am I going about this the wrong way; should I put a separate resistor on each rail? It seems like I can do better than that.


Could someone provide, please, a proof of the theorem below?  "Being $x$ and $b$ integers greater than $1$, which can not be represented as powers of the same basis (positive integer) and integer exponent, then the logarithm of $x$, in base $b$, is an irrational number."  Well... Assuming that the logarithm is a rational number $p/q$ ($p$ and $q$ are relatively prime integers), I know I can write $x^q = b^p$, but I can not conclude from this fact that $b$ and $x$ are powers of a same integer (and with integer exponent).


I'm struggling with coming up with an elegant solution to generating random events in the game that I'm working on.  Say there are 4 classes of events that can happen, with varying events in those classes that may occur.  So something along the lines of   main_events = {"common event", "not so common event", "somewhat rare event", "rare event"} sub_events[0] = {"common event 1", "common event 2",..} ...   I have a somewhat kludgey solution in place that first just has a random number generated between 0 and 100, and if the number falls within a given range then a main event will be triggered.  Then I'll do another random roll to see which sub event occurs.  Is there a better solution than something along these lines?  Like I mention, it doesn't feel very elegant, and I'd like to make it easily expandable for the addition of future events.


Unity - Printing all of the methods cast in a delegate event?

I'm casting methods into a delegate event.   TriggerPressed += new InteractionEventHandler(DetectManipulation);   When I try to remove some of the methods however, it seems like it doesn't always remove properly.  TriggerPressed -= DetectManipulation;   The event still gets triggered even with the method supposedly disassociated.  I'd like to be able to somehow print out the list of methods under a given delegate. Is there some way I can do this? Or am I not understanding something?  Thank you.


New Windows user need help installIng Ubuntu

Hey guys I am long time Windows user I love Ubuntu but I need help with installing Ubumtu on my ASUS Laptop I need someone walk me through it pherphas via Skype  I would really appreciate it   Specs I5 Processer  256 GB SSD  8 RAM Bluetooth 4.1  Wireless built in of course


Route Locally generated packets to different gateway

I need to send the packets of specific port to different gateway.  This is the situation:  The server has different services, like http, dns, and mail (smtp,pop,imap), and it has two gateways.  eth2:  Gateway1 (Default gw)   ppp0:  Gateway2  All the services run ok on the default gw (eth2), but I need to send all the packets that the server generate to send email (dest port 25) to go out to the Gateway2 (ppp0).  It isn´t possible with prerouting because there are packets that are locally generated.


How long does it usually take for published articles to show up on Google Scholar?

The title pretty much says it all - what's the typical delay with which Google Scholar indexes newly published articles? (Note I'm not talking about citations, but about the article showing up at all.)  Edit: the article in question went for over six months after being published (in a well-regarded Springer journal with its own Wikipedia page) without appearing on Google Scholar, until it received a citation, at which point it was added to Google Scholar almost immediately. One more motivation to write papers that get cited. :)  Edit 2: Another article in an even more mainstream journal took a little over seven weeks.


I need to prove that if $A$ is a normal operator on a finite-dimensional inner product space then the kernel of $A^k$ coincides with the kernel of $A$. I would say that one inclusion is always true and easy to prove, but I don't see how to prove the other.


Reading and interpreting the scatter matrix

The  is defined as   $$S = \sum_{j=1}^n (\mathbf{x}_j-\overline{\mathbf{x}})(\mathbf{x}_j-\overline{\mathbf{x}})^T$$  The trace (sum of the diagonal elements) of this matrix is equivalent to the overall sum of squares.    Each element $s_{jj}$ of the diagonal is equivalent to the sum of squares (of deviations) of the $j$-th variable, is that correct? How about the other elements $s_{jk}$ where $j \ne k$ ? What do they represent and thus mean?


What fonts are compatible with T2A (Cyrillic) encoding?

I'm trying to figure out what fonts are compatible with T2A encoding - seems like there's no such a list known to Google.  I've identified that iwona and computer roman (default) are supported. However, attempts to use other fonts with either \usepackage{lmodern} or \renewcommand*\rmdefault{phv} in preamble result in a warning      Font shape "T2A/lmr/m/n" undefined(Font) using "T2A/cmr/m/n" instead.   \documentclass[10pt,a5paper,draft]{book} \usepackage[T2A]{fontenc} \usepackage[utf8x]{inputenc} \usepackage[russian, english]{babel} \usepackage{iwona} \begin{document} Some meaningful text.  Какой-то осмысленный текст. \end{document}   Fonts I've tried so far are: times new roman, garamond, helvetica, palatino.  Maybe I'm missing something, so I'd be happy to be pushed in the right direction.


Automatically Determine which TeXLive Version is being used

I would like to be able to automatically determine which release of TeXLive that I am running. I sometimes encounter a problem where it is useful to test that the file compiled correctly in an older release first, before trying to debug the problem. Currently, I have updated my code to use the new features of the  as per .  Along with the datatool update, I updated all the other packages and am now encountering  a problem that at least seemed to have worked properly for over a year now. But it is not simple to switch back to running the older TeXLive2011 as it does not have the new packages. And of course updating the packages of the 2011 would kind of defeat the purpose of here. :-) The MWE below runs fine with the latest updated TeXLive2012 (Version 2.13 of datatool or later). But, in order for this to run with an older release, one needs to manually edit the \def\TeXLiveVersion version to something other than 2012. References:     Notes:  For the MWE to be useful, an older release is required as there is no issue here with the current TeXLive2012. Or, if you have not updated your packages lately and have v2.12 (or older) version of datatool package (in which case this won't run unless you manually edit the \TeXLiveVersion to:   \def\TeXLiveVersion{2011}%   Here is an older question where I had a problem with TeXLive2011 (but the file compiled fine with TeXLive2010):  . At that time I had manually changed the preamble, but again that is a case where an automated solution would have been useful.  In case it is not obvious, the actual output of the MWE here is not important. It is a cooked up example to show a case where I need to know which version of TeXLive I am using, and a way to test that the proposed solution of determining the version actually worked.   Code: \def\TeXLiveVersion{2012}% <--- Don't want to have to manually specify this  \documentclass{article} \usepackage{datatool} \usepackage{pgffor} \usepackage{xstring} \usepackage{letltxmacro}  %\usepackage{filecontents}% Commented to prevent overwriting MyData.csv \begin{filecontents*}{MyData.csv}     Directory, Color     ../dirB,    red     ../dirC,    yellow \end{filecontents*}  \LetLtxMacro\MyDTLcleardb{\DTLcleardb}% Default to 2012 and future \IfEq{\TeXLiveVersion}{2012}{% }{%     \newif\ifDTLnewdbonload%     \LetLtxMacro\MyDTLcleardb{\DTLdeletedb}% }%  \begin{document}  \DTLnewdb{MyDB} \DTLnewdbonloadfalse% don't let \DTLloaddb create a new database   \foreach \x in {1,...,5}{% Read DB numerous times     \typeout{count=\x}%     \MyDTLcleardb{MyDB}% clear database     \DTLloadrawdb[keys={Directory,Color}]{MyDB}{MyData.csv}% }%  \par\noindent\DTLdisplaydb{MyDB}% Some output to have a PDF \end{document}


I'm trying to return to java programming on a new computer. I have JDK installed, but when I try to compile with javac it tells me:  'javac' is not recognized as an internal or external command, operable program or batch file.  I understand this may mean I have to set up the path so that windows can find the compiler, but I have no idea how to do that (the oracle guide I found goes up to windows 7, but I have windows 10)


How to reset the admin password on Ubuntu 12.04 if the username has a space

I'm having difficulties resetting admin password on my Ubuntu 12.04 if the username has a space eg. Buggs Bunny? At the prompt it will only display Buggs and wont allow the password command to work


Inconsistent behavior in python 2.7.3 with same name of function and local variable

Today I found some weird behavior of following piece of code:  if (arg == 0):    # some local variable    format = ""    ret = format + arg else:    # bultin format function    ret = format(arg, "#x")  print ret   It acts different inside and outside function. With this code:  import sys  def foo(arg):    if (arg == 0):       # some local variable       format = ""       ret = format + "0"    else:       # bultin format function       ret = format(arg, "#x")     print ret   arg = int(sys.argv[1])   print "Outside function:" if (arg == 0):    # some local variable    format = ""    ret = format + "0" else:    # bultin format function    ret = format(arg, "#x")  print ret   print "Foo call:" foo(arg)   I get following output of call: python format.py 1  Outside function: 0x1 Foo call: Traceback (most recent call last):   File "format.py", line 31, in <module>      foo(arg)   File "format.py", line 10, in foo     ret = format(arg, "#x")   The first question is why a local variable under if statement hides the format function used in else statement?  The second one is why it acts different (and now with the expected behavior) when called outside a function?


Film involving modern soldiers in a jungle/forest fighting large vine creatures - similar feel to Predator

I watched a film around 2005 that involved modern soldiers (possibly American) who are being stalked and killed one by one in a forest or jungle. The look and feel is similar to Predator - big GI's with vests, bulging muscles and heavy weaponry. However, it's not a humanoid they are fighting but a sort of infestation of large vines that attack by wrapping around victims and sucking all the fluid out them - leaving sort of emaciated and discoloured husks.   The soldiers stumble across a few 'dehydrated' bodies that confuses and terrifies everyone ("What the hell could have done that!?" etc), and the threat is later revealed where you see a soldier killed gruesomely in front of everyone - I'm sure there is a moment where he is trapped and people try to rescue him, but as they get close he dies horribly. I was quite young and the imagery has stuck with me for a long time - it was quite dramatic in that creepy bad visual effects way like the end of Raiders Of The Lost Ark.  I distinctly remember a scene where a soldier successfully blows up a bunch of the 'vines' with a grenade launcher - it might have been a rotating barrel grenade launcher or an under slung one on an M16 or similar.   The plot might have involved an abandoned research station where Bad Things Happened(TM) that led to the current events, but I might just be confusing similar plots now so I'm not sure about that point.   There may also have been a female researcher who acted as the foil to all the big muscly soldier types and who was interested in studying and finding out what was going on rather than just blowing everything up.   I watched this late at night on a Sky box with hundreds of channels - it could have been anywhere to be honest.  I'm unsure how old the film was but at the time I thought it was likely from the 90s. It may have been a feature film, a straight to TV film or part of a series I was unfamiliar with.


trying to add an image to the face of an object

I'm  modeling an indoor football field which is like a hockey arena.    I can not figure out how to get the image applied to the surface of the cube which I've positioned as the field.  I've created the field in Fireworks to the dimensions of the cube and I am unable to get it to render on the object face.   I've looked at over a half dozen tutorials and I'm still unable to get it work...  Can someone please simply explain the steps for me...  Thanks Trey


Amazon MP3 Credits, how do I find out if I have them remaining and how many I've got?

Amazon has lots of items that claim bonus dollars for Cloud purchases. Take for instance .     Special Offers and Product Promotions   Buy a CD, get $1 in Amazon MP3 Credit. Limit one promotional credit per customer.  (restrictions apply)   How do I find out how many of those $1 credits I've accumulated? I know I must have a bunch. It says Limit one promotional credit per customer. Does that mean one promotional offer per sale of item that has promotion? Or does it mean one promotional offer for all items that have had this promotion? I've been buying items marked with this text for a year—is it all part of one giant promotion?


What's the result of transferring your Pokemon to the professor?

If you tap on one of your Pokemon in the inventory a wild menu appears! Swipe the page to go to the bottom to find that there's a "transfer" button. Tapping it yields a menu with the following text,     You can't take it back after it's transferred to the professor. Do you really want to transfer [pokemon species you tapped on] to the Professor?"   What's the point of this?


Conjectural closed-form representations of sums, products or integrals

What are some examples of infinite sums, products or definite integrals that have conjectural closed form representations that were confirmed by numerical calculations up to whatever maximum precision anybody tried but still remain unproved?   I am also interested in values of special functions at certain points that have conjectural representations in terms of simpler functions (e.g. special values of hypergeometric functions,  or  that representable in terms of elementary functions and well-known constants like $\pi$, $e$, , ,  or ).  To give some examples:    mentioned at : $$\sum_{n=0}^\infty \frac{1+14n+76n^2+168n^3}{2^{20n}}\binom{2n}{n}^7\stackrel{?}{=}\frac{32}{\pi^3}.$$  (in an unusual form, also mentioned at ) $$\int_{0}^{\infty}\frac{(1-12t^2)}{(1+4t^2)^3}\int_{1/2}^{\infty}\log|\zeta(\sigma+it)|~d\sigma ~dt\stackrel{?}{=}\frac{\pi(3-\gamma)}{32}.$$ Another conjecture from  attributed to J. M. Borwein, D. H. Bailey, : $$\frac{\displaystyle\int_{\pi/3}^{\pi/2}\log\left|\frac{\tan t+\sqrt{7}}{\tan t-\sqrt{7}}\right|dt}{\displaystyle\sum_{n=1}^\infty\left(\frac n7\right)\frac{1}{n^2}}\stackrel{?}{=}\frac{7\sqrt{7}}{24},$$ where $(\frac{n}{7})$ denotes the .


How to differentiate by case when sorting a DataTable?

I notice that when sorting the rows in a datatable by a particular column using a dataview (in C#), the sorting method appears to not differentiate between upper and lowercase strings. Is there a way to sort a datatable by a column in a manner that strings are seen as different based on their case?          DataTable Dt18 = new DataTable();         Dt18.Columns.Add("Dosage", typeof(int));         Dt18.Columns.Add("Drug", typeof(string));         Dt18.Rows.Add(0, "Indocin");         Dt18.Rows.Add(1, "indocin");         Dt18.Rows.Add(17, "Indocin");         Dt18.Rows.Add(2, "Hydralazine");         Dt18.Rows.Add(3, "Combivent");         DataView view = new DataView(Dt18);         view.Sort = "Drug asc";         DataTable dtSorted = view.ToTable();   When sorting by the column titled "Drug", "Indocin" is seen as being the same as "indocin"


I am putting a top header in my thesis and have obtained this results:    I don’t like the repetition of the world “chapter” and I don’t understand why the width of the line is larger than the text width.  Here is my preamble:  \documentclass[11pt,a4paper,openright,fleqn,twoside]{report}  \usepackage{graphicx} \usepackage{tabularx} \usepackage[caption=false]{subfig} \usepackage{afterpage} \usepackage{booktabs} \usepackage{color} \usepackage{colortbl} \usepackage[colorlinks=true,citecolor=blue]{hyperref} \hypersetup{linktocpage} \usepackage[noadjust]{cite} \usepackage{amsmath,amssymb}             \usepackage{enumerate}   \usepackage{rotating}   \usepackage[scriptsize]{caption}  \usepackage{fancyhdr}   \pagestyle{fancy} \fancyhf{} \fancyhead[EL]{\nouppercase\leftmark} \fancyhead[OR]{\nouppercase\rightmark} \fancyhead[ER,OL]{\thepage}  %\setlength{\paperwidth}{16cm} %\setlength{\paperheight}{24cm} %\setlength{\oddsidemargin} {2. cm} %\setlength{\evensidemargin} {2. cm} %\addtolength{\oddsidemargin} {-0.4 cm} %\addtolength{\evensidemargin} {-0.4 cm} \linespread{1.1} \usepackage[paperwidth=16cm,paperheight=24cm]{geometry}  \usepackage[utf8]{inputenc}  \newcommand{\p}{\partial}    \newcommand{\vect}[1]{\bold {#1} } \newcommand{\aver}[1]{\left\langle {#1} \right\rangle} \newcommand{\norm}[1]{\left\lVert#1\right\rVert}  \pagestyle{empty}  \begin{document}   Every chapter which is included in an external file starts with these lines:  \chapter{Introduction} \label{capitolo1} \pagestyle{fancy}


How can I find out what Irony has been used in a sentence?


remove last two characters from each line

I've got a file containing:  Georgia Unix Google   The desired output is:  Georg Un Goog


Does the 'not constructive' flag have a strongly negative connotation? If so, can we have more detailed clarity on its use?

I've been happily comment-flagging away on the sites with what I thought was a good understanding of the comment flag system. There are some posts on non-constructive flags, but none that I can see that cover this particular issue:   Then this  in the  made me rethink comment flagging.  As a mod who regularly handles flags, I don't like seeing "gee thanks" being flagged as Not Constructive. Flag it as "too chatty" and a mod will get it. But I'm a bit stuck on process, and an improper NC flag will make me decline the flag and then flag it properly.  This got me concerned about having declined flags. The SO mod continues to reveal:   has a strongly negative connotation and the system looks at it that way too.  The  attitude is:   a punishment. However, the system brings posts with NC flags to our attention, and when you flag a "gee thanks" as NC, you create noise and redundant work for us.  As most of us are not familiar with the mod dashboard, it would be good to have some insight into this. There needs to be consistency between the mods' experiences and the general users' perception of the site tools and how to use them.  was:  @AaronHall what your telling some of us is news. I think there needs to be a featured meta post on that. As far as I'm concerned as an active user on the site. If my NC flags start to be declined I wouldn't be happy. It's like we're punished for doing what we think is the right thing and that really is not the way to approach it as a mod. I think you need to educate the community first.  So the questions are these:  Does the 'not constructive' flag have a strongly negative connotation within the system?  If so, can we have more detailed clarity on its use?  Can we have some mods' perspectives on this?   This is related  but not a duplicate, as this discusses it's use, the other discusses all the comment flags and is a feature request.


Prove that $f$ is continuous-Proof-Verification.

Let $(X,d)$ be a compact  metric space.   Let $f:X\to X$ be a function such that graph(f)=$(G(f))=\{(x,f(x):x\in X\}$   is closed.      Prove that $f$ is continuous.   TRY:  To show that $f$ is continuous enough to show that if $x_n\to x$ then  $f(x_n)\to f(x)$.  Let $x_n\to x$ ;; since $X$ is compact so $f(x_n)$ has a convergent subsequence say $f(x_{n_k})\to y$. Consider the corresponding terms  in the sequence $x_n$ then $(x_{n_k },f(x_{n_k}))\to (x,y).$  Now $(x_{n_k },f(x_{n_k}))\in G(f)$  which is closed hence $(x,y)\in G(f))$ which in turn implies that $y=f(x)$  So $f(x_{n_k})\to f(x)$.  But I need to show that $f(x_n)\to f(x)$  How can I show that??Please help me out.


Random variables $X$, $Y$, $Z$, probability of real roots of $Xt^2+Yt+Z=0$

The random variables $X$, $Y$, $Z$ are independent and uniformly distributed in $[0,1]$. What is the probability of real roots of $Xt^2+Yt+Z=0$?  So the equation has a real root when $Y^2\geq 4XZ$. Given that the variables are independent, the joint density is $f(x,y,z) = 1$ in the unit cube $[0,1]^3$, and $0$ otherwise. My guess is that I need to integrate the volume between the surface $y^2=4xz$ and $y=0$ inside the unit cube. My calculus is rusty so I need help on how to proceed.


I want to use subfigures to place three figures like this:    The following is the code I used:  \begin{figure} \begin{tabular}{|c|c|} \hline \multirow{2}{*}{         \begin{subfigure}[h]{0.3\textwidth}                 \centering                 \includegraphics{Fig2}                 \caption{Argumentation Framework $I$}                 \label{fig:afexampleI}         \end{subfigure}                }         &          \begin{subfigure}[h]{0.6\textwidth}              \centering              \includegraphics{Fig3}              \caption{Argumentation Framework $III$}              \label{fig:afexampleIII}          \end{subfigure} \\         &          \begin{subfigure}[h]{0.6\textwidth}              \centering              \includegraphics{Fig4}              \caption{Argumentation Framework $II$}              \label{fig:afexampleII}          \end{subfigure} \\ \hline \end{tabular} \caption{Argumentation Frameworks}\label{fig:afexample} \end{figure}   However, this is the result:    P.S. I used \hline in order to better illustrate the figures, otherwise there should be no borders for the tabular environment used.


Square root of $x^2$ is rational expression or not?

Square root of $x^2$ equal to $|x|.$  Does $|x|$ qualify as rational expression?  Why |x| is not a polynomial?


The space is complete iff the subspace and the quotient space is complete.

Let $F$ be a closed subspace of a normed space. How to prove that $E$ is complete iff $F$ and $E/F$ are both complete ?


I have a 2017 Macbook Air 2017. A week ago I turned it on and  wrote my password, then it shut down. I tried to turn on but nothing happened. I read some posts on the Internet and tried the following:   Unplug the MagSafe 2. Open my MacBook Air. Disconnect the battery. Plug in the MagSafe 2. Reset the SMC (pressing Left Shift, Option, Control and Power for ten seconds and releasing at the same time). Connect the battery. Press power and Voila, It Turn On!   I was using my Macbook very happy but now when I shut down my MacBook to go to sleep, the next day when I try to turn it on, nothing happened. It stay shut down like at the beginning and I have to repeat the steps to turn it on.  Whats is the problem with my MacBook?  What do you recommend me to do? Any idea how can I fix it?


Why are some pokestop items in different back ground colors?  These are not my first pokestop of the day and they have both yellow and blue background items.


Remove last character from string captured with awk

I need to remove the last character from a string in this command:  sudo docker stats --no-stream 39858jf8 | awk '{if (NR!=1) {print $2}}'  The result is 5.20% , I need remove the % at the end, giving 5.20.  Is it possibile to do this in the same command?


Do we have $|\mathcal P(X)|=|X^X|$ in ZF?

If we have an infinite set $|X|$, does $2^{|X|}=|X|^{|X|}$ hold in ZF? In the other words, is there a bijection between $\mathcal P(X)$ and $X^X$?  I understand that if we have well-order on $X$ then I can get $$2^{|X|} \le |X|^{|X|} \le 2^{|X\times X|} = 2^{|X|},$$ but this argument uses $|X\times X|=|X|$. (Which is true if I assume existence of a well-order on $X$, but this is not necessarily true in ZF.)  Am I correct in assuming that in ZF the above equality may fail? What would be a simple argument to show this?     I got interested in this after reading this in Noah Schweber's answer to:      And this can be simplified further: it turns out $\kappa^\kappa=2^\kappa$, always. Clearly we have $2^\kappa\le\kappa^\kappa$, and in the other direction $$\kappa^\kappa\le (2^\kappa)^\kappa=2^{\kappa\cdot\kappa}=2^\kappa.$$      By the way, the equality $\kappa^\kappa=2^\kappa$ can be proved in ZF alone, the key point being that Cantor-Bernstein doesn't need choice.   I was able to find similar argument in: ,  (In both cases the argument uses $\kappa\cdot\kappa=\kappa$ or $|A\times A|=|A|$.)  I had also look at Andreas Blass' answer to the related question . If I understood that answer correctly, $|\mathcal P(X)|=|X^X|$ can indeed fail in ZF. But maybe there is an easier argument if we are working with all functions (not just bijections).


I'm running on Ubuntu 20.04.1 LTS on Dell Inspiron 3543 with 8GB RAM. After the recent update, my wifi stopped working and I'm getting the message "Wifi Adaptor not found". So when I checked my additional drivers, the Broadcom wifi driver was showing.  I disabled the driver and wanted to enable it, but after the reboot, I can no longer see the driver in 'additional drivers' section Now I have tried to update by connecting through a wired connection, but with no success. I have tried running sudo apt-get install --reinstall bcmwl-kernel-source but I'm getting the error sudo apt-get install --reinstall bcmwl-kernel-source [sudo] password for rkupadhyaya:  Reading package lists... Done Building dependency tree        Reading state information... Done Package bcmwl-kernel-source is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package `bcmwl-kernel-source` has no installation candidate  lspci -vvnn | grep -A 9 Network output: 06:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Dell Wireless 1704 802.11n + BT 4.0 [1028:0016]     Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-     Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-     Latency: 0, Cache Line Size: 64 bytes     Interrupt: pin A routed to IRQ 18     Region 0: Memory at aa100000 (64-bit, non-prefetchable) [size=32K]     Capabilities: <access denied>     Kernel driver in use: bcma-pci-bridge     Kernel modules: bcma  Thanks in advance!


How can I say if my data is a time series?

I have some measurement results (about 10000 or even more). How can I say (which methods should I use and how to apply them) to check if my data is time series or is a statistical sample?


You roll six independent fair dice.  What is the probability that their sum is divisible by 6?  I don't really know where to start. Does the ordering of the dice matter? (1,2,2,2,2,3) vs (3,2,2,2,2,1). I feel like it does. I'm not strong with counting arguments so I don't know how to find the number of ways that you can arrange that.


How much space does xcode 14.2 really need?

$ df -H Filesystem      Size   Used  Avail Capacity iused      ifree %iused  Mounted on /dev/disk1s5    251G    11G    39G    23%  488329 2447612991    0%   / and yet "you have no space to install xcode" 39 gig is no longer enough?


I am facing one issue dimension = ['category','amount']  // Just imaging I am getting an array like this frim request for _, obj in enumerate(qs1):     kwargs.update({obj[dimensions[1]]: Count(dimensions[1],                      filter=Q(dimensions[1]=obj[dimensions[1]]))})  Here I'm getting an error like this SyntaxError: expression cannot contain assignment, perhaps you meant "=="? in django  If I am changing my code like this it will work , but my issue is that I am using filtering option there so I need to get the exact field name that user passed in the dimensions dimension = ['category','amount']  // Just imaging I am getting an array like this frim request for _, obj in enumerate(qs1):     kwargs.update({obj[dimensions[1]]: Count(dimensions[1],                      filter=Q(filter_data =obj[dimensions[1]]))})


No indent in the first paragraph in a section?

I am just curious that the following format looks good to you or not? The preamble I used is just   \documentclass[12pt,a4paper]{article}  \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb}   I don't feel it's so good because the first paragraph has no indent but the second does. If the first paragraph is much longer, than it's fine. But if not, it looks strange. Should I leave it, or you have suggestions for this?


What are some good mathematical magazines and journals for undergraduates and/or high school students?

I know only about  published by Indian Academy of Sciences and I've read most of the content from it's math portion of all the issues.


limit as $x$ approaches infinity of $\frac{1}{x}$

How can I show $\lim_{x \to \infty} \frac{1}{x} = 0$ using epsilon delta proof.  Its pretty obvious that the limit is zero, but I am still new at epsilon proofs.


Show that AB - BA = I is impossible for n x n matrices of real or complex numbers.

Show that AB-BA = I is impossible for n x n matrices of real or complex numbers. Can someone help me with this problem?


How much heat is needed for an atom to be ionized?

We all know that heat or high voltage makes atoms into an excited state, stripping off the electrons off of their nucleus. But how much heat do you exactly need to create plasma, or have the majority of the atoms to be ionized?


Can Create Bonfire be placed in a way that affects multiple squares?

The Create Bonfire cantrip creates a bonfire which "fills a 5 foot cube". It deals comparable damage to other cantrips, making one assume it's meant to only deal it (reliably) to a single target. But, if playing on a grid, is there something actually preventing a character from making the 5 foot cube be placed at an intersection, possibly damaging four creatures?


I know that "The records that fire the after trigger are read-only." as given in apex developer guide. But why the records are read only.


How can normal user run passwd Command on Linux ..with out being a root user

Can you advise over it..this was question for me to check but was not able to get this ...if the group can help.. can you advise.. my question is clear that we should not be root or root user to do that


Let $f(z)$ be a holomorphic function on C. Show that $\overline{f(\bar{z})}$ is holomorphic on C

Since $f(z)$ is holomorphic, I used Cauchy-Riemann equations and got $u_x = v_y ,\ u_y = -v_x$  Then I wanted to check if Cauchy-Riemann equations are satisfied for $\overline{f(\bar{z})}$  It does.  But then I realised that Cauchy-Riemann equations say that if differentiable at $z$, then satisfies CREs at $z$. And not the other way around.  So does that mean basically my proof is wrong? How would I prove this then?  Thanks.


20 minutes ago, in a matter of minutes I got downvotes on 6 of my past answers. My guess is that it comes from somebody seeking revenge because I downvoted one of his/her answers.  I don't know if I should find it sad or funny, but anyway I have two concerns with this. The first one is that some of my good answers don't look so good now with one less upvote. The second is that I don't really want people like this in our community.  Does stackoverflow have policies in place to address such behaviors?  [Edit] my question was marked as duplicate, however the other answers don't explain what happens to the downvoter. btw once again I am impressed by stackoverflow's ability to moderate a community.


I'd like to simplify a path containing parent directory (..) references, but without making it absolute.  E.g., a path like foo/bar/../baz should be simplified to foo/baz since the bar/.. part cancels out1.    1 Strictly speaking, this is not true if bar is a symlink somewhere else - but feel free to ignore this: I don't care if the simplification returns different results than the original path in the presence of symlinks.


Is the Michael Line topology on $\mathbb{R}$ second-countable?   In order to be second-countable, we need to consider a countable base for $\mathbb{R}$. Can $\{(a,b) : a,b \in \mathbb{R}\} \cup \{\{x\} : x \in \mathbb{P}\}$ be used as a countable base for $\mathbb{R}$ or this uncountable?


Redirect all requests to HTTPS, except for one subdirectory

I'm trying to move from self-signed certificates to Let's Encrypt certificates on my nginx webserver.  Currently, I redirect all requests to http/80 to https/443, which uses a self signed certificate I created a while ago.  Now - from what I understand Let's Encrypt makes a request to port 80 (as I am using the webroot option of certbot). These requests are redirected, which renders the certificate generation unsuccessful.  I tried to achieve this with the following server block, listening at port 80:  server {         listen  80;              server_name     sub.domain.tld;         server_tokens   off;           location /.well-known {                 root /var/www/letsencrypt;         }          location / {                 return 301 https://$host$request_uri;         } }   But requests to /.well-known are redirected to https/443 anyways.  How can I redirect all requests from http/80 to https/443, except the requests to /.well-known/?


Different "Preferred Networks" for different Network "Location"

The question is: can I have different "Preferred Networks" when switching from one to another Network "Location"?  This issue has been discussed before at . However, I do not like a solution that ought to use some external App.  I would appreciate any comment! Thanks!


Why do I receive a syntax error when using "and" to declare an array in PyThon?

I am learning scipy and more specifically Numpy. I wrote the following code after properly declaring an array and received the indicated error message. Would like to know why  data = np.sin(np.arange(20)).reshape(5,4) and = data.argmax(axis=1)   Error:  File "<stdin>", line 1 and = data.argmax(axis = 1)   ^   SyntaxError: invalid syntax


why isn't the color I added on the header background visible?

Trying to apply a background color to my header but why isn't the #header background color visible? I tried  header {         background: grey;       width: 100%;        margin: 0 auto      }  I also tried diffrent colors but it doesn't seem to be working. I'm new to this field so  any help will be appreciated. I attached the html and css codes.   * {   margin: 0 auto }  #slogan {   background: #063540;   color: white;   padding: 20px;   font-family: 'Open Sans', sans-serif;   font-size: small;   width: 100%;   padding-left: 8%; }  #header {   background: grey;   width: 100%;   margin: 0 auto }  a {   text-decoration: none; }  #logo a {   color: #063540; }  #logo {   float: left;   padding-left: 8%;   color: #063540;   margin-top: 20px; }  .navbar {   float: right;   top: 0px;   padding-right: 20%;   margin-top: 20px; }  .navbar a {   padding-left: 25px;   color: #063540;   font-size: 14pt; } <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">     <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">     <title>MyWebsite</title>
We are creative agency

MyWebsite

             Home             About             Services             Projects             Pages             Blog             Contact


Can I transfer an already made UV to another object?

I've got two objects that are exactly the same, but with different UVs, is there any way to transfer the UV from one to another?


My question it simple: How can I go back to Mountain Lion from Mavericks?  My iMac (late 2010, Processor 3.4 GHz Core i7, Memory 8GB 1333 MHz DDR3) became EXTREMELY slow with Mavericks - It was great with Mountain Lion.  In the beginning I thought I had to do with Google Chrome, but now it get slow with pretty much every program.  Help!


Select similar (i.e. not same) colours in Adobe Illustrator

I made a sketch on a piece of paper, photographed it and . Now I have a vector image with a lot of detail.    I'd like to clean it up by removing those white and gray-ish chunks, and keep the dark strokes.  covers the Select → Same → Fill color, which selects only identical colours, and therefore doesn't really do it for me.   Do you think there's a way to automatically select all colours darker/lighter than a given threshold?


Fujitsu S1300i advances document but doesn't scan

I'm using a Fujitsu ScanSnap S1300i.  Using sudo as a temporary workaround to minimise any permissions problems:  $ sudo sane-find-scanner found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap S1300i]) at libusb:001:004   So I edited /etc/sane.d/epjitsu.conf and added:  firmware /usr/share/sane/epjitsu/1300i_0D12.nal usb 0x04c5 0x128d   and copied 1300i_0D12.nal from a Windows install into /usr/share/sane/epjitsu/. (Actually I copied all the *.nal drivers, just in case it needed one of the others.)  $ sudo scanimage -L device `epjitsu:libusb:001:004' is a FUJITSU ScanSnap S1300i scanner  $ sudo scanimage scanimage: output is not a file, exiting   And running sudo simple-scan, skanlite or gscan2pdf all advance the document feed by a couple of centimeters, but then the feed halts and the fronted returns an I/O error of some kind.  So SANE seems to recognize the scanner and has some basic communication with it (the paper advances a couple of centimeters), but it doesn't scan.  Any suggestions about something I've missed out or how to get a proper scan output?  Additional info  $ scanimage -V scanimage (sane-backends) 1.0.23; backend version 1.0.23 $ sudo skanlite QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave   If I run sudo scanimage -v (I accidentally typed lowercase V when I was trying to obtain the version!) after the document has been advanced a couple of centimeters by sudo skanlite, then the scanimage command forces a complete document feed -- but no scan.


I am splitting up my code into separate files, but have a problems with variables within the sub files (I am sure it's something simple, but cannot work out what is wrong.  When I run the code I get an "UnboundLocalError: local variable 'avglightlevel' referenced before assignment" error.  I thought the variables would be local to the sub file, I have tried using global variables in each file and still cannot it working.  How do I a variable in the sub file to keep a running total of the avg values?  #main.py import datacalc  datacalc.init(0)   #Read sensors & process the data datacalc.complielightlevel(lightlevel)  # delay for 10 seconds and keep repeat   ====================================================== #datacalc.py def init(avg):        avglightlevel = 0        avgCO2level = 0       avgtemperaturelevel = 0  #================================================    def complielightlevel(lightlevel):     if(lightlevel > 0):           avglightlevel = avglightlevel + lightlevel


The extension of this derivative notation $f^{(0)} = f, f^{(1)} = f', ...$   Just a quick question on this notation, is $f^{(-1)}$ used for antiderivatives?


Volume icon missing after removing (and re-installing) pulseaudio

I reinstalled PulseAdio beacause I my indicator-sound just disappeared, but it didn't help.     Strangely, I have installed indicator-sound and still don't have that sound control. Nay, I don't even have any settings in "Sound Settings":     I ran "Volume Control PulseAudio" from unity launcher and I got this:    So I ran start-pulseaudio-x11:  $ start-pulseaudio-x11  Connection failed: Connection refused pa_context_connect() failed: Connection refused   What Can I do to fix it?


I am using Python version 2.5.4 and install MySQL version 5.0 and Django. Django is working fine with Python, but not MySQL. I am using it in Windows Vista.


Kind of a strange question, but say something has spoiled, i.e. smells bad, tastes bad, etc.  Will it actually always make you sick? Like for instance spoiled dressing, let's say it tastes sour, smells nasty and you eat it, will it make you sick?  If so what actually makes you sick? The toxins/bacteria? or it just being unappetizing?  I ask because I tried a TINY bit of ranch and while it tasted mostly fine (it was a bit tangy) it smelled quite tangy but looked fine. I also saw .


If a blocking creature leaves the battlefield, is the attacker still blocked, or will it damage the opponent?

Suppose Player 1 has a Dragon on the table and  in hand, while Player 2 has two Spiders on the table.  Player 1 chooses to attack with the Dragon and Player 2 chooses to block with one of the Spiders.  Before combat damage is to be dealt, Player 1 uses Unsummon on the blocking Spider.    Does Player 2 take any life damage from the attacking Dragon?


How to give default new directory name in JFileChooser?

In a Java program, I want to display a JFileChooser where the user selects just a directory name where multiple output files will be written. So mychooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY), that's easy enough. But I'd like to fill in a default directory name. And JFileChooser doesn't appear to allow me to do that. I wrote this:         File newdir=new File(newdirname);         JFileChooser chooser=new JFileChooser(newdir);         chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);         int reply=chooser.showSaveDialog(Captions.home);  I was expecting that it would display the parent directory for newdir with the full path to newdir filled in. But instead, if newdir does not already exist, it shows my documents directory. I don't want to create newdir before calling the JFileChooser because the user might not take the default. I suppose I could create it and then if the user chooses something else delete it, but that seems rather goofy. Is there a clean way to do this? Note that I am NOT asking how to set a default FILE name. I am asking how to set a default DIRECTORY name. Someone closed this question as a duplicate of one asking about setting a default file name. But the method for setting a default file name DOESN'T WORK for setting a default directory name. Maybe there's some additional trick to make it work with a directory name. If so, that's what I'm asking.


Showing that the path-connected component of the identity matrix in a subgroup of $GL_n(\Bbb R)$ is a normal subgroup

Let $M(n;\mathbb{R})$ denote the set of all $n \times n$ matrices with real entries (identified with $\mathbb{R}^{n^{2}}$ and endowed with its usual topology) and let $GL(n;\mathbb{R})$ denote the group of invertible matrices. Let $G$ be a subgroup of $GL(n;\mathbb{R})$. Define $$H = \biggl\{ A \in G  \ \biggl| \ \exists \ \varphi:[0,1] \to G \ \text{continuous such that} \ \varphi(0)=A , \ \varphi(1)=I\biggr\}$$  Then is $H$ normal in $G$?  For proving $H$ normal i should verify two things:   First $H$ is a subgroup. For all $A \in G, B \in H$, we must have $A \cdot B \cdot A^{-1} \in H$.   That's it i  am not able to proceed any further.


Sieve of Eratosthenes : why can we stop at the $\sqrt n$?

The sieve of Eratosthenes is an algorithm to calculate all the primes up to $n$. It works by iterating $i$ from $1$ to $n$, and at each time strikes out the multiples of $i$. In many optimizations, I'm seeing that we can actually stop at  $i \leq \sqrt n$ but I don't understand why. The explanations I found are all based on this hypothesis:  Every composite number has at least one prime factor that's smaller than its square root.  Though I understand this hypothesis, I can't draw a conclusion with it. Programmatically, I see that it makes sense if we consider an optimization on how we'd strike the multiples of $i$ by starting from $i^2$: we'd end up striking the multiples of $\sqrt n$ starting at $n$, so there's no point in iterating $i$ further. But mathematically, I don't see how by stopping at $\sqrt n$, we can be sure that all the remainings unvisited integers are primes with the sole hypothesis above. Thanks a lot for your hints. EDIT: I see that my question is associated with another question, but if you read the other thread, OP specifically stated they don't want to know why we can stop at $\sqrt n$ but why we are picking $\sqrt n$.


How to quarantine or delete infected files with ClamAV?

I scanned the home directory using ClamAV which found 13 threats. The list was also displayed, but when I tried to delete or quarantine files, it did not proceed. Any ideas?


Convolution integral $\int_0^t \cos(t-s)\sin(s)\ ds$

How can I calculate the following integral?  $$\int_0^t \cos(t-s)\sin(s)\ ds$$  I can't get the integral by any substitutions, maybe it is easy but I can't get it.


Positive definite and semi definite in non linear programming

How can I prove the following.  Suppose that A is  a square matrix and suppose that there is another matrix B such that $A=B^TB$.    a)Show that A is positive semi definite    b)Show that if B has full column rank then A is positive definite.


I would like to create custom function to create objects. Let me explain better, consider the following code:  \documentclass[tikz,border={12pt,12pt}]{standalone}  \usepackage{pgfplots} \usetikzlibrary{calc}  \begin{document}  \begin{tikzpicture}      % Min/Max     \pgfmathsetmacro{\Min}{1.5}     \pgfmathsetmacro{\Max}{2.0}     % Tick distance     \pgfmathsetmacro{\XTickDistance}{         (\Min - \Max) / (10 - 1)     }      \begin{axis}[     hide axis, scale only axis, height=0pt, width=0pt, % hide axis     colormap/jet,     colorbar sampled,     colorbar horizontal,     point meta min=\Min,     point meta max=\Max,     colorbar style = {         samples = 9,         height = 0.5cm,         width = 8cm,         xtick style = {draw=none},         xticklabel style = {             text width = 2.5em,             align = center,             /pgf/number format/.cd,                 fixed,                 fixed zerofill,                 precision = 2,             /tikz/.cd         },         xtick distance=\XTickDistance,     }     ]     \addplot [draw=none] coordinates {(0,0)};     \end{axis}  \end{tikzpicture}  \end{document}   this will create a simple colorbar between 1.5 and 2.0 using the colormap jet. I would like to create a function (named customFunc) that when invoked return a colorbar between two value, so the code will be just:  \documentclass[tikz,border={12pt,12pt}]{standalone}  \usepackage{pgfplots} \usetikzlibrary{calc}  \begin{document}  \begin{tikzpicture}     \customFunc{1.5, 2.0} \end{tikzpicture}  \end{document}   The real code of customFunc would be in a different file   Thanks


When I open gparted, I get the following warning:     /dev/sdb contains GPT signatures, indicating that it has a GPT table.   However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted—possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table?   This is on a SSD if it makes any difference.  What is this and how do I fix it?


Sci fi novel about a modern warship that goes back in time

This is one I read at least 30 years ago.It was a UK paperback. A similar premise to John Birminghams Axis of Time series...  What I remember is a USA  navy ship somehow ended up back in Roman times amongst Arabian ships - they get involved with a floating brothel in a weatherbeaten hulk. The brothel is staffed and ran by women who used to be Roman slaves but escaped   To get protection from Arab gangsters the women form an alliance with the USA sailors   One point I remember is the USA captain demonstrated a pistol to the Arab warchiefs to scare them away. When they first board his vessel he warns all his men to keep their hands out their pockets. He says "these guys have never seen a pocket so don't give away we have concealed places in our clothes"  I also want to say the floating brothel madam was also from modern days and she'd fell through the wormhole or whatever years earlier. Then she used her business savvy to end up as the boss, however I'm not too sure about this memory  I think they eventually make it back to modern times but they bring several women with them.


How to prove or disprove that $m^2 - n^2 = p$, where $p$ is odd, has exactly one positive solution if and only if $p$ is a prime $>2$.

It seems to be the case that the equation $m^2 - n^2 = p$ where $p$ is odd has exactly one positive solution at $m = p/2 + 1/2$, $n = p/2 - 1/2$ if and only if $p$ is prime, but I'm unsure how to go about proving this true or false.


Are matrices $AB~BA$ similar? (where $A$ and $B$ are not necessary singular)

Is the matrix $AB$ similar to $BA$, where $A$ and $B$ are not necessary singular?


Three.js: Converting RGB Decimal color into HEX RGB color

Hello right now I have a task to do but I am kind of stuck with the color bit. I am working with three.js (a javascript library). In the task at a certain point, I need to convert decimal color code (e.g 12615680 into something like this: #FF0000 or 0xFF0000. The solution should be javascript code (function) which can convert the decimal color to hex.


If a topological space is covered by finitely many closed sets, then one of them has nonempty interior

I got this question, which I have to prove by induction:     Let $X$ be the topological space and $A_1, \dotsc, A_n$ closed subsets of $X$ with $\bigcup_{k=1}^n A_k = X$.   Then there exists some $i \in \{1,...,n\}$ such that $A_i^\circ \neq \emptyset$.   I really don't know how to prove that, not even how to start... Would be nice if you could give me some tips.


I came across the concept of interitence vs composition and did a bit of reading(mostly on the internet). So summarizing what I've learned.  Using inheritence can make your life easier since you do not have to re-implement the behaviors that does not need to change (not be overwritten). But if the behavior of the class grows / need changing, it can be a pain since you have to go through all of the classes that ahs overwritten a function from the base class.  Composition, on the other hand, keeps its component as a member variable, so there isnt a lot of dependency compared to inheritences.   My first question is, am I missing any important things in terms of pros and cons of either inheritence or composition?  And secondly, what are some examples where you would prefer one over another? The only one that I can think of is, 'if you need to inherit multiple classes, I should use composition instead of inheritences'. Or is it more subjective on when to use what?


My question is about my home station which doesn't turn off, and return the following message:    Wait-for-state stop/waiting *Stopping rsync daemon rsync  *Speech-dispatcher disabled: edit /etc/default/speech_dispatcher *asking all remaining processes to terminate...


On , $N_A = 6.022\;141\;29 \times 10^{23} \text{ mol}^{-1}$ has 9 significant figures and a standard uncertainty of $0.000\;000\;27 \times 10^{23} \text{ mol}^{-1}$.  First, can it be written as the following?  $$ N_A = 6.022\;141\;29 \times 10^{23} \pm 0.000\;000\;27 \times 10^{23} \text{ mol}^{-1} $$ If yes, consider the following quote from  (emphasis added):     Whenever you make a measurement, the number of meaningful digits that you write down implies the error in the measurement. For example if you say that the length of an object is 0.428 m, you imply an uncertainty of about 0.001 m. To record this measurement as either 0.4 or 0.42819667 would imply that you only know it to 0.1 m in the first case or to 0.00000001 m in the second. You should only report as many significant figures as are consistent with the estimated error. The quantity 0.428 m is said to have three significant figures, that is, three digits that make sense in terms of the measurement. Notice that this has nothing to do with the "number of decimal places". The same measurement in centimeters would be 42.8 cm and still be a three significant figure number. The accepted convention is that only one uncertain digit is to be reported for a measurement. In the example if the estimated error is 0.02 m you would report a result of 0.43 ± 0.02 m, not 0.428 ± 0.02 m.   and the following quote from  (emphasis added):     The absolute error places bounds telling you that the actual value is expected to fall between x - D x and x + D x. The absolute error is an easy way to report the error and makes it easy to check that you are not reporting too many significant figures. For example, suppose you had a measurement that was reported to be 10.02 ± 0.3 m. Because the reported value is uncertain in the tenths place, it is wrong to report it to the hundredths place. It should be reported to the same decimal place as the absolute error: 10.0 ± 0.3 m. Another point is that the absolute error and the reported value must have the same units.   If there is such a convention (cf. Rice's lab guide) and it is wrong to report more significant figures than is warranted by the absolute error (cf. the joint project's guidelines), and NIST should have adhered to such convention and striven to be correct, is it true that NIST adheres and is correct because the standard uncertainty has two least significant digits (i.e., $27$)?  Had the standard uncertainty been $0.000\;000\;2\text{ mol}^{-1}$, would NIST have reported Avogadro's Number as $N_A = 6.022\;141\;3\times 10^{23}$ with 8 significant figures?


Is there any way to customise the charging schedule for my MacBook Pro (2017)? Essentially, I have long periods when my machine is plugged into the mains due to running intensive models, unattended, and I don't want to risk the battery dying mid-simulation.  What I would like to achieve is some app (or otherwise) to tell the machine to stop charging when at 100% (despite still being plugged in) and to resume charging when reaching some other battery percentage (say 25%) - does an app like this exist?  Unfortunately, Googling and searching this site about batteries produces swathes of hardware issues, rather than this question - so sorry if it is a duplicate.


Variable not visible in basic Java class

I'm trying to build an ArrayList of Earthquake objects but Java is complaining about not being visible.   My Code:  import java.io.*; import java.util.Arrays.*;  public class ObservatoryTest {     private ArrayList <Earthquakes> listOfEarthquakes; //This list is not visible     Earthquakes Quake1 = new Earthquakes(4.5,"cheese",1995);     Earthquakes Quake2 = new Earthquakes(6.5,"fish",1945);     Earthquakes Quake3 = new Earthquakes(10.5,"Chorizo",2015);      public void buildList(Earthquakes... args){         for(Earthquakes myEarthquake : args){             listOfEarthquakes.add(myEarthquake);         }      } }   My aim is to build a list of Earthquake objects. Could somebody tell me why and how to fix my code? Thanks  --------------edit--------------------  The error message is the type ArrayList is not visible however changing visibility modifier to public doesn't have any effect.


How do I make the method shown below to return the name of the property  public class MyClass { private string _MyProperty = "TEST";  public string MyProperty {     get { return _MyProperty; }     set { _MyProperty = value; } }  public string GetName() {     return _MyProperty;  // <- should return "MyProperty"; }   }  i don't wana use return "MyProperty" so any alternative?


Does the "necessarily" part in the question make a difference?

"Given an associative F-algebra do there necessarily exist elements a1.a2∈K satisfying a1∗a2=a?"  I have a question to add to the one linked below:    My question:  Will there always exist a1,a2∈K satisfying a1∗a2=a? I thought for F-algebra "*" didn't necessarily have an identity element, or associativity.  I know it tells us we have an associative F-algebra, but why do those elements 'have' to exist?  There were 2 instances mentioned where they do exist, but I am wondering if they 'have to exist.'  I may just be paying too much attention to one word, but I want to make sure I understand the subject.  Thanks!


Move website from host a to host b without down time dns change

I would like to move my website from  host A to host B I have uploaded a copy of my site to the new host, while keeping the old copy in place with the old host I will need to update the nameservers to point to the new nameservers. I'll want to change the DNS settings of  domain name to point to new host b   To avoid down time for the DNS change to propagate through the net, can I add the old nameservers and new nameservers together without causing problems, or must I delete the old nameservers first?  What happens to my website when it points to two different nameservers?


The adjoint of left exterior multiplication by $\xi$ for hodge star operator

As we know, for $V$ vectoral space and a orientation $\mathcal{O}$ on $V$ and $e_{1},...,e_{n}$, the hodge star operator $\ast:\wedge V^*\rightarrow\wedge V^*$ is defined for  $\ast(e_{1}\wedge...\wedge e_{n})=\pm 1$(acoording to the orientation preserve/invert for the basis $\{e_{i}\}$)  $\ast(1)=\pm e_{1}\wedge...\wedge e_{n}$(again $+$ if $[\{e_{i}\}]=\mathcal{O}$ and $-$ if $[\{e_{i}\}]=-\mathcal{O}$)  $e_{1}\wedge...\wedge e_{k}=\pm e_{k+1}\wedge...\wedge e_{n}$  Already prove that $\ast\ast=(-1)^{n(n-k)}\cdot$ and $<T,S>=\ast(T\wedge\ast S)=\ast(S\wedge \ast T)$ (where $T=\eta_{1}\wedge...\wedge \eta_{1}$, $S=\omega_{1}\wedge...\wedge \omega_{1}$ and $<T,S>=det(<\omega_i,\eta_{j}>)$)  For any $\xi\in V$ denote $\gamma:\ast:\wedge^{k+1} V^*\rightarrow \wedge^{k} V^*$ the adjoint of left exterior multiplication by $\xi$ $$<\gamma(T),S>=<T,\xi\wedge S>$$ for all $T\in\wedge^{k+1} V^*$ and $S\in\wedge^{k} V^*$.  I need to prove that $\gamma(T)=(-1)^{n-k}\ast(\xi\wedge\ast T)$ but I'm a little confused, how prove that $\gamma$ has this expression from this property?


Show that $x\subseteq y \Leftrightarrow \mathcal{P}(x)\subseteq\mathcal{P}(y)$.

Note that $\mathcal{P}(x)$,$\mathcal{P}(y)$ are power sets.  My proof.$\left( \Rightarrow \right)$ Let $t\in x$. Then, $t\in y$. So, since $t\in x$, $t\in \mathcal{P}(x)$. Also, since $t\in \mathcal{P}(x)$, $t\in\mathcal{P}(y)$. Thus, $x\subseteq y \Rightarrow  \mathcal{P}(x)\subseteq\mathcal{P}(y)$.  $(\Leftarrow )$. Similar.  Can you check my proof?


Is there a better way to plot a graph and shade a particular area? I've pieced what follows below from other answers, but when I try to extend the axes beyond the plot itself, the whole circle becomes shaded.  \documentclass[15pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} \pgfplotsset{compat=newest} \pgfplotsset{width=10cm,compat=1.16} \makeatletter \renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%   \hskip -\arraycolsep   \let\@ifnextchar\new@ifnextchar   \array{#1}} \makeatother \begin{document}     \begin{center}         \begin{tikzpicture}             \begin{axis}[                 data cs=polar,                 smooth,         axis lines = center,         xlabel = $x$,         ylabel = {$y$},]         \addplot [name path=f, domain=0:360]   {3};         \path[name path=axis] (axis cs:-3,0) -- (axis cs:3,0);     \addplot [             thick,             color=red,             fill=red,              fill opacity=0.5         ]         fill between[             of=f and axis,             soft clip={domain=-3:3},         ];      \end{axis}         \end{tikzpicture}      \end{center}  \end{document}   Thanks!


I'm trying to extend the  package so that I can pass options to \includegraphics and have them override defaults, something like this:  \documentclass[]{article} \usepackage{graphicx} \usepackage{xkeyval} \usepackage{xstring} \usepackage[hybrid]{markdown}  \renewcommand{\markdownRendererImage}[4]{   \StrCut{#1}{,}{\sclabel}{\scoptions}   \begin{figure}[ht]     \centering     \includegraphics[width=0.8\textwidth,\scoptions]{#3}     \caption{#4}     \label{\sclabel}   \end{figure} } \begin{document} \begin{markdown} ![fig:example,width=10px](example.png "Lorem ipsum...") \end{markdown} \end{document}   Unfortunately, this code results in an error:  ! Package xkeyval Error: `width=10px' undefined in families `Gin'.   I understand that \StrCut is somehow bundling up \sclabel and xkeyval doesn't know how to unpack it into key-value pairs, but I'm at a loss as to how to fix it. I've tried every combination I can think of of xstring's \detokenize, \tokenize, \expandafter etc. macros and I'm just very confused.  Here's a simpler MWE that doesn't depend on markdown and that shows some of the weird behavior I've already discovered:  \documentclass[]{article} \usepackage{graphicx} \usepackage{xkeyval} \usepackage{xstring}  \newcommand{\markdownRendererImage}[2]{   \StrCut{#1}{,}{\sclabel}{\scoptions}   \includegraphics[\scoptions]{#2} }  \begin{document}  \includegraphics[width=10px]{example1.png} % works as expected \markdownRendererImage{fig:example}{example2.png} % works as expected (\scoptions is empty) \markdownRendererImage{fig:example,width=10px}{example3.png} % fails with error, uses default settings \markdownRendererImage{fig:example,{width=10px}}{example4.png} % fails without error, uses default settings  \end{document}   I'm sure there's a simple way to do this but I can't crack it. Any help would be greatly appreciated!  Thanks,  Josh


"He is good looking" vs "He is looking good"

He is good looking. He is looking good.   How to understand "looking" in the first sentence? Is it exactly the same meaning as in #2?


Charge all the images before displaying the website

I know that this is a question asked a lot of times here but my situation is a little bit different. I want the images to load even if they are not being displayed or in the code. I have something like this:  HTML

   jQuery  $('.thumb:nth-of-type(1)').click(function(){     $('.photo').css('background','url(css/img/1.jpg)'); });  $('.thumb:nth-of-type(2)').click(function(){     $('.photo').css('background','url(css/img/2.jpg)'); });  $('.thumb:nth-of-type(3)').click(function(){     $('.photo').css('background','url(css/img/3.jpg)'); });  $('.thumb:nth-of-type(4)').click(function(){     $('.photo').css('background','url(css/img/4.jpg)'); });   I know it's not the best to do this, but it's the easiest for me. The problem is that when I click on the photo it changes but takes a time to load and it looks bad. Is there a way to load the images even if they didn't appeared on the page/code yet?


I have a batch file in which I need to pipe an exe's output to a command. However, the output is reading as error messages so it is not piping it. For example:  mycommand.exe > out.txt would have nothing in out.txt  but  mycommand.exe 2>out.txt has the correct output in the out.txt file.  My question is what the pipe | equivilent is for the 2> in batch? I attempted 2| but it failed to give a different output.


Problem. Prove that if $ a,b,c > 0 $, then $ [(1 + a) (1 + b) (1 + c)]^{7} > 7^{7} (a^{4} b^{4} c^{4}) $.   I don’t know how to solve this problem... What I can think of is to just simplify this inequality: $$ \left[ \frac{(1 + a) (1 + b) (1 + c)}{7} \right]^{7} > a^{4} b^{4} c^{4}. $$ How can I proceed with solving this problem?    Note: This is a question of sequence and series, specifically AM-GM-HM inequality...


What is actually the characteristic length in fluid dynamics description?

In many fluid-dynamics models and quantities (, ... generally various  descriptions) there is a parameter (usually $L$ or $\ell$) descripted as characteristic linear dimension or characteristic length. What is that in intuitive and physical meaning? I understand the typical examples ( etc.) but I can't see so far any systematic generalisation.  What is the definition? (Or, maybe: What is its role during the derivation?)


It is my first question on any stackoverflow site, so sorry if I have not researched the current available questions and answers enough (I tried), but I have thoroughly searched both the internet and the english stackoverflow site as well as I could (I was not sure as to what tag I should have searched to get the correct answer to my question).  That aside I am stuck as to whether I am using a possessive noun or a non possessive noun.  The question is pretty simple which sentence is correct.   Many other online IQ tests rely on knowledge orientated questions to test ones IQ.   Or   Many other online IQ tests rely on knowledge orientated questions to test one's IQ.   I understand one is correct and one is not, but it would be most helpful if someone could explain what the true difference between the two is, and when I should use one and not the other.  I am no English language expert, and I am sure this has been answered many times on this site but I could not find it, I am sure as I continue to use the stackoverflow websites I will become more efficient at finding answers to my questions. If anyone has any tips on how to do this I would be most grateful, maybe a little FAQ on how to search?


Was "bicycle" ever pronounced "bi-cycle" and if so where and when? What's the source?


How do I stop indenting first paragraphs when using amsbook style?

I'm using amsbook style and I'd like first paragraphs to be not indented - what can I add to the header to do this?  I don't want to use /noindent as then I'd have to use it all the way through my 200 page document, I'd prefer to do it automatically.


Satisfying explanation of Aristotle's Wheel Paradox.

The paradox:    We have a circle and there is another circle with smaller radius. They are co-centeric.  If circle make full turn without sliding, both smaller and bigger circle make full turn too. If we assume that the passed road is equal to the circumference of circles. We have got smaller circle's radius is equal to bigger one's.  Unsatisfying Solutions I found:    "Do not assume that smaller circle's circumference is equal to passed road since the surface that contacts to the ground is bigger one. " // Okey but it does not explain the paradox, it explains just what is the wrong assumption (even does not explain why it is a wrong assumption.) It is undeniable that every point on both smaller and bigger circle will contact exactly one and only one point on their path. Therefore we can think that this is a bijective maps and smaller circle is isomorphic to bigger one. (Okey but ....)   Question: What is the true answer? What is wrong with the definition of circumference of a circle and relationship with its taken path.


Cannot use hyperref with polyglossia on IEEEtran document class--simultaneously!

The following code runs without problems using XeLaTeX. I use polyglossia to be able to write Arabic. But when I use hyperref I get this error TeX capacity exceeded, sorry [input stack size=5000]. in the line of the \maketitle line so that I have commented the lines when hyperref is used.  However, If when I remove \maketitle everything works :(  \documentclass[journal]{IEEEtran}  %\usepackage[ocgcolorlinks,pdfusetitle]{hyperref}  \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} \newfontfamily\arabicfont[Script=Arabic,Scale=1.4]{Scheherazade}  \title{TITLE} \begin{document} \maketitle  %\href{www.google.com}{Google Link}  \end{document}    I want to use hyperref and polyglossia in an IEEEtran document.


Close reason / procedure for "LMGTFY" questions

Some questions on Stack Overflow could be answered with a minimal amount of leg-work and research by the poster. The questions are either trivial, such as "How do I print a number as hex instead of decimal?" or are extensively covered by tutorials and articles both on Stack Overflow and the web at large ("How do I write a simple template in C++?"), or both.  As we all know,  on Stack Exchange. There are some very good reasons for that which are well-covered in the discussions here on Meta.  Many of these questions, despite being so easy that the poster should have found the answers with 5 seconds of searching, do have good answers here, and recurring questions can easily be marked as duplicates. This seems perfectly appropriate where possible. The more general questions ("How do I learn C?") can be closed as Too Broad.  But I feel like there is a gap between "Duplicate" and "Too Broad" that is not covered by any existing close reason. Sometimes the question is specific, extensively covered by outside material, and yet not covered on Stack Overflow. I really miss the old "" close reason, which partially covered this gap.  Now that it's gone, though, what should we do with questions like this? Questions where there's no exact match on SO, but where you can find an answer yourself in 5 seconds by searching Google?  If the question doesn't have an exact match, should we just answer it anyway -- in the spirit of "building a knowledge base" -- even if that basically means quoting stuff from reference material that could be found in 5 seconds of Googling? Or is there perhaps room for a new close reason to cover this kind of thing? How much hand-holding do we want Stack Overflow's body of work to do?


Regex expression to find all text containing a string

I have a list of generated output which contains text such as this line:  D:/some_path1/filename.o D:/some_path2/filename.d D:/some_path3/filename.c; $(build-c-file)  D:/some_path1/filename2.o D:/some_path2/filename2.d D:/some_path3/filename3.asm; $(build-s-file)   etc(more of such lines)  where some_path1,2,3 are different. Basically the object go to path1, .d's(no ideea what those are) go to path2 and sources(.c or .asm) go to path3. Where the line ends with $(build-c-file) means that there was a .c file generated. Where the line ends with $(build-s-file) means that there was a .asm file generated.  I'm interested in only obtaining the c files from this list so I can include them in some script I'm writing. Basically I just want to get a list which would ressemble this:  D:/some_path/filename.c; D:/some_path/filename1.c;   I know this is very easy to do with RegEx expressions. I have tried playing in regexr.com however I'm not good with them and I couldn't obtain my desired output :(.   I have tried things like: D:/*.c and others but I could not come up with an expression that does what I want.  Please help me with a regex expression that would give me what I want. Thank you very much for reading my post!  Edit: I have tried   D:[-.?+%$A-Za-z0-9..._/]+\.c   I think it solved the problem.


Average minimum distance between n points on a sphere.

Consider $n$ points chosen uniformly and independently on the surface of a sphere with circumference  $1$ at the equator. What is the expected minimum (great-circle) distance between any pair of points?   If we considered a circle instead the answer would be $1/n^2$.


Why is AES-128 considered secure while RSA needs a 1024-bit size to be considered secure

I got asked this question today and I didn't know the answer, AES-128 is considered secure, the key size is 2^128, so you would need in average 2^127 tries to break the key. Why does RSA need at least a 1024-bit modulus to be considered secure, If we consider a bruteforce attack on the private exponent, it would take 2^1019 tries (lets consider the private exponent is 1020-bit in length). Is the difference because of a much less complex attack that exists on RSA but doesn't exist in AES?


What is the smallest possible Windows (PE) executable?

As a precursor to writing a compiler I'm trying to understand the Windows (32-bit) Portable Executable format. In particular I'd like to see an example of a bare-bones executable which does nothing except load correctly, run and exit.  I've tried writing and compiling a simple C main function which does nothing but the resulting .exe is ~22KB and contains many imports from KERNEL32.DLL (presumably used by LIBC to set up environment, heaps etc.). Even the DOS Header could probably be smaller (it currently prints the default 'This program cannot be run in DOS mode').  What is the structure of the smallest possible Windows 32-bit executable?


I want to spoof my internet ip on my Ubuntu 10.10 system so that I can access country specific websites. Can some one please tell me how to go about this?


The difference between \pgfkeysvalueof and /.store in

I thought using \pgfkeysvalueof on a key that does not have a /.store in and the variable of a key that does have a /.store in would give the same result. This seems not to be the case.  This example, using /.store in for the key overlay works like a charm:  \documentclass{article} \usepackage{tikz} \usepackage{etoolbox} \usepackage{overpic}  \pgfkeys{     /icon/.cd,     width/.initial,     overlay/.initial,     overlay/.store in=\iconoverlay,     set defaults/.unknown/.code={\pgfkeys{/icon/\pgfkeyscurrentname/.default=#1}} } \newcommand\icondefaults[1]{%     \pgfkeys{/icon/set defaults/.cd, #1}% } \newcommand\ifkeyempty[3]{%     \pgfkeysgetvalue{#1}{\keyvalue}%     \ifempty{\keyvalue}{#2}{#3}% } \newcommand\ifempty[3]{%     \def\novalue{\pgfkeysnovalue}%     \def\empty{}%     \ifboolexpr{test {\ifdefequal{#1}{\empty}} or test {\ifdefequal{#1}{\novalue}}}{#2}{#3}% } \newcommand{\icon}[2][]{%     {%         \pgfkeys{/icon/.cd,width,overlay,#1}% Reset to default values         \def\options{}%         \ifkeyempty{/icon/width}{}{\edef\options{width=\pgfkeysvalueof{/icon/width},\options}}%         \ifempty{\iconoverlay}{%             \edef\graphic{\noexpand\includegraphics[\options]{#2}}%         }{%             \edef\overlay{\noexpand\begin{overpic}[\options]{#2}}%             \def\graphic{\overlay\put(0,0){\iconoverlay}\end{overpic}}%         }%         \graphic%     }% }%  \begin{document}  \icondefaults{width=6cm} \icon{example-image} % Image gets default width 6cm \icon[width=2cm,overlay={\icon{example-image-overlay}}]{example-image} % Image gets width 2cm, while the overlaid image gets default width 6cm \icon{example-image} % Image gets default width 6cm  \end{document}   While this example does not work. The only difference is that /.store in is not used for the key overlay, and hence \pgfkeysvalueof is used to access the value of the key. It results in an error TeX capacity exceeded.  \documentclass{article} \usepackage{tikz} \usepackage{etoolbox} \usepackage{overpic}  \pgfkeys{     /icon/.cd,     width/.initial,     overlay/.initial,     set defaults/.unknown/.code={\pgfkeys{/icon/\pgfkeyscurrentname/.default=#1}} } \newcommand\icondefaults[1]{%     \pgfkeys{/icon/set defaults/.cd, #1}% } \newcommand\ifkeyempty[3]{%     \pgfkeysgetvalue{#1}{\keyvalue}%     \ifempty{\keyvalue}{#2}{#3}% } \newcommand\ifempty[3]{%     \def\novalue{\pgfkeysnovalue}%     \def\empty{}%     \ifboolexpr{test {\ifdefequal{#1}{\empty}} or test {\ifdefequal{#1}{\novalue}}}{#2}{#3}% } \newcommand{\icon}[2][]{%     {%         \pgfkeys{/icon/.cd,width,overlay,#1}% Reset to default values         \def\options{}%         \ifkeyempty{/icon/width}{}{\edef\options{width=\pgfkeysvalueof{/icon/width},\options}}%         \ifkeyempty{/icon/overlay}{%             \edef\graphic{\noexpand\includegraphics[\options]{#2}}%         }{%             \edef\overlay{\noexpand\begin{overpic}[\options]{#2}}%             \def\graphic{\overlay\put(0,0){\pgfkeysvalueof{/icon/overlay}}\end{overpic}}%         }%         \graphic%     }% }%  \begin{document}  \icondefaults{width=6cm} \icon{example-image} % Image gets default width 6cm \icon[width=2cm,overlay={\icon{example-image-overlay}}]{example-image} % Image gets width 2cm, while the overlaid image gets default width 6cm \icon{example-image} % Image gets default width 6cm  \end{document}   Does anyone know what is the difference between accessing a key's value through \pgfkeysvalueof and through it's /.store in variable?


I remember this series faintly. There was a young apprentice sorcerer whose master tasks him to make a few items with specific powers. One was a chainmail that I believe made you invisible, a gold bracelet. The master had a female visitor of some mystery. She also had an apprentice of sorts, I believe they transformed into swans? The master's apprentice was given access to specific spells in the magic text books, and he moved the bookmark past where he was allowed to read. The apprentice's helper transcribed the spell and was killed because he read too far. Anyone know the name of the series?


How can I do a brute force (ciphertext only) attack on an CBC-encrypted message?

Given a CBC ciphertext and IV, how can I find the encryption key?  We are limited with an 8 chars key, each char in the range of [a..h], so I can generate every possible key (these are only $8^8 = 2^{24}$ (about 4 million) different possible keys).  How would I go about finding the correct one though?