I recently posted an  on unix.stackexchange.com that included someone else's pointful comment. To me the comment was to the point  but was also obvious, and I did not think twice about including it in what ended up being the only posted answer. Along with that I fixed some stylistic programming issues apparent in OP's question. My answer was accepted. The day after this, after reading comments from various upstanding members of the site, I offered the author of the comment to erase my answer so he/she could write his/her own, based on his/her comment. I had no response perhaps because this was deemed both trivial and unimportant. That in a way is also what I think.  Nevertheless I have the nagging feeling that at least the appearance of using a valuable comment in a answer reflects badly on my moral standing in the Community. So I bring this to Meta in the form of the question below. I read somewhere that erasing an accepted answer is not recommended. That policy actually makes sense to me, to not destroy communal value. But I still would like to forfeit whatever bonus points I received for it (frankly I don't care at all for those). How can I do this without erasing my answer wholesale ? Or is it nevertheless my call to erase my answer anyway in this particular case, leaving the initial helpful comment below OP (i.e. not below my answer) ?
I'm trying to go through and provide answers to every unanswered question (search &quot;closed:0 answers:0&quot;), somewhat following the spirit that was blogged about at  .  However, I'm finding this much more difficult than it needs to be, as many of the questions have already been answered without the use of an &quot;answer&quot; - but instead, in the form of a comment by either the OP or another poster. I wouldn't mind reading through and skipping these, as long as there was some appropriate action I could take to at least assist with preventing these questions from being seen again from the same query - either by myself or another SO member.  Is there such an appropriate action?  Should we vote to close?  If so, using what reason? Even if I vote to close, what are the chances that 4 other users will also view the question and also vote to close?  (i.e., will my individual vote even do any good?  Is there any report to show recent close votes, so that others may also review and contribute supporting close votes?) Should we post some sort of an answer - even just something to the effect of &quot;this was already answered by the OP's own comment to his answer (above)&quot;? Would something like this be appropriate to flag for moderator attention, and let the moderators deal with it?  (Or would this be considered too trivial?) Should we rename the question title to something standard that can be used in a search exclusion?  (Maybe &quot;SOLVED:&quot;?)  Basically, how can I help to denote questions as &quot;This question is no longer in active search of an answer - though better answers may still be appreciated.&quot;? I've already reviewed , which was closed as a duplicate of  - but this requires effort on part of a user who may very likely no longer be active. Otherwise, is there something I should be doing to improve my search to filter out these types of questions? I've run across this many times, so I don't consider it to be a rare issue.  However, the last question like this I just ran across, prompting this question, was .  In this case, the question was self-answered by the OP in the form of a comment, this question is the OP's only question, the OP has no other visible activity on SO, and the OP hasn't been seen on SO since he registered and posted the question 5 months ago. Another one I just ran across is .  However, here the &quot;answer&quot; comment was posted by a reputable and recently active SO member.  Should I leave a comment directed at him, asking him to re-post his comment as an answer, or should I post my own answer echoing his comment?  (Or something else?) Yet another is .  Interestingly, the OP actually self-edited the question to include the &quot;SOLVED:&quot; prefix on to the question, instead of posting his resolving comment as an answer (and ideally accepting it) as he was asked to do by another comment.  This brings up another good idea - is there a &quot;standard&quot; we should use to rename the titles on these &quot;resolved but unanswered&quot; posts that could be used as a search exclusion?  (Also added to the above list.)
How do I Sort a Multidimensional Array in PHP At work we have a Domain Controller running Server 2008 R2. Our desktop support group has the ability to join computers to the domain using their network credentials. We are now running into a problem where if the name of the computer that is being joined is the same as an existing computer on the domain, the existing computer will get a "The trust relationship has failed..." error and will not authenticate at all unless someone logs in as a local admin, changes the computer name and rejoins it to the domain.  I want to make it so that Desktop Support can only join computers with unique names to the domain. If the name already exists on the domain the operation should fail. Looking through TechNet it looks like this functionality exists but I can't seem to find out how to enable it.  Any ideas? sequence $x_{n+1}=x_n+e^{-2018x_n}$ Someone has pointed their domain (www.bomberball.net) to the same IP as my domain (www.kapparate.com) , and Google is now showing the former when searching for Kapparate, rather than the latter. What's the best way to block requests coming from www.bomberball.net ? Linethrough/strikethrough a whole HTML table row How do I emit light from inside a object? I have a 2015 MBP for work, which I connect my iPhone (6 plus, iOS 10) to charge, and I don't want to trust the computer, ever. However, I must click "Don't Trust" every single time I connect for charging. This is asymmetric to the "Trust" selection, which remembers my decision.  Does anyone know if it's possible to stop the 'Trust/Don't Trust' modal from appearing every time, and have the machine not be trusted?  If possible, can you please tell me how? If not possible, can you please provide proof or evidence that lead you to this conclusion?  Finally, I am not concerned with arguments or opinions about this feature. Only what is outline above. How to remove duplicate lines inside a text file? A huge (up to 2 GiB) text file of mine contains about 100 exact duplicates of every line in it (useless in my case, as the file is a CSV-like data table).  What I need is to remove all the repetitions while (preferably, but this can be sacrificed for a significant performance boost) maintaining the original sequence order. In the result each line is to be unique. If there were 100 equal lines (usually the duplicates are spread across the file and won't be neighbours) there is to be only one of the kind left.  I have written a program in Scala (consider it Java if you don't know about Scala) to implement this. But maybe there are faster C-written native tools able to do this faster?  UPDATE: the awk '!seen[$0]++' filename solution seemed working just fine for me as long as the files were near 2 GiB or smaller but now as I am to clean-up a 8 GiB file it doesn't work any more. It seems taking infinity on a Mac with 4 GiB RAM and a 64-bit Windows 7 PC with 4 GiB RAM and 6 GiB swap just runs out of memory. And I don't feel enthusiastic about trying it on Linux with 4 GiB RAM given this experience. How do I set up my studio for shooting large rugs from the ceiling? Instead of the constrained 45 degrees that happens when you press C, is there a specific angle I can get for example 35 degrees instead?   It's currently cut at 45 degrees in the attached image and I need it to be 35. C++ code file extension? What is the difference between .cc and .cpp For each $y \in \mathbb{R}$ either no $x$ with $f(x) = y$ or two such values of $x$. Show that $f$ is discontinuous. How to retrieve GET parameters from JavaScript Ubuntu 18.04 error on waking up from sleep : Read-error on swap device After the laptop has been in sleep mode for a couple of hours,when I try and resume my session I get the following error:     Read-error on swap device    It takes about 30 seconds for the login screen to load post this happening. Once I log in, the screen blanks out once or twice for a second, and none of my programs are open anymore. I get a "System problem detected" prompt. When I click on "Send Report", another notification pops up saying:     Sorry the program "Xorg" closed unexpectedly. Your computeer does not have enough free memory to automatically analyze the problem and send a report to the developers.   What I have tried so far is to increase the swap space available. It was around 2 GB initially and I created another swap file of 9 GB. This hasn't helped. The occupied swap space ( as per the swapon command ) after the crash is always around 170MB.  The DMESG for when I resume my session, up to the read error on swap device is as follows:       [64046.474054] ACPI: Low-level resume complete [64046.474162] ACPI: EC: EC started [64046.474162] PM: Restoring platform NVS memory [64046.475139] Enabling non-boot CPUs ... [64046.475196] x86: Booting SMP configuration: [64046.475196] smpboot: Booting Node 0 Processor 1 APIC 0x2 [64046.475663]  cache: parent cpu1 should not be sleeping [64046.475859] CPU1 is up [64046.475910] smpboot: Booting Node 0 Processor 2 APIC 0x4 [64046.476330]  cache: parent cpu2 should not be sleeping [64046.476506] CPU2 is up [64046.476539] smpboot: Booting Node 0 Processor 3 APIC 0x6 [64046.477071]  cache: parent cpu3 should not be sleeping [64046.477255] CPU3 is up [64046.477274] smpboot: Booting Node 0 Processor 4 APIC 0x1 [64046.477721]  cache: parent cpu4 should not be sleeping [64046.477922] CPU4 is up [64046.477947] smpboot: Booting Node 0 Processor 5 APIC 0x3 [64046.478371]  cache: parent cpu5 should not be sleeping [64046.478571] CPU5 is up [64046.478591] smpboot: Booting Node 0 Processor 6 APIC 0x5 [64046.479018]  cache: parent cpu6 should not be sleeping [64046.479229] CPU6 is up [64046.479247] smpboot: Booting Node 0 Processor 7 APIC 0x7 [64046.479675]  cache: parent cpu7 should not be sleeping [64046.479899] CPU7 is up [64046.485913] ACPI: Waking up from system sleep state S3 [64046.639206] ACPI: EC: event unblocked [64046.639711] sd 2:0:0:0: [sda] Starting disk [64046.873289] usb 1-11: reset full-speed USB device number 2 using xhci_hcd [64046.976869] ata4: SATA link down (SStatus 4 SControl 300) [64046.976892] ata2: SATA link down (SStatus 4 SControl 300) [64047.149289] usb 1-6: reset high-speed USB device number 40 using xhci_hcd [64047.437370] psmouse serio1: synaptics: queried max coordinates: x [..5660], y [..4570] [64047.476302] psmouse serio1: synaptics: queried min coordinates: x [1364..], y [1284..] [64047.922603] OOM killer enabled. [64047.922605] Restarting tasks ... done. [64047.928727] thermal thermal_zone1: failed to read out thermal zone (-61) [64047.930036] Bluetooth: hci0: Bootloader revision 0.0 build 2 week 52 2014 [64047.935036] Bluetooth: hci0: Device revision is 5 [64047.935037] Bluetooth: hci0: Secure boot is enabled [64047.935038] Bluetooth: hci0: OTP lock is enabled [64047.935038] Bluetooth: hci0: API lock is enabled [64047.935039] Bluetooth: hci0: Debug lock is disabled [64047.935040] Bluetooth: hci0: Minimum firmware build 1 week 10 2014 [64047.935042] Bluetooth: hci0: Found device firmware: intel/ibt-11-5.sfi [64047.944372] PM: suspend exit [64048.050329] Read-error on swap-device (8:0:1543400288) [64048.460888] [drm] RC6 on   Please let me know if any other information is needed. What do I need to install LED strip lighting? I've been looking to install LED strips, either RGB or white for lighting and ambiance. It wouldn't be the main lighting of the room, so no necessity for high power LEDs.  The perimeter of the room is a little less than 25 meters. Looking around in online stores, I saw that the reels come in maximum lengths of 5 meters, so I would need five of those.  What I'm not sure is how to connect the strips together.  I was looking at , or  with .  If I choose the white LEDs, what power supply, controller, and connector would you recommend to be able to daisy chain the strips?  If I choose the RGB LEDs, what kind of data repeaters would work to be able to control all the strips at once? Environment variables in Mac OS X Update: The link below does not have a complete answer. Having to set the path or variable in two places (one for GUI and one for shell) is lame.  Not Duplicate of:     Coming from a Windows background where it's very easy to set and modify environment variables (just go to System Properties > Advanced > Environment Variables), it does not seem to be that straight forward on Mac OS 10.5. Most references say I should update /etc/profile or ~/.profile. Are those the equivalent of System Variables and User Variables? For example, where should I set my JAVA_HOME variable?    EDIT:  I want to be able to access the variable from the terminal as well as an app like Eclipse. Also, I hope I don't have to restart/logout to make this take effect. How do ${0##*/} and ${0%/*} work? I'm quite confused about the following regular expressions I found in a shell script:  ${0##*/} ${0%/*}   How do they work? Going back twice required to return to search results in the tags view Using different delimiters in sed commands and range addresses How to isolate the text from a bitmap logo?