Skip to main content

Posts

Showing posts from January, 2016

windows 7 - Take ownership of entire drive?

I bought a new pc and installed my old HDD as secondary drive , how can I take ownership of all files and folder on that harddrive. I remember there was some commandline tool icals or something which could do that recursivly. Answer I remember there was some commandline tool icals or something CACLS.exe More info here: Display or modify Access Control Lists (ACLs) for files and folders.

windows - Monitors with different pixel sizes

I have several monitors with different pixel sizes (that is, size of individual pixels; not resolution). This means that when I put them next to each other and move the mouse between them, it's not perfectly smooth. I know that in Windows, you can move monitors up or down relative to each other; but is there a way to "scale" them? To say "They have the same pixel height, but this one is an inch taller"?

windows 7 - What is the Start > Run command to goto My Documents folder?

I believe there is a way to get to My Documents folder from Start > Run by typing something with a % symbol in it, but forgot how... something like %MyDocuments& I don't know what these type of shortcuts are called so I cannot google for them Answer Just type documents . Windows will automatically open the My Documents folder in Explorer. This should work for every folder in your profile directory.

query - Querying a CSV file

Does anyone know of a simple tool that will open up a CSV file and let you do basic, SQLesque queries on it? Like a graphical tool of sorts, one that is easy to use. I know I could write a small script to do an import of the CSV into a SQLite database, but since I imagine someone else thought of this before me, I just wanted to inquire if one existed. What's prompting this question is I am getting frustrated with Excel's limited filtering capabilities. Perhaps some other data visualization manipulation tool would provide similar functionality. Free or OSS is preferred, but I'm open to any suggestions. EDIT: I really would prefer some clear tutorials on how to do the below instead of just "make your sheet an ODBC entry" or "write programs using ODBC files", or more ideas on apps to use. Note: I cannot use MS Access. Yet another EDIT: I'm still open for solutions using SQLite. My platform is a semi-ancient Win2k laptop, with a P4 on it. It's quite ...

macos - after holding a key for a while I can't type until i close and re-open the app

This started happening lately, I am on a Mac OS X El Capitan, v10.11.4. If I hold a key a few seconds pressed, It doesn't matter which app I am using, I can't continue typing. I have to close and re-open the app, or if it's a browser tab I have to do the same for that particular tab. But the meta keys or key combos continue to work. I don't recall changing a relevant setting, I checked the accesibility settings found nothing relevant either. I'd appreciate any pointers towards a solution. Thanks. Answer Later versions of Mac OS have a feature (enabled by default) where an accents, emoji, and symbols menu pops up when you press and hold certain characters. The feature doesn't seem to work properly for some folks and the issues being reported are similar if not identical to yours. The solution, if you don't care for this "special characters" pop-up feature, is to disable it. Use Terminal to enter the following command, press Return, and then log ...

networking - How can I change the binding order of network adapters in Windows 7?

The end goal here is that I am trying to install an Oracle 10g server on my Windows 7 x64 dev box. I use DHCP, and the Oracle installer is throwing up this warning: Checking Network Configuration requirements ... Check complete. The overall result of this check is: Failed Problem: The install has detected that the primary IP address of the system is DHCP-assigned. Recommendation: Oracle supports installations on systems with DHCP-assigned IP addresses; However, before you can do this, you must configure the Microsoft LoopBack Adapter to be the primary network adapter on the system. See the Installation Guide for more details on installing the software on systems configured with DHCP. I have installed the loopback adapter, but I am not sure how to make it the primary network adapter. I see this Microsoft KB article on the subject but it's Windows XP-oriented, and I can't seem to find a comparable one for Windows 7. Some of the options it talks about don't seem to be prese...

Disable mouse when keyboard key is pressed in linux

I've given up trying to get my touchpad registered correctly. It wants to be an imps/2 device, and I can't spend any more afternoons trying to convince it otherwise (in fairness, it does quite well as an imps/2 device - tap to click, 3-finger tap to middle-click, no horizontal scroll but you can't have it all) However, I cannot live with the fact that the lightest brush causes the tap to fire. Is there a command I can use to disable the touchpad when a key has been recently pressed? xinput seems to be my friend here, device appears and can be configured as "ImPS/2 Generic Wheel Mouse" Answer I improved your solution so that there is no need for several files, there is less to grep and minor robustness improvements. In the code I use 'Logitech K400' device that I use, but you can change it. (With that device I want to disable mouse when Ctrl is down, but it is a different story and code.) I don't know how well it works for you that you disable the mou...

linux - Create many tar files from a directory with 500000 files

I have a directory containing around 500k files, and want to slice them into t tar files. Put formally, let's call the files file_0, ..., file_{N-1} , where N around 500k. I want to create t tar files each containing T=N/t files, where the i-th tar file contains file_(i*N), ..., file_((i+1)*N - 1), i in {0, ..., t-1} What's an efficient way to do this? I was going to write a Python script that just loops over the N files and divides them into t folders, and then calls tar in each, but this feels very unoptimal. I have many cores on the server and feel like this should happen in parallel. Answer You can use python concurrent library which is designed to process a request queue among all or some threads, eating the queue until all jobs are entirely executed. Generate a big list of list of files, like [ [f0..f0-1], [fn..f2n-1]..] Use a ThreadPoolExecutor to eat this list with all many thread your computer has. This can look like this: import os import sys from concur...

windows - How to split and combine files

How do I split and combine files in Windows? I need to split large files into several small sized files and then combine them after I transfer them to another box. I'm fine with doing this on the command line. Answer I tend to compress the required file to a ZIP file, setting a maximum file size so that it gets split. This means that you will always have the program to get the initial file back available.

compact disc - What prevents a CD-R from being rewritten?

I know it's kind of a dead / dying technology, but I was wondering what stops a CD-R from being rewritten like a CD-RW. Is it some sort of firmware on the disc, essentially in place to make people buy more CDs? Or is there a more technical reason, ie. CDs store their data magnetically (correct?) but CD-Rs have less magnetism, so once it has been written to, that's it? (Sorry if that's completely wrong; I have no idea how CDs work.) Answer Data on a regular CD is stored by making pits (holes), or not-holes (lands), on the CD medium. The pits disturb the reflection of light. Transition from a 0 to a 1 or vice versa is determined by the start or end of a pit (this is called NRZI encoding). There is further complication as these bits are the "channel code", not the content bits; the latter are recovered by decoding the former. And then some of the "content" bits are really Error Correction Code bits. But ultimately, the bits are encoded via holes or not-...

macbook - Multi touch trackpad gestures for Windows (7)

I have Windows 7 running on my Macbook and I am wondering if it is possible to take advantage of the multi touch trackpad and have (more) gestures, more than the default boot camp drivers give you. Is there a program out there that allows you to make your own, or even comes with a basic set. Answer Until Apple releases a driver specifically for this the answer unfortunately not. The majority of touch features on Windows 7 is aimed at Touch Screen notebooks and tablets, as well as the Touch Panel LCD interfaces.

browser - Why do file URLs start with 3 slashes?

HTTP starts with two slashes. E.g. http://example.com . Same goes for FTP. E.g. ftp://example.com . However, file "URLs" start with three slashes. E.g. Reading a pdf file using chrome, the URL would be file:///D:/Desktop/Book.pdf . Why do file URLs use three slashes? Answer As others have mentioned, the file schema is in the form "file:// / ". Though most browsers won't have a problem with only two slashes, and rightfully so. All things being equal, the triple slash and "localhost" keyword only exist to ensure conformance with valid URI/URL syntax. In the context of the file schema, the host is meaningless since it loads directly from a filesystem without any explicit transfer protocol or server document path. Because it's not HTTP, it can't load from a standard web server where in theory you could have multiple local virtual hosts set up. And it can't load from a standard network volume that's technically another "host", s...

maintenance - Suck or blow? What's better for dust?

The guy at the local PC hardware store told me it's better to use a small hand-held leaf blower to blow dust out of your PC case than a hand-held vacuum cleaner. Why is this? I understand that fans might be damaged if they "spin too fast", but surely this is a problem with both vacuuming and blowing dust away... I imagine both machines would generate a small amount of static to be discharged carefully, so I can't see how one would be "safer" than the other? Answer You can use both. Before ditching my desktop collection, I used to clean them using a six-gallon air compressor and a vacuum. Compressed air is much better at dislodging dust. As Nanne said, though, don't get your fans spinning too fast or you'll be generating current to be sent to your mobo. I usually use a finger to hold the fan in place while blasting it with air. Anyway, unless you have a space away from where the computers normally live to clean their insides, you'll want to use ...

How to turn off Firefox forms autocomplete for only certain websites, or for all sites temporarily?

I want to turn off Firefox autocomplete, but only for specific websites--not for the entire interwebs. My language course has an online workbook, and the autocomplete keeps giving me the answers if I need to re-do an exercise. The tutorials I've found online all tell me to clear out my form history. I don't want to do this. I just want autocomplete to not work for a specific set of websites, or alternately turn it off temporarily. How can I do this?

networking - Will multiple switches slow transfer speed

I want to create link between a data server (It's more like NAS) and around 300 computers. Data transferred per day is around 2GB/computer and speed really matters. If I use a single switch it would 300 Ethernet cables and may be too messy to maintain. If I use a switch on every 50 computers would it slow down the connection speed? Answer If with 'transfer speed' you mean throughput: It should not matter much. Every extra device will introduce some minor latency (after all some processing is needed, if if it is only very minor). However latency is not the same as throughput. Compare it with a conversation via a satellite phone. There will be a 3 second lag before someone else can comment on what you said, but if one person just keep talking, telling long (2GB) stories then the slow down will be minimal. Which means that I would test these setups: +-48 port switch ------ 40 computers B | a +-48 port switch ------ 40 computers c | k +-48 port switch ------ ...

windows 7 - How to take an image of an hard drive partition

I'm a reformat freak and I reformat almost every month for one reason or another. I have a small (32 GB) C:\ partition for Windows and some programs and keep everything else on different partitions and/or hard disks that I never format. Next time I'm doing this I would like to take an image of C:\ after I installed and configured Windows and my programs so that I can restore it at will, and it must be EXACTLY the same as it was when I took the image. Obviously it cannot be done while Windows is running (or at least I think so) since the contents of the hard drive would change. So maybe I should boot Linux from a Live CD or something and use that? How would I take and/or restore this image? OS is Windows 7 Answer You didn't tell us what operating system you're running. In Windows 7 there is a built in imaging tool. If you're not running 7 there's plenty of third party tools for this, booth free and payed. A good free one is Macrium Reflect . You don't have ...

How do I transmit a single hexadecimal value serial data in PuTTY using an Alt code?

I am trying to sent a specific hexadecimal value across a serial COM port using PuTTY. Specifically, I want to send the hex codes 9C, B6, FC, and 8B. I have looked up the Alt codes for these and they are 156, 182, 252, and 139 respectively. However, whenever I input the Alt codes, a preceding hex value of C2 is sent before 9C, B6, and 8B so the values that are sent are C2 9C, C2 B6, and C2 8B. The value for FC is changed to C3 FC. Why are these values being placed before the hex value and why is FC being changed altogether? To me, it seems like there is a problem internally converting the Alt code to hex. Is there a way to directly input hex values without using Alt codes in PuTTY? Answer What you're seeing is just ordinary text character set conversion. As far as PuTTY is concerned, you are typing (and reading) text , not raw binary data, therefore it has to convert the text to bytes in whatever configured character set before sending it over the wire. In other words, when y...

linux - When should I use /dev/shm/ and when should I use /tmp/?

When should I use /dev/shm/ and when should I use /tmp/ ? Can I always rely on them both being there on Unices? Answer /dev/shm is a temporary file storage filesystem, i.e., tmpfs , that uses RAM for the backing store.  It can function as a shared memory implementation that facilitates IPC . From Wikipedia : Recent 2.6 Linux kernel builds have started to offer /dev/shm as shared memory in the form of a ramdisk, more specifically as a world-writable directory that is stored in memory with a defined limit in /etc/default/tmpfs.  /dev/shm support is completely optional within the kernel config file.   It is included by default in both Fedora and Ubuntu distributions, where it is most extensively used by the Pulseaudio application.              (Emphasis added.) /tmp is the location for temporary files as defined in the Filesystem Hierarchy Standard , which is followed by almost all Unix and Linux distributions. Since RAM is significantly faster than disk storage, you can use /dev/shm...

How to block/disable internet for one user in Windows 7 while keeping internet access for other users?

The internet is distracting me from my writing. I'm about to cancel it, but my wife wouldn't be too happy with that. She uses it for research, and so on. I'd like to block my account from having access completely, while allowing her account to keep its access. I've Googled, but have come up short. Any help appreciated.

networking - Moving files in a local network - would compressing improve speed?

I am moving some 20Gb within my local network (100 Mbit/sec). The files are from a typical Linux desktop system. Would compressing them using Tar\Gzip and then sending them improve performance? EDIT: I'm moving a Developer's workspace, meaning lots of source and PDFs, and not much multimedia. Answer It largely depends on the type of files you are moving. If your files are like PDF, JPEG movies, Installation files, etc, they are likely to be already compressed and will not give you a great advantage. If its source files compressing will be quite useful. If its lots of small files, at least a tar archive will be useful. Finally, if your source machine has lots of processing power and memory, compression would be in useful time -- else just a tar (based on above points) would suffice. Since your network is just 100 Mbps, you should lean towards compression if that helps. But, if you are transferring files that cannot be compressed much, you should start accounting for the tran...

virtualbox - How to run a headless VM with VBoxManager as a windows service

Objective I want to run this command VBoxManage startvm MyVM --type headless at the boot system just like a service (postgres, apache) does. What i've tried 1. I've tried to create a service using sc command I've found over the internet that could be the solution so i tried all this versions: sc create "vboxMyVMService" binPath= "C:\Progman Files\Oracle\VirtualBox\VBoxManage.exe startvm MyVM --type headless" sc create "vboxMyVMService" binPath= "C:\Progman Files\Oracle\VirtualBox\VBoxManage startvm MyVM --type headless" No success, so i tried to suppress the verbose output of the command sc create "vboxMyVMService" binPath= "C:\Progman Files\Oracle\VirtualBox\VBoxManage.exe startvm MyVM --type headless > NUL" sc create "vboxMyVMService" binPath= "C:\Progman Files\Oracle\VirtualBox\VBoxManage startvm MyVM --type headless" Still no results. All this version returned me a 1053 error. So the ...

"Maximizing" a pane in tmux

Sometimes it would be very useful to maximize a pane in tmux and then restore it to it's previous size. I've been reading the manual and I can't find a way. What I've come up with is that I could bind a key to resize the pane to "max" width, and another key to restore it to some predefined width. Of course this has its drawbacks, so I'm wondering if anyone has a better idea. Answer tmux 1.8 and later Now natively supported, from the below answer : Version 1.8 saw the addition of the -Z flag to resize-pane. From the man page: With -Z, the active pane is toggled between zoomed (occupying the whole of the window) and unzoomed (its normal position in the layout). older tmux (original answer) Another option could be to use break-pane followed by join-pane . From the man page : break-pane [-d] [-t target-pane] (alias: breakp) Break target-pane off from its containing window to make it the only pane in a new window....

command line - merging all files into one folder from different folders

I want my files to be copied in one folder, the files came from different folder but in the same location. I run this code in CMD but it copies the folder into new directory. xcopy "D:\NBS Contents\Latest Images\*.jpg" "D:\output" /s The latest images folder has many folders containing images files. I want to combine them into one folder.

Windows search bar will only open trusted windows-store apps

Before the recent Windows Creator update my searchbar was already misfunctioning and not even finding programs at all (just as background if needed). Since the update the searchbar now finds programs like paint and the new Paint 3D again, however only those that have the line "Trusted Windows-Store App" (free translation from German) beneath them can be opened from the searchbar. In the example with Paint, that only would be Paint 3D which I can open without any problem. Any other program that is found (in this case the normal mspaint) and does not have this line, cannot be opened from the searchbar for some reason. When clicking on the item simply nothing happens. The color change of the clicking animation is there but nothing else. The search does not close, the program does not start. This includes programs I installed but windows default installations like Paint and the Services as well. Any ideas where the problem might be and how to solve it are much appreciated! Note: ...

windows 10 - VirtualBox - Ubuntu 18.04 LTS causing BSOD - AMD Ryzen 7 3750H

I am running an Asus GA502DU (AMD Ryzen 7 3750H (with Vega), Nvidia GeForce GTX 1660Ti MAX-Q, 16GB RAM(8+8), Intel NVMe SSD) I just installed VirtualBox on Windows 10 64bit and started up Ubuntu 18.04 LTS giving it 4GB Ram and 1 core. First time I laucnched it, I got a BSOD with a SYSTEM_SERVICE_EXCEPTION error code. Second time I ran it - it worked perfectly until half way through the the setup when I was entering my desired username - no BSOD this time, the laptop just rebooted. Third time I ran it, got through to desktop, opened terminal, firefox. Started installing updates and I got another BSOD - KMOD_EXCEPTION_NOT_HANDLED. Fourth time I ran it, it instantly gave me a BSOD with SYSTEM_SERVICE_EXCEPTION just like the first time. What is going on?

motherboard - PCIe x1 card in a x16 slot = computer won't turn on

I have a Lenovo ThinkCentre M55 which has an x16 PCIe on the motherboard, but came with a PCIe to PCI adapter installed. I removed the adapter so I could use my x1 PCIe wifi card, but as soon as I plug the card in, the computer refuses to turn on. It seems as if they've made the motherboard this way intentionally. Is there some way around it? Answer The PCIe x16 slot on this computer can only be used for a graphics card. Check the specifications : Slot 1: Full length, full height PCI Express x16 ( graphics only ) Slot 2: Full length, full height PCI Express x1 Slot 2: Full length, full height 32-bit PCI 2.3 (5v) Slot 3: Full length, full height 32-bit PCI 2.3 (5v) This is a chipset limitation. From Intel's Q965 technical specifications: The Intel Q965 Express chipset contains two separate, mutually exclusive graphics options. Either the GMA 3000 graphics controller (contained within the 82Q965 GMCH) is used, or a PCI Express x16 add-in card can be used. When a PCI Express x16...

How do I disable (video) thumbnails in Windows 7?

I'd like to turn off Windows 7 (video) thumbnails displayed in Explorer. I found this solution for Windows XP but it doesn't work for Windows 7 ("The module shmedia.dll failed to load"). Disable thumbnails in Windows XP? Answer To disable video thumbnails only, download and run ShellExView (a great system tool from NirSoft). Disable the "MF XXX Property Handler" lines. Close and restart explorer windows. You are done :) screenshot:

text editing - Importing textfile with leading 0's to excel

Have a number of text files which have numbers next to names, tab delimited: 000454 Name1 005005 Name2 000643 Name3 4043 Name4 33643 Name5 I frequently need to import it into excel to do things. But when I import it in excel it removes all those leading zeroes. I can't do a concatenate to add two zeroes to the beginning because some never have zeroes infront to begin with, and then becomes a painful manual process of rechecking and adding. So my question is how can I import it into excel without this happening ? Cheers Answer The Text Import wizard allows you to do this. In MS Excel 2010 & 2007: Click the "Data" Tab Click "From Text" Select Delimited, Select Tab as the delimiter, Select the column with your 'numbers' and set the Column Data Format as Text.

Veracrypt full disk encryption multi-boot Windows 10 and two Linux Distro on same SSD with some shared folders?

Never tried something like that, but this would be my preferred setup. I dislike VMWare and Virtual Box because they are slow. Is this setup possible? And what would be the procedure to achieve this roughly? Answer In my opinion the downvotes to this question are pretty much unjustified as finally I easily achieved what I have asked for. First of all full drive encryption with veracrypt is possible ( https://medium.com/@securitystreak/veracrypt-full-disk-drive-encryption-fde-157eacbf0b61 ). Second thing is that partition encryption with multiple OSes on the same disk as well as full drive encryption with different hard drives and multiple OSes works very well. This is how to setup for the first case: You can go ahead and encrypt your Windows system partition as if it was the only OS installed on your PC. Your UEFI boot manager will get a new entry called “VeraCrypt BootLoader (DcsBoot)” or something to this extent. Your mileage may vary, but most likely it will become the default one...

windows 7 - The Synaptics touchpad driver cannot prevent the touchpad from "tapping = click"

This is related to this question . the Synaptics touchpad driver cannot prevent the touchpad from treating a tap as a click. Is there some window that is not seen that actually can set it or can there be any other method? Answer I have tried using Synaptics for that same purpose. It never worked. If you go to Dell Support if you're running a dell, the pointing stick driver will enable you to control "tap to click" preferences.

Excel 2010: if( , , "") not treated the same as blank for pivot table group by date

I'm trying to group by date in an Excel 2010 pivot table. The column with dates (i.e., the one want to group by), should be the latest date of 2 other columns if neither is null, or blank. i.e., with a formula like: =IF(AND(A4 "", B4 ""), MAX(A4,B4), "") Normally, this "" in the IF() formula acts the same as an empty cell. In this case, it is preventing me from grouping by date in the Pivot Table. If I filter the date column by (Blanks) , then clear the contents of all those cells, then the pivot table does group by date ok. i.e., "" is not being treated the same as an empty cell.

How would I do a VHD install of Windows 8 from Windows 7

I'm currently waiting on my shiny new system to run Windows 8 on. I have an older system that has Windows 7 installed now on which I'd like to try Windows 8 on in the meanwhile. I intend to use the enterprise edition evaluation in order to try it, and then uninstall it when I get my new system. I'd like to do a VHD install - booting a VHD into a live system rather than a VM - which seems to be the best option for me, so I can simply delete the VHD and get my system back into its previous state once its done. How would I do this - What tools would I need and what would be the process? Answer I've managed to do this with the help of this great technet article by Harold Wong . I should note that parts of the the process is probably substantially similar to r.tanner.f 's answer, but there's some differences to either end of the process, and how we actually did it. Prerequisites: Windows 8 install disk I went with the enterprise evaluation disk imagex (from WAIK -...

ffmpeg - Set MP4 thumbnail

With AtomicParsley , you can set the thumbnail that will be displayed when you look at the file in a file explorer. Example commands $ atomicparsley infile.mp4 --artwork infile.png $ atomicparsley infile.mp4 -t Atom "covr" contains: 1 piece of artwork I notice that the artwork shows up as a stream with FFmpeg ffmpeg version N-51639-g7775992 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 5 2013 22:29:42 with gcc 4.8.0 (GCC) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'A Knight's Tale (2001).mp4': Duration: 02:12:08.96, start: 0.000000, bitrate: 2364 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x544 [SAR 1:1 DAR 40:17], 2071 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 287 kb/s Stream #0:2: Video: png, rgb24, 1280x544 [SAR 1:1 DAR 40:17], 90k tbr, ...

Why can Dropbox be super fast compared to FTP?

I'd like to know why technically Dropbox is much faster than FTP? What kind of technology does it use? I'm not talking about diff files, I'm talking about transferring new files in both cases, Dropbox is much faster. I mean it, very much faster, maybe 10 times faster than FTP for files I uploaded. I will experiment again for bigger files later.

Windows desktop background: how to have system info displayed

Some Windows machines can be configured with a desktop background that will query the local system for its hardware configuration, OS, configuration, statistics, etc. What program do you need to install to acquire this type of desktop background? Answer That appears to be SysInternals' BGInfo . It's a stand-alone executable that you place in your StartUp directory. You can create a Windows scheduled task to refresh it at an interval you choose. BGInfo basically writes a new desktop bitmap image every time it is executed. You can pick and choose the data presented, its fonts, colors, etc.

Windows 8 out of memory?

I thought that Windows 8 was supposed to be better with memory than Windows 7. So far, that is not my experience. When I boot up my brand new laptop (Samsung NP550P5C-S03CA Intel Core i5 3210M 8GB 1TB ) , the Task Manager Performance tab tells me that I have: 8.0 Gb of DDR3 available of this: 3.7GB is in use, leaving 4.2GB available 3.5/25.9 GB is committed and 1.4GB is cached. 162Mb paged pool, 2.4GB non-paged. I then go to the Details tab, and I add up the Memory used by all the processes. It comes to about 300Mb. That is 0.3GB. So what is using up the other 3.4GB of memory??? I then load up a bunch of programs that I use concurrently - notably Firefox (with about 30 tabs), Chrome, Thunderbird, Notepad++, Filezilla and my memory consumption goes up to 4.4GB. That seems about right. I then work on it for a number of days, hibernating in-between, and I start to get notices that I am running low of memory. The performance tab says I am using 90% or more of my memory. The committed has g...

networking - Setting up a Client-Server LAN with restricted access

I'm setting up a new LAN in a call center where there are 3 levels of employees: - 1/ Me (the admin) --- 2/ supervisor 1 ------ 3/ teleoperator ------ 3/ teleoperator ------ 3/ teleoperator --- 2/ supervisor 2 ------ 3/ teleoperator ------ 3/ teleoperator ------ 3/ teleoperator Now I want to setup a server for sharing files that: I have full access to EVERYTHING Supervisor 1 has full access ONLY to "FOLDER1" and subdirectories Supervisor 2 has full access ONLY to "FOLDER2" and subdirectories Teleoperators have access each ONLY to his "FOLDERx/TELEOPERATORx" and subdirectories Any suggestions are welcome. thanks :) Answer You can do 2 things (that I'm aware of): Set up Folder access restriction or Do multiple shares. If you use Folder access Restriction: Pros: Everyone access the same share (ie. \server\share) and can see all the folders, but they can only access the correct folder that they have access to. Cons: May be a bit complicated at the ...

windows 10 - Missing folders in gpedit.msc

In order to deny the automatic updating of a specific device's driver, I found out that I can get by this through the Local Group Policy Editor . I am running Windows 10 Home OEM on my laptop and, since gpedit.msc is not build-in on this version, I installed it following this guide: Today we are going to share a simple installer which installs the required system files in Windows so that you can enjoy Group Policy Editor in all Windows 7 editions. First download the setup file using following link: Download Group Policy Editor Installer You'll find the download link in right-side section of the above mentioned page. After downloading the ZIP file, extract it using WinRAR or 7-Zip. Run the extracted setup.exe file. It will install the files and you'll be able to access gpedit.msc command via RUN or Start Menu search box. Note: For Windows 7 64-bit (x64) users! You'll also need to go to "SysWOW64" folder present in "C:\Windows" folder and copy "G...

linux - How to play a movie listening to two sound tracks simultaneously?

I have movie files with multiple audio tracks (in the MKV container). I want to watch a movie while sending one language to the speakers (for the kids) and another language to the headphones (for myself), keeping the tracks in sync if the movie is paused, etc. Assume my system already has two audio outputs properly configured. Is there a way to do this with a media player in Linux? I have checked MPlayer and VLC so far, and they only support selecting one of the available audio tracks.

Disable Windows 7's "Open File - Security Warning" dialog for exe on network drive?

I have a mapped network drive, on which I store some programs, one of which I've put in my startup folder. Unfortunately, this program "does not have a valid digital signature", which means that every time I reboot, I get a security dialog, asking me whether to run it. I would prefer not to have to copy this program to the local disk. How can I disable this prompt? Answer Ok, I found the solution. Go to Control Panel -> Internet Options -> Security -> Local Intranet -> Sites -> Advanced Add the mapped drive or UNC path (eg. Z:\ or \\machine)

windows - How do I recover my legacy WSL without data loss?

I have had the Windows Subsystem for Linux installed for a long time. Today, after a clean boot of my Windows 10, it fails to start, with the regular error message: Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore Press any key to continue... In my %LOCALAPPDATA%\lxss , I see that WSL is still completely there. Can I somehow still start this? If not, if I perform a new installation, can I mount the old directories somehow in such a way that not just all data, but also all permissions etc. are visible, and move them to a new installation? I shouldn't need to spell this out, but when WSL doesn't work, any back-up utility that has to be run from WSL also won't work. I'm hesitant to just try lxrun /install for fear that it will nuke all of my data. For no reason that I can tell, it started working again. I'd still like to know what happened and what fixed it, so that I kn...

linux - How to realocate space from the Swap partition to the ext4 'normal' partition in Ubuntu?

My Linux is running in a VM for which I allocated half of the physical amount of RAM (32 div 2) and 20 GB of disk space. I can see the structure of my disks. The 'linux swap' partition took 16GB. What was left (4GB) was allocated to the #normal# partition (ext4). I need to resize that 16GB swap partition to make room for the normal partition. I am a Windows user and would like a decent GUI app to do it. I have tried gparted but unfortunately it won't help me. All options are disabled when I click the 'swap' partition. It seems there is another GUI program called Logical Volume Manager, but I don't know how to start it.

windows - How do I remove a USB drive's write protection?

I have a SanDisk Cruser Blade USB stick that suddenly seems to be write protected. I tried running DiskPart but after I write the command "attributes disk clear readonly" it displays this: Microsoft DiskPart version 5.1.3565 ADD - Add a mirror to a simple volume. ACTIVE - Marks the current basic partition as an active boot partition. ASSIGN - Assign a drive letter or mount point to the selected volume. BREAK - Break a mirror set. CLEAN - Clear the configuration information, or all information, off the disk. CONVERT - Converts between different disk formats. CREATE - Create a volume or partition. DELETE - Delete an object. DETAIL - Provide details about an object. EXIT - Exit DiskPart EXTEND - Extend a volume. HELP - Prints a list of commands. IMPORT - Imports a disk group. LIST - Prints out a list of objects. INACTIVE - Marks the current basic partition as an inactive partition. ONLINE -...

rm - Deleting a file with question marks in the name (another encoding) in Debian

I have a file with the name like ?????????????????????? ???????????????????????? ??????????.png in my directory. It seems to me that file was created under windows with russian name. I pulled it with git and now I am unable to compile my program. And I am unable to delete it in debian. rm: cannot remove `??????????????????????': No such file or directory rm: cannot remove `????????????????????????': No such file or directory rm: cannot remove `??????????.png': No such file or directory I tried to use quotes around file name, but it doesn't work. How should delete files with names like this? Answer Just use rm -i ... (py26_dfl)[mpenning@Bucksnort ~]$ rm -i *ng rm: remove regular file `IMAG0004-1.png'? n rm: remove regular file `??????????.png'? y (py26_dfl)[mpenning@Bucksnort ~]$

Is there a software for defining areas in Windows for sticking windows in them?

There are some softwares offered by Philips or Asus that come with their Monitors. Like when in Windows 7, if you pull a windows far to the left, it will suggest that the windows will take half of the space in the desktop. But I want to divide my screen to 4 equal squares. So if I pull a windows to top left corner, it should automatically adjust to 25% of the total screen. Hope what I am telling is clear, Regards Answer You could try Aquasnap . It's free to download for personal use and it can only be used on a single monitor. You have to pay to unlock multi-monitor support. Key features include: Can resize windows to half screen and quarter screen. Multi-monitor compatible (paid version). Works with child windows of Multiple Document Interface (MDI). Skinnable interface. Multilingual GUI.

windows - Unable to format 32GB micro-SD card

A few days ago I was copying some stuff on a 32 GB micro-SD card put inside an SD adapter, via my laptop's SD card reader slot and the copy froze. I already had a backup of the data, so I decide to just unplug the card and reformat it if something went wrong. Something did go wrong, since I was asked to reformat the memory card as soon as I put it back in the slot, but now I can't reformat it. I've tried to format it via Windows Explorer and sometimes it freezes, sometimes it says "Unable to format". Disk Management freezes too, as does the command line format and a third party, low-level format tool. What can I do to get this micro-SD card formatted?

cmd.exe - Windows 10 default dpi settings make cmd blurry

I have recently upgraded to Windows 10 and I have noticed that my cmd console is very big and blurry. I have tried reducing text-size, but if I reduce those the desktop items become too small. The recommended setting is 125% which I must use for proper desktop display. The same setting makes my cmd look like: OK, it looks better here but on my screen it is much bigger and blurry. Another one to show: Background is firefox browser showing SO page with the image and in front the real cmd. I know you can disable high dpi for applications under compatibility, but how do I do this for cmd.

remapping - How to add a Pause/Break key to a keyboard that doesn't have one?

I would like to make my right Alt key into a Pause/Break key, because my keyboard doesn't have one. I would like to know where to go to edit this information, and how to save the changes. Please, don't tell me something like "use [this program]" unless it is very easy to use and understand. Also, the usual code RAlt::^CtrlBreak doesn't work for my Hegemonia game.

memory - Can a P55 chipset support 6GB as 2GBx3?

Having purchased a P7P55D-E PRO board, I've gone and got me 6GB as 2GBx3 chips to use w/W7-64. But I'm now confused as the manual there does not mention anything about a 3 chip configuration. Hence the question, does the P55 chipset used on this motherboard support/recognize 6GB installed as 2GB x 3 chips? Answer According to the Intel diagram it only supports dual channel memory. It may run on that configuration but may not be optimal since one memory module would not be running in dual channel mode. The Asus owners manual does not show using 3 modules, only 1 (single channel mode), 2, or 4 in dual channel mode. Use the download tab and choose the OS then download the user manual. http://www.asus.com/product.aspx?P_ID=j02KziJq95KbCQNm&content=specifications You'd be better off to go with 8GB - 2x4GB.

linux - How to boot from SSD but have installations and home folder on HDD

I have an SSD I want to boot from it, but use the HDD to store installed programs and keep the home folder. I'm running Linux Fedora 19. How do I set that up? Answer During installation you will be asked which disk to use and which partitions to mount. Reading you question I think you want this: [SSD] /boot / SWAP [HDD] /usr /tmp /home Why this? [SSD] /boot from the SSD (not much here, /boot is only a very small filesystem needed to start and optionally to decrypt a volume. / on the SSD since you will be accessing it quite often en thus gain a large speed gain. / (the root filesystem) is usually quite small and it is here where you usually have the mount points for other filesystems such as /usr, /usr/local, /opt, /var, /lib etc. Some of these you want to keep on /, such as var and lib. Others such as /usr/, /usr/local/ and /home are best mounted from another partition. SWAP since paging depends a lot on the disk speed. Thus is gains the most from the SSD. And with modern SSD th...

partitioning - How to recover deleted NTFS partitions?

Last night I made a terrible mistake. I was reinstalling Windows and I accidentally deleted all the partitions on all my drives. I realized my mistake before I had created any partitions, so nothing has been written to any of the disks. I'm currently at my wits' end about what I'll do if I don't manage to recover the data. I have two 1TB drives and a 2TB. One of the 1TB was the drive I was supposed to be reformatting so nothing to be recovered there. I am currently in a Linux livecd. In this article http://support.microsoft.com/kb/245725 Microsoft advises to recreate the exact same partition but choose not to format it, and then recover the backup boot sector from the end of the ntfs volume. But none of the drives I want to recover are bootable drives. So does that mean I do not need to rewrite the boot sector? As in if I simply recreate a partition of the same size it will see all my data? Or would I be better off using the TestDisk utility? http://www.cgsecurity.org/...

windows 7 - Re-format thumb drive

I was trying to put the Windows 8 Consumer Preview onto a thumb drive, when I was asked if I was OK with wiping it (I said yes I as it was blank). I had to sleep my computer during the wiping, and now I can't do anything with my dive. When I put it into my computer: When I click format disk: In short, the disk never reformats (I get an error message letting me know that Windows was unable to format the drive). Whats going on, and how do I fix it? Answer Try this: Start > Run Type: diskpart Execute: list disk Execute: select disk # (# is the number of your USB) Execute: clean Execute: create partition primary Execute: format recommended quick

linux - Forwarding Specific Ports through SSH Reverse Tunnels

So unfortunately I live in a place that will not let me have a static IP, so I have been setting up access to my home computer via reverse SSH tunnels that run on an micro amazon ec2 instance. I have gotten SSH to work fine, but I cannot figure out port forwards. Here is a small infographic I made to help illustrate (i felt the question was clearer with a diagram of what I was trying to do. Here are the commands listed in the graphic: I the following on my home computer: ssh -R 1337:localhost:22 -i .ssh/tokyoMinekey.pem ec2-user@ec2serveraddress and I run this on the ec2 server: ssh -L6600:localhost:6600 -Nf localhost -p 1337 FYI, I have added port 6600 into my security group for amazon ec2, so its open on the ec2 side Answer I'm not sure why you are using two separate ssh commands here? If you want to forward port 6600 on the EC2 instead to port 6600 on the machine at home then all you should need to do is: ssh -R :6600:localhost:6600 -i .ssh/tokyoMinekey.pem ec2-user@ec2servera...

display - What maximal resolution is reasonable when using a VGA cable?

I own a laptop which only has VGA as a port for external displays. I'm thinking to buy an external flat-screen monitor for my laptop. Which resolution should the display have at the utmost so that I still have a reasonably sharp image? Answer I am not sure there is a limit in the standard. However: Your graphical card needs to be able to provide the image. 400MHz DACs are common, which would commonly limit it to any configuration using a lower than 400MHz bandwidth. E.g. 2048x1536@85 Hz (388 MHz). If your DAC is more capable then you can go higher, e.g. to 7680x4800. You monitor needs to be able to recognize the signal. With a poor quality cable and high bandwidth signals ghosting is likely. Which can be solved by simply buying a good enough cable. In your case the GMA 4500 limits you to 2560x1600.

security - Automatically lock screen on lid close in Windows 7

I'm a longtime Linux user, and I just recently got a laptop that runs Windows 7. I recently stepped away from my workstation for a few minutes, and returned to find, to my horror, someone else sitting at my laptop watching a video on YouTube. It seems like they hadn't done anything else, but the possibility that they could have quickly browsed through my saved passwords or something still concerns me. I'm so used to all my Linux machines locking the instant I close the lid, I hadn't even considered the possibility that it wouldn't happen in Windows. As it turns out, I can't even find an option to make it happen. I've seen a couple sketchy-looking programs I can run in the background that will supposedly achieve what I need. Is that really the only way to secure my machine? I don't want the computer to sleep or hibernate every time I close the lid. Is there something in the control that will help out that I just missed? If not, what program or other solu...

terminal - ^C not working in zsh on Mac OSX

Ctrl-C stopped working for me at the terminal when using zsh (on mac osx). I didn't notice the exact moment that it happend so I can't be sure what caused it. I didd't update zsh in a while though. and didn't touch .zshrc (I have it at a repo http://github.com/astrails/dotzsh ) If I run bash, ^C works in it. If I run any command, like cat , ^C will work to stop it too. but inside zsh it just doesn't do anything. bindkey | grep \\^C gives "^B"-"^C" self-insert zsh 4.3.10 (i386-apple-darwin10.4.3), installed though ports (zsh-devel @4.3.10_0+doc+examples+mp_completion+pcre) mac os 10.6.6 Answer that was a bug in rvm (ruby version manager) that I did update lately

Configuring proxy settings for Google Chrome on Linux

How do I configure proxy settings for Chrome on Linux? It doesn't have a configuration interface like Firefox. I'd like to configure it in a way that I don't have to type every time, the login and password. EDIT: I'm using Fluxbox as my window manager. Answer Try the --proxy-server command line option, and/or http_proxy environment variable. google-chrome-stable --proxy-server="http://example.com:8080" Also, Chrome/Chromium makes use of xdg scripts, so you can try configuring the proxy server in GNOME/KDE, and set up xdg scripts to use settings of the desktop environment. That is how I solved MIME-type file associations at least.

Can no longer duplicate display to external monitor on Windows 7

We have a large TV at work - I connect my laptop to it to share my screen during meetings. Until today, my laptop display has been duplicating to the TV automatically when I connect the TV cable to the laptop. The display resolution would decrease automatically to be compatible with the TV. Today, however, it's stopped working. When I connect the cable to the TV, the display extends rather than duplicating. Using the Win+P key combination (or Fn+F7 on my Lenovo laptop), I can choose to duplicate the display - but when I do this, it ends up only displaying on the laptop. I can get it to display on the TV by hitting Win+P and choosing "projector only", but then I can't see what I'm doing on the laptop screen. I have a Lenovo W520 laptop running Windows 7, connected to the TV using a DisplayPort-to-HDMI converter cable. The TV's native resolution is 1280x720; the laptop's native resolution is 1600x900. I've tried booting with the TV cable already connecte...

windows shell - ConEmu: disable bell

I'm really appreciating conemu as an alternative windows shell, but the alert bell sound is driving me crazy! (I wear earbuds and that sound goes right through me..) Is there are an option to disable the bell alert noise (or switch for a screen flash or something)? Answer There is "Suppress bells" option.

How long can I use Windows 10 without activation?

It would seem that there should be web resources to quickly find an answer to this question but I couldn't find any, so I'm trying my luck here. I used the Win10 Media Creation Tool to download Win10 Pro ISO's and set up VM's I use for testing before deploying to bare metal. Once I deploy, I do so with a digital license or product key but it obviously doesn't make any sense activating while in the (temporary) VM. Now I noticed that my VM still works, and it's been many weeks since I first used it. It's not activated, of course, but I can still log in and install software and so on. Up until now, I always created a new VM installation from scratch when I needed to do testing. It would naturally save me some time if I could just install it once and then clone when I need a new environment (that will eventually be licensed). I thought that's not possible due to some time restraints so I didn't even try it. Hence my questions: Is there an official "...

Excel makes a mistake at paste special - number only

Excel (Office 365) is making a strange error when pasting numbers only: cell A1 value = 1727979.28 cell A2 value = 1678319.54 cell A3 formula = (A2 - A1) -> result = -49659.74 if I select&copy A3 and paste special (values only) to A4 the value in A4 = -49659.7399999999 ?!? Is this expected bahaviour or some setting I can change? Answer That's not a mistake. It's all about how Excel stores such numbers, in this case in point float number variables, which can be seen as Scientific Notation and a division of numbers. This division is an aproximation of the real number, in you case 49659.74 so it's going to get stored as a compact division that can generate a "string" of numbers like that and then it's going to place the decimal point, that's where the scientific notation comes around. For a machine -49659.74 and -49659.7399999999 , are pretty much the same. And for most cases it's good enough. If you need to use only two decimals, sorround yo...