Skip to main content

Posts

Showing posts from February, 2017

partitioning - Trying to understand linux support for 4TB hard disk drive on legacy BIOS

I want to add a 4TB hard disk drive for data storage only. My current configuration: Questions : Because the size is greater than 2TB am I really forced to use GPT partition? If yes, GPT partition required UEFI or legacy BIOS is supported? if legacy bios is supported, Arch Linux will see 4TB or 2TB only? This new hard disk drive is for data only and I will not install OS on it or boot from it. Answer I'm the author of the GPT fdisk partitioning software, so I know this subject pretty well. Previous answers have promoted some misconceptions that I'd like to address.... If you want a partition size greater than 2TB, you must use GPT instead of MBR. Probably. The catch is that that MBR maxes out at 2^32 sectors. This translates to 2 TiB (not 2 TB; see here for an explanation of the difference) if the logical sector size is 512 bytes. Many external disks and a few internal disks now use 4 KiB (4096-byte) logical sectors, though, which raises the MBR limit to 16 TiB. Note that...

vim - Invoking vi through find | xargs breaks my terminal. Why?

When invoking vim through find | xargs , like this: find . -name "*.txt" | xargs vim you get a warning about Input is not from a terminal and a terminal with pretty much broken behaviour afterwards. Why is that? Answer When you invoke a program via xargs , the program's stdin (standard input) points to /dev/null . (Since xargs doesn't know the original stdin, it does the next best thing.) $ true | xargs filan -s 0 chrdev /dev/null 1 tty /dev/pts/1 2 tty /dev/pts/1 $ true | xargs ls -l /dev/fd/ Vim expects its stdin to be the same as its controlling terminal, and performs various terminal-related ioctl 's on stdin directly. When done on /dev/null (or any non-tty file descriptor), those ioctls are meaningless and return ENOTTY, which gets silently ignored. My guess at a more specific cause: On startup Vim reads and remembers the old terminal settings, and restores them back when exiting. In our situation, when the "old settings" are reque...

windows 7 - How do I recover the content from Notepad when the task froze?

If Notepad (the Microsoft Notepad that comes preinstalled with Windows, in my case Windows 7) froze before I had a chance to save the content to a file, is there a way to recover the content? Notepad does not have some kind of "backup" on the hard disk. I don't think in any windows version does notepad keep any data on disk. It's all in the memory, or if you opened an existing file that has already been stored on disc all the changes are in the memory. So if the task is still there just frozen, the memory should still be there. I got the idea from my first attempt to resolve the issue by "unfreezing" notepad (see How do I analyze a notepad crash? (Windows7) ). If unfreezing doesn't work, the problem remains of recovering the data. Please note, this is a very different scenario form the one stated in the following question: How do we "restore" notepad after crash? There the memory is wiped clean because of the reboot, in my case all the data is...

Windows 8 . Headphones detected but no sound

I have a big problem with sound on my computer. I have Realtek High definition Audio sound and it is not working ok. Here is the situation: On device manager I can see (under Audio inputs and outputs) Realtek Digital Input, Realtek Digital output (2x), Microphone (Realtek High definition Audio) and Realtek HD Audio 2nd output (heaphones icon). In Realtek HD Audio Manager I have HD Audio 2nd output as default output for front green jack. Everything looks fine - no conflict or anything like that. When I start my computer in headphones I can hear that silent constant sound, like you hear when you turn on speakers. So everyhing looks ok. When I play some thing (youtube for example) I can see (on right bottom corner) that Realtek HD Audio 2nd output (headphones) is actually playing the sound. So everything ok again. But no sound is coming from headphones. It is driving me crazy - I tried every combination of checkboxes and radio buttons in Realtek HD Audio Manager. I really don't know w...

Assigning audio device output on an application level in Windows?

Possible Duplicate: Assigning programs to specific audio outputs in Windows 7 There's some programs where I can't set which audio device I would like to use (e.g., iTunes), forcing me to use Window's default and I'm wondering if theres some way I can set each application running in Windows 7 to use a specific audio output. My googlefu has failed me but I'm hoping theres something out there as I couldn't think of any good search terms.

Transparency option gone from Windows 8

I ran an app which disabled transparency in Windows 8 then crashed out leaving my UI without trapsnarency on windows (but still transparent on the taskbar). I tried restarting to resolve the issue but it didn't, I then went on this site and tried all the suggestions and found that the 'enable transparency 'option is not available in the colour location and 'enable transparent glass' option is not available in 'performance options'. Any ideas how I can get transparency back? Answer Go the the following registry key, and make sure it is zero: HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationOpaqueBlend For more information, see here .

Window Color and Appearance removed in Win10?

I just upgraded my PC to Win10 but cannot find the dialog "Window Color and Appearance". In Win7, it should be at: Control Panel => Appearance and Personalization => Personalization => Window Color and Appearance , and it looks like: How can I access it in Win10?

windows 7 - Update to Chrome 36, black screen, no address bar, can't uninstall

I just updated to the latest (as of 7/18/14) Chrome, version 36 and when I relaunched the browser, it's just the window frame and a black screen. It seems like a page (google.com) is loaded but it's just black. I can right click and get context menus, even a "save image" when I click where the google doodle would be. The cursor changes to text insert when hovering near the address bar. So everything's there... but it's not. I try to uninstall it and a "Are you sure you want to uninstall Chrome?" dialog flashes quickly then disappears. And that's it. Nothing else. I restarted my computer and ran a registry scan and nothing related to Google or Chrome came up. I'm on Windows 7 and have all latest updates installed. Any thoughts on how to troubleshoot this or force an uninstall? Answer Okay, the only answer that did work... Add --disable-gpu to the chrome shortcut Chrome should now launch properly Go into settings and turn off hardware accele...

Fixing a broken "chain of trust" in Windows 7 Certificates?

I was told that "The Chain of Trust" was broken on this certificate for my malware scanner "Webroot". How do I fix "The Chain of Trust"? ("The Chain of Trust" sounds like a botched version of something out of the Meet the Parents line of films...) The "Key Usage" is apparently the problem, but I'm not sure what to do...in earlier versions of Windows you just ran programs that you pulled off of the Internet (which admittedly probably wasn't a real good idea...), but I also don't have even the smallest clue of how to fix this or where to start reading about it.... And here is the chain I guess...

keyboard shortcuts - Remapping Ctrl-Alt-Arrow in Windows 10 using AutoHotkey

I am trying to remap Ctrl-Alt-Right and Ctrl-Alt-Left to imitate Ctrl-Win-Right and Ctrl-Win-Left, respectively. I followed the instructions given in this post , and succeeded in mapping Ctrl-Arrow to give the correct result, but when I change the script to #NoTrayIcon !^Right::^#Right !^Left::^#Left and run it, my desired functionality is not achieved. Why is this? How can I fix it? Answer Try !^Right:: send {LWin down}{LCtrl down}{Right}{LWin up}{LCtrl up} or !^Right:: sendevent {LWin down}{LCtrl down}{Right down}{LWin up}{LCtrl up}{Left up}

windows - cmder: make a new tab open in the directory of the already-open tab

When I press Ctrl + T to open a new tab in Cmder , I want the new tab to open in the same directory as the old tab (the tab that I was in, when I hit Ctrl + T ). This will avoid a lot of cd commands in the new tab, to get to the same working directory as the old tab. Answer As explained by @Maximus here and also in another question , a nice way to do this is to bind Shell("new_console:I") to a GuiMacro hotkey. In cmder/ConEmu, go to Settings|Keys&Macro . Then click the Macros radio button on the top right and then add a new macro for Shell("new_console:I") and bind it to whatever key combination (hotkey) you want. So in my case (see screenshot above) pressing Win + Ctrl + d creates a new tab in the same directory as the current tab (i.e. duplicates the current tab). Have been searching for how to do this for ages, so I thought it was worth an answer instead of just a comment. And yes, I can confirm that this works perfectly fine in cmder (tested in v1.2),...

linux - How to move wireless connection to other network namespace?

# ip link set wlan0 netns 1 RTNETLINK answers: Invalid argument It works for usual ethernet. It also works for proprietary broadcom "wl" driver. How to do it for usual mac80211-based driver? Answer You need to move the PHY: iw phy phy0 set netns 666 Where 666 is the pid of some process running in that network namespace; for netspaces created by iproute2 tools (with ip netns ), you can create a short-lived process in there and get its pid: iw phy phy0 set netns "$(ip netns exec mynetns sh -c ' sleep 1 >&- & echo "$!"')" To move it back to the root namespace: ip netns exec mynetns iw phy phy0 set netns 1

website - Block access to web site during certain times, at the computer level, no access to router

I need to block access to certain websites during certain time. For example I want to block www.example.com from 0600 - 2000. The settings should be password protected. If I could redirect them to here during the block hours it would be a bonus. I do not have access to the router and the OS is Vista. There are several related questions but I couldn't find a duplicate.

diff for multiple files

I use "diff -y" command to compare 2 results of different versions of my program line by line. Like this: 1 1 123 | 234 asdf | qerq Is there analog for multiple files, which will allow to compare line by line 3 or 4 files?Like this: 1 1 1 1 123 | 234 | 345 | 234 asdf | qerq | qdfd | asdd

bash - How to sort first directories then files etc… when using “ls” in Unix

I would like to use the ls command to first show directories and then files. I tried: ls -la | sort -k 1 But I got a wrong order. Answer The following command will list directories first, ordinary files second, and links third. ls -la | grep "^d" && ls -la | grep "^-" && ls -la | grep "^l" Also, it would make a great deal of sense to create an alias for this command to save keystrokes. Edit: If you want directories first, and then everything that is not a directory second, use this: ls -la | grep "^d" && ls -la | grep -v "^d"

python - installing wxpython via pip or easy_install

I am running into some problems installing wxpython using pip . Here is my current output: [myuserid]% sudo pip install wxpython Downloading/unpacking wxpython Downloading wxPython2.8-win64-devel-2.8.11.0-msvc9x64.tar.bz2 (7.2Mb): 7.2Mb downloaded Running setup.py egg_info for package wxpython Traceback (most recent call last): File " ", line 14, in IOError: [Errno 2] No such file or directory: '/Users/myuserid/build/wxpython/setup.py' Complete output from command python setup.py egg_info: Traceback (most recent call last): File " ", line 14, in IOError: [Errno 2] No such file or directory: '/Users/myuserid/build/wxpython/setup.py' ---------------------------------------- Command python setup.py egg_info failed with error code 1 Storing complete log in /Users/myuserid/.pip/pip.log I have had a look in the pip.log file but it is totally empty. I have tried installing other packages via pip and there are no problems, so I...

Changing the Windows 7 same folder file copy naming pattern?

On my Windows 7 machine, when I make a copy (Ctrl+C, Ctrl+V) of a file in the same folder I get the new file created with " - Copy" added to the file name: 1st copy: "foo.txt" -> "foo - Copy .txt". 2nd copy and so on: "foo.txt" -> "foo - Copy (2) .txt". Is there a way to change this naming pattern? Particularly I'm interested in changing the naming from " - Copy (index)" to "_index", so that the files would be named foo_1.txt, foo_2.txt and so on. I know there are 3rd party file managers that can do this, but I would like to know if there is a way to change this naming pattern in explorer.

cloning - Clonezilla won't clone to a smaller disk

According the docs , Clonezilla supports cloning to a smaller drive using the option -icds. Let's cite: If you are sure all the data from the image could fit the smaller disk, i.e. it won't be written to the wrong disk space, you can check the option "-icds" That's my case. I am trying to transfer the OS and data from my friend's failing drive to a new one. I really want to avoid reinstalling Win Vista 32bit and all the SW. Source disk : SATA 320 GB WD drive with two partitions (C: and D:), a couple of bad sectors. Used about 50 GB out of the entire 320 GB. Target disk : Crucial MX500 250 GB. I run current UBCD 5.3.8 and Clonezilla within Parted Magic. Except the default settings I am adding these options: -rescue : to ignore the bad sectors -icds : this is the important one to allow for cloning onto a smaller drive -k1 : create partition table proportionally However, the cloning stops with an error: Target partition size(163830 MB) is smaller than source(2097...

Add MS-DOS boot option to Windows 2000

I've got an old laptop that is running Windows 2000 & Windows 98 in a multi-boot configuration. I need to add MS-DOS to that list of startup options. I've already added a primary partition, formatted it for FAT16 and made it bootable, and installed MS-DOS 6.22. My question is, how do I add my MS-DOS partition to the list of startup options? More information: My single hard drive has three primary partitions: 0: FAT32 Windows 2000 1: FAT32 Windows 98 2: FAT(16) MS-DOS 6.22 Currently, the boot-up screen lists Windows 2000 and Windows 98 as options, with Windows 2000 as the default choice. My boot.ini file currently looks like this: [Boot Loader] Timeout=30 Default=multi(0)disk(0)rdisk(0)partition(1)\WINNT [Operating Systems] multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect C:\="Microsoft Windows 98" I've tried adding the following line to the end of the boot.ini file, from an answer below: multi(0)disk(0)rdisk...

Lost in MSWord 2007 - How do I add Reviewers & change colors?

I have three Reviewers in my MSWord2007 document right now. I want to add a 4th Reviewer and can't figure out how. If I access the list of Reviewers in the drop down menus re: Tracking Options, I just get the list but can't add to it. Also, how do I distinguish which edits were made by which Reviewer? Right now, I can set the colors for the different types of edits (deletions, additions, moves), but I don't know who made each change. Any help you can provide would be greatly appreciated. K

re-install windows 8 into a partition on a OEM machine for dual boot (ubuntu)

I have a queation, that I considered rather "simple" until I just didn't get to fix it :/ Since I'm assuming there will be more people facing this problem in the future, I'll just ask here. I bought a windows 8 OEM machine with pre-installed system. Since I'm used to dual booting windows and ubuntu, I aimed to do so on this machine, too. I created a windows system image and a system repair disc, wiped the hard drive from ubuntu-live and installed ubuntu, which worked well even with a UEFI boot partition. I left about 400GB of unpartitioned space and tried to install windows 8 into this space, using the system image, I created. This is where the problem starts. Windows 8 wants to re-partition the whole drive, in order to re-install the image. Since i didn't get an installation dvd and the licence key is hard coded into UEFI, how can i install windows 8 into the free space without formatting the drive? I hope somebody has figured out way to acomplish this. T...

windows - 8gb ram in 32bit operating system

I am having windows 7 32 bit operating system and 8 gb of RAM. I know that maximum usage of RAM for windows 32 bit is 4GB. I have installed virtual box which contains two Ubuntu(both 32bit and 64bit)operating systems. Is it possible to allocate the remaining 4GB RAM to operating systems in virtual box so that I can use complete 4 GB RAM dedicatedly to Windows 32 bit. Right now i have allocated 2.5 GB to windows and 1.5GB RAM to Ubuntu 32 and 64 bit each. I can't run both the operating systems simultaneously.

Can't remove read only attribute from folder windows 8.1

I am using windows 8.1 64 bit I am unable to remove the read only attribute on folders on my computer. I have tried multiple folders on my desktop, and in my documents folder, if I uncheck the read only box and hit apply, then close and reopen the properties window, the box is checked again. This applies to all folders I have checked. How can I allow full read and write privileges to these folders? Answer At the filesystem level, both files and directories have a "read-only" attribute. Both can be set using the attrib command from the command line. However, from within the Windows GUI, the read-only attribute cannot be adjusted for directories, only for files. When Windows presents a directory as a folder within the GUI, the +r flag is only used to determine whether that folder has been customized or not, e.g. with a background. Other than that, this flag is ignored by Windows and this flag is not displayed for a folder anywhere in the GUI. Folders can be deleted and writte...

linux - Whats the meaning of 10.0.0.1/24 address of my computer (ip addr - command)?

Whats the meaning of 10.0.0.1/24 address of my computer ( ip addr - command)? 1/24 and not 0/8 10.0.0 range and not 192.168.10 Answer Thought I would expand on this with a few examples /8 = 255.0.0.0 /16 = 255.255.0.0 /24 = 255.255.255.0 /32 = 255.255.255.255 192.168.1.0/24 = 192.168.1.0-192.168.1.255 192.168.1.5/24 is still in the same network as above we would have to go to 192.168.2.0 to be on a different network. 192.168.1.1/16 = 192.168.1.0-192.168.255.255 When you have a network you lose two IP addresses one for broadcast and one for the network. The first IP is reserved to refer to the network while the last ip of the range is reserved for the broadcast address.

How can I get the actual TCP sequence number in Wireshark?

In Wireshark, TCP sequence numbers are displayed as relative sequence numbers by default. How can I get the actual TCP sequence number? Answer As per the official Wireshark wiki page : By default Wireshark and TShark will keep track of all TCP sessions and convert all Sequence Numbers (SEQ numbers) and Acknowledge Numbers (ACK Numbers) into relative numbers. This means that instead of displaying the real/absolute SEQ and ACK numbers in the display, Wireshark will display a SEQ and ACK number relative to the first seen segment for that conversation. But as explained on that same page, this can be adjusted as follows: To disable relative sequence numbers and instead display them as the real absolute numbers, go to the TCP preferences and untick the box for relative sequence numbers.

How to combine values from multiple rows into a single row in Excel?

I have a data dump in Excel that consists of annual customer data for two different values. The data was provided with a separate row for value for every year and customer. I.e. it looks like this: I'm stuck with a row for Customer 1 for Value A in 2009 and a separate row for Value B for the same customer in the same year. In some instances there is no Value A or Value B. In the example above, you can see that Customer 1 has no Value B in 2011, so no row was generated for that. And, though not represented in the example, some clients will have no data for either value in a year (and thus no row for that customer in that year). In that situation, lacking a row for that customer in that year is fine. I want to get this into a worksheet where there's one row for both values for every year and customer. I.e., I want the data to look like this: What is the most effective way to create that result? Answer This is VBA, or a macro you can run on your sheet. You must hit alt + F1...

virtual machine - VMware Workstation: how to reduce .vmdk maximum size

I have a 150 GB disk file (.vmdk, non pre-allocated) where my virtual machine is stored. The file is currently 20 GB, but it is growing everyday, even though I'm not storing anything new in the guest file system. I have been looking for hours for a way to reduce the maximum size of this disk , so that it never gets to 150 GB (I'd like to set the limit to 30 GB, and see what happens when the VM reaches this size). What I have tried: Converting the disk image with VMware Converter → this does not work, the tool only allows creating a full copy or a 'linked clone'. Creating a new blank virtual machine of the desired size in order to copy the 20GB data onto the new .vmdk → I cannot find a way to perform the copy or even connect the new disk to my existing VM (so that I perform the copy using the guest OS). Looking in the .vmx file to check if the maximum size was not set in plain text (it's not). Although this task seems technically quite simple (there is no tricky shri...

Can I reinstall windows without reactivating it?

I currently have Windows 10 installed on my desktop PC. Unfortunately,I don't have the activation code anymore. I upgraded from Windows 7 to Windows 10, so even if I still had the activation code it would be a Windows 7, not 10, activation code. Now I need to reinstall the OS to a new HDD. I do not want to keep my data, I want to make a clean reinstallation. Is there a way I can reinstall Windows 10 to a new drive while keeping it activated? Answer Is there a way I can reinstall Windows 10 to a new drive while keeping it activated? Windows 10 uses a digital entitlement system. When prompted for your license key just skip that step. Once installed Windows 10 will automatically activate. Any activation issues that might happen can be resolved through phone activation. I currently have Windows 10 installed on my desktop PC. Unfortunately,I don't have the activation code anymore. You don't have a license key for Windows 10, your current key if you were to attempt to retrieve ...

linux - unzip partial folder of tar file from url

I have a url which leads to a high size tar file, around 200gb , I need to extract one folder of that file in my linux system. Because of the large file size I don't want to download the entire file to my linux system. Also I don't have shh access to the source system. Is there any way to extract only a small part of the tar.gz file?

Are two (simultaneous) internet connections better than one?

My main internet connection is fast (when it's working), but unreliable. Right now I'm using my phone as a 3G modem. Even though the connection is slower it is more dependable. If I connect to both at once, will I get the best of both worlds or will my computer just end up using one or the other? Answer Using multiple internet connections at once is not a simple process and generally not necessary for residential users, especially if one is going to be from a phone. The most common setups are to have one connection as a fail-over to another or to load balance two connections, both of which are impractical with a phone. The real question here should be why your internet connection is consistently failing.

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

microsoft excel - Cover a formula in drop down list with a word

I have a list in Sheet2 J3:J7 of calculated values. I would like to insert it as a drop down list into Sheet1 B10 , which is simple enough, however: I want the list to use the words: apple ( J3 ), banana ( J4 ), grapes ( J5 ), orange ( J6 ), pineapple ( J7 ) rather than the calculated values, yet the cell B10 goes onto be used in other calculations, so although the fruit name will appear - its associated formula needs to, somehow, be in there too, in order to be used in the calculations... Make sense? Any Ideas? Answer I'm not sure SuperUser is the place for questions about Microsoft Excel, but while we're here... I think this is a job for VLOOKUP . If your Sheet2 looks like this: then you have your drop down only reference the Names list, but anything that uses the calculated values would use a VLOOKUP : =VLOOKUP([dropdown cell],Sheet2!$I$3:$J$7,2) Make sure you have $ s in the table reference part of VLOOKUP . Sheet2!***$I$3:$J$7*** Here's what Sheet1 might look like...

hard drive - How to image a Windows partition so I can browse the files later?

My laptop's current setup dual boots into Windows XP and Linux Mint. The harddrive seems to be going bad, so I want to backup all the data from the Windows partition. This laptop was a loyal servant for my 5 years in college for Computer Science, and as you can imagine, I have a lot of development files spread across all parts of the filesystem, so picking and choosing directories to copy to my thumbdrive will be very time consuming. My ideal solution would be to create an image of the partition on an external harddrive, in a way so that I can later browse the files, should i ever need to find some old code files I had written. It seems that my two options are to either create a disk image that I can later restore on another machine (via Clonezilla, DriveImage XML, TrueImage, or Ghost) , or create a virtual image where I can later mount in a virtual machine (via VirtualBox, VMWare, Virtual PC). My question is: Can I create a partition image in a way that I can simply browse and ru...

What are all the Windows 7/8/8.1 updates (KBs) I must skip to avoid Windows 10 upgrading -and nags-?

It's been a time I didn't follow the list of which Windows 7/8/8.1 KBs I must skip since I don't want the unfinished Windows 10 at all. Moreover, I will still consider Windows 10 unfinished (-> unstable) until they release Windows Server 2016 The KBs list up today is scattered all over the Internet, and I am fearing to miss a single one of those. As far as I know, some of the newer KBs are even old rebranded ones or re-re-re-pushed again and again. The goal is also to not use any external software or post-installation removal tools since I also intend to deploy a script that will block those KBs. So the question is: can you tell me all the KBs you know that I must avoid? Any details that can prevent "Telemetry", the "Windows Customer Experience Improvement Program" or prevent the resetting of Windows' settings about updates and privacy concerns is good too ! (Since they are even linked) In case some cumulative updates (updates that regroup a pack ...

java - How to programmatically allow an executable JAR file through Windows Firewall?

I have created a program in Java that uses an FTP connection to download files. It works just fine when I run it in Eclipse. However, when I export the project to an executable JAR file, the program does not connect to the FTP server, it connects only if I disable Windows Firewall. How can I programmatically add an exception to this JAR file in the firewall so that the user would not have to turn off the firewall to use my program? Answer Solved it, added "netsh advfirewall set global StatefulFTP disable" via command promp, the code: try { Process p = Runtime.getRuntime().exec("netsh advfirewall set global StatefulFTP disable"); p.waitFor(); BufferedReader reader = new BufferedReader( new InputStreamReader(p.getInputStream())); String line = reader.readLine(); while (line != null) { System.out.println(line); line = reader.readLine(); } ...

debian - Virtualbox can not add a machine: disk seems to be still attached to another machine

I had a virtual Debian server running on Debian host. After a reboot, the vdi images of the virtual machine simply vanished from configuration. I readded them, but it simply ignored the snapshots. I tried to manually delete the saved states, clone the virtual machine, change uuid of the disk... Nothing worked. Now, it refuses to add the virtual machine. Now, the problems comes to this point: Failed to open virtual machine located in /home/ceremcem/VirtualBox VMs/aktos-1-copy/aktos-1.vbox. Medium '/home/ceremcem/VirtualBox VMs/aktos-1-copy/aktos-1-disk1-2.vdi' cannot be closed because it is still attached to 1 virtual machines. Result Code: VBOX_E_OBJECT_IN_USE (0x80BB000C) Component: Medium Interface: IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac} Callee: IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554} Callee RC: NS_ERROR_FAILURE (0x80004005) I simply cleaned VirtualBox from my other virtal machines. There is no registered virtual machine in the gui. Only interesting thing I...

filenames - Get bare file names recursively in command prompt

I ran into a little snag trying to get only the filenames (no extensions or file paths) recursively.This worked for me in the root folder: dir /b But when i added /s to scan recursively i also got file paths before filenames which i do not want. Is there a way to get bare filenames from all subfolders in a directory? Im on Windows 7 x64 I'd rather use regular command prompt not PS or VBS

windows 7 - USMT excluding this computer

i'm trying to use USMT to migrate user profiles from one system to another. Here's the command i'm using: C:\USMT\amd64\scanstate.exe F:\Profile /ue:DOMAIN\* /ue:%computername%\* /ui:DOMAIN\username /tel:off /i:C:\USMT\amd64\migapp.xml /i:c:\USMT\amd64\migdocs.xml /o I only want to capture one user, which will be specified on /ui: I would like to exclude "this computer" but you see below it still gathers data for This Computer. Log messages are being sent to 'H:\USMT\scanstate.log' Starting the migration process Processing the settings store Examining the system to discover the migration units domain\username (1 of 2): 100% done This Computer (2 of 2): 100% done Selecting migration units Gathering data domain\username (1 of 2): 100% done This Computer (2 of 2): 1% done Any ideas on how to exclude this? Thanks, Paul

linux - Windows 8.1 Advanced startup options disappeared

OK so a bit of background: I need to disable driver signing because I need to install a modified driver so that I can hook up my PS3 controller. I have a dual boot setup with Mint 17 and windows 8.1 x64 using rEFInd as the boot manager because MSI hates Linux. Now I followed these various steps but when I try to get into the advanced startup, it simply does not exist, at all. I have options to shut down or go into uefi, none of the others using Driver Signature Enforcement Overrider did nothing, on restart or digitally signing. Tying command line bcdedit /set TESTSIGNING ON spews The boot configuration data store could not be opened. The requested system device cannot be found. So what I THINK is going on is that it cant find the bcd store, and doesn't store the boot options. So how do I either install an unsigned driver without rebooting get into test mode without requiring boot configuration set windows boot settings in rEFInd from linux sign a driver locally Answer Ok so I...

How to download a video file in Google Chrome

I like to download some of the shows from Channel 9 . This was no problem in Opera, but in Google Chrome I'm not quite sure how to do this. When I click on a link to a wmv file it starts to stream it with the windows media plug-in instead of downloading it. This is of course ok in some circumstanses, but right now I want to download it. And I can't figure out how... Any ideas? Actually, I just figured out in this particular case I could right-click and do Save As. But I still would like to know how to do it if you just had the direct url to a media file. For example when copied from an email or chat client.

What is the Application Block Detector on Windows 7?

My firewall has recently started warning me that the application queryappblock.exe is trying to reach the internet. Google did not provide useful information except, for this MSDN page http://msdn.microsoft.com/en-us/library/dn440719(v=pandp.60).aspx about Transient Fault Handling. This machine is not running cloud services but, does have VS2010 and 2012 installed. Are they related and either way, what is it? Answer The QueryAppBlock.exe file comes with the KB2952664 update, which applies to Windows 7 SP1. There's no official documentation; below you can find the information I gathered. Customer Experience Improvement Program (CEIP) CEIP collects information about how our customers use Microsoft programs and about some of the problems they encounter. Microsoft uses this information to improve the products and features customers use most often and to help solve problems. Source: Microsoft Customer Experience Improvement Program If you opt in, Windows collects statistical infor...

windows - Use mklink in msys

I understand that Windows later-than-or-equal-to* Vista provides the mklink shell command. I'd like to make use of this from the Msys terminal. Any idea how? When I enter mklink on the msys terminal, it outputs sh: mklink: command not found . Msys only provides a fake ln utility which appears to be effectively the same as cp . I tried writing a shell script to open a Windows shell and run mklink within it, but when my shell script tries to execute cmd /C , msys brings the Windows shell to the foreground of the current terminal and leaves it there, without running the instructions. **I don't say 'greater-than-or-equal-to' because XP was greater than Vista but had no mklink utility.*

ssl - OpenSSL CA Certificate generation failing without error message

I want to create a CA Certificate out of a CSR. The process is failing with no error message though, so I don't know where to find a solution. [user@computer myca]$ openssl ca -config openssl.cnf -out user1cert.pem -in user1req.pem Using configuration from openssl.cnf [user@computer myca]$ My config file looks like this: [ca] default_ca = CA_default [CA_default] dir = . # where everything is kept new_certs_dir = $dir # default place for new certs serial = $dir/serial # the current serial number database = $dir/index # database index file certificate = $dir/cacert.pem # The CA certificate private_key = $dir/caprivkey.pem # The private key RANDFILE = $dir/.rand # private random number file default_days = 730 # how long to certify for default_md = sha256 # which message digest to use policy = policy_any # which policy is used [policy_any] countryName = supplied # country name is mandatory stateOrProvinceName = optional # state is optional organizationName = optional # organization nam...

How to set the default language in Notepad++

I mostly use Notepad++ for dealing with XML files. It would be good if Notepad++ parsed and colorized my files based on the XML language when I open the files. Instead, I have to open the file, pick XML from the Languages menu. Is there a way to tell Notepad++ that XML is the default language and to treat the files accordingly. Answer In Notepad++ open the Preferences dialog box by clicking on Settings -> Preferences click on the New Document/Default Directory tab and change the Default Language to XML . EDIT : Just saw that you wanted it to apply to .config files as well. This can be done but you'll need to do it for every extension you want to override. Click on Settings -> Style Configurator scroll down to XML in the language section and add config to the User ext box. Save & Close and any new .config file opened will show up as XML. In fact, I've already done that for my installation as seen below:

cygwin cygdrive paths and Windows Command Prompt

I'm having a weird issue with cygwin acting inconsistently between installations, specifically scp. I have c:\cygwin\bin in my Windows PATH in both cases. When I run the following command from a Windows Command Prompt , however, I get very different results between the two installations: scp /cygdrive/c/something.txt User@server:${HOME}/something.txt On the one machine it transfers the file just fine, but on the other machine I get an error: /cygdrive/c/something.txt: No such file or directory However, if I execute the command this way on the machine that gave me the error, it transfers just fine: scp /c/something.txt User@server:${HOME}/something.txt Why the differences? Is there something I need to configure within cygwin to make this work with /cygdrive/c? UPDATE: Here's something more interesting. If I do ls /c from a Windows command prompt I get what you would expect, as list of everything in C:. However, ls /cygdrive/c says that it doesn't exist. Running those comma...

microsoft office - Change language of command in Excel

How can you change the language of the commands in Excel to English? Now the language of the commands are in Dutch (equal to the language of my pc). But can you change it into English? I use Windows 10 and Office 2013. For example: This command =ALS(SOM(B1:B8)>5; VANDAAG(); REST(20;11)) is in dutch but the same command is this =IF(SUM(B1:B8)>5; TODAY(); REST(20;11)) in English. Answer It depends on your Office version. With an Office 365 license that has received Office 2016 you can change the language. Go File > Options > Language and click on "How do I get more Display and Help Languages". You may need to download some files to do that. The "how to" link gets you to this page . With older versions of Office you may need to install the localised language version, and that may not be a free download.

gif - ffmpeg generate and use different palette for every frame

Following this tutorial I managed to create high quality gifs in reasonable memory size. Using piping, what I'm currently doing is this # Generate palette ffmpeg -y -i - -vf fps=15,scale=600:-1:flags=lanczos,palettegen some_dir/palette.png # Generate gif using palette ffmpeg -y -i - -i some_dir/palette.png -filter_complex fps=15,scale=600:-1:flags=lanczos[x];[x][1:v]paletteuse output.gif This is working great, but I read in the tutorial above that it is possible to generate a different palette for EVERY frame, how can I do that ? (Generate and use different palette for every frame) Answer It is possible. Tutorial is outdated. ffmpeg.exe -i Wildlife.wmv -lavfi palettegen=stats_mode=single[pal],[0:v][pal]paletteuse=new=1 out.mp4