trying to create a script with timestamp
Why can't I change directories using "cd" in a script?
How to modify a text file? Cannot make a static reference to the non-static method I know that Windows XP 32-bit can be configured, through , to support more than 3.5&nbsp;GB of RAM.  Is there a good tutorial to do this with Windows 7 32-bit?  As to why I don't simply use 64-bit Windows 7: The software for my Internet connection (cell phone-as-modem) will only work in 32-bit environments. I am a beginner using QGIS (1.8.0 Lisboa) on a Mac (OS X 10.6.8 Snow Leopard). I work on a file with two layers in the following sequence (top to bottom):    a vector polygon layer with a few outlines of various buildings in France and Italy (CRS: EPSG:4326 - WGS 84 - "on the fly" re projection is activated ) a Google satellite layer uploaded via open layer plugin.   Sometimes when changing the scale (scrolling in and out) the Google layer updates a little wrong in size or position compared to the polygon layer. But as soon as I "pan" the map everything reconstructs right. Now the problem I have concerns the print composer.  The result of any kind of export - pdf, or image or svg - of my map (vector layer + Google layer in the background) differs from what is shown in the preview of the print composer: the vector layer and the Google layer positions are mismatching and in a different scale. I can send some pictures showing screenshots of the print composer preview and the final results if required.  I tried almost everything:    new files with different CRS settings "cache" update preview "render" update preview different paper sizes,  different scales,   The problem appears only using an open layer map (Google, OpenStreetMap...). If I try the same using two vector layer (shapefile) - one with the buildings, another one with the city in background - everything works out great.  ...exasperating! Since it is a real important research project I would be very grateful for some help and tips. Integral $\int_{0}^{\infty}e^{-ax}\cos (bx)\operatorname d\!x$ I want to evaluate the following integral via complex analysis $$\int\limits_{x=0}^{x=\infty}e^{-ax}\cos (bx)\operatorname d\!x \ \ ,\ \ a &gt;0$$  Which function/ contour should I consider ? What are the fundamental differences between the mainstream *NIX shells? What are the fundamental differences between the mainstream *NIX shells and what scenarios might prompt you to use one over the other?  I understand that some of it probably comes down to user preference but I've only ever used Bash and I'm interested to hear where another shell might be useful. Also, is there an impact on user-written shell scripts when running under one shell or another or is it simply a matter of changing the shell at the top of the file?  My instinct says it's not that easy. Importing shapefile into AutoCAD Map 3D? I'm trying to import shapefiles into a DWG using diferent layers names and during my web search I found this post. I know you did this 2 years ago but my problem is very similar and I wonder if you could help me.  Basically I've got a shapefiles of pipelines and I want to use the attribute name to sort the features into different CAD levels in teh same layer. I tried the import and although soem people say that "you can set the import to use data field" I can't see any option to do it and I'm really struggling. Any help appreciated.  I'm running on AutoCAD Map 3D 2010. Generating ordered combination of numbers Selecting pixels in raster using polygon selection tool? I want to reclassify landcover image manually with respect to online imagery. I am looking for a software/plugin/script to manually select raster pixels using polygon selection tool and could be able to enter new value.  I have Arcgis with spatial analyst license. What would be the best approach to get the recordtype id I'm trying to recall the name of a book I read, probably published after 1990, where alien AI infects satellites and a barrier is established, isolating earth from space that maybe slows down time inside of it, relative to the passage of time outside.  Mars or the moon is also colonized in an attempt to flee the now real possibility that the sun will become a red giant and wipe out humanity in the not-too-distant future (as perceived on earth), but the colony gets one of the time barriers as well.  I think the name of the novel was short, "The _______" (one word).  The story focused more on the human cost and followed one particular family, one member of which was somehow also partially infected by the alien AI, but I don't remember as much about them. Terminal flashes on empty backspace with Yosemite Since using Yosemite, I've had the annoying problem of my current Terminal window flashing when backspacing on an empty line. I know on previous versions of OS X this flashing was not default, and could be toggled in accessibility settings, but I cannot find the same setting and I'm dying to get this turned off. Any known ways to get rid of it? If I roll two fair dice, the probability that I would get at least one 6 would be.... Detecting constexpr with SFINAE Predict probabilities from Firth logistic regression in R I'm using the logistf package in R to perform Firth logistic regression on an unbalanced dataset. I have a logistf object:  fit = logistf(a~b)   Is there a predict() function like on that's used in the lm class to predict probabilities for future data points? Or do I have to manually input the estimated parameters from the Firth regression. Suppose a package provides whatever.service file so certain events (including whatever.socket) cause a daemon to start with a certain configuration.  I want to disable this completely. In particular, I want the old socket and any other unit files that might refer to this service by name to be unable to start the daemon.  Instead, I want to create my own unit files for this daemon with a different .socket unit and different environment variables. I also want my override to automatically take account of possible upstream updates to the original unit file (which my current solution of copying whatever.service as whatever-modified.service and editing it unfortunately does not provide).  If I create the following symlinks and files: /etc/systemd/system/whatever.service → /dev/null /etc/systemd/system/whatever-modified.service → /usr/lib/systemd/system/whatever.service /etc/systemd/system/whatever-modified.service.d/fix.conf  systemd considers the new service to be masked as well and refuses to start it. How to avoid this? I want to apply for Schengen visa, but employer NOC which is mandatory document for visa is not available with me I have resigned from my current company and will be joining a new company soon.   Hence, I cannot get a leave approval letter from my current company, and if I decide to join a new company and then request a NOC (No Objection Certificate) it will be late for visa process completion because of my traveling dates.   What can I show to the embassy as an alternative to this NOC document? For quite some time now I have been asking myself how the world of Game of Thrones is shaped and if the people living in that world know the shape.   In questions here on SciFi.Stackexchange concerning the unnatural seasons or the definition of a year in Westeros, it is often  that the Westerosi can measure the duration of a revolution of their planet around the sun. But that only works if they know that they actually live on a planet.   In  answer it was said that people have been travelling in ships around the world. However, I cannot remember any passage in the books supporting this. Actually I only remember evidence for the opposite:    During the  on the Iron Islands, there is a man called  who promises the Ironborn treasures from lands far to the west, if they elect him as king. However, the POV character of that chapter (I think it was Victarion Greyjoy) does not believe him and sees the madness in Gylbert's eyes - as if speaking of travelling west is crazy.  Later when he leads the attack against the Shield Islands, the Iron Fleet travels out of sight of the coast line. This manoeuvre is considered very dangerous and risky. If this is already dangerous, traveling even further west appears close to suicide.   In addition, there was a  who sailed to the far west and never returned.   establishes that the world is not a hollow world, but is not conclusive as to whether it is a planet.  Is there any evidence in the books that the World of Ice and Fire is a planet? Was it established that the Westerosi know the nature of their world? Scenario description  Lets assume both containers have a capacity of 300 litres.  One is a vertical tube  as shown in pic 1  Other one is more or less a V shaped containers as shown in pic 2  Both are at ground level  Question  No doubt that whole weight of 300 litres will act on the base of the tube (pic 1). But will the weight of the whole 300 litres act on the base of the container as shown in pic 2?  I.e if you keep both the containers on a weighing scale, for sure, it will show a weight of approx. 300 kg each.  But what I'm asking is whether the weight of whole 300 litres acts on the base of container 2 (since the container's walls are slanting, as opposed to the walls of the tube in pic 1).  If the whole weight will not act on the base of the container, can you state the reasoning and also the principle, so that I can further get to know about it?  Pic 1             |         |                    |         |            |         |            |         |            |         |            |         |            |_________|   Pic 2           \              /           \            /            \          /             \________/ MacBook Pro 2020 Fan Issues I recently purchased a MacBook Pro 2020 13&quot; (1.4 GHz, 8GB Ram, i5). For some reason, when I open Chrome and watch Twitch my computers fans turn on and go crazy. After opening Activity Monitor, I noticed that Google Chrome Helper (Renderer) uses around 50-80% of my CPU. Also, sometimes when I run code on my MacBook Pro, the fans turn on when the program is compiling/running but slow down a few minutes after terminating the program. Also, when watching Twice on Safari, the fans don't come on. However, around 50-60% of the CPU is still being used. Should I be concerned about the CPU usage (I am nervous because I only recently purchased the laptop)?