Sunday, March 10, 2019

What cable do a need to connect a SATA SSD to a computer with eSATA and USB plugs?




I have a laptop (Dell Precision M 6700) with an eSATA plug and some free USB ports. What type of cable do I need to plug the SATA SSD to the eSATA and power it? Is there a cable with eSATA on a side and data + power SATA plugs on the other side? I have looked on some seller websites but I don't know how this cable is named.



I already have an external USB hard drive enclosure, I can put in it a SATA drive in order to connect it through USB but I think it will be slower with USB interface instead of eSATA.



Edit: I found the SATA 22 Pin to eSATA Data + USB Power Cable cable @ NewEgg and SATA 22 pin to eSATA USB @ Amazon.fr. Is it the right type of cable? Will it deliver enough power to the SSD?


Answer



I bought a SATA 22 pin to eSATA USB and it worked.



Here is the cable model:




SATA 22 pin to eSATA USB



Image source: Amazon.


Saturday, March 9, 2019

hard drive - Western Digital Blue High Pitch Noise Spinning Down

I picked up a Western Digital Blue 1TB WD10EZEX last week and noticed that when spinning down it makes a really high pitched noise for about 9 seconds whenever it spins down or goes idle that I can hear 10 feet away clearly and I just unplugged it because its too loud. Someone told me a while ago that all the blues make that noise but I got a hold of another WD10EZEX and its not making that noise at all. I checked it with Western Digital tools though and it passes their tests.


This is the spin up and spin down of the hard drive about a 5 inches away here.
https://soundcloud.com/user-285338497/wd-blue-spinup-spindown


I'm wondering If I should return it and get it replaced.


Thanks

secure erase - What is a safe way to dispose of personal info on an old laptop and what to do with said laptop?




I have an old laptop someone gave me that only has 64Megs of RAM on it and runs WIN XP. I wanted to wipe the drive clean by installing Ubuntu Desktop to remove any shred of personal information on it and to make it useful to someone else. But the Ubuntu installer keeps failing because there is not enough RAM. Is there another version of Linux that would easily install on a 64 Megs of RAM system?



2nd part of question, what do I do with this old laptop? It doesn't have a battery anymore and has to be plugged into the wall to run. Assuming I can install a good Linux distro on it, who do I give it to? Salvation Army? I'm looking to just have it be useful to someone or some organization for spare parts or some basic computer usage.


Answer



A "boot and nuke" CD is the way to go, something like http://www.dban.org/ should do the trick. This will allow you to securely and easily wipe the hard drive.


How to paste URL link of a copied hyperlink (NOT the text) in word 2010?

I want to copy the underlying URL of a hyperlink not the display text of that link in Microsoft Word 2010.


Currently I can only have the option to paste text only - need a way to paste link only


enter image description here


How can I do that?


ps.


I need to copy multiple hyperlinks text (e.g. copied from the internet and paste into Word, then I need to extrack the link only). Currently when using the Copy Link Address option when copy, it works only for one link.


enter image description here

Where should I find drivers for my Windows computer if it didn't come with a driver disk?

I had to reformat my machine because I had a virus. My machine did not come with a driver disk. How can I install drivers after having reinstalled Windows?

cygwin - Run windows batch file from ssh login - env vars missing


I am trying to run a windows batch file from a ssh login.
I have successfully installed cygwin w/ OpenSSH on the server (windows 2003).


I can log in and run the file, but the file does not run properly because it relies on an environment variable. I discovered that for security reasons not all environment variables are added to the ssh shell. I added the environment variable I need (in ~/.profile), but the file still errors out.
I modified the file and had it output the environment variable that was causing issues before, and I discovered that it was still not set.
So, even though I added the environment variable, and it exists in the shell, it is not available in the shell the batch file is being run in.


How would I add the environment variable to the batch file's shell?
Modifying the file permanently is not an option; it is created by another program, and I am trying to write a git hook to run the file on another machine after a "git push"


Answer



You could write a small shell script that sets the environment variable(s) and then runs the batch file. For example:


#!/bin/bash
export VAR1="value of VAR1"
export VAR2="value of VAR2"
./script.bat

This example assumes that script.bat is in the current working directory and that you have execute permission for it.


Friday, March 8, 2019

worksheet function - Excel Conditional Formatting based on Previous Cell



I would like to apply a formula to one column that outputs formatting based on what the cell before (cell to the left of cell in column 'F') it contains.



IF 'E' cell is GREATER THAN 10 AND 'F' cell is LESS THAN 11, highlight 'F' cell green


so far my formula is:



=AND($E9>10,$F9<11)



I'm applying this formula for the entire column but I want each individual cell to be based on the individual cell before it. I'm not sure if the '$' is messing things up or what but I can't make sense of the cells that excel is choosing to highlight.



I've looked at a bunch of other posts on here based on conditional formatting per previous cell and nothing has helped. Appreciate any assistance!



An example of what it's highlighting: (bold is highlighted (there's another style being applied in the 'E' column that styles numbers 1-10))



| E | F |




| 2 | 1 |



| 100 | 34 |



| 1 | 1 |



| 3 | 3 |



| 42 | 100 |




| 6 | 5 |



| 5 | 8 |



| 11 | 5 |



| 19 | 7 |



image of issue: http://imgur.com/a/fylSF


Answer




Your formula is essentially correct, so the issue may be that you are basing it on the wrong cell. Conditional Formatting formulas that are applied to a selection consisting of multiple cells should be based on the selection's Active Cell.



For example, if you want to apply Conditional Formatting to the entire column F, and you select that column by clicking on the column header, your sheet will look something like this:



enter image description here



In the screenshot above, the selection's Active Cell (the selected cell that is highlighted differently than all of the other selected cells) is cell F1. So, when you add a new Conditional Formatting Rule for this selection, just ensure that the formula is based on cell F1. Or, to put it another way, construct the formula as if cell F1 was the only cell being formatted:



=AND($E1>10,$F1<11)



Result:



enter image description here


hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...