Wednesday, October 31, 2018

windows - Why RAM usage is much bigger than Virtual Memory usage

I am running some tests on a very powerful machine ( 24GB RAM, Window 2008 64bit )




I checked my task manager: Physical memory: 98% ( RAM is 24GB )



But the totally "Memory(Private working set)" usage of all my running processors is no more than 16GB



Where are those extra 8GB used for? Is it used by the OS IO buffer, or somewhere else?



Can anyone contribute some ideas?

memory - Can T400 work with 1333 MHz RAM?


I am interested in buying 2x4GB RAM from either http://www.newegg.com/Product/Product.aspx?Item=N82E16820144686 or http://rads.stackoverflow.com/amzn/click/B00A8NX3CQ for my Lenovo T400.


Both products are 1333 MHz, while the official link for T400 recommend 1067MHz (See below). Will 1333 MHz RAM be incompatible with T400? Thanks!


From the official website of T400 (http://support.lenovo.com/en_NO/product-and-parts/detail.page?DocID=PD005598)



3-8500 Non-Parity (NP) Double Data Rate Three (DDR3) Technology


Two SO-DIMM Slots


The use of 1067 MHz SO DIMM memory is recommended for this system.


512 MB, 1 GB, 2GB, or 4GB memory


Supports up to 4GB maximum memory


Note: Only 64-bit operating systems support more than 3GB of system memory (RAM).



Answer



The 1333MHz RAM is backwords compatible and will work with 1066MHz if the chipset doesn't allow it to run with the designed 1333MHz. So yes, it should work.


windows 10 - AUTOHOTKEY | WinMove | Virtual Desktop of choice


UPDATED-STATEMENT: 20181118@205016@SUN A suggestion was made to manually focus the Virtual Desktop of my choice, but this eliminates me from doing other tasks on another Virtual Desktop. Still waiting for a valid take-care-ofitself solution.
UPDATED-STATEMENT: 20181118@210851@SUN There is no way autohotkey can work with moving apps to a specific Virtual Desktop on it's own without dll-calls (*see below*). In other words, the use of dll-files is required for the time being that is Windows language and not as convenient as an ahk-statement. Who knows, maybe ahk can implement this function someday to keep it lightweight and add it to their statement-library.
UPDATED-TATEMENT: 20190509@212923@THU @Shayan suggested sdias-win10virtualdesktopenhancer as a way to manage windows and virtual desktops.


SPECIFICATION:
win10_1803_17134.407
autohotkeyahk_1.1.30.00_20180822


After the 5-month idle time for this topic i've now stopped using virtual desktops.


Virtual Desktops doesn't make navigation any easier, perhaps the clear view of the wallpaper will be enjoyed by some, but not me.



WHY I USE AHK


Using Autohotkey in Windows 10 to open up frequently used apps which will not duplicate opening up a program if it has already launched (IfWinNotExist). Then, move them to where I prefer each app to be (WinMove). I have set a timer (Sleep) because some apps open up slower than others (I would be interested to know if there is a better way to do this). I like ahk for how lightweight it is, but there's Windows 10 related functions that aren't documented from them like Virtual Desktop involvement.


PROBLEM


Problem is that there isn't a way to use WinMove for specifying a Virtual Desktop for win10 to launch an application in. So I struggle running my frequentlyusedapps-script and going into another Virtual Desktop to open up other apps simultaneously. This is because what ever Virtual Desktop i'm focusing on is what my frequentlyusedapps-script will move the window to.


QUESTION


How to have autohotkey move an application to a Virtual Desktop of my choice? I don't think it's possible with ahk-WinMove If the virtualdesktop-number isn't created then the script will obviously fail to move the app, but this isn't my focus just yet. I could otherwise create the appropriate number of Virtual Desktops prior to launching my frequentlyusedapps-script. What I mean by having a way for ahk to achieve this is to be pure ahk code and not fork/branch that will probably be not updated for the unfortunate reasons. If it does have to come from a branched project then let's discuss what ahk elements they're using to involve Virtual Desktop to move windows to a specific one.



!^+o::
IfWinNotExist, ahk_exe program1.exe
Run "C:\Dir\program1.exe"
WinWait, ahk_exe program1.exe
WinMove, ahk_exe program1.exe,, 953, 61, 967, 1019
TrayTip, openfrequentlyusedapps, ok, 1,
IfWinNotExist, ahk_exe program2.exe
Run "C:\Dir\program2.exe"
WinWait, ahk_exe program2.exe
WinMove, ahk_exe program2.exe,, -7, 61, 813, 516
TrayTip, openfrequentlyusedapps, ok, 1,

SOLUTION



  • As per @miroxlav, "there is no way Autohotkey can do this with their current statements." Although not impossible, but requires more effort as it's now Windows language is using ahk w/ dll-calls.

    • It would help a lot of someone is able to show how this even works



NOTE

Tuesday, October 30, 2018

Why do we have CPUs with all the cores at the same speeds and not combinations of different speeds?



In general if you are buying a new computer you would determine which processor to buy by what your expected workload will be. Performance in games tends to be determined by single core speed, whereas applications like video editing are determined by number of cores.



In terms of what is available on the market - all the CPUs seem to have roughly the same speed with the main differences being more threads or more cores.



For example:





  • Intel Core i5-7600K, base frequency 3.80 GHz, 4 cores, 4 threads

  • Intel Core i7-7700K, base frequency 4.20 GHz, 4 cores, 8 threads

  • AMD Ryzen 5 1600X, base frequency 3.60 GHz, 6 cores, 12 threads

  • AMD Ryzen 7 1800X, base frequency 3.60 GHz, 8 cores, 16 threads



So why do we see this pattern of increasing cores with all cores having the same clock speed?



Why do we not have variants with differing clock speeds? For example, two 'big' cores and lots of small cores.




For examples sake, instead of, say, four cores at 4.0 GHz (i.e. 4x4 GHz ~ 16 GHz maximum), what about a CPU with two cores running at say 4.0 GHz and say four cores running at 2 GHz (i.e. 2x4.0 GHz + 4x2.0 GHz ~ 16 GHz maximum). Wouldn't the second option be equally good at single threaded workloads, but potentially better at multi-threaded workloads?



I ask this question as a general point - not specifically about those CPUs I listed above, or about any specific one specific workload. I am just curious as to why the pattern is as it is.


Answer



This is known as heterogeneous multiprocessing (HMP) and is widely adopted by mobile devices. In ARM-based devices which implement big.LITTLE, the processor contains cores with different performance and power profiles, e.g. some cores run fast but draw lots of power (faster architecture and/or higher clocks) while others are energy-efficient but slow (slower architecture and/or lower clocks). This is useful because power usage tends to increase disproportionately as you increase performance once you get past a certain point. The idea here is to get performance when you need it and battery life when you don't.



On desktop platforms, power consumption is much less of an issue so this is not truly necessary. Most applications expect each core to have similar performance characteristics, and scheduling processes for HMP systems is much more complex than scheduling for traditional SMP systems. (Windows 10 technically has support for HMP, but it's mainly intended for mobile devices that use ARM big.LITTLE.)



Also, most desktop and laptop processors today are not thermally or electrically limited to the point where some cores need to run faster than others even for short bursts. We've basically hit a wall on how fast we can make individual cores, so replacing some cores with slower ones won't allow the remaining cores to run faster.




While there are a few desktop processors that have one or two cores capable of running faster than the others, this capability is currently limited to certain very high-end Intel processors (as Turbo Boost Max Technology 3.0) and only involves a slight gain in performance for those cores that can run faster.






While it is certainly possible to design a traditional x86 processor with both large, fast cores and smaller, slower cores to optimize for heavily-threaded workloads, this would add considerable complexity to the processor design and applications are unlikely to properly support it.



Take a hypothetical processor with two fast Kaby Lake (7th-generation Core) cores and eight slow Goldmont (Atom) cores. You'd have a total of 10 cores, and heavily-threaded workloads optimized for this kind of processor may see a gain in performance and efficiency over a normal quad-core Kaby Lake processor. However, the different types of cores have wildly different performance levels, and the slow cores don't even support some of the instructions the fast cores support, like AVX. (ARM avoids this issue by requiring both the big and LITTLE cores to support the same instructions.)



Again, most Windows-based multithreaded applications assume that every core has the same or nearly the same level of performance and can execute the same instructions, so this kind of asymmetry is likely to result in less-than-ideal performance, perhaps even crashes if it uses instructions not supported by the slow cores. While Intel could modify the slow cores to add advanced instruction support so that all cores can execute all instructions, this would not resolve issues with software support for heterogeneous processors.




A different approach to application design, closer to what you're probably thinking about in your question, would use the GPU for acceleration of highly parallel portions of applications. This can be done using APIs like OpenCL and CUDA. As for a single-chip solution, AMD promotes hardware support for GPU acceleration in its APUs, which combine a traditional CPU and a high-performance integrated GPU onto the same chip, as Heterogeneous System Architecture, though this has not seen much industry uptake outside of a few specialized applications.


hard drive - Latency of SSDs versus HDDs


We are currently using an HDD for our NetApp storage for our VMs. We're considering replacing them with SSDs, but many disk manufacturers have different performance. What range of latencies can we expect from SSDs versus HDDs? How much better are SSDs on average?


Answer



The latencies of an SSD vary hugely, but in terms of IOPs (which us probably the term you want to google)you are looking at an increase in the order of 2-5 magnitudes. (Ie 100 iops for HDD, starting at more then 10000 + for an SSD).


Have a look at https://en.m.wikipedia.org/wiki/IOPS


SSDs are like a night and day difference. I would only use hdds for backups and unimportant archival data - like videos, music collections. A heavily swapping HDD can render a system unuseable - while it will just be a bit sluggish on SSD.


Speedwise SSDs are at least 5 times as fast in sequential reads and writes - which represents the closest benchmark


You did not ask, but SSD is also over 5 times as reliable as hdd (but unlike hdd more likely to fail completely and without warning - so RAID is still important)


windows - Ninja-stealth upgrading hard drive

I'm looking to ninja-stealth upgrade the laptop in my work computer to an SSD. The current hard drive looks to be a ~250gig spinning rust drive so I bought a similar sized SSD. Unfortunately it seems that the drive I bought is slightly smaller than the current drive.



I proceeded by resizing the partitions on the current drive down. It seems that there are two paritions: the regular C: and a BDEParition which, as I understand it, is used during enterprise deployments of windows. I recreated the partitions on the new drive using fdisk off a linux boot CD and then used dd to copy the partition contents over. The new drive failed to boot at all: just a black screen.



I assume that because the disk geometry is now different that the boot loader, which I believe resides on the BDEPartition, is unable to find windows. I tried booting with a windows disk and running the repair tool but no dice. Any idea how I could get my stealth boot working?

windows - Caps Lock only works for certain letters?

A very weird problem. For the letters a, o, s, and u, caps lock leaves them lowercase; it works for every other letter. I noticed it 3 weeks after getting the computer; I have a 1-year warranty. Any idea what this could be?




  • It happens in every program I have tried (word, notepad, chrome, and native windows 10 interfaces).


  • It also happens with the on-screen keyboard.



  • The shift key also has (a variant of) the same problem: after pressing any of the "cursed" keys, sometimes ALL keys will start being lower case.


  • It is fixed by making a new user (only for the new user)!


  • Disabling the program "autohotkey" which I installed does nothing.


  • Updating key/mouse drivers does nothing.




Specs:
Lenovo Yoga 900 with 512GB ram & intel i7-6500u, 16GB ram. Windows 10 home.

Formula-based Excel page headers

I'm using the "Rows to repeat at top" function in Excel's "Page Setup" dialog to ensure that a multi-row header block appears on every printed page of my worksheet. However, I'd like to be able to change certain bits of the header based on the content of the current page. I would simply like to display the value of one cell in the first row that is printed on the page.


If this is my header:


Section: xx


And the data looks like this (columns are Section and Name):


1 Foo
1 Bar
2 Baz


I want the "xx" in the header to be "1". If, further down on the next page, the value in the Section column is "3", I want that printed in the header of the next page.


I originally thought that using the "OFFSET" function might help, e.g.


="Section: "&OFFSET(A2, 1, 0)


But it only shows the offset from the original placement of the header, thus only working on page 1.


The end document is a PDF, so right now I'm able to go back in with the "TouchUp Text Tool" in Acrobat and add the values page by page. But it gets to be a tedious process with 70+ page reports. Anyone have any better ideas that don't require me mucking up the original Excel document with inserted headers every N lines?


This is Excel 2008 for Mac, if it makes a difference.

laptop - Keyboard not working after replacement?


Not really sure how to troubleshoot the keyboard not working after replacing it on my Latitude E5520.


The mouse works (from the keyboard), the backlights are on, just no keys. Actually they have registered a couple times but in general not working. What is the next step?


Note: I noticed that when I hit a key it turns my computer out of power saving mode. So it seems the keystrokes are registered yet no keys can be typed.


Second Note: Plugged in USB keyboard. It worked until Windows 7 loaded. Then nothing.


Answer



Talked to Dell. They basically said that everything had to be installed correctly for me to get the functionality that I had. And it was either a bad connection from the keyboard input module or just the entire keyboard itself - so new keyboard was defective. Took a keyboard out of another Dell we had laying around and it worked fine with same connection ribbon.


Windows update fails upon installation of IE11

So I was trying to get all updates installed in order to be eligible for win 10 upgrade, but when windows update tries to install ie11 it fails with 9C59 error code. Also manual installation of ie11 does not work saying a error has occured, try again. Searching microsoft knowledge base I did not find any solutions that worked.

windows 7 - Missing programs shortcut from "All programs"

When I go to Start -> All Programs I cant see all of the default shortcuts.enter image description here!


I have tried, to customize "everything" on properties in start menu (like search other files and libraries).
Also in
*C:\Users\Adnimistrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs*
I have only few programs.The one you see on screen, but I have lot more programs in my C:\Program Files folder.


Also wnen I search for some of Windows featurs, I cannot find them, like Paint ( The content of Accessories folder, is not "normal" as well, because a lot of stuff is missing.
enter image description here!


There was alredy this question posted on superuser.com, but with no answer.
Also, new programs that I have installed are on the All programs list.

Monday, October 29, 2018

64 bit - Invalid Product Key Windows 8

I'm trying to install windows 8 64-bit on my notebook using a genuine windows DVD but right after I select language and click on "install" it says the key is invalid even if it didn't asked me to type any key. But the 32-bit version DVD is working fine (I needed to install it to be able to use the notebook but it's 64-bit processor so I want to install 64-bit version). I also tried get a iso copy from a friend to install from USB device but I got exactly same error. How do I fix it?

partitioning - Bootcamp Windows 10 in Legacy BIOS mode reports external pure GPT disks as MBR. Why?

I was under the impression that Windows just required the drive it boots from to be MBR when booting in BIOS mode, hence the hybrid MBR setup created by Bootcamp on my Macbook Air 2012 (this model doesn't officially support UEFI). This would explain why Windows treats the system drive as MBR.



As it turns out, even USB drives with pure GPT are detected as MBR, and that surprises me. Surely booting in legacy mode doesn't prevent the OS from reading and detecting the GPT? But that's what it looks like.



I'm positive that the drive has a protective MBR since I just generated one with gdisk before booting back into Windows.



Strangely enough, even though both Windows' own partition manager as well as EaseUS Partition Master tells me the drives are MBR (although, EaseUS tell me they don't support or test on Bootcamp), they all detect and list the actual GPT partitions. I can also use the partitions normally in Explorer. If they truly treated the drives as MBR, they'd have hit the protective MBR and only shown me one large partition. I find it a bit confusing and contradictory.




Could someone explain what's going on?






Update



So, I originally had the external drives A (hybrid MBR) and B (MBR). I converted these to pure GPT withgdisk by generating a protective MBR, and by just doing an immediate write, respectively. This was done in Ubuntu. Windows still treated them both as MBR though, which led to this question.



I've now checked with gdisk on Windows and could confirm that drive A had reverted to having a hybrid MBR, and drive B now also had a hybrid MBR.




I once again generated a new protective MBR with gdisk in Ubuntu for the drives, booted into Windows and could confirm that the change had now stuck.



The only explanation I have for this is that I changed the partition names on the drives with Gparted after the first conversion to GPT. Since Gparted showed the "Name" column -- which only exists for GPT drives -- for drive B, I took that as a sure sign that Gparted had actually read the new GPT partition table from the drive. After all, drive B was pure MBR before the conversion so there is no other way Gparted can tell that it's now GPT.



For some reason, Gparted must have overwritten the protective MBR with a cached version of the disk's old MBR, which kind of doesn't make sense since, clearly, Gparted was aware that it was a GPT drive.



If Gparted was the source of the hybrid MBRs, then it was a mistake on my part to assume that editing a GPT exclusive field ("Name") would not impact the protective MBR.

Sunday, October 28, 2018

windows 7 - Microsoft Office slows down computer


I've noticed that if I leave a document open for a couple days (i.e., in word or excel) when I log into my computer, it is running very slow. It has happened on the past couple computers I have worked on, but couldn't really pinpoint the problem.


At the end of the day, instead of saving everything closing out and logging off... I just save my document and lock the computer with ctrl+alt+del. The next day I come in, everything seems to be working as it should. Then usually on day 3 of the document being open, I notice my computer is very laggy until I close out of my document.


What in the world would be causing that?


Answer



Different things can cause sluggishness. Use Task Manager or Resource Monitor to check whether word.exe or excel.exe display abnormally high RAM or CPU usage or disk access. Perhaps the problem lies somewhere else entirely.


Also, it would be helpful if you gave some more details, like your computer's specs, any anti-malware programs running in the background, etc.


unresponsive - Surface Pro 4 Keyboard not working

The keyboard just isn't working. I've reset it like 10 times trying to get it to work. I've been doing the "Power On and Volume Up" technique but that just doesn't seem to be working. However, when I see that screen (The One when I press Power On and Volume Up) the keyboard works perfectly. But the moment I shut it down or press restart on that screen I get back to the home screen and the keyboard still doesn't work. (Not sure if this helps but Caps lock isn't lighting up when I pressing it, but the Function key DOES light up when pressed). There could be a good chance the way I'm doing the technique is wrong but I feel like I'm following it exactly like the semi-vague three step solutions have been showing online.

Saturday, October 27, 2018

windows 7 - How to fix a Micro SD card inside a USB 2.0 adapter that is not working?

I have a Micro SD card inside a USB 2.0 adapter that is not working. 
I have tried a few different methods to fix my flash drive with no results.
The micro SD card is 32 GB inserted into a USB 2.0 adapter.



  • When I plug the drive into a port, Windows 7 makes a sound, and I am prompted to format the drive. I failed after a number attempts to format the drive. I tried all the ports on three different computers (same results).

  • Next, I uninstalled the USB driver and reinstalled the flash drive FAILED

  • I opened CMD, entered diskpart > select disk 1 > clean
    and I followed more steps that I found online but still FAILED

  • I changed the LETTER of the drive, then continued the step above FAILED

  • I tried to insert the drive into my Xbox 360 to try to format it FAILED

  • I tried four different recovery programs FAILED

  • I tried to format each sector (it took 3 hours) FAILED

  • I removed the card from the adapter and placed it into an SD card, then inserted it into my laptop FAILED

  • I tired using a micro USB adapter to connect to my cell phone to erase ALL on the drive FAILED

  • I tried to use ERASER software to delete all on the drive FAILED


The drive was working fine two days ago. It was used to store video games and add-ons on my Xbox 360 console. Two days ago, I went to play a game on the drive, but it wasn't there. In fact, the console read the drive was almost full; however, the contents was empty.


I would like to delete, erase or reset the drive so I can use it again. 
I don't need to recover its contents;
I can always re-download the games and stuff.


What can I do?

storage - New hard drive: checklist before entering your workflow?

1, 2... 4+ TiB of data makes a lot of (here choose the appropriate) work/recording/stress/time-to-eg-rebuild-the-array when put on an drive of unknown health.


When getting your hands on a spinning hard drive be it new or not, what points do you check on the hard drive (aka checklist) before you start filling it up with data... or send it back for replacement? By points I do mean points (not tools which are a matter of possibilities eg. OS, and preference, thanks @Franck Michael for pointing this).


Get the physical sector size (for partition alignment, filesystem or raid/lvm setup). eg


# fdisk -l /dev/DRIVE
Disk /dev/sdc: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes «-- physical sector size
I/O size (minimum/optimal): 4096 bytes / 4096 bytes «--

Check S.M.A.R.T. values for possible defect ? eg


# smartctl -a /dev/DEVICE \
| grep -i 'ID\|reallocated\|pending\|uncorrectable'

As any bad value (eg. Val/ue > Worst) for Reallocated_Sectors, offline uncorrectable, pending sectors, and Error log, is bad news and brings the hdd to warranty. [2]


Check blocks reliability? if so on whole disk? eg


# dd if=/dev/zero of=/dev/sdb bs=[physical sector size] & pid=$!
kill -USR1 $pidnumer

Where the kill -USR1 $pidnumer shows how far the zeroing has progressed. conv and noerror can be added to ensure that every block is tried and upon error (errors are shown in terminal) the zeroing continues [2]


Do you trust S.M.A.R.T. report and if so, which ones? Or do you run additional/other test [3] before you trust the hard drive start using it?


I'd like very much to hear your options.


[2]: Thanks to @DebianJunkie at Hard drive checking by using dd and md5sum tools
[3]: like Bonnie++, Hitachi Drive Fitness Test, HDD Regenerator which I know very little about.

Set up notepad++ so that clicking on the close button will only close the current tab


Is this possible? I often happen to have opened more than one document and after editing one I click on close without remembering that I actually just wanted to close that tab.


Answer



Using the parameters -multiInst -nosession will allow multiple windows to be created, which can still contain several tabs (however, they have to be opened through that window for obvious reasons). That way, closing one window will leave the remaining documents open.


Friday, October 26, 2018

What are the "tmp" .RAW files showing up when importing pics from Android to Windows PC?



When importing photos taken from my Samsung Galaxy S6 into Windows 10, sometimes I get anomalous photos imported that are not in my camera's galaxy.



The anomalous imported images vary in their contents: sometimes they are 1px*1px white image files of a few kb size; sometimes they are graphics like an arrow direction sign, a generic scene of a camera displayed over a cityscape like an ad, or an octagon; sometimes they are files that seem like images but don't open correctly; sometimes they are screenshots of my phone homescreen but they are not screenshots that appear in my phone gallery as when I intentionally take a screenshot. In my last test case, my import included 6 files named "tmp0", "tmp1" ... "tmp5" all .RAW format and somewhat large (one is 8MB, one is 15MB). These files sometimes have almost no metadata, and in some cases they have timestamps that happened when the phone was off and I was asleep! So far I've noticed they all have File Attributes="A" under Properties > Details > File, but I'm not sure what that means.



Here are some specs on the import:




  • Samsung Galaxy S6 running Android v7.0



  • Windows 10 HP laptop


  • To import, I connect phone to PC via USB then Windows Photos pops up. It
    searches for new images, I then select which of the new ones I want to import and have options on what system to name & save them through and if deleting after importing, then I start the process. It's at that point - where Windows Photos is suggesting what images to import - that I see these weird images which aren't showing up on my phone's gallery.




I use the same import system to import photos from a different camera which connects to the PC via an SD card. When going off the SD card, I never get these weird images, so this seems specific to the Android/Windows connection.



Here's a screenshot of the weird photos I get when importing images from my phone, which are not in my phone's gallery:



screenshot of weird images



Answer



It seems these temporary images are originating from the LPE folder.



Basing on the explanation give on this answer:




The LPE folder is used by Samsung's Camera and Photo Editor apps. The
files inside are photos in a raw format. If you open the file in
photoshop, you can make out the image somewhat. The specifics of the
image bit orders are not known.





One Samsung user acknowledges that this folder, continuously and periodically creates/modifies tmp*.raw files every day at arbitrary times.



About the nature of their appearance of these temporary images, they seem to come in fragments and unusual colours:




It (the .raw file) contains your last image in a very specific way: the first quad
of image in a blue light, the second in red etc.





and some suggest it comes from specific apps whose screenshot would have been taken randomly:




If I remember correctly, mine is usually filled with RAW files which,
when opened in Photoshop, are just screenshots of my apps at different
points.




What are they used for?




One user suggest that;



These temporary raw files (tmp0.raw etc) which are made by the Samsung camera are created to aid fast editing of the pictures you take. New raw files are also created when you use the built-in photo editor to add effects to your photos.



One consenquence about these files is the potential drive space they can take up as they can be large.




These are temporary files and can be safely deleted.





Acknowledgements




hard drive - Dropped WD External Harddisk, now it's shown as "Not initialized"

So, the WD my passport external harddisk is dropped, and after that, the computer is unable to read it anymore. I was hopping if I can just find another case to try if the harddisk is still readable, but looks like the hard drive itself is not a normal SATA or PATA drive. I think it's modified. So, I can't find another case that I can try on.


In the computer, I still can see the drive in the "Disk Management", but it's shown as Uninitialized, no size, and no drive letter.


enter image description here


I've also tried a couple of recovery tools. Some can't detect at all, there is one (find and mount software) that can detect but shows 0 size. None of them can recover the data.


WD is willing to replace it with a new one, but I still need to recover the data. Any way I can recover the data?


UPDATE:
I tried initialized it from the windows Disk Manager, but it give error "The request could not be performed because of an I/O device error."

Can not make work python in windows 7 64 bits

Tried installing python 3.13 64 bits, 3.13 32 bits and 2.7 64 bits. But none of them seems to work.



Both 3.13 after installing it I run python.exe and it shows:



Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module named encodings.utf_8



and when i run python.exe (2.7 version) it prints:



No module named site



i don't know what else to do. i searched everywhere, but it seems no one had the same error.



I am running it on windows 7 64 bits Home Premium.
Anything you need to know just ask me.

MS Excel, Macro appending extra characters

Using a macro, I'm joining 2 separate sets of columns with a colon using a simple function, like =A2&":"&B2


This works fine until it gets to the final row, where the macro is adding two additional cells each with just : in them. It looks like the macro auto-selected past the fields that contained data and joined the empty cell contents with the :.


I've reviewed the macro several times and don't see what might be causing it. Can someone spot check this for me?


Sub NetworkStatisticsFilter()
'
' NetworkStatisticsFilter Macro
' Format and Filter Data from Get-NetStatTCP to simplify port discovery
'
'
'Suppress alerts
'
Application.DisplayAlerts = False
'
'Delete empty header rows that resulted from Get-NetStatTCP export
'
Rows("1:1").Select
Selection.Delete Shift:=xlUp
Rows("2:2").Select
Selection.Delete Shift:=xlUp
'
'Text-to-Columns, space-delimited
'
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=True, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1)), _
TrailingMinusNumbers:=True
'
'Join LocalAddress & LocalPort with a ":" then copy results and replace both columns w/a paste-value
'
Columns("C:C").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Columns("C:C").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("D1").Select
ActiveCell.FormulaR1C1 = "SRC"
Range("C2").Select
ActiveCell.FormulaR1C1 = "=RC[-2]&"":""&RC[-1]"
Range("C2").Select
Selection.AutoFill Destination:=Range("C2:C77")
Range("C2:C77").Select
Selection.Copy
Range("D2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("A:C").Select
Range("C1").Activate
Application.CutCopyMode = False
Selection.Delete Shift:=xlToLeft
'
'Join RemoteAddress & RemotePort with a ":" then copy results and replace both columns w/a paste-value
'
Columns("D:D").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("E1").Select
ActiveCell.FormulaR1C1 = "DST"
Range("D2").Select
ActiveCell.FormulaR1C1 = "=RC[-2]&"":""&RC[-1]"
Range("D2").Select
Selection.AutoFill Destination:=Range("D2:D77")
Range("D2:D77").Select
Selection.Copy
Range("E2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("B:D").Select
Range("D1").Activate
Application.CutCopyMode = False
Selection.Delete Shift:=xlToLeft
'
'Auto-fit columns
'
Columns("A:D").Select
Columns("A:D").EntireColumn.AutoFit
'
'Auto-filter loopback address/port combinations and delete resulting rows
'
Columns("A:A").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$A$79").AutoFilter Field:=1, Criteria1:="=127.0.0.1*", Operator:=xlFilterValues
ActiveSheet.UsedRange.Offset(1, 0).Resize(ActiveSheet.UsedRange.Rows.Count - 1).Rows.Delete
ActiveSheet.ShowAllData
'
'Remove duplicate values in DST column
'
Selection.AutoFilter
ActiveSheet.Range("$A$1:$C$67").RemoveDuplicates Columns:=2, Header:=xlYes
ActiveWindow.SmallScroll Down:=-9
'
'Allow Alerts
'
Application.DisplayAlerts = True
End Sub

How to create a hard link in Windows using mklink command?


I've no problem in creating junctions and symbolic links through mklink, but can't create hard link using this command. It returns "Access denied", have tried on both Windows 7 and 8.1 on different machines, cmd started with administrative privileges.

D:\>mklink /d /h dirA dirB

Of course dirB exists. Is there something I should do to run this command without error?


Answer



I'm pretty sure you can't create a hard link to a folder, only files. Symbolic links /D and junctions /J would work for folders though.


Also when creating hard links, keep in mind that you cannot create links between 2 different drives (even on the same physical hard drive).


A short explanation from another SU answer:



A hard link is a file system feature that cannot cross a file system boundary. You can't hard link files on C: to D: because they are separate file systems. They might each contain the same type of file system (eg. NTFS) but they are separate file systems.



windows 7 - Tool to find which programs are using keyboard hooks?

I am looking for a good tool which finds all the programs which are hooking to the keyboard handler.



Hotkey Commander is not showing all the programs. I have two apps running and they have a global hotkey defined and working but these program are not listed in Hotkey Commander.



Deep System Explorer is not finding some driver and displays an error.



Any others?



I am using windows 7 64bit.

Tools to (privately) annotate/markup a website for maintenance


I've been tasked with updating a website. Rather than proofreading and updating each page (one at a time), I want to make a single pass over the entire website, marking graphics/images/videos that need to be rewritten, removed, or updated. I thought about taking screenshots, marking those up, and putting them in our bug-tracking database, but that seems like an extremely tedious solution.


Some of the content is similar on various pages across the website, and the entire site itself is localized into several languages (so any changes made to the English version will have corresponding changes for other languages). I also want all of my markup to remain private (that is, if it's stored online somewhere, I should be the only person who can see my comments).


I found an article that lists several website annotation services, but it's not clear whether they allow private annotations, or whether these tools are even appropriate for website maintenance (many of them look more geared toward social networking).


I've started making a list of some necessary and desired features below, and may add more as necessary.



  1. Annotations/markup/comments remain private (only visible to me)
  2. Comment history/tagging (so I can reuse the same comment for shared footers, items requiring similar updates, etc.)
  3. Ability to print/export a list or report of all comments for the entire website
  4. Ability to produce a categorized list of changes (e.g., to produce a list of images that need updating, which I can send to the graphic designer)

What processes and tools do you use to keep track of all the changes that need to be made to a website? What features are painfully absent from the tools you use?


Answer



I found a browser plugin called iCyte which lets me highlight items on a page and add a tag and comment for each one. A thumbnail screenshot is saved with highlights for each page, and when you click on a "Cyte" the web page is loaded with your items of interest highlighted in green. I think iCyte stands for "Internet Citation," and it seems to be geared toward tracking your citations when working on a research paper.


You can filter by a single tag at a time, print a list, export to MS Word (actually, RTF format) and Excel (CSV), and make both private and public annotations and comments. You can also invite other people to work on a project with you, even if it's a private project. You can also copy Cytes to other projects.


Thursday, October 25, 2018

hardware failure - Are SSD's really reliable enough for power users?



TL;DR (though please read my full experience before jumping in with a quick answer.)


A power user performs a certain amount of write cycles. Does an MLC SSD drive support enough write cycles to last a power user around 5 years of usage. In my first experience with an SSD, it became cranky after just nine months. Based on my usage patterns, is this normal for an SSD or was it just a dud?




About nine months ago I bought an SSD (a 60GB OCZ Vertex Turbo). Up until about two weeks ago, I really loved the drive. It was extremely reliable and it really did make my system much more responsive. But two weeks ago, the drive started failing. It took me about 1½ weeks just to pinpoint the exact problem, and in the last few days it just got progressively worse. The drive has been taken back to the shop.


During these last two weeks I've done considerable research on MLC based SSDs and to be frank, I have huge doubts about the technology. What I would like to know is whether my concerns are warranted, or did I just get a dud drive?


You can reply per point if you like:



  1. Getting bad sectors on an SSD is just a matter of time, and bad sectors develop quick. It seems the software driver controller is responsible for keeping a log of these bad sectors and avoiding the use thereof.

  2. Within 9 months of usage I developed enough bad sectors to make the controller really work to find sectors it could still use.

  3. The controller isn't perfect, and once you've got a certain amount of bad sectors, you'll have an extremely unstable and insecure computing experience.

  4. It’s not easy to pinpoint the exact cause of your system crashes.

  5. I was using my SSD as a boot drive. I had vitals installed and other development tools, I also installed Sharepoint 2010 and SQL Server 2008 R2 Express. Besides this I had Visual Studio and Outlook. At no time did I copy huge movie or iso images or games to the SSD. Any non vital apps were kept on a regular hdd drive.

  6. I completely did apply tweaks such as turning off system restore, and I NEVER defragged SSD.

  7. I never turn my system off, unless I need to restart. Having said this, my system does enter standby mode when not in use.

  8. I was running Windows 7 64bit with trim enabled.

  9. I ran an anti-virus app.


Do you think if you're a demanding power user, you simply go through too many write cycles for an SSD to last more than around 9 months?


Answer



An Intel presentation we saw said that the SLC based SSD drives were recommended for heavy database and file usage. They are much, much more expensive, and designed for things like SANs... We use SQL express pretty heavily as well, on most of our laptops, and went with the MLC based ones.


We went with the X-25m's in about 4,000 laptops. We have had a few issues, some fixed by a firmware update.. others that were just bad drives.. but really, we are looking at about 1%-2% higher error rate than what we saw with the standard 7200rpm laptop drives. When you figure in the power, weight, and especially speed savings (we went from a 10 minute boot with XP and 7200rpm laptop drives because of all sorts of drivers and software and AV, to a 2 min boot with Win7 and an SSD) we would still choose the SSD's every day of the week, and twice on Sunday.


We had all sorts of HD's die for all sorts of reasons.. (when you have that many laptops, a 2% error rate means about 80 drives per year!) A good backup is critical, no matter what drive technology you use..


battery - HP laptop running Windows 7 shuts down when the power cable is removed

I changed the battery within the last two months on my HP laptop running Windows 7. It shows fully charged, but when the power cable is removed, it dies immediately.

windows 7 - Sound Skipping/Slowing/Distorting


This issue seems to have cropped up recently, though I had it before and managed to fix it. I upgrade my video card to an nVidia GeForce 9500 GE, which recommended more power than my stock power supply could produce. I thought I'd ignore it, but I noticed that playing music and doing any sort of work would cause the sound to distort and skip.


I upgraded the power supply to a newer one that was well above the recommended wattage for the video card, and the sound issue went away.


Recently though, it's been happening again and I'm not sure why. It only seems to happen if I'm browsing or playing a game, but just letting the music play causes no problems.


Does anyone have an idea as to what causes this distortion? Is there anything I can do?


Answer



This sounds like a latency problem. Check out your system DPC Latency. If you see any unusual spikes, try disabling devices one at a time to see if you can pin down what's causing it. (You might also try disabling nVidia's apps and services with something like Autoruns; they shouldn't be needed for the drivers to function unless you're doing their spanning or 3D or something.)


That said, it's entirely possible that there's some failing hardware - this might help you pin it down though.


graphics card - Running 3 ASUS ROG PG348Q with 2 Crossfired ASUS Vega 64




So, I'm putting together my wishlist for the coming year of components to build my next computer with. It's a rather John Hammond sort of endeavor, and so I am more then happy to put a lot of money into the system as I spend a lot of my free time gaming. As the title says, I found the ASUS ROG PG348Q 34" curved monitors and fell in love, they are gorgeous and what I want sitting on my desk with this new system. I had already found the Vega 64 video cards and had planned to crossfire them, but then something occurred to me as I was thinking about limiting factors.



The maximum resolution that the Vega 64 can render according to the stats on the manufacturer's site is 7680x4320. Which is very respectable, but the resolution on a single PG348Q monitor is 3440x1440. This is when I became rather concerned, and the question became apparent.



Would the Vega 64's being crossfired extend their maximum rendering capability, or would is merely spread the load of that 7680x4320 across the two video cards memory? I figured I would come ask people far more knowledgeable then myself about this topic before I start ordering parts only to find out they aren't going to perform as imagined.



Thank you for the time and I hope to hear back about this concern.


Answer





Would the Vega 64's being in a Crossfire configuration extend their maximum rendering capability, or would is merely spread the load of that 7680x4320 across the two video cards memory?




Crossfire works by taking two cards, separating the workload equally among them, to the software they appear as a single card. This is the reason you cannot use different GPUs that are different in Crossfire.



In general, both cards will render a frame in parallel, which is the reason Crossfire provides a performance boost. This also means the maximum amount of VRAM an application can use is the amount the smallest amount of VRAM a GPU has access too.



What this means is if you have a 2GB and 4GB GPU, both running the same GPU core, the total amount of VRAM your system can use is 2GB. This is obviously due to the fact if both cards are working in parallel, the workload between them must be equal.



If the maximum resolution a Vega 64 can support is 7680x4320, then the maximum resolution a system with two of them in Crossfire will be 7680x4320. The workload to support that resolution will just be shared equally among both cards.



Too late to get Windows 10 10240?


I just (July 19) installed Windows 10 build 10130. I got a few updates, but it's not picking up the 10240 build. Is it too late?


Answer



Might as well make this an answer - it will all be moot come July 29th anyway…


There is a hold on the activation service until Win10 goes live - if you can't activate, you can't get updates at the moment, as it won't even verify that you're on the Insider program. You'll have to wait until next Weds, 29th, when it comes back up.


Set a particular Office file to NOT autorecover

I am working on a very large Excel workbook as well as other workbooks. The data on the very large workbook should be read-only anyway (but I would still need to edit it to filter and such) so I want to turn autorecover off for that particular file, but leave it on for other files. How can I do this?

Wednesday, October 24, 2018

Asus G752V battery not charging


Yesterday I forgot my laptop charger at my place of work so I couldn't charge it and eventually it ran to 0%.


This morning I plugged it in and tried to turn it on but it would shut down 2 seconds later. I left it to charge for half an hour but the same thing would happen, so I decided to charge for longer. Suddenly, the charging LED turned off and the laptop wouldn't turn on either.


If I leave the laptop not charging for a while it will attempt to turn on but fail on connection to the grid which tells me it's not the power adapter's fault.


I can't extract the battery without completely disassembling the laptop and holding down the power button for over a minute and plugging back in did not provide any thing but darkness.


Note that the laptop is less than a week old, so I doubt the battery has failed, but it may have after all. Does anybody know what else I could try?


EDIT: Just opened up the laptop to attempt a hard reset or to try and have the laptop run without a battery. Neither have worked. I'm going to let it settle to trigger the let's try boot up behaviour I explained. If it doesn't work, I'm servicing it.


Answer



Actually, completely depleting an Li-ion battery can damage it. However, the PC power management settings should prevent that, leaving a margin of ~10% or so -- unless you changed that setting.


If letting the laptop charge for a day does not fix the issue, and it's only a week old, return it. You might want to use an external HDD enclosure and another PC to salvage anything on the disk and then erase any PII.


partitioning - Someone from Microsoft told me you can always shrink down the partition the most it can, is that true?


Someone from Microsoft told me today that you can always shrink down a partition to the most it can (Update: by using the Win7 or Vista disk management tool) -- for example, when there are 120GB of free space on C:, then you can for sure shrink it by 120GB. Is that true? My experience is that you cannot. Maybe the way he used his computer, he told me he could always shrink down whatever that's available.


(for example, if he never made the partition full and then delete many files from it to gain back lots of space.)


Update: my experience had been this -- if you fill a 250GB hard drive to 100% full, and then delete many big files from it to gain back 80GB, then often you cannot shrink the partition by 80GB. You can maybe shrink it by 20GB, because it needs to shrink using contiguous free space. (by the Win7 or Vista disk management tool)


Answer



No, this is incorrect : You can only shrink a partition until some file at the end of the partition blocks you.


For example, if a file occupies sector number x, then you can only shrink the partition down to x sectors, no matter even if all the sectors below x are free.


You can use defragmentation software to move some of the files allocated at the end toward the begining of the partition.


However, if the partition in question is the system, Windows has unmovable system files that it likes to allocate at the end of the partition. Such files will block any attempt to shrink the partition, so that the only way left to shrink will be to reinstall Windows.


For example, here is the analyze of my disk C by Smart Defrag.
The black rectangles denote unmovable system files:


image


Cannot format USB-drive, corrupt?


I have a USB drive that I think is broken because all the files on it keeps getting corrupt. So I tried to format it and see if it helps. But just before the format is done I get an error that the drive could not be formatted.


Is the USB-drive broken or should I just make a quick format?


Answer



USB drives are cheap. Is it really worth putting your faith in a drive that has already shown signs of unreliability?


It does sound like the drive is toast, but even if there are things you could do to potentially "fix" it, it's safer to just get a new one than to risk your data all over again.


encryption - TrueCrypt 6.3 Traveller Disk issues

So, I am in the process of trying to configure some encrypted USB flash drives for some of our users who take some of our more sensitive data away with them. Budgets are tight so I thought TrueCrypt would be awesome as its free, fairly decent by all accounts and a tough nut to crack.


Thought I would create an encrypted container file on the 4GB USB disk leaving about 350 odd megabytes for other files. Created the container called "Files" using the Volume creation wizard. Entered the passwor dto use, generated the random pool of data and formatted the disk. I then added the TrueCrypt travellers disk files using the option. Exited True Crypt and safely removed the disk. Plugged it back in, selected a drive letter and click automount. Entered password and all it says is "Incorrect password or no TrueCrypt volume found!".


Have been puzzling over this for awhile. Tried as many fat handed combinations of the password i selected just incase (including several million myriad of caps lock variations :)) but to no avail. I tried the "Select File" option thinking I could point it towards the "Files" container but browsing the USB drive draws an absolute blank for that file. Have I totally buggered the drive as I was thinking I will just format and start again but windows only sees the 350 MB leftover and not the 3GB encrypted bit. I admit I have yet to get all command line or linuxy and try and fdisk it in to submission.


Any help?


Thanks


Tim


EDIT UPDATE: I have tried using a linux boot recovery (from Ultimate Boot CD) and fdisk as well as diskpart but none of the above can see anymore than the 300MB bit of the disk. Is there anyway to manually erase the partition table and replace with one from another similar USB stick perhaps?

installation - Windows 10 technical preview: Windows can't be installed because this pc uses a compressed operating system

I am trying to upgrade to the Windows 10 technical preview, however when I do, it says that I can't because I am using a compressed OS. What does this mean?


My build:
Intel i7
Windows 8.1 Pro for Razer
8gb ram
1TB SSD (890GB free)


I am installing via the ISO


enter image description here


enter image description here

performance - cpu usage nearly 100 constantly windows xp sp3


When running some heavy applications like games or virtual box for some time.. the cpu usage is normal for some 15 mins and then suddently cpu usage increases. even after i quit the heavy apps and when i start some other apps, the cpu usage of the new opened application is also very high.. this continues until i reboot the system. There is no single particular process occupy more cpu. All the processes cpu usage is little high than normal.. Any solutions?


Answer



Is it possible that Intel SpeedStep or AMD's equivalent system, is throttling your CPU usage for power management. Check what power setting your computer is set to; in XP, the "portable" and the "max battery" settings will step the processor down to its lower speeds. You can use CPU-Z to see what clock speed the processor is actually running at. If your processor is running at 1.0 GHz instead of 2.6 GHz, for example, then suddenly all of the processes will be competing for a lot less power.


Tuesday, October 23, 2018

usb - "Windows was unable to complete the format" - Can't format flashdrive!

I have a 8GB Sandisk Cruzer USB flash drive that I had ruined a while back trying to make it bootable. Anyway now when I click on it I get a message that it needs to be reformatted to be used. So when I try to do that, the formatting starts and suddenly ends with the message "Windows was unable to complete the format".



This happens no matter which file system I choose (NTFS, FAT32, exFat) and also which computer I try this on. I am now on a Windows 7 32-bit OS and before tries it on a Vista Home Basic machine.



Anyone know any way around this issue?

Monday, October 22, 2018

ssd - M.2 drives: difference in performance when plugged into different PCI lanes

A M.2 SSD can be plugged either into the PCI lanes that go straight to the CPU (if you're using a CPU that supports more than 16 lanes), or into the PCI lanes that go to the chipset.


Is there any performance difference when plugged into one or the other? Let's assume that:



  • We are using, as said above, a CPU that supports more than 16 lanes, and the first 16 are taken by the graphics card.

  • The computer will have another 3 SATA drives, as well as the assorted USB 3 ports, sound chipset, LAN, etc.


Are there any benchmarks that measure this difference?

windows 7 - "svhost(netsvc)" is using about 40-80% CPU when the system starts

My CPU usage is constantly at 40% (maximum 95%) most of the time when I start my PC. It continues to work at this rate for about 15-25 minutes.



I checked the performance monitor and found out that there is a service "svhost(netsvc)" which consumes all the CPU. When I suspend it, the system becomes unresponsive.



What can I do? All the other tasks like Windows Media Player etc. become slower, and I even experience audio corruption due to this heavy system usage.



I'm using Windows 7 64bit on 4GB RAM and an Intel Core 2 Quad 8200 CPU, with a DG41TY motherboard.

Windows 7 only sees empty directories

I have a new computer with Windows 7 installed.
My old computer had Windows Vista installed.


I took the old internal drive from the old computer and have plugged it into the new computer using a Sata->USB adapter.


I've launched a cmd.exe window and an explorer shell both with "Administrator" priviledge.


However, many of the directories are empty.


The few files that do show up, I cannot read:


E:\Program Files\SharpDevelop\3.0>date
The current date is: 14/05/2012
Enter the new date: (dd-mm-yy)
E:\Program Files\SharpDevelop\3.0>dir
Volume in drive E has no label.
Volume Serial Number is CCC7-D79E
Directory of E:\Program Files\SharpDevelop\3.0
30/11/2010 21:27
.
30/11/2010 21:27
..
30/11/2010 21:27
AddIns
30/11/2010 21:27
bin
30/11/2010 21:27
data
30/11/2010 21:27
doc
28/08/2010 21:25 65 SharpDevelop.url
1 File(s) 65 bytes
6 Dir(s) 131,958,325,248 bytes free
E:\Program Files\SharpDevelop\3.0>type SharpDevelop.url
The system cannot find the file specified.
E:\Program Files\SharpDevelop\3.0>dir bin
Volume in drive E has no label.
Volume Serial Number is CCC7-D79E
Directory of E:\Program Files\SharpDevelop\3.0
30/11/2010 21:27
bin
0 File(s) 0 bytes
1 Dir(s) 131,958,325,248 bytes free
E:\Program Files\SharpDevelop\3.0>dir bin\bin
The system cannot find the file specified.
E:\Program Files\SharpDevelop\3.0>cd bin
The system cannot find the path specified.
E:\Program Files\SharpDevelop\3.0>

The above is just an example of the many files and directories that I cannot access from the old drive.


What's going on?


Is the drive corrupted? Or is it something to do with Windows 7 reading Vista drives?


If it's corrupted, I can I confirm this?


How can I get access to all of the data?


(P.S. I don't have a Linux or Mac box).

windows - Executing a powershell script through batch file


I am trying to execute a powershell script through a batch file, at the moment I am only testing this to get it running so the .ps1 file is simply a hello world script.


This ALMOST works fine except there is a spanner to throw into the works;


I am trying to have the .ps1 stored in a remote location (on a shared NAS to be specific). This works when I have the .ps1 saved locally and point the .bat to the local .ps1.


However now that the .ps1 is in the remote location I am thrown with the following error;


"file (pathname) cannot be loaded. The file (pathname) is not digitally signed. The script will not execute on the system"


Now I am aware of execution policies and mine are as follows;


MachinePolicy  =   RemoteSigned
UserPolicy = Undefined
Process = Undefined
CurrentUser = RemoteSigned
LocalMachine = Bypass

I have tried changing CurrentUser to Bypass but I am thrown with the following;



Windows Powershell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope



Screenshot of above error


Any ideas would be greatly appreciated!


Sorry if this has been a lot of information! If any of it is unclear feel free to ask me to clarify! I'm fairly new to all of this!


Answer



You can still run the script - you just need to tell PowerShell to bypass the system's executionpolicy like this:


powershell.exe -executionpolicy bypass -file \\server\share\yourscript.ps1

laptop - Store or use Li-Ion battery when on AC



I've read conflicting opinions on this point...



I've got a laptop that spends most of it's time as a desktop, plugged in on AC power for a few weeks, between occasional trips to the conference room or further afield. On my last business trip, I realised battery life was down to 40 minutes, so I've bought a new battery.



It seems like I may as well store the new battery for when it is needed, and continue to use the old batteries 40 minute life while I'm at the office.



I've read there is no benefit removing a battery when on AC power, however I've also read that a battery at 100% charge and ~35C will lose about 30% capacity a year, while a battery stored at 40% charge / 20C will lose 4% - which implies there is a massive benefit...



Answer



You are correct, storing it at 30-50% charge will increase the life as opposed to keeping it at 100% charge all the time. I have done this for years when using a notebook in a desktop environment.



Most notebook manufacturers recommend this


partitioning - Does a Windows 8 system reset remove malware?


I think I may have gotten a virus/malware. According to the first answer to this post:


How do I get rid of malicious spyware, malware, viruses or rootkits from my PC?


I should do a re-format of the disk. But because I have an upgrade license a clean install would be hard, so I would like to use the reset option on the installation disk. In a comment on the answer mentioned above Joel Coehoorn states about the reset option:


@ConradFrix Too soon to say... I haven't needed to do this to a Windows 8 PC yet... but I'm pessimistic because it doesn't result in reformatting the drive. Windows 8 includes several security improvements, including running antivirus software from time 0 as part of the OS, such that I'm hopeful to never need to do this for Windows 8 at all. – Joel Coehoorn Nov 30 '12 at 20:11


I went on to search what the reset option was about and found this post:


What do Windows 8 Refresh and Reset my PC really do?


According to the first answer: "The Windows RE erases and formats the hard drive partitions on which Windows and personal data reside." when you choose the menu option: "Remove everything and reinstall"


I guess the reset option corresponds to this option in the settings menu. So my question is: Does the reset option lead to the removal of all malware and viruses on a computer with different partitions?


Additional details: I have three other partitions on the disk containing a Linux installation and a defect recovery partition, after resetting Windows I plan to reinstall Linux as well. I don't know what I should do with the recovery partition.


Node: I am planning to perform the reset by using a Windows installation disk.


Edit: Tried out the reset option and it isn't working so the question is no longer relevant.


Answer



If the malware has not gotten into your recovery partition, yes, it will destroy it. However, if the malware has gotten into the recovery partition, no, it will not. I suggest installing one of the more powerful Linux antivirus apps like Bitdefender (free for personal use) (application notes) and then scan all partitions on the drive.


Task Manager does not show correct per-process CPU usage on Windows 10 1809


Under Windows 10 Pro for Workstations (Build 17763.55) Task Manager does not show correct CPU usage on a per-process basis. Processes that use up the entirety of the processor are reported to only use 2%, which is far from accurate. I originally noticed this while installing the operating system itself, as no process would ever climb above 2% despite clearly pushing my machine to it's limits. Any ideas?


This is Prime95 pushing the CPU to the maximum as seen under the "Details" tab...
Prime95 process when seen under the


... and this is Prime95 pushing the CPU to the maximum as seen under the "Processes" tab.
Prime95 process when seen under the


This is a fresh upgrade from Windows 7 Ultimate, and I do not wish to redo a clean install at this time, as the point of upgrading was to keep my settings as they were.


This is not a duplicate of this question since the issue here isn't related to the fact that the CPU reports 100% usage, but is related to the fact that processes do not report correct usage on an individual basis. The CPU is not constantly shown to be at 100%.


Answer



I think it's a known bug:
https://www.bleepingcomputer.com/news/microsoft/task-manager-shows-incorrect-cpu-usage-in-windows-10-october-2018-update/



Microsoft acknowledged the bug in Task Manager last month when it released the RTM Build 17763 to the Windows Insiders in the Fast and Slow Ring. Unfortunately, the known issue also exists in the public version of Windows 10 October 2018 Update as the Task Manager is reporting inaccurate CPU usage.



How can I stop Hotmail from sending e-mails containing virus links?



My friend's XP PC recently didn't have proper anti-virus protection. Her Hotmail e-mail contacts have received multiple spam e-mails from her over the past few days, each containing a link (which I assume is virus-related).



Now my Hotmail account is sending spam e-mail containing links. In order to try to fix the problem, I have done the following to no avail:





  1. installed and ran avast!, Ad-Aware, MSNCleaner and IObit

  2. changed my Hotmail password



What should I do to to fix the problem?


Answer



It is possible her account is compromised, but it is also possible that it is not. The same goes for her computer.



First: Spam email sent from her email address may not actually be coming from her computer, or even her email account.




If spammers find a valid email address, or, even better (for them), a valid address book, they'll begin sending email messages from their own servers but set up to appear as though they were coming from that valid email address. The only way to tell the difference is to look at the headers of the email message and determine whether the server that is sending the emails is authorized to send using that email address.



If this is the case, she simply needs to send emails to all her friends letting them know that the emails they receive from her may not necessarily be really from her. The problem will usually go away within a few weeks. If it doesn't, she should change her email address.



Especially because you've already run scans on her computer, it would appear unlikely that the problem is a current and ongoing infection on her computer. Use the steps outlined in the antivirus walkthroughs elsewhere on this site, and then just advise her to wait it out.


Sunday, October 21, 2018

How to upgrade Vista Home Premium to Vista Ultimate with a Full (not Upgrade) Copy of Ultimate?


I am running Vista Home Premium. I have a full license of Vista Ultimate in a new box (in other words, it is a full ready-to-install copy, not an Upgrade edition). How do I upgrade from my existing system from Home to Ultimate inline (as if I had an Upgrade edition) without losing my data?


It is not clear to me what will happen if I let it rip. In other words, how "smart" will the install be, like will it notice that there's a perfectly good install of Vista Basic already and ask me if I simply wish to upgrade to Ultimate - or will it pave over my existing installation.


Thanks!


Answer



I'm fairly sure you need their "anytime upgrade" versions to upgrade from one version to another.


More information here.


linux - Which filesystem is appropriate for formatting an USB-stick and install an operation-system?

I have installed my linux-system on a USB-stick. That works well, I can use it on different computers. I used ext4 as filesystem and ask myself it this is the best choice. Which file-system is best for USB-sticks? A good filesystem should not destroy the flash-drive too fast. Additional activities to secure data-integrity might be good (I do an daily backup). Another criterion might be higher performance.

windows 7 - Bootmanager is missing


Went to disk manager and setup a simple volume as drive D.



  • Installed windows 7 home premium

  • Disk manager: created a new simple volume "D:" in unallocated space.

  • Unable to until drive "C:" was made active.

  • Simple volume "D:" created.

  • On reboot got Bootmgr is missing

  • Booted from installation disk and tried:

  • > bootrec /fixboot

  • > The operation completed successfully

  • However still got bootmgr is missing

  • Tried:

  • > bootrec /RebuildBcd

  • > Successfully scanned Windows installations.

  • > Total identified Windows installations: 0

  • > The operation completed successfully

  • Still getting Bootmgr is missing


What are my options?


Answer



Boot to a dos prompt and from the Win7 DVD, in the boot folder, try running


bootsect /nt60 c:

Then run 'diskpart' and type type following


list disk
select disk 0 // Where disk 0 is where your C is
list partition
select partition 1 //Where partition 1 is C
active
exit

Reboot your system


EDIT: By DOS prompt I mean off the win7 DVD to a console, whatever they have


raid - Restore data from a single RAID1 disk


I have one half of a RAID 1 array (from a LaCie 2big Network NAS), from which I'm trying to recover the data.


I've connected the disk to my desktop PC (Ubuntu 11.04) using a Sitecom SATA/USB adapter, but it only sees an unformatted disk of size 0 (in Disk Utility).


How can I proceed?


(I'm also going to try using the NAS itself, but that may not work [at the moment it looks broken], so this question is about getting the data through other means.)


Answer



According to this thread: it seems to be a md array with xfs : http://www.tomshardware.com/forum/252747-32-read-files-lacie-drive-linux


Somebody described success with some (expensive) commercial recovery software (it's in the thread). If LaClie won't do support and you're not feeling confident about mdadm and xfs, then a data recovery shop is probably the best option.


That said... if the data is too important... even if you do feel confident with mdadm and xfs, a data recovery shop might be the best option. Sit down with your boss and do some risk analysis.


(Amateur recovery tip: when I do this kind of work, I do a dd of the disk, make a second copy of that dd image, then perform all my recovery operations on the duplicate image file using loopback.)


Saturday, October 20, 2018

linux - Cannot properly format pendrive on Ubuntu 10.10



I put Jolicloud on a pendrive to install it to my laptop, tried it out, didn't like it, and installed ubuntu with a CD instead. Now I want to use my pendrive for storage, so I popped it in, loaded up Gparted and formatted the drive.




Now, when I pop the pendrive into my laptop, Ubuntu thinks that Jolicloud is still on it, when Gparted says there are no partitions on the pendrive.



Screenshot:
alt text
What's going on, here? How can I properly format the pendrive?


Answer



One thing that might be causing this is an issue with the partition labels. It should all have been erased when you erased the partitions, but maybe something failed.



Using Gparted, try creating a new (FAT32) partition in your pendrive that spans the entire available space. Then, give it a new label (whichever name you like), just as insurance. That might solve your problem.


Windows Updates stuck in some weird loop


ALL,


I recently had to exchange the hard drive in one of my laptops. The technicians who did this re-installed Windows 7 - system that was on it initially. They did install all updates and put the MS Office back on it.


After that I came back home and installed MSVC 2010 and VLD. Next I check and I saw couple of updates available. So I tried to install them thru the Control Panel. Unfortunately it looks like the updater was stuck trying to install it as there was no movement on the pulsar. I let it sit for about a day and nothing happened. The machine just turned off.


After that I turned machine back on and waited. It picked up the same number of updates it had. So this time I clicked on the "Log Off" button and the updates installation kicks in. It did perform some updates - ~15 or so and then started doing the same thing. It was stuck again on performing some update.


I again let it do the work without interruption for another day and then booted the machine back up. Again waited for it to pick up the leftover updates and tried to do updates from the Control Panel selectively. But unfortunately, the very first update I selected - "Definition Update for Microsoft Security Essentials (KB231038) started updating and now it stopped doing something.


The hard drive activity indicator is lit - computer is working. It just does not perform anything. I don't know whether it tries to install the update or download something or something else.


Does anybody have an idea of what I should do next? This is a fresh Windows 7 + MS Office 2010 install from Best Buy.


TIA!


Answer



Microsoft
KB949358
has this advice for Windows Update loop :


Other advice is :



  • Rename Windows Update folders by executing the following commands (delete afterward)
    so it restarts from scratch :


    Ren C:\Windows\SoftwareDistribution SoftwareDistribution.bak
    Ren C:\Windows\system32\catroot2 catroot2.bak

  • Sometimes such problems are fixed by installing the
    System Update Readiness Tool.



windows 10 - Win 10 Wake Timer works only when put to sleept with "sleep" button but not with sleep.bat

cmd' file to put my computer to sleep:


rundll32.exe powrprof.dll,SetSuspendState 0,1,0

If I run the 'sleep.cmd' file the computer goes to sleep and I can wake it up by pressing a key on the keyboard or clicking the mouse.


BUT:
Wake Timers do not work anymore:
enter image description here


If I put the computer to sleep with 'start menu -> Power -> Sleep '
then the same wake timer I set with the Windows Task Scheduler works.


Does someone know if I have to change my command in the 'sleep.cmd' file or if I can add another command that I am maybe missing that also wake timers can wake up ?


WAKE ON LAN works with both ways ( 'sleep' Button in StartMenu and 'sleep.cmd' file )

linux - How large is the performance loss for a 64-bit VirtualBox guest running on a 32-bit host?

I have a 64-bit Virtualbox guest running Gentoo Linux (amd64) and it is currently hosted on a 32-bit Gentoo laptop.



I've noticed that the performance of the VM is very slow compared to the performance of the 32-bit host itself. Also when I compare with another 32-bit Linux VM running on the same host, performance is significantly less on the 64-bit VM.



I know that running a 64-bit VM on a 32-bit host does incur some performance penalties for the VM, but does anyone have any deeper knowledge of how large a penalty one might expect in this scenario, roughly speaking? Is a 10% slowdown something to expect, or should it be a slowdown in the 90% range (running at 1/10 the normal speed)?



Or to phrase it in another way: would it be reasonable to expect that the performance improvement for the 64-bit VM increases so much that it is worth reinstalling the host machine to run 64-bit Gentoo instead? I'm currently seriously considering that upgrade, but am curious about other peoples experience of the current scenario.




I am aware that the host OS will require more RAM when running in 64-bit, but that's OK for me. Also, I do know that one usually don't run a 64-bit VM on a 32-bit server (I'm surprised I even got the VM started in the first place) but things turned out that way when I tried to future proof the VM I was setting up and decided to make it 64-bit anyway.

Create a custom Windows 7 install ISO


I regularly format my system and perform a fresh install of Windows 7. Yet the most annoying thing is having to install every update and reinstall all my programs.


I've been trying to find out how I could create an ISO of my fresh system, so that I can load that instead of having to go through all the hassle to install every update/program. Unfortunately, I haven't been able to find any methods. Has anyone else tried to do this?


Answer



This is called taking an image of your system at a specific point (for example, fresh install, main programs and drivers on).



Click on Start go to Getting Started and then select Back up your
files.


Next click on the Create a system image hyperlink.


Decide where you want to save the image. You can choose an external
drive, burn to multiple DVD’s, or store it on a network location.


You can include other drives if you want as well but remember that
will add to the size of the final image.


At the confirmation screen notice the amount of space the image may
take. If something doesn’t look right you can still go back from this
point and make adjustments.


A progress meter is displayed while the images is created and backed
up. In this example a disk of about 15GB in size took under 20 minutes
backed up to an external drive. Times will vary depending on your
system and where you’re backing it up to.


After the process is complete you get the option to create a system
repair disc which you should do and make sure to save it in a secure
location.


When it comes time to restore the image, you will be able to use the
System Recovery Options to get the system back.



Source


Friday, October 19, 2018

Install Windows 7 on Mac using USB

I'm trying to install Windows 7 on my Mac using a Windows 7 DVD.


I downloaded the ISO from My Digital Life and burned the image to a DVD. I then created a partition using Boot Camp for Windows on Mac and started the installation by inserting the DVD. Later when the Mac restarted, the Windows 7 installation begun.


I was then asked for the CD/DVD drivers. I searched Google about this but couldn't find any proper solutions. People say that the CD/DVD drivers issue is due to the downloaded ISO being corrupt or the DVD not being burned properly, but this is not certain.


As a result I've now decided I don't want to use a DVD for the installation. Is there any method for installing Windows 7 on a Mac using the ISO image downloaded, perhaps using USB?

windows 7 - Office 2010 muti region OEM?


Buying a laptop from Germany, we use OEM licensing from the US (all above board, just the OEM loophole)


Are OEM licenses multi-region or will we have to buy a specific office product for use in Germany?


Thanks
j


Answer



OEM Licenses are indeed multi-region. Once you have purchased a license for the software, you can install it on any region/language version you like.


Tne only exception to this are home and student versions of some ms software can be region locked (see comment above) for the reason stated by Ramhound (discounted licenses are not available in every region where the software is sold).


macos - Making HFS+ volume available to Windows 8

I need help determining the best way to make several GB of files on an OS X HFS+ volume available to a Windows 8 machine. The basics of the situation are as follows:


We have a wheezing G4 Mac running OS X 10.4. My wife has several years of files on this machine, mostly Adobe Photoshop and InDesign. Her new machine is a Dell running Windows 8. The switch from OS X to Windows was necessitated by the need to use specialized Windows software that the manufacturer could not guarantee would run properly under Boot Camp or Parallels. The Mac is currently running the File Sharing utility to allow files to be copied from it to the Windows 8 PC as needed. I'd like to shut down the Mac for reasons of space and power consumption, but still keep the files available.


As I see it, we have three leading contenders for the task:


1) Copy the OS X files to an external hard drive which would then be connected to the Windows 8 PC. This has the advantage of requiring no new software installed on the PC. I am not certain whether FAT32 or NTFS would be the best filesystem for the external drive, nor whether there would be any problems with copying the resource forks of the files to the external (non-HFS+) drive.


2) Remove the hard drive from the Mac, put it in an external drive enclosure, and connect it to the Windows 8 PC. I am in the very early stages of researching how to get Windows 8 to read an HFS+ volume. I'd be interested to know of any experiences anyone has had with this arrangement.


3) Remove the hard drive from the Mac, put it in an external drive enclosure, and connect it to an existing Ubuntu 12.04 server on our home network. I have no experience with this configuration either, and have no idea how well Linux and HFS+ get along. The chief disadvantage I see with this would be that file transfer would be limited by network throughput.


Note please that if we use an HFS+ volume, we don't need to write any files to that volume. The files from the Mac are needed only for archival reference. Anything that needs to be updated will be copied to the Documents folder on the PC.


Any and all thoughts on any of these options, or any options I haven't considered, will be most welcome.


Thanks...


JGB

mac - Internal SATA drive from a MacBook Pro no being recognized when connected via an external USB drive

I had a 2012 MacBook Pro with an OWC Data Doubler instead of the SuperDrive. My 2012 died and I bought a 2016 MacBook Pro. I removed the drive (a 1TB WD hard disk drive) from my old 2012 MacBook Pro to get some data from it by connecting to an external USB enclosure but I can't seem yo mount it.



Does anyone know what the problem might be? and/or how to solve it?



Here is a screenshot of disk utility:



enter image description here



Here is a screenshot of the system information on the device:




enter image description here

Windows Server 2008 - Scheduled Task Multiple Users

I am setting up a scheduled task on a Windows 2008 server to run a utility. I am able to do this without a problem with my user account, but no one else can access it when they login. I need to create some sort of scheduled task that can run under a service account or group that multiple people have access to manage.


Does anyone know if there is a way to do this in the task scheduler on server 2008?

Thursday, October 18, 2018

An Unexpected Error while installing Windows 7

Windows boot manager is showing error while installing windows 7



Windows has encountered a problem communicating with a device
connected to your computer If you continue to receive this error
message contact the hardware manufacturer


Status: 0xc00000e9


Info: An unexpected I/O error has occurred



All I can do is hit Enter or ESC and either key causes the computer to reboot, bringing me back to the same error screen. I have unplugged everything from the computer except the monitor, keyboard, and mouse. What can I do? Previously I used Ubuntu don't know why its showing error while installing. I have gone through several forums but the result is same. It is a Windows-7 64-bit machine.

Google Chrome is autofilling a previous search when google.com loads


I'm seeing a strange issue on Google Chrome across two computers (one Windows, one Mac).


Whenever a Google site includes a search box, such as on the search results page or even Google Calendar, Chrome is autofilling a previous search term. This triggers Google instant search and displays the results from that search.


It's not happening in Incognito mode, which makes sense. I've tried clearing my cache and form fill entries.


I do use LastPass, but I can't recall ever seeing it cause anything like this.


Any suggestions?


Answer



Had the same problem - check out the below links. There was a saved search under my google lastpass entry, under the "Edit Form Fields" options. Good luck!


https://forums.lastpass.com/viewtopic.php?f=12&t=127655


https://helpdesk.lastpass.com/password-manager-basics/adding-a-site/editing-an-existing-site-entry/#Automatically+Saved+Sites


Wednesday, October 17, 2018

macos - Mac filesystem and defragmentation


Since the Mac OS is running on something kind of like Linux does that mean that it also doesn't get fragmented?


Answer



HFS+ filesystem - used by Mac OS - avoids reusing space from deleted files as much as possible, to avoid prematurely filling small areas of recently-freed space that causes fragmentation.


OS X 10.2 and above feature delayed allocation for HFS+ volumes. This means that a number of small file allocations can be combined into a single large allocation in one continuous area of the hard disk.


One cause of file fragmentation is usually continually appending data to existing files, especially with resource forks. With faster hard drives and better caching, as well as the new application packaging format, many applications simply rewrite the entire file each time. Mac OS X 10.3 Panther can also automatically defragment such slow-growing files. This process is sometimes known as "Hot-File-Adaptive-Clustering."


Aggressive read-ahead and write-behind caching means that minor fragmentation has less effect on perceived system performance.


So, in normal usage there's no need to defragment hard disks manually. However, if the disks are almost full, and you write large files (such as editing video), there's a fair chance the disks could become fragmented. In such a case, you might benefit from defragmentation.


One point to note is that OS X by itself has no disk defragmentation utils, so some third-party disk utilities are needed for manual defragmentation. Another option to defragment a hard drive without any third party tools is to back up all files, erase the hard disk, (reinstall the OS if operating with the startup disk) and restore backed up files.


(The information above based on Apple's guide about disk optimization.)


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...