I want to generate a report by executing a python script. This script has to run on every 2nd thursday of a month, 3.30am . How to achieve this.  Below code might work, if the dates are fall under 8-14.  30 3 6-12 * 4 &lt;script&gt;   However sometimes, the days are not falling as expected and it leads to error.
I added this to /etc/crontab on a few different linux &amp; freebsd systems:  # monthly reboot: 3rd Tuesday of every month 56 07 15-21 * 2 root /sbin/shutdown -r now   I want a reboot on the 3rd TUESDAY of every month.  However, all the systems rebooted on the 3rd Wednesday of this month (the 19th).  What am I doing wrong?  Update: Thanks to Ranon's answer below, looks like the below revision will work, can anyone confirm or is there an even better way of doing it?  # monthly reboot: 3rd Tuesday of every month 56 07 15-21 * * root test $(date +\%u) -eq 2 &amp;&amp; /sbin/shutdown -r now
get exact file create time windows 7 I'm trying to figure out exactly when I created a file. Windows 7 thinks I don't know how to subtract two times, and tells me it was created "1 hour ago." I need a little more detail than this, but I can't seem to find a setting to toggle this "feature" off.  Example below: I've had the ability to review suggested edits for a while now, however I don't often do so because the list is usually full of questions about languages and technologies I'm not familiar with or not interested in, and can sometimes be hundreds of questions long.  I would like to help out more, but most of my rep has been gained by questions within a specific technology, so I only feel comfortable reviewing edits within that tag.   Can you allow us to filter suggested edits by tag?  Edit:   Actually, can you let us filter the entire Review section by tag, and not just Suggested Edits?  I would find it much more interesting to review questions in tags I'm familiar with and can  understand the question content of, and it would give me a bit of pride to help maintain "my" section of SO. dpkg error: "trying to overwrite file, which is also in..." When to comment or answer Highlight some words of a beamer How do you read C declarations? I have heard of some methods, but none of them have stuck. Personally I try to avoid complex types in C and try to break them into component typedef.  I'm now faced with maintaining some legacy code from a so called 'three star programmer', and I'm having a hard time reading some of the ***code[][].  How do you read complex C declarations? Comment character counter does not trim, while the server does What is a field, really? There was a reason why I constantly failed physics at school and university, and that reason was, apart from the fact I was immensely lazy, that I mentally refused to &quot;believe&quot; more advanced stuff until I understand the fundamentals (which I, eventually, never did). As such, one of the most fundamental things in physics that I still don't understand (a year after dropping out from the university) is the concept of . No one cared to explain what a field actually is, they just used to throw in a bunch of formulas and everyone was content. The school textbook definition for a field (electromagnetic in this particular case, but they were similar), as I remember it, goes like:  An electromagnetic field is a special kind of substance by which charged moving particles or physical bodies with a magnetic moment interact.  A special kind of substance, are they for real? This sounds like the authors themselves didn't quite understand what a field is so they decided to throw in a bunch of buzzwords to make it sounds right. I'm fine with the second half but a special kind of substance really bugs me, so I'd like to focus on that. Is a field material? Apparently, it isn't. It doesn't consist of particles like my laptop or even the light. If it isn't material, is it real or is it just a concept that helps to explain our observations? While this is prone to speculations, I think we can agree that in scope of this discussion particles actually do exist and laws of physics don't (the latter are nothing but human ideas so I suspect Universe doesn't &quot;know&quot; a thing about them, at least if we're talking raw matter and don't take it on metalevel where human knowledge, being a part of the Universe, makes the Universe contain laws of physics). Any laws are only a product of human thinking while the stars are likely to exist without us homo sapiens messing around. Or am I wrong here too? I hope you already see why I hate physics. Is a field not material but still real? Can something &quot;not touchable&quot; by definition be considered part of our Universe by physicists? I used to imagine that a &quot;snapshot&quot; of our Universe in time would contain information about each particle and its position, and this would've been enough to &quot;de&quot; it but I guess my programmer metaphors are largely off the track. (Oh, and I know that the uncertainty principle makes such (de)serialization impossible — I only mean that I thought the Universe can be &quot;defined&quot; as the set of all material objects in it). Is such assumption false? At this point, if fields indeed are not material but are part of the Universe, I don't really see how they are different from  except for perhaps a more geeky flavor. When I talked about this with the teacher who helped me to prepare for the exams (which I did pass, by the way, it was before I dropped out), she said to me that, if I wanted hardcore definitions,  a field is a function that returns a value for a point in space.  Now this finally makes a hell lot of sense to me but I still don't understand how mathematical functions can be a part of the Universe and shape the reality. What is the rule for comma placement before a quotation mark? When should the comma go before and when should it go after the quotation mark? Also show "Add a comment for the author" selection when deleting/voting to delete an answer I'm aware that this only affects high rep users and mods, but nevertheless it would be nice if the following selection would appear when a user casts a delete vote on an answer.    If I am not mistaken, this only appears when casting delete votes from the review queues. I don't see a reason why this shouldn't also appear when casting a vote directly to the answer, instead of the (java script) alert with "Delete this post?".  Or in other words, the selection should always appear when a user does some kind of 'delete answer' action. What's the meaning of 90-plus? What's the meaning of 90-plus? More than 90? If so, please tell me more ways to say "more than 90". Thank you! Can a Filipino citizen with no Korean visa with a long layover in Seoul take the airport free city tour? I am a Filipino citizen traveling from Saipan to Manila via Seoul, with 13 hours layover.  Do I need a Korean visa to take the airport free city tour? Producing .bbl file with Lyx and JabRef How do I produce the .bbl file required for arXiv using JabRef for bibtex and Lyx? Reading a 5 Band resistor with Gold as a middle band? Can anyone read the resistor that the arrow is pointing to?  From what I know you can not have a gold band as a number and if I am reading it correctly it has a tolerance of 0 which does not seem right. Force MacBook to drain the battery while connected to charger I leave my MacBook Pro on my desk nearly all the time, connected to the charger with the lid closed, connected to an external display.  I've heard this is bad for the battery health, and everyone in my office have to replace swollen batteries every couple of years. I want to regularly discharge the battery, per , but I don't want to physically unplug it because that temporarily turns off the external monitor, and then I have to reconnect the monitor.  So I am looking for a software method of disabling the power input, to force the laptop to discharge its battery to 20% and then re-enable the power input. Is it possible to experimentally show that observable universe is much larger than ~93B ly? Thought experiment:   Entangle a pair of particles.  Package one half of each pair in a special package, and send it out in a nano-spaceship keep the other half of the pair of entangled particles here on earth accelerate nano-spaceship to 99.99999999999999% of the speed of light using a number of    Due to Lorentz ,  $$ L = L _\text{0} \sqrt {1 - \frac {v^{2}}{c^{2}}} $$  In one years time, the spaceship would have traveled 93B ly away from us (in the spaceships relative frame)  After one year of travel, the spaceship could be preconfigured to detect the CMB in the direction of travel, and then trigger their quantum entangled particle to send a '0' or a '1' depending on whether the CMB was detected.  Repeat this process using any number of spaceships in any number of directions, and soon you would experimentally show how big the universe really is.  Any problems? In a technical environment, what is the most suitable sentence to use when answering to someone about a problem that they had and we solved it for them:   The problem is solved The problem has been solved Substr(). Add characters for each n digits I'm rather interested in getting my feet wet at the interface of  and . Can anybody give me references to some good books on these topics? I'm looking for very introductory technical books. Is there an English phrase for an inability to actually *leave* already? There is a Hungarian expression, küszöbgörcs, which literally means "threshold-cramp", and is used to describe that long conversation you have in the entryway, with all the guests awkwardly holding their coats and purses, and every so often somebody says something like "Ok, we really have to leave now, but just one more thing...", and then the conversation is good for another half an hour at least.  I've searched in vain for an equivalent idiom in English, yet I feel sure it must exist: I know English speakers are equally susceptible to this malady, it's not a uniquely Hungarian thing. I will sometimes use literal translations, like the aforementioned threshold-cramp (or doorway-spasm), but then I need to explain it, and that's less than satisfactory. (Plus it leads to more threshold cramping.)