As long as there is an open file descriptor pointing to a file, I can bring it back with cp like this:  # Open for reading exec 3&lt; file # Delete rm file # Bring it back cp /proc/self/fd/3 file   This solution is okay with small files, but it's really slow with larger ones (like >5GiB). So I wonder, is there a way of bringing it back without copying the content? I mean, the data lies there untouched unless the descriptor is closed, so why shouldn't it be possible to link a filename to the memory area the data resides?  Please enlighten me on this. A hackish command line solution, a platform/filesystem dependent C API etc. everything is welcome; I just want to know if this is possible somehow somewhere, and if not, I want to know why.  Googling didn't help at all, all I could find is copy-of-copy articles about how to restore files with lsof and cp.
If I know the index node (inode) of a file, but I don't know its path (or any of its paths), is it possible to create a hard link to that inode directly?  I could find the file using sudo find / -inum 123546 and then create a hardlink, but that would be way too slow for my application.  N.B. I'm using an ext4 filesystem.
How can slightly blurred photos be improved in post processing? How do I grep for multiple patterns on multiple lines? I bought a Mac (13", early 2011) almost 5 years ago. When I first got it, it was running under OS X 10.7 and it was pretty fast. I've being upgrading it ever since and it's now running under Mac OS X 10.11.  I guess it didn't totally survive the upgrades because, today, there's a lot of bugs, freezes, lags, "spinning beach ball" appearing,... for example, when I write something on a normal program/editor, the cursor freezes for a few seconds, then catches up to what I'm writting.  As you can guess, that's really annoying! I've been thinkning about upgrading the hardware but I don't know what to do: should I change the RAM to 8 GB - 1 333 MHz (currently my computer has 4 GB - 1 333 MHz)? Or should I upgrade to an SSD (which is pretty expensive and difficult to install)?  Thank you very much. Short story collection about Transporter "Doors" I'm looking for a short story collection about different uses/inventions of transporter doors. I think it was just a single author collection, that I read in the early 2000s.  In each story these Transporter Doors exist, I seem to remember them being described as blank grey sheets. You step through them and come out somewhere else. The forward to the book talked about early Rocket stories where the launch of a spaceship would be the end of the tale.  Plots of the individual stories:  Two men one of whom's home is inside an asteroid are discussing the use of Base12 in their society and if it is because they have 12 fingers, one says that "people" used to use base10. The implication is that a different species arrived through the doors and replaced humans.  A man puts the code for his home into a door and is instead transported to prison where he's accused of murdering his wife, which he strongly denies.   Two scientists and a pilot take a probe ship deep into Jupiter's atmosphere, the will return to base via a door that they need to construct while they are down there. The scientists dislike each other and don't work well together. When they finish the door, the hamsters seem woosy out the other side, but the scientists insist it is ready. The pilot says he will go first as he can't fix it if it's wrong. When he arrives on the far side he's mentally damaged and the scientists have to get along without him acting as a buffer while the try to save themselves. Seeking administrative boundaries for various countries? After learning about the  datasets I've working with the following layers, from the USA data   Country boundaries State boundaries County boundaries City boundaries ZipCode/Postcode boundaries   What I am trying to find is the equivalent (where appropriate) of the same data for various countries.  Is there any free administrative boundaries available as shapefiles for other countries? ibus Avro in Ubuntu 14.04 LTS I used the instructions given  to install ibus Avro in my ubuntu 14.04 LTS (64 bit) but ibus avro was not installed. Can anyone help me to solve this case? After giving the commands in terminal nothing happens. If $p$ is congruent to $2 \pmod 3$, how can I prove that all $a$, $1 \le a \le p-1$ are cubic residues $\mod p$? If $p$ is congruent to $2 \pmod 3$, how can I prove that all $a$, $1 \le a \le p-1$ are cubic residues $\mod p$?  Here's what I've done:  $1^3$ congruent to $1 \pmod p$ thus, 1 is a cubic residue, Also $(p-1)^3=(p-1) \pmod p$ implies  $$(p-1)^3 - (p-1) = (p-1)[(p-1)^2 -1] = (p-1)(p^2 -2p) = p(p-1)(p-2) $$ implies $$p|(p-1)^3 -(p-1)$$ Thus  $p-1$ is a cubic residue $\mod p$. Now I don't know how to show for $1\lt a \lt p-1$ are all cubic residues when $p$ is congruent to $2\pmod 3$. My wife has several files and folders that somehow ended up having filenames that have caused them to be undeleteable (can't be deleted) by normal means or via the command line. I believe the filenames are too long due to the depth of the folder structures. Does anyone know of a good utility for cleaning up files like this? Hide a Field From ONE User Scenario: If I had a Custom Profile / Standard Profile, say Sales,and I have 50 Users assigned to the same Profile and had same Permission / Access on a particular object (Could be Standard or Custom Object), if I were to Hide a Field ONLY TO ONE USER, which would be  a better Solution to achieve this WITHOUT EDITING OR TOUCHING THE PROFILE??  Option 1: Create a Custom Profile for this particular User and give CRED access (I know this one isn't a good solution as I got a Thumbs-down from a Technical Architect)  Option 2: Create a Permission Set - Go to the particular Object,say, Accounts, Object Permission Enabled -->Field Permissions-->Remove READ Access - This would make this particular field hidden from the Object to the Profile. Then Assign this Permission to particular User whom I don't want to see this field.  I would go with the 2nd option but I still hear a groan. Where am I going wrong? How would you hide a particular field from ONE User out of 10 Profiles who have the same Access Rights?  What's the best possible solution to hide a Filed from only one User out of 10 Users who have the same Profile. How to make a bootable windows USB in Kali Linux Showing that $\sum_{i=1}^n \frac{1}{i} \geq \log{n}$ Game about placing pennies on table This problem is from The Art and Craft of problem solving book:  Consider the following two player game. Each player takes turns placing a penny on the surface of a rectangular table. No penny can touch a penny which is already on the table. The table starts out with no pennies. The last player who makes a legal move wins. Does the first player have a winning strategy?  Now its not hard to see that the first player will always win if you place the coin in the center. But I have been thinking about what would happen If I also allow Quarter, Loonie and Twoonies. Does the first player have a strategy to always win? Could someone provide an explanation? Change Legend Right to Left Reading in QGIS I am a new QGIS user and i have a challenge to convert legend from right to left reading in QGIS like ArcGIS. I have bumped into an issue that doesn't allow me to do anything related to apt-get: install, remove, etc. Whenever I try to do something (e.g. sudo apt-get install firefox -f) it gives me the same error message:  Reading database ... dpkg: unrecoverable fatal error, aborting:  unable to open files list file for package `fontconfig-config': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2)   I have tried to deal with the package fontconfig-config without success.  I have found that the "Input/output error" is usually linked with physical problems of the hard drive, but I do not think that's the case I am using that hd without any other problem.  I have tried removing the mention to the package in /var/lib/dpkg/status as mentioned .  I have tried deleting all files related to the package in /var/lib/dpkg/info as I found somewhere.  But I still cannot do anything. The funny bit comes when I look for the file that is giving me troubles:   mecho@Ansible-MS-7680:/var/lib/dpkg/info$ ls fontconfig* ls: cannot access fontconfig-config.list: Input/output error fontconfig.list     fontconfig.postinst  fontconfig.preinst  fontconfig.triggers fontconfig.md5sums  fontconfig.postrm    fontconfig.prerm   This is done after I deleted all files ... it looks like fontconfig-config.list still exists but it doesn't show up!  Any idea about how to solve the problem?  I am on kubuntu precise, fontconfig-config_2.8.0-3ubuntu9.1    I do not have smartmontools installed nor any other programme I could use to check the hard disk. The most similar think I seem to have is KDE Partition Manager but it doesn't allow me to check anything (the option appears unavailable). However, I think the problem is not the hd.  How do you suggests me to do the fs check? fcheck is not installed and I cannot think of any other command in bash (as I do not think I have anything else installed that could perform a check).  Thank you.  Edit: I have found the command (silly me), fsck. This is what I got:  /dev/sda1: recovering journal Clearing orphaned inode 4456702 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456700 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456699 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456697 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456694 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456693 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456688 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456481 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456692 (uid=0, gid=0, mode=0100600, size=65536) Clearing orphaned inode 4456689 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456709 (uid=1000, gid=1000, mode=0100600, size=714046) Clearing orphaned inode 4456469 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 3672644 (uid=0, gid=0, mode=0100644, size=1595) Clearing orphaned inode 1324021 (uid=0, gid=0, mode=0100640, size=1980) Clearing orphaned inode 1324014 (uid=0, gid=0, mode=0100640, size=126) Clearing orphaned inode 4456499 (uid=1000, gid=1000, mode=0100600, size=0) Clearing orphaned inode 4456483 (uid=1000, gid=1000, mode=0100600, size=65536) Setting free inodes count to 7147142 (was 7147702) Setting free blocks count to 23891195 (was 23781617) /dev/sda1: clean, 151930/7299072 files, 5292549/29183744 blocks If I make a scene and then render it with BR or Cycles, am I allowed to use that image in a commercial project? Do I need to include any copyright notice or license? Spaces in variable assignments in shell scripts subsurf splits the mirrored model into two objects I tried to subsurf this model that I mirrored but when I use subsurf it splits the model into two objects.  Before Subsurf:   After Subsurf:   Any help would be appreciated. I want to generate some formatted output of data retrieved from an MS-Access database and stored in a DataTable object/variable, myDataTable. However, some of the fields in myDataTable cotain dbNull data. So, the following VB.net code snippet will give errors if the value of any of the fields lastname, intials, or sID is dbNull.     dim myDataTable as DataTable    dim tmpStr as String    dim sID as Integer = 1     ...    myDataTable = myTableAdapter.GetData() ' Reads the data from MS-Access table    ...     For Each myItem As DataRow In myDataTable.Rows      tmpStr = nameItem("lastname") + " " + nameItem("initials")      If myItem("sID")=sID Then         ' Do something     End If      ' print tmpStr     Next   So, how do i get the above code to work when the fields may contain dbNull without having to check each time if the data is dbNull as in ? Do neutrinos not couple to the Higgs field? What is difference between: "I have been married with (was married with, married) her for three years." What is the difference between the three sentences below?   I have been married with her for three years. I was married with her for three years. I married her for three years.