I need exactly  but on Linux:  Anyone know of a way to simply paste a screenshot (taken with PrtScn or Alt+PrtScn) into a Windows Explorer folder and have it be saved as an image (possibly with a dialog asking about image size and format options)? That is, I might take a screenshot with print screen, open a folder and hit Ctrl+V, and a new jpg (or png, or whatever) would appear in that folder with the contents of my screenshot.
Is it possible to take an image from the clipboard and output it to a file (using X)?  I can do this with text easily:  $ xclip -selection c -o &gt; file.text   But when I try the above with an image nothing is written.    The reason I want to do this is I don't have an image editor installed, and it got me thinking whether I could do this without installing one.
How to send data to a serial port and see any answer? On Linux, I want to send a command string (i.e. some data) to a serial port (containing control characters), and listen to the response (which also usually might contain control characters).   How can I do this as simplest as possible on Linux? An example is appreciated! SharePoint Current User View using JavaScript MySQL shutting down without warning, out of memory? I understand how Insight and Perception can be used passively: for the DM to determine if an enemy Deception or Stealth attempt is successful without alerting the players that someone is deceiving or sneaking.    But the Observant feat in the Player's Handbook states:      [...] You have a +5 bonus to your passive Wisdom (Perception) and passive Intelligence (Investigation) scores.     So in what situation would a DM be rolling something against the player's Investigation without letting them know? So our 6-month-old boy still doesn't sleep through the night. He still wakes up at least once and wants to eat.  He takes 3 naps during the day, ranging from 30 minutes to 1.5 (sometimes 2) hours.  We usually put him down for the night at least 2 hours after his latest nap, but we haven't been able to get him down to 2 naps per day because he gets pretty cranky during the evenings. Depending on the duration and times of his naps, his bedtime ranges between 10 and midnight.  We have started feeding him a small amount (2 tablespoons dry) of rice cereal after his morning and evening naps in the hopes that he'll have a fuller stomach through the night, but he still wakes up hungry after sleeping between 3 and 6 hours. I can handle the 6 hours, since that means I get 6 hours of pretty much uninterrupted sleep, but it's usually more like 3-4.  Any suggestions? Consider a common proof of the uncountability of $(0,1]$, as presented  for example:  We assume that the reals can be arranged in a sequence $x_k$, represent every number in $x_k$ by its nonterminating decimal expansion, use the diagonal argument to create a sequence of decimal digits that differs from the nonterminating decimal expansion of each number in $x_k$ and then claim that this sequence of digits so generated must be the decimal expansion of some number not in $x_k$.  My problem is with this last step. Could it not be the case that the new sequence of digits is just the terminating decimal expansion of some number already in $x_k$?  Would it not be more correct to use the sequence $x_k$ to generate a sequence of all (both terminating and non-terminating) decimal expansion of all numbers in $[0,1)$ and then apply the diagonal argument? Automatically hide old comments Comments are useful. Many, many posts need some small amount of meta discussion, and comments fulfill this need.   Comments are also noisy and distracting. Occasionally, someone will post an insightful and informative comment that complements the post its attached to... But more often, they're tangential, quickly irrelevant and in the way: stale comments show up first, making newer comments less visible.  The guidance here for a long time has been that comments are transient, . And yet, some do hang around for months or years because .   So let's fix that.   I propose that all comments older than 7 days be hidden by default unless the comment has been up-voted in the past 30 days. Hidden comments should be indicated by a note below the post ("add / show 3 more comments") and made visible to anyone who cares to click it.   This doesn't destroy anything, but it would get it out of the way of most readers - and hopefully encourage folks to edit it into the actual answers as a result.  Note: I previously suggested this . Other  have been . However, I'm not suggesting that comments be automatically deleted, and they should be hidden based purely on the age / activity of the comment itself, not of the post to which they're attached. Shell script- To fetch the content from the specific tag at all occurrence using shell scripting I have an XML file on my server. In that file, I have many tags in which there is a tag for example, "container" tag. I need to fetch the content of all the container tags content separately. Many thanks in advance. How can I resize an ext root partition at runtime? How can I increase the size of the root partition of a system at runtime?   I have a partition that is not allocated after the root partition (which is also ext4), how can I add that unallocated space to the space allocated to the root partition without having to shutdown the server? grep'ping files for multiple strings (not necessarily on the same line) I need to be able to compare some month names I have in an array.  It would be nice if there were some direct way like:  Month.toInt("January") &gt; Month.toInt("May")   My Google searching seems to suggest the only way is to write your own method, but this seems like a common enough problem that I would think it would have been already implemented in .Net, anyone done this before? I recently moved into an in-law unit of a large old house.  In the kitchen, there are two pipes coming out of the wall (one protruding out a little more than the other).  I had assumed they were gas lines to connect my stove.  But since the stove only connects to one pipe, I'm now wondering if they're actually water lines. Can anyone explain how I can tell the difference? On the other side of the wall is a large closet with the air conditioning system, water heater, and what I think is the gas shutoff valve. Mathematical operators, such as function names, should be set in roman type, not italics. Latex already has commands for some operators, including \max, \min, and \log.  How can I define additional such commands? Which novel involves vampires, burning satellites, space travel, and body modification? About a decade ago, I encountered a novel or a novella that I cannot locate.   The setting was Earth, about one century into the future.  I remember vampires and a mesh of satellites around the Earth that were burning up in the atmosphere.  This motivated a mission to deep space to find the intelligence responsible for the satellites.  Most of the novel focused on the crew of the mission &mdash; I recall that they were not "standard" humans.  They had modifications to their minds and bodies, possibly for the mission.  At the time, I had gone on a binge, reading many short stories, novellas, and novels in quick succession.  I fear that I might be combining several stories into one, especially the vampires and the deep-space first-contact mission, and so I am fully prepared for an answer of the form, "No such story exists."  Any assistance would be greatly appreciated. How to pronounce decimals? Something like:  0.1 0.23 0.999   How to pronounce them correctly in English? Pagination go to first page if i'm on last post I have a custom post type and used get_next_post() and get_previous_post() to create a simple pagination. However i need to create a pagination loop (if that is the correct term). If i'm on the first post i need to browse back to the last post and if i'm on the last post i need to browse to the first post. Is there a simple way to do this that i haven't seen but Google, this site and the codex has not been very helpfull :/  The current code i have is. I've tried to use wp_list_pages and other functions but with little luck.  $next_post = get_next_post(); $prev_post = get_previous_post(); $nav = array(     "next_post" =&gt; array(         "url"       =&gt; get_permalink($next_post-&gt;ID),         "id"        =&gt; $next_post-&gt;ID,         "titill"    =&gt; get_field("vinstri_titill", $next_post-&gt;ID)." - ".get_field("vinstri_undirtitill", $next_post-&gt;ID)     ),     "prev_post" =&gt; array(         "url"       =&gt; get_permalink($prev_post-&gt;ID),         "id"        =&gt; $prev_post-&gt;ID,         "titill"    =&gt; get_field("vinstri_titill", $prev_post-&gt;ID)." - ".get_field("vinstri_undirtitill", $prev_post-&gt;ID)     ), ); The story:   Question posted on Programmers (let's call it ), Same question posted on Code Review (let's call it ), I migrate Q1 to Code Review, Someone notices that Q1 is a duplicate of Q2 and votes to close, I notice the duplicate notice and the auto-generated comment and also try to vote to close, but can't. No error message, nothing, it just doesn't work.   And then I notice that Q2 no longer exists ("voluntarily removed by its author"). My guess is the OP also noticed the duplicate vote, realized how messy cross posts are and decided to be a good citizen and delete one of the two questions. He picked the wrong one though, and now we're left with a duplicate notice pointing to a non existent question and an unresponsive dialog.  It's a mess ;) A weird and rare mess, but still a mess. What can we do about it? Show that $a^{61} \equiv a\pmod{1001}$ for every $a \in \mathbb{N}$ OpenSource ATI driver - Fan running at full speed all the time I know this is a common problem and have read other topics but couldn't resolve. Anyways yesterday I found a solution - I have 2 graphic cards (hybrid) and they were both on. So I turned one off and installed Jupiter for power management and from there on the fans were quiet and I was happy as hell.  However (:)), yesterday evening I also updated the system and the fan and it's noise came back. I checked whether I am using only 1 graphics card and I am.  c0dehunter@mintBox ~ $ sudo lshw -c video [sudo] password for c0dehunter:    *-display                       description: VGA compatible controller        product: RS780M/RS780MN [Mobility Radeon HD 3200 Graphics]        vendor: Hynix Semiconductor (Hyundai Electronics)        physical id: 5        bus info: pci@0000:01:05.0        version: 00        width: 32 bits        clock: 33MHz        capabilities: pm msi vga_controller bus_master cap_list rom        configuration: driver=radeon latency=0        resources: irq:18 memory:c0000000-cfffffff ioport:c000(size=256) memory:fbcf0000-fbcfffff memory:fbb00000-fbbfffff   Maybe the problem is (false) temp reading from GPU?  c0dehunter@mintBox ~ $ sensors acpitz-virtual-0 Adapter: Virtual device temp1:        +44.0°C  (crit = +105.0°C)  k10temp-pci-00c3 Adapter: PCI adapter temp1:        +47.0°C  (high = +70.0°C)                        (crit = +115.0°C, hyst = +110.0°C)  radeon-pci-0200 Adapter: PCI adapter temp1:       +127.5°C     The thing that is weird is that if I boot into Windows the fan is still at full power (previously it wasn't). Did I f--- up my hardware with software? :)  //OH, yes - I forgot to mention that my laptop is not hot at all. The temps are about 50°C. Record a macro of windows commands Using Windows 7, is there an in-built or third-party method of recording windows commands and being able to play them back?  As a very basic example of what I would like to be able to do, imagine having two desktop themes that you like to alternate between. The Windows commands would be something like   Open personalisation applet select second theme ok   (I'm calling this a macro because of the equivalent capability in Word.)