How can I loop through every file in my file system with AppleScrip? And by every file I literally mean every single file, including hidden ones. Can it be done with AppleScript and how?   I will check Date Modified of every single file to investigate what changed after playing around with a specific program.
I want to run a script on all files with two specific extensions on a disk with a hierarchy of multiple nested folders.  My script works fine when I choose a folder further down the line with fewer subfolders but I'd like to run it on an entire archive with over a thousand folders.  The AppleScript takes forever to get all the files and then exits without returning anything and without executing the operations after getting the files.  No timeout message, no error message.  And the Finder becomes unresponsive (and remains stuck after the script exits).   set myFolder to choose folder with prompt "Choose a folder:"     tell application "Finder"         try             set eafFiles to (every file in entire contents of myFolder whose name ends with ".eaf") as alias list         on error             try                 set eafFiles to ((every file in entire contents of myFolder whose name ends with ".eaf") as alias) as list             on error                 set eafFiles to {}             end try         end try         try             set pfsxFiles to (every file in entire contents of myFolder whose name ends with ".pfsx") as alias list         on error             try                 set pfsxFiles to ((every file in entire contents of myFolder whose name ends with ".pfsx") as alias) as list             on error                 set pfsxFiles to {}             end try         end try         set myFiles to eafFiles &amp; pfsxFiles     end tell      repeat with CurrentFile in myFiles         set CurrentFile to CurrentFile as string          do shell script "perl /path/to/perl/script.pl " &amp; quoted form of CurrentFile     end repeat
Why do we need a waveguide in a microwave oven? Why do we need a waveguide to move microwave power from the magnetron to the microwave cavity? Can't we just push magnetron antenna into the cavity? Why does it have to go through a waveguide? I have forgotten my Facebook account password and also I have no access to the number which I use to log-in to Facebook account.   On this page (see the image below) they are asking for a government photo-ID to verify my account. The problem is that I don't have a driving license, voter ID card, passport etc. All I have is a school ID card but that hasn't worked for me. Is there any other way to recover my password? This is a  about File Permission and Why 777 is "destructive".   I'm not asking how to fix this problem, as there are a ton of references of that already on Server Fault (reinstall OS). Why does it do anything destructive at all?  If you've ever ran this command you pretty much immediately destroy your operating system. I'm not clear why removing restrictions has any impact on existing processes. For example, if I don't have read access to something and after a quick mistype in the terminal suddenly I now have access well... why does that cause Linux to break? Programmatically open new pages on Tabs Two load icons simultaneously appearing in Android app This  confirms that the Android app is using two different loaders since last year, but just today I've noted that, at the questions page, it is using them simultaneously. I've never noted this, so I believe this bug was recently created.  I hope the following gif is clear enough to show the issue. Also, note that the bigger loader is "freezing".    SE Android App Version: 1.0.60 My Android OS Version: 5.0.2  Still observed in version 1.0.89 How would I give a simple example of a function $f$ differentiable in a deleted neighborhood of $x_0$ such that $\lim_{x\to x_0}f^\prime(x)$ does not exist? I cannot seem to think of an example.  A delete neighborhood is an open interval about $x_0$ which does not contain $x_0$. So, $(x_0-\delta,x_0+\delta)-\{x_0\}$ for some $\delta&gt;0$.  How would something be differentiable in a deleted neighborhood if at the point of the derivative, the limit does not exist. Presumably, the derivative ends up looking something like $\lim_{x\to x_0} \dfrac{1}{x}$, if it does not exist. Meaning of syntax $N(\mathbf{y} \mid \mathbf{0}, \mathbf{K})$ (multivariate normal distribution) Overriding "+=" in Python? (__iadd__() method) Recreate plot when data file changes Is it possible to use the TikZ/external library and have pgfplots recreate a figure when a data file that is plotted changes? Say I have something like the following:  file.tex:  \documentclass{article}  \usepackage{tikz,pgfplots} \usetikzlibrary{external} \pgfplotsset{compat=newest} \tikzexternalize \newcommand{\figFilename}{}  \begin{document}   \begin{figure}[t]     \centering     \renewcommand{\figFilename}{thePlot}     \tikzpicturedependsonfile{\figFilename.tikz}     \tikzsetnextfilename{\figFilename}     \input{\figFilename.tikz}     \caption{The caption.}   \end{figure} \end{document}   thePlot.tikz:  \begin{tikzpicture}   \begin{axis}[     xlabel={$x$},     ylabel={$y$},]     \addplot+[only marks,mark=x]       table[x=x,y=y] {data.dat};   \end{axis} \end{tikzpicture}%   data.dat:  x y 0 20.44 1 20.06 2 19.76 3 19.54 4 19.40 5 19.34   If I change thePlot.tikz, the external library will detect that the figure is no longer up-to-date and recreate it. Is it possible to have the same effect when any of the plotted data files changes as well? I tried something along the lines of \tikzpicturedependsonfile{data.dat}, and it doesn't work. That wouldn't be an ideal solution anyway, as most times I use many data files in each plot and listing all dependent files manually would be more pain than gain.  So is there an easy, automated way for the external library to check all data files included in a tikzpicture and recreate the plot if at least one of them has changed? My textbook explains the proof, which I don't understand:  "Consider two bases $v_1...v_p$ and $w_1...w_q$ of V. Since the vectors $v$ are linearly independent and the vectors $w$ span V..."  How exactly does $w$ span V?   The book then says the same for vectors $v$, that $v$ spans V and hence $p=q$, but I don't really understand how you can assume that given two sets of vectors that are basis, one set must span V. I was thinking of the noted 1980 paper by Sidney Coleman and Frank de Luccia--"Gravitational effects of and on vacuum decay"-- about metastable vacuum states that could tunnel to a lower energy "true vacuum" with catastrophic results. I suspect the answer is that if our vacuum is a false one, we wouldn't "see" the true one til it hit us. What are the best ways to improve a site's position in the Google search results? How do per-site Metas differ from Meta Stack Exchange, and where should I go to ask my question? How do per-site metas, such as Meta Writers Stack Exchange or Meta Stack Overflow differ from the general Meta Stack Exchange?  Where should I go to ask my question? What are some efficient ways to combine two structures in MATLAB? I want to combine two structures with differing fields names.  For example, starting with:  A.field1 = 1; A.field2 = 'a';  B.field3 = 2; B.field4 = 'b';   I would like to have:  C.field1 = 1; C.field2 = 'a'; C.field3 = 2; C.field4 = 'b';   Is there a more efficient way than using "fieldnames" and a for loop?  EDIT: Let's assume that in the case of field name conflicts we give preference to A. When replacing non-grounding type receptacles is a GFCI receptacle required, or can any GFCI device be used? Under the NEC (it was 210(7)(d)(3), but appears to have moved around some), it is permissible to replace an ungrounded receptacle with a GFCI receptacle, then wire further ungrounded or non-grounded (i.e. a NEMA 5 without a ground wire hooked up) receptacles on the circuit to the load side of the GFCI, all in lieu of running a ground wire in order to replace the existing ungrounded receptacles with grounded receptacles.  However: does this permission extend to replacing the branch circuit overcurrent protection device with a GFCI-type circuit breaker (or a CAFCI breaker that provides ground fault protection for personnel)?  Or can only GFCI receptacles be used for this retrofit? The NEC's verbiage does not make mention of breaker-type GFCIs... Why does hair grow after trimming but remains at a constant length after a while? Some hair especially body hair regrows after trimming but stops growing after a while. What is the mechanism behind control of hair growth and how is the length limit determined? Consider the following Gaussian Integral $$I = \int_{-\infty}^{\infty} e^{-x^2} \ dx$$  The usual trick to calculate this is to consider $$I^2 = \left(\int_{-\infty}^{\infty} e^{-x^2} \ dx \right) \left(\int_{-\infty}^{\infty} e^{-y^{2}} \ dy \right)$$  and convert to polar coordinates. We get $\sqrt{\pi}$ as the answer.   Is it possible to get the same answer by considering $I^{3}, I^{4}, \dots, I^{n}$? Bash script copy file to user's (wildcard) home dir Memory Usage of SQL Server SQL Server instance on my server is using almost full memory available in my Physical Server. Say if i am having 8GB of RAM than SQL Server is using 7.8 GB of RAM from system. I also have read articles and also read many similar questions regarding same on this forum and i understand that memory is reserved and it is using memory.  But i have 2 same servers and 2 SQL Servers, why this is happening on a single SQL Instance not on other. Also when i run DBCC MemoryStatus than it is showing up...  VM Reserved 8282008 VM Committed 537936   so from this we know that SQL reserved whole 8GB memory, but why this VM Committed keeps increasing. What i understand is VM Committed is:      VM Committed: This value shows the overall amount of VAS that SQL Server has committed. VAS that is committed has been associated with physical memory.   So this is the memory SQL Server has committed (from this i understand that physical memory actually SQL Server is using at instance).  So like to know the reason behind this ever increasing VM Committed memory on my server and not on another. Thanks in Advance. In a particular textbook, the work function of a metal (in the context of the photoelectric effect) is defined as:     the minimum amount of energy necessary to remove a free electron from the surface of the metal   This sounds similar to ionisation energy, which is:     the amount of energy required to remove an electron from an atom or molecule in the gaseous state   These two energies are generally different. For instance, Copper has a work function of about 4.7eV but has a higher ionisation energy of about 746kJ mol-1 or 7.7eV.  I've sort of figured it's because the work function deals with free electrons whilst ionisation is done with a valence electron still bound within the atom. Is the difference due to the energy required to overcome the attraction of the positive nucleus?