I am trying to batch convert a set of JPEGs into ASCII text files.  Below is the code I am running (I added the "..." for privacy, it does not actually appear in the code).   gdal_translate -b 1 -of AAIGrid "C:/Users/.../Cropped Pixel Profile Images/*.jpg" "C:/Users/.../Cropped Pixel Profile Images/ASCII Converted Files/*.txt"  The message I am getting back is ERROR 6: Too many command options 'C:/Users/.../Cropped Pixel Profile Images/-10EV.jpg'.  I would just do this whole process through the "translate batch mode" GUI in QGIS, except that I need to add -b 1 to the code, which can't be done for batch processed items (maybe that's a potential bug/ feature request for future versions of Q).    I am also looking for a way to execute this within QGIS, so that I can run the same command on both OSX and Windows. (If it is platform specific, what is the same command for terminal in OSX).  Anybody have any idea why I am running into this error?
how to convert batch file from .tif to .bil format using gdal_translate in windows CMD command line, file in the directory.   Directory path : D:\GDAL-TEST 001_mean.tif 002_mean.tif 003_mean.tif 004_mean.tif So on....   I have one code but by this code we can convert single file at a time but i want to loop through all raster which have .tif extension in the  directory and convert it to .bil format. Please want a solution   My code. I a running this code on GDAL Command window on windows 7 platform.      gdal_translate -of "ENVI" D:\GDAL-TEST\001_mean.tif D:\GDAL-TEST\001_mean.bil
On every use profile page the search bar on the top of the page already contains user:&lt;id&gt; text to simplify search for post of the currently visible user. But this doesn’t work correctly for the  user:        Instead of searching for posts owned by Community user I’ve got Jeff Atwood posts:        In this case minus sign was just ignored and instead of (-1, i.e. Community user), the (+1, i.e. Jeff Atwood) is used. Same happened for any other negative id for the “user:” option in the search box. Issue with regex backreference in Python Why is my multimeter stopping device from booting when measuring current? I am using a BK Precision 2709B multimeter and attempting to measure the current of a device that runs off of a ~3.7V battery. The device boots up, initializes and then goes into its lower power state. If I use the 10A setting, my device boots up just fine but I need to measure uA or mA. When I attempt to use the mA setting, the device attempts to boot and then continuously reboots. Its not able to finish its initialization process before it cuts off. The current reading on the meter is ~30mA before the device cuts off and attempts to boot up again. The meter says 400mA max, so it doesn't seem like it is over the maximum allowed current for the mA setting. Is there anything I can do to get past the initialization so I can measure the lower power state? Calculation of subgroups of $(Z_{12}, +)$ How calculate all subgroups of $(Z_{12}, +)$?  I know that the order of subgroups divide the order of the group, but there is such a smart way to calculate the subgroups of order 6? How Did Dumbledore Stay in Limbo? Most of this discussion involves events at the end of Harry Potter and the Deathly Hallows so if you haven't read that book and don't want spoilers, then stop reading right now.  Yes, now.  It's not clear whether limbo is something everyone moves through in Harry Potter when they die, but when Harry is killed, he not only ends up there, but Dumbledore is there, waiting for him.  Did Dumbledore wait for him all that time, in limbo, until Harry showed up?  Did he have any way of watching what Harry was doing in that time?  Or did he have a way to enter limbo when Harry did to meet him there?  And once Harry was gone, was Dumbledore able to move on, or would he be stuck there? Combining two sorted lists in Python I have two lists of objects. Each list is already sorted by a property of the object that is of the datetime type. I would like to combine the two lists into one sorted list. Is the best way just to do a sort or is there a smarter way to do this in Python? Other word for person who does something to others but does'nt like it done to them This is a duplicate question but has still not been answered for me. I'm so close to the exact word - I know there is one out there - but the closest word I can find is a hypocrite --     a person who claims to have certain moral principles or beliefs but behaves in a way that shows they are not sincere.    The word I'm looking for is a person who does not claim things, but does thing to another and they consider it wrong or immoral to have done to them. Embedding $S_n$ into $A_{n+2}$ I am trying to prove that for all $n$, $S_n$ is isomorphic to a subgroup of $A_{n+2}$.  Say $S_n$ acts on $\{\alpha_1,...,\alpha_n\}$ and $A_{n+2}$ acts on $\{\alpha_1,...,\alpha_n,\alpha_{n+1},\alpha_{n+2}\}$.  Let $\sigma \in S_n$ and let $\phi: S_n \to A_{n+2}$ be given by $\phi(\sigma)=\sigma$ if $\sigma$ is an even permutation, and $\phi(\sigma)=\sigma(\alpha_{n+1}\alpha_{n+2})$ if $\sigma$ is an odd permutation.  This way $\phi(\sigma) \in A_{n+2}$.  Now, let $\sigma, \rho \in S_n$.  Then $\phi(\sigma \rho)=\sigma \rho (\alpha_{n+1}\alpha_{n+2})$.  Also, $\phi(\sigma)\phi(\rho)=\sigma(\alpha_{n+1}\alpha_{n+2})\rho(\alpha_{n+1}\alpha_{n+2})=\sigma\rho$.  So, $\phi(\sigma \rho)$ does not seem to equal $\phi(\sigma)\phi(\rho)$.  But the idea is that we want $\phi(S_n) \cong S_n$, and $(\alpha_{n+1}\alpha_{n+2})$ does not permute any members of $\{\alpha_1,...,\alpha_n\}$, so $\phi(\sigma \rho)$ and $\phi(\sigma)\phi(\rho)$ are equal as permutations on this (sub)set.  This feels a little subtle to me and I'm not sure if my idea is valid or not.  If it is not, can this proof still be saved?  I appreciate any thoughts on this.  Thanks. Guides on how to install drivers for a Brother all-in-one network printer are either for older devices or are rather complicated as they often involve editing or copying system files in my root directory.  Is there a newer, more convenient way to install the drivers needed? QGIS locked into fullscreen mode on Ubuntu 12.04 No crash in this case, but I made the mistake of toggling to fullscreen mode on my netbook running Ubuntu 12.04. It's now impossible to escape , and it seems to have disabled the popout unity launcher as well. Steps I've already taken:   Alt-Tab to move to a different program, then back - QGIS remains in fullscreen Alt-V, Ctrl-F and F11 get no response I've unistalled QGIS, deleted the /.qgis/ profile data folder, and reinstalled. Still launches fullscreen   To add to the weirdness, it now launches - still in fullscreen - into a different workspace than the active one.  I realize this has the sound of a Unity problem, but it's just this program that has a malfunctioning UI.  Thanks to all the crew; this in no way changes my opinion of QGIS as an essential tool. Regex for splitting a string using space when not surrounded by single or double quotes I'm new to regular expressions and would appreciate your help.  I'm trying to put together an expression that will split the example string using all spaces that are not surrounded by single or double quotes. My last attempt looks like this: (?!") and isn't quite working. It's splitting on the space before the quote.  Example input:   This is a string that "will be" highlighted when your 'regular expression' matches something.   Desired output:  This is a string that will be highlighted when your regular expression matches something.   Note that "will be" and 'regular expression' retain the space between the words. If monotone decreasing and $\int_0^\infty f(x)dx <\infty$ then $\lim\limits_{x\to\infty} xf(x)=0.$ double r = 11.631; double theta = 21.4;   In the debugger, these are shown as 11.631000000000000 and 21.399999618530273.  How can I avoid this? I am trying to run a simple echo script via crontab. I set that to run every minute, but it doesn't give output on shell screen. However, it runs fine when I run the script independently.   Script  #!/bin/bash echo "Test Script"   Crontab entry:  root@example-server ~]# cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/     # For details see man 4 crontabs  # Example of job definition: # .---------------- minute (0 - 59) # |  .------------- hour (0 - 23) # |  |  .---------- day of month (1 - 31) # |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ... # |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # |  |  |  |  | # *  *  *  *  * user-name command to be executed   *  *  *  *  * root /root/test.sh Tikz won't plot the function properly I tried to plot the following function but it didn't work:  y = 300 + 1000/x + 2.5x.  This is the document, but instead of the plot it only shows the axis.  \documentclass{article}  \usepackage{pgfplots}% This uses tikz \pgfplotsset{compat=newest}% use newest version  \pgfmathdeclarefunction{Function}{1}{%   \pgfmathparse{300 + 1000/x + 2.5}% }  \tikzset{My Line Style/.style={smooth, thick, samples=400}}  \begin{document} \begin{tikzpicture} \begin{axis}[     xmin=0.0,     xmax=250,     ymin=0,     ymax=50,     axis x line=bottom,     axis y line=left,      xlabel= $y$,     ylabel=Cost,      xtick={250},     xticklabels={250},         restrict x to domain=0:250,     ]        \addplot+[My Line Style, color=black, samples at={1,2,3,4,...,249,250}] (\x,{Function(\x)});   \end{axis}  \end{tikzpicture} \end{document} \documentclass{article} I was able to post in chat with less than 20 rep by joining 20 sites I joined 20 other sites (out of the many) and even with 1 rep was able to post in any of the chatrooms. For example: In ELL, I have just 1 rep and have posted messages in its chat.  ell.stackexchange.com/users/18923/lamart This seems like a bug because I should have needed 20 rep to post. . EDIT: From , I got the idea to make this edit. To reproduce this bug/error:  Create a new SE account. Use it to make an account here. You will get 1 default rep. Choose a random SE site and use this account to get 1 rep on that random site. Repeat the above step 20 times. Now you have 1 rep on 20 network sites but the net SE rep is 20. Go to the ELL chat and ping me. (important step)  From my comment: I have now got 40 rep since people voted this question up. Initially I had net 20 rep gained by creating 20 accounts on 20 different SE sites. Those default 1rep added up to get me to 20rep and I was able to chat. The link says one needs 20 rep in any of the SE site to chat in &quot;all the other&quot; category chatrooms..... but I did not have 20 rep on ELL at that moment. Why is TV remote's infrared wave shown by a camera as purple light, why not red or something else? How do we know for certain that space is expanding? How do we know for certain that space is expanding?  Let's say that in the year 1950, we observe that galaxy 1 is 5 billion light years away from us and galaxy 2 is 10 billion light years away from us, putting both galaxies at a distance of 5 billion light years from each other. Then in 2013, we observe that they are now 7 billion light years away from each other so we conclude space is expanding.  We see that galaxies are move away from each other but how does that prove that space is expanding? Could this illusion of expanding space simply be due to something larger in mass pulling the farther galaxy 2 away from galaxy 1? This larger mass could be accelerating the velocity of galaxy 2 faster then it's accelerating the velocity of galaxy 1. How to find out when an Oracle table was updated the last time How can I change the registered name in Windows 7 to my own?