Skip to main content

Posts

Showing posts from July, 2016

linux - Impossible to connect with ldap

IP : 192.168.0.70 (dell) DIT : (seen through ldapphpadmin) And for patricia duchesne: dn cn=patricia duchesne,ou=users,dc=memorandum,dc=pro cn patricia duchesne gidnumber 501 givenname patricia homedirectory /home/users/pduchesne loginshell /bin/bash objectclass inetOrgPerson | posixAccount | top sn duchesne uid pduchesne uidnumber 1000 userpassword {MD5}eFI0F0... IP : 192.168.0.60 (pb) NSSWitch is configured : $cat /etc/nsswitch.conf passwd: files ldap group: files ldap shadow: files ldap gshadow: files hosts: files mdns4_minimal [NOTFOUND=return] dns networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis so is ldap-auth : $ cat /etc/auth-client-config/profile.d/ldap-auth-config [lac_ldap] nss_passwd=passwd: files ldap nss_group=group: files ldap nss_shadow=shadow: files ldap nss_netgroup=netgroup: nis and libnss : $ cat /etc/libnss-ldap.conf uri ldap://192.168.0.70 base dc=

Which duplicate files and folders finders exist for Windows?

I need a free duplicate file finder/remover app, with ability to find duplicate files/folders by name and/or by size and to remove one of duplicates. Answer There was this Duplicate File Finder available for some time but now its only on secondary sites, like this Softpedia reference . The Wareseeker site shows the correct reference http://dff.nazrashid.com/ which is no longer around. I would be careful fetching executables from such sites though. It can do search for duplicates within multiple directory trees based on, contents (i think it does a md5 match) size name name and size contents and name And, it lets you filter your search by a minimum and maximum files size (speeds up things when you know the bounds). A very thoughtful piece of software. Don't know if there is something as fast and featured for free around these days. The comments refer to a similar Sourceforge tool called Doubles

formatting - How to convert text to numbers for all cells in a spreadsheet?

I have a spreadsheet containing values that are entered as text by having an apostrophe ' in front. I tried the search and replace function, but for some reason it couldn't find those cells containing an apostrophe in front. I tried changing the cell format to number, but it didn't cause those text to become numbers. Because there are many cells like that, it would take a long time to individually delete the starting apostrophe in each cell. Is there a faster way to do this? Answer I found out these things Use LibreOffice version 3.6.5 instead of 4.0. The newest LibreOffice 4.0 (see changelog ) changed its RegEx engine to ICU regexp engine . As a result I wasn't able to use the LibreOffice 3.6.5 solution for LibreOffice 4.0 (Maybe this has changed since this answer was given in 2013. So try out the newest available version first) Disable Tools » AutoCorrect Options » Localized options » Single quotes . This option replaces your single quote with a similar looking ap

microsoft excel - What formula would allow incrementing a number each time a certain name appears in a column?

How do I add a list of names to a spreadsheet and each time a specific name appears add the number 10 to cell. For example, I would put a name like Jones in A1 then Jones in A5. And in D5 it would have the number 20. If I then add Jones in B2 then D5 would say 30. Add 10 each time Jones appears. What formula would I use?

windows 8 - How to optimize my SSD and HDD configuration

I have completed my first custom PC build. I installed Windows 8 Pro and I have a few questions pertaining to the OS and the way I should configure my hard discs. I have a 128 GB SSD that I installed the OS on and I have a 3 TB HDD. I want to reserve as much space as possible on the SSD and limit the use because I know they have a limited life. Q: How would I optimize the life span of my SSD? I wanted to put everything else on the HDD other than the OS of course. Is this the right choice? If so how do I change the settings for Program Files and folders such as My Documents, Downloads, Pictures etc. to default to my HDD (E:/ Drive)? Answer don't try this, this will only cause issues when installing updates. Run Windows as it is. Modern SSDs are so solid that you can write 10GB of data daily for 10 years before they fail.

DU reports different folder size in unix and cygwin (windows)

I was copying some files from windows machine to unix one (debian) and after checking file count (both matched) i tested folder size with du and i got different results: windows: @/cygdrive/f/Cubie-Drive/download/files $ du -s . 487040665 . and unix: root@Cubian:/opt/ftp/ftpuser-home/upload# du -s . 487042376 . du versions, windows: $ du --version du (GNU coreutils) 8.15 Packaged by Cygwin (8.15-1) Copyright (C) 2012 Free Software Foundation, Inc. and unix: du (GNU coreutils) 8.13 Copyright (C) 2011 Free Software Foundation, Inc. any idea why is there a slight difference? Answer du is reporting the disk usage of the files, not the cumulated size of the files which looks like to be what you are expecting. Different file systems (like NTFS and ext4 for example) use different methods to store directories and file metadata like file permissions. They might also use a different allocation unit size (cluster/record size) which lead to a diversity in per file overhead. There

ubuntu - Killing VNC Process Manually

I'm looking for a way to reset the display counter for VNC to :1. What has happened is that my server has been restarted without killing the VNC processes first and upon reboot and then starting vncserver once more with a new process it has started at :2, completely ignoring :1. On trying to kill :1 it says: "You'll have to kill the Xtightvnc process manually". I cannot kill this process, there is no pid files for this display to delete and the process has long gone as the server has restarted. Please can someone advise me on how to restart this count back to :1. Can anyone please help me reset these settings. Using tightvncserver on Ubuntu 14.01 Answer Try running ps -ef | grep vnc to see which VNC services are running.

keyboard shortcuts - Sane control-tab behaviour in Notepad++

How can I make control-tab (and control-shift-tab) behave sensibly Notepad++? I would like these shortcuts to behave as they do in my web browser, ie. control-tab moves focus to the next tab to the right, control-shift-tab to the tab to the left. Answer Browse the menu Settings / Preferences / Misc Look for the box Document Switcher Uncheck both 'Enable' and 'Enable MRU behaviour' (whatever that is)

How to reset the screenshot counter in Windows 8?

In Windows 8, Win + PrtScr will automatically save a sequentially numbered screenshot at %UserProfile%\Pictures\Screenshots . The file names are of the form Screenshot ( ).png . However, even if you move/delete existing screenshots the index/counter is not reset. So how do you go about resetting it? Answer This method requires registry editing, so be careful ! Run regedit and navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer Look for a DWORD value named ScreenshotIndex , which stores the next screenshot's index: To reset it, change the value back to 1 Note 1: If you already have existing screenshot files in the Screenshots folder, they will not be overwritten even after the counter reset. Thus even after resetting the value back to 1, Screenshot (3).png will be created in the example above (since screenshots 1 and 2 already exist). If screenshots 1 and 2 are moved/deleted however before a fresh screenshot is taken (after the reset of course

windows xp - free program to automatically detect hardware

I am re-installing a computer for a friend (Windows XP SP3), do you get a program that can automatically detect hardware for the system? For example motherboard, graphics card, network card. This would save me time trying to hunt down drivers. Thank you Answer There are many software's that claim to do this, though none of them is good and helpful (from my experience with several known programs like Uniblue Driver Detective, Driver Detective etc) Just make sure to download all of the latest updates from Windows Update, and all of the latest drivers from the manufacturer's sites. This is the most safe and reliable way of drivers installation.

Is there a Windows command line tool to copy files to remote computers?

I'm looking for a way to copy files over to/from remote Windows hosts, and need to provide domain user credentials as part of the process, similar to the way psexec does. I know I can use net use to map the target directory to a drive letter and use xcopy , and I know psexec can upload files to be executed on the remote machine and then delete them, but I'm looking for a way to distribute files to remote hosts that will not be as awkward to use as net use and xcopy . Answer XCopy supports UNC paths. C:\>xcopy \\computer1\source\*.* \\Computer2\target C:\>xcopy \\computer1\source\FakeFileNAme.txt C:\ I would imagine with the use of RunAs you should be able to feed it whichever credentials you'd like. HTH

encryption - Create new partition on encrypted volume in OS X Lion

Updated : see below. I encrypted a 500 GB partition on an external 1TB drive on OS X Lion. The other 500 GB was not used yet and I want to create another partition on the external drive now. Disk utility will not let me do this and refers to the command line utility diskutil , noting that the drive contains CoreStorage physical volumes. I have looked around in the utility diskutil but so far I haven't found anything useful: diskutil cs createVolume does not work because I first have to resize the Logical Volume Group, apparently. diskutil resizeVolume might work, but this does not work on CoreStorage volumes, so I'm afraid I might break things (i.e. my encrypted volume occupies disk2s1, disk2s2 and disk2s3 at the same time) (see my diskutil output ) Some background info is given in an Ars Technica review , but this provides little information on how to proceed. This Macworld article instructs how to resize a volume, but I don't think this is applicable to CoreStorage v

iTunes ported for Linux?

Is there any ported version of iTunes for Linux? Really would like it; i need to restore my iPod. Emulation is slow because i have here a 1 GB of RAM. Answer If you are using ubuntu here is a hint http://www.psychocats.net/ubuntu/itunes The best way to do it, would be to install a Virtual Machine of Windows.

linux - Remove all files NOT containing a pattern in the contents

How do I remove all files not containing a specified text. I understand the solution to remove files with a specified text, but I need to remove files NOT containing a specified pattern. The following command creates a list of files not containing "successful run": grep -c "successful run" *.out | grep -v ":1" > err.txt I wish to directly delete these files.

windows 7 - How can I add a program to the context menu of all files?

Similar to the way Notepad++ adds "Edit with Notepad++" to the context menu of all files, or how most Antivirus products will add a global "Scan this file" option, I would like to add a particular program to the context menu for all file types. Thanks to DOSBox, I'm a little familiar with manually creating file associations and creating context menu options for specific file types. http://www.dosbox.com/wiki/Associating_the_Configuration_File_in_Windows However, I've got one program I'd like to add as a context menu globally because it can be used with files that have almost any extension. What registry keys do I need to modify for this, and what common pitfalls should I avoid in order to not break things here? I'd rather do this manually, so that I'm intimately familiar with what changes I'm making to the system, rather than use a third-party tool. The OS I'm doing this on is Windows 7 x64, but it would be great if the same method could

Why is Windows Backup forcing me to include a non system drive?

I'm trying to update my backup image, which should only includes the C drive.... except now Windows backup is forcing me to include my D drive and labeling it as a system drive, even though it doesn't do anything special (hosts a large VM and some other files) - shown below. I've also include an image from disk management, in case it helps. Any help would be appreciated.

Install pre-configured Windows XP

I have about 60 machines I want to install Windows XP on using a USB drive. What I would like to do is have a pre-configured install. Meaning all the necessary software, and bookmarks in the browsers set. All of these machines are nearly-identical, with slightly different RAM, some different models of the same make of processors, etc. I thought about just setting one machine up how I want, clone the drive, and install from there, although I am unsure if that would work. I have used nLite before to make something close, but it was unable to get the level of setup I was looking for. In the end, I want to format the drives and just start new with a completely pre-configured setup. What options do I have available?

How to completely bypass Windows 10 login prompt after sleep without password set?

When you put your Windows 10 machine to sleep, and then hit a key to bring it back up in a while, it shows you the picture, when you get rid of that, it asks you to hit the login button - even when you don't actually have a password set - before taking you to desktop (with start menu open... -.-). This is a grand total of minimum of 3 key presses (wake, lose login screen, login, not counting the escape key for getting rid of start menu) before seeing my desktop. The behaviour I want to end up with is that it takes just one keypress (wake) before I see my desktop exactly the way I left it from sleep, like I'm able to on previous versions of Windows (with some conf) and OSX. Is there any way to accomplish that or is my only option finding OCD meds for what is otherwise a rather simple UX flaw (when you don't have a password set, sleep should return you to desktop)? Edition: Professional Version: 1607 (Build 14393.187)

macos - ZSH Completion colors and OS X

Consider this minimal .zshrc : export CLICOLOR=1; export LSCOLORS=exfxcxdxbxegedabagacad; # It is the default value on OSX, so this line can be omitted autoload -Uz compinit compinit zstyle ':completion:*' list-colors 'exfxcxdxbxegedabagacad' On OS X, ls uses colors if CLICOLOR is set to TRUE and the colors used are in LSCOLORS which default value is exfxcxdxbxegedabagacad . Doing a ls will print directories in blue. But when doing cd + TAB , ZSH will propose completions with directories in red and in bold. What is the problem and how can I have the same colors for ZSH completion and ls ?

linux - Is there a way to log into a machine using SSH without password?

I know ssh is to create a secure shell connection to a machine, and we call ssh username@ip_address to login the machine. Is there a way that I won't need to enter the password when connecting via SSH, or let's say SCP, or a run a command using SSH on a remote machine? I know there are ssh-keys, which allow particular users to login without entering passwords. Is there any other way to achieve so, which doesn't involve keys? Like some change in the ssh configuration?

networking - No network connection after upgrading to Windows 10

A few hours ago I upgraded my Dell Optiplex 3020 from Windows 8.1 to Windows 10 via the updater. Since then I have no network connection. I did the same update on a similar machine and the Internet works fine. The troubleshooter won't identify the problem. The network adapter is visible in Device Manager and the driver is fine but in the network settings it is absent. I ran netsh int ipv4 reset from Command Prompt but it gave me the error: Resetting failed , access is denied. I read that I should find some keys in Regedit and give everyone full control over them, but this did not work. How can I get my networking to work again? Answer I had the same problem, do you have VPN software installed? I had an old Cisco VPN installation and I couldn't remove it under windows 10. To fix I had to revert the upgrade and uninstall the VPN then upgrade again. My revert only took a couple minutes, it's usually very fast. Open start menu and search for "windows 8" you will se

filesystems - Recommended Settings To Format USB Sticks

I have always formatted USB sticks (aka flash or jump drives) to the default settings that Windows suggests. Do these settings provide the best performance? Under what situations should they be customized (type of file being stored, how often it is accessed, etc)? Is there any rules for which settings to choose (if the drive is larger than 1GB use X setting, etc)? Answer It's all math but there are roughly 2 main things that need to be understood: NTFS can store files larger than 4GB so if your flash drive is 4GB or less then choose NTFS anyways because the FAT file system suffers from worse performance issues due to fragmentation The Allocation Unit Size specifies how big the chunks should be that your files get split into (default is 4KB). So a 2KB text file will use up 4KB anyways but a 16KB text file will break into 4 4KB chunks So choose the allocation unit size based on how big your files will be. If you are storing all MP3s and they are 2-10MB in size then choose the high

networking - BIND9 cannot resolve local domain

I've been struggling for a few days to configure bind9 to resolve my local domain so I can access it from inside my LAN. Details: DNS SERVER: 192.168.178.46 WEBSERVER (apache2): (A virtualbox machine, bridged) 192.168.178.36 VM HOST MACHINE: 192.168.178.26 LOCAL DOMAIN: acme.local I can successfully access all the machines by IP. All the clients are configured with my internal DNS. I can access my local website by IP address. The bind daemon is succesfully running without errors. Also the webserver is running and the virtualhost is configured and enabled. Goal : access my local webserver by domain name (acme.local) without changing my /etc/hosts file. On my DNS server (192.168.178.46) Content of /etc/bind/named.conf.options : options { directory "/var/cache/bind"; // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing

linux - How can I adjust by how much the sound volume changes every time I press the volume change keys?

For example if the volume is 48 and I press the volume up key the new value will be 56. What would I have to do to make it go to 52? I use both keyboard and remote control keys. Answer You want to change the volume step interval, this is fairly easy. Open up the terminal and run the command gconf-editor , it will bring up this window: In the left pane, expand apps and click on gnome_settings_daemon : double click the volume_step key in the right pane, enter the new step value (this is the value you want the volume to change by when you press volume up or volume down on your keyboard), and press OK: test your new configuration and exit gconf-editor if all is working!

windows 7 - How do I set the PowerShell default font to Consolas?

I would like to have the Consolas font set as default for PowerShell on Windows 7, no matter how I launch it. I've found very few explanations on the web for doing this, and none were really clear to me. Well, according to this question , PowerShell is started by a shortcut which normal user can't modify (it was my case). I right-clicked the shortcut, then clicked on its "font" tab. That time, when trying to change the font, I got the "access reserved to administrator" dialog, allowing me to change the shortcut. Unfortunately, it wasn't enough, as a subsequent launch reverted to the default font. Is there another method of setting a default font? Answer Well, according to this question , PowerShell is started by a shortcut which a normal user can't modify (it was my case). I right-clicked the shortcut, started PowerShell as administrator, and then changed the font. Afterwards, the Consolas font was effectively set as the default.

GhostScript noob help - Breaking a multipage PDF file into many single page PS or EPS files

I'm trying to do the following with ghostscript: Turn one multipage PDF file (about 3,000 pages, 200mb file) into: One file per page of the PDF, and convert each (page/file) to EPS or PS (post script(preferably)). Example: hello.pdf (10 pages) would produce: hello1.ps (page 1 out of 10) hello2.ps hello3.ps ... hello10.ps How can I do this? I've been trying for 4 days, and can't figure it out. I have a script I've tried(won't work): Note: Windows(7) user here. gs -sDEVICE=epswrite -o documentname-%.eps documentname.pdf I also don't know how to navigate to the directory where my file resides (cannot figure that out, too). If you can, please show me how. A big thank you. Answer First, I use Linux, not Windows, so I can't test this, but I think something like this is right. (I'm almost tempted to tell you to install Linux inside a virtual machine for this, since stuff like this is sooo much easier with a grown-up operating system, but anyway, here goes my

windows xp - How to disable copy in shared folder

I am trying to make folder that everyone can view and can't copy,modify. For all answers.I thinking about specially ms office files. I tried following methods Software - copy protect - anti copy This method can't protect save as and upload MS office macro Users can enable,disable macros. MS office restriction This is best choice but can't protect from file uploading. Almost I found the solution. Way is combination of MS office restriction and restrict access from browsers using firewall or antivirus. But I don't exact how to do this.

command line - Extract and overwrite existing files

I am trying to write a batch script to extract files out of an existing ZIP file, into another folder on my desktop and to have the system not prompt me as to whether I want to overwrite the existing files or not. The script works with just -o , but once I add -aoa, I get an error: "C:\Program Files\7-zip\7z.exe" e file1.zip "-aoaC:\Documents and Settings\All Users\Desktop\all_backup_files" Answer The 7-Zip command line options you will need are x , -o and -y : "C:\Program Files\7-zip\7z.exe" x file1.zip -o "C:\Documents and Settings\All Users\Desktop\all_backup_files" -y If you type 7z --help you will get a list of valid parameters.

mac - Why can't I mount shares by SMB since High Sierra

Since I updated to High Sierra (directly to 10.13.1) I can't connect my iMacs and MacBook any more by AFP protocol, so I tried SMB. open 'smb://user:password@S/Share' :: works, but shows Finder on the screen. Another problem is that I can't choose the mount point's name. I work from JAVA applications and thus should work from the command line: mkdir /Users/user/Volumes/Share/ /sbin/mount -t smbfs //user:password@S/F /Users/user/Volumes/Share/ But this gives: mount_smbfs: server rejected the connection: Authentication error What did I do wrong or forgot about? Thanks in advance. ;JOOP!

macos - why I can do ssh connection without generating a ssh public/private key first?

My advisor has opened ssh access for me to his machine. From my machine (mac OSX), I type ssh username@hisMachineIP and enter a password, I can connect to that machine. But on my own machine, in the ~/.ssh directory, there is only one file known_hosts , but there is no id_rsa and id_rsa.pub files. I remember that I didn't generate ssh key, so these 2 files are not there is not superising. My question is that, if I didn't generate ssh key and give the public key to my advisor, how can I connect to his machine? I did see some message the first time I connected to his machine, but I didn't remember what it is? If I now generate a ssh key, would it break my access to my advisor's machine? (i.e. Do I need to give the generating public key to my advisor?) Answer In an out-of-the-box OpenSSH server configuration you can log on with two options: Username and password authentication Username and key authentication You are using the first type, which is enough for a default

browser addons - What's the Firefox add-on to dim the whole page of a site?

I upgraded my PC and foolishly thought I knew all the add-ons that I used so wouldn't need to write them down! Basically I had an add-on that I thought was called something like 'lights out' or similar. All it did was enable you to have a little button which changed the CSS of websites with the click of a button, so that white backgrounds became grey and made the whole page dimmer. It had various different built in themes to choose from, and there was an option called 'stay in the dark' which meant whatever page was loaded in the tab you were in would continue to use one of the anti-glare/brightness themes for night time reading etc. It was a great little add on, but I can't seem to find it anywhere. The icon was a simple little light bulb with a drop down menu to select different themes. Can anyone help me find the add on please!? Answer Do you mean Blackout ? If you are browsing in a dark environment, then it is very bad for your eyes to read pages with whit

How to search for only folders in Windows 7 instead of folders AND files

I've had some issues with the new search function in Windows 7. The Search in Windows XP was packed with so many more options. The only option I can access now are Date Modified and Size. Any pointers to how to get more options in the Windows 7 Search, or links to external programs that can make my life easier? Answer From the Windows Search Advanced Query Syntax page, use the following search items: To restrict by file type Use Example ------------------------ --- ------- Folders folders kind:folders Folder name foldername foldername:mydocs

windows 7 - I can't delete a file - even when using unlocker

Ok, so when I try to delete this from my desktop, I get this error: When I click "See what's locking this" in lock hunter, I get this: Now, I have a drive, called G:. I only have one physical drive, and it's D:. Also, I have NO virtual drive software installed, so I have NO clue how it got there. Right-clicking on G:\ and chosing eject doesn't do anything but change the logo, it still says the file size and whatnot. Here's the picture of the "What's locking this?" of the contained file: But when I try to delete it... Both of these files don't let me delete them. I had put win8install.iso as a virtual drive a while back, but I uninstalled that software (but can reinstall it if needed) Starting this in safe mode doesn't work. Answer Get a Linux Live Cd , and get gparted, systemrescue or parted magic (any release would work, but a small distro for something quick). Burn it to cd/usb, and boot your computer to it. Mount the hd, and find the

How to power a 12cm fan from an Eee PC 701 4G?

So I have a Eee PC 701 4G (only the motherboard!) and I don't have any cooling on it. It's a 900Mhz CPU so I think it needs cooling!! How can I power my 12cm fan from it? I tried it powering through two USB port, but the fan is too slow.. (maybe because it gives 5V and the fan would need 12V?) Answer I know your question asks re a 12cm fan, but that big may not be necessary. See how hot it gets. If you did want 12cm, you could power it from the mains/acdc. For example any USB-SATA/USB-IDE adaptor comes with a plug with something like a 4 pin molex or similar,like a sata power connector. So, either way, with 12V, and the fan can connect to that whole plug, it may need an adaptor but they're easy to get. Laptops tend to have small cpu fans. alternatively, there is this option(I see it titled mini vacuum air extracting usb case cooler cooling fan). Looks like it goes adjacent to the vent. But since you have just a motherboard you could blow it elsewhere. Just onto the hot pa

linux - How to get enable reiser4 on kernels > 2.6.38? Are there alternative FS like reiser4?

I can't find a patch for reiser4 for kernels newer than 2.6.38. How to access reiser4 on modern kernels? The only workaround I know is to use a thing like mountlo (filesystem running in UML kernel with reiser4, with FUSE interface). Are there well-supported filesystems like reiser4 (transparent compression, fast, good support for small files). With reiser4 I can store 2 VMs that is 10 GB uncompressed on 2 GB partition (plus 40% free space), I can use small individual file for each entry in some ad-hoc database (like parse big wikipedia XML dump, store each article in a separate file, then compress it again in other way). I heard somewhere that BTRFS supports compression, but metadata overhead is considerable and that it is slow, is it true?

Is there a way to configure Windows 8 start screen to return to a running desktop App rather than launching a new one when I click a tile?

I find myself going back to the home screen naturally rather than going for the ALT TAB. Then if I click the desktop app shortcut tile it takes me back to the desktop and launches a new window/instance. It seems like this is already the perfect UI to simply take what once was task bar tabs and put them as tiles. Then I could see the current state of my desktop app in the tile, and clicking the tile would restore it to the focus. Not sure why they went half assed, keeping ALT-TAB and leaving the desktop apps out of the tiles interface, rather than just allowing me to full screen a desktop app as a tile. Thus I am wondering if there is something I can do to the short cut tile to make it go to a running desktop app rather than just being used for launching anew.

power management - Windows 7 RTM: Loopback SMB over TCP/IPv6 connection preventing sleep mode

I'm running Windows 7 RTM with homegroup, network discovery, file and printer sharing, public folder, media streaming and Windows Media Player Network Sharing Service all turned off, but the computer still doesn't go to sleep. powercfg -requests shows this: PS C:\Windows\system32> powercfg -requests DISPLAY: None. SYSTEM: [DRIVER] \FileSystem\srvnet An active remote client has recently sent requests to this machine. AWAYMODE: None. Running ipconfig /release doesn't help, and netstat -n -o -b shows this: PS C:\Windows\system32> netstat -n -o -b Active Connections Proto Local Address Foreign Address State PID TCP 127.0.0.1:27015 127.0.0.1:49179 ESTABLISHED 1616 [AppleMobileDeviceService.exe] TCP 127.0.0.1:27015 127.0.0.1:49181 ESTABLISHED 1616 [AppleMobileDeviceService.exe] TCP 127.0.0.1:49179 127.0.0.1:27015 ESTABLISHED 3976 [iTunesHelper.exe] TCP 127.0.0.1:4918

Delete all private queues in MSMQ?

Is there any way in MSMQ to delete all private queues? I have thousands of private queues on my computer, I'm fairly sure most, if not all, of them, are caused by a badly behaved app that creates a new queue with a random GUID for its name every time it starts up. Now I want to create a couple of other private queues to do some work with MSMQ, I'm finding that the thousands of unused existing queues are not only cluttering up the view when I open Private Queues in the Computer Management tool, but I suspect they are the reason why opening Private Queues in Computer Management takes ages on my machine. I can delete individual queues by just selecting one and hitting delete, but there doesn't seem to be an obvious way of selecting a range of queues to delete together. Answer I'm not sure of the version of Windows you're using but I'm assuming you have MSMQ 3.0 installed. That being the case, you can query all your private MSMQ objects using VBS and calling the P

cmd.exe - Space in doskey/alias for windows?

I try to run Laravel's Artisan command inside the (docker) container by defining a doskey alias. My idea was: php artisan=docker-compose exec apache php artisan $1 However it does not allow me to use a space in the key. Any idea how to achieve this? edit I have made a little GUI tool for Windows to run the commands https://github.com/thomasmoors/DockerArtisan Answer I must in this case give a negative answer - using blanks in a doskey name is impossible. Doskey was created for the Command Prompt (cmd), so is rather simple in concept. This is impossible in my opinion since : In a doskey command such as doskey a b=ab , it takes "a" for an invalid option The doskey command does not accept quotes around the macro name. Here are some tests I have run : As you can see, some special characters are accepted, but just not blanks. Even without blanks in the macro name, doskey is an old DOS program and can only work in PowerShell with difficulty. It conflicts with the PSReadLine

Install Internet Protocol Version 4 (TCP/IPv4) on Windows 7

I can not explain what has happened, just suddenly I lost my internet connection. On local area connection properties IPv4 is not installed, my ISP says that they only support IPv4. Then I must had it because I had connection before. What could happen to lose IPv4? And how to install it back? Thank you. Answer way 1: Run cmd as Administrator. Run command: netsh interface IPV4 uninstall Wait 2-3 minutes, run: netsh interface IPV4 install way 2: Run cmd as Administrator. Run command: resets WINSOCK entries to installation defaults netsh winsock reset catalog resets IPv4 TCP/IP stack to installation defaults: netsh int ipv4 reset reset.log or netsh int ip reset reset.log need reboot way 3: Run ncpa.cpl as Administrator. Right-click the network connection which you are using, and then click Properties. Click on Internet Protocol TCP/IPv4. Click Install then. Click Protocol, and then click Add. Click Have Disk. Type the location as %windir\inf% , example: C:\windows\inf and then click

linux - CentOs 7.1 - Install Tomcat 8

I am using this tutorial as a setup reference to getting a Tomcat 8 running on CentOs 7.1 , but after typing: [root@localhost tomcat]# sudo systemctl start tomcat I get the error: Job for tomcat.service failed. See 'systemctl status tomcat.service' and 'journalctl -xn' for details. systemctl status tomcat.service prints the following: [root@localhost tomcat]# systemctl status tomcat.service tomcat.service - Apache Tomcat Web Application Container Loaded: loaded (/etc/systemd/system/tomcat.service; disabled) Active: failed (Result: exit-code) since Wed 2015-11-25 16:54:33 CET; 1min 19s ago Process: 45873 ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=203/EXEC) Nov 25 16:54:33 localhost.localdomain systemd[1]: Starting Apache Tomcat Web Application Container... Nov 25 16:54:33 localhost.localdomain systemd[1]: tomcat.service: control process exited, code=exited status=203 Nov 25 16:54:33 localhost.localdomain systemd[1]: Failed to start Apache Tomcat Web App

dvd - How to convert or burn a .DMG image file on Windows?

What software can be recommended to burn a Mac created .DMG file on a Windows operating system? Ideally it should be free, or at least reasonably priced. Or, as an alternative, an application convert it to .ISO or something equivalent? I'm looking for reassurance I won't be wasting several (more expensive than normal DVDs) dual layer DVDs to get this done right. As the .DMG file is 7 GB. Answer Personally, I like MagicISO .

Epson LX-310 not working after Cumulative Update 2017-11 Windows 10

I have Windows 10 Pro x32 and an Epson LX-310 printer that was working. Yesterday, Windows 10 automatically updated with 2017-11 Cumulative Update for Windows 10. Today, I cannot print. The printer status is on. When I click "Print a test page", it quickly says the test page has been sent but the printer does not print it. My printer is connected to a USB port. What wrong with my Windows 10? Answer You must uninstall the Windows Update with one of the following KB entries (depending on your version of Windows 10): KB4048955 (Windows10 Version 1709) KB4048954 (Windows 10 Version 1703) KB4048953 (Windows 10 Version 1607) KB4048952 (Windows 10 Version 1511) KB4048956 (Windows 10 Version 1507) KB4048957 (Windows 7) KB4048958 (Windows 8 and 8.1, Windows Server 2012 R2)

Download arbitrary file with Google Chrome

Google Chrome starts downloading a file automatically after you click on a download link. However if this file is pdf or wmv then instead of downloading a file it opens it with browser's pdf reader (pdf) or plays it (wmv). Can you force Chrome to just download an arbitrary file? I don't want to turn off the default behaviour altogether because most of the time it's what I want. But sometimes I want to download a file rather than to open it in a browser. EDITED PART: What when the url to a file I am interested in downloading comes from my windows clipboard? Answer Right click the link and click "Save Link As..." EDIT: To follow up on the need to download arbitrarily from clipboard, I would just create a generic HTML file and use the above solution. Save as mylink.html to file system somewhere. Open in Chrome. Link

microsoft excel - How to get a list of keyboard shortcuts that I use for my macros?

I know I can find a list of standard keyboard shortcuts of excel in google or through Microsoft Office Help. But I have overwritten some of them (I wasn't using them) to assign for some of my macros that I use often. Now I don't remember exactly which ones I had overrode and I don't want to overwrite any existing useful ones, either. I try to execute a combination of shortcut to see if it is already in use and what it does. But depending on your file/data, testing it sometimes would do nothing, even though that particular combination of keys are already assigned as a shortcut, so it isn't a guarantee way. Isn't there any place in excel that I can just get the list of the active keyboard shortcuts? Excluding QAT (Quick Access Toolbar) shortcuts, of course. Answer There are few possibilities: Create Macro to link any standard URL all about KB shortcuts. Link a self created PDF file contains KB Shortcuts, with Macro. Copy & Paste KB Short cuts in any PDF file a

linux - Why is port 1111 open, and is it safe to be?

I'm new to systems administration and have a server running a website with HTTP (at port 80), HTTPS (at port 443) and SSH (at port 22). I'm running Ubuntu 11.04. I did an Nmap port scan using my personal laptop and other than these 3 ports, port 1111 was open too. This was the output: 1111/tcp open tcpwrapped I then did: sudo netstat -lntp | grep -F 1111 ...and got the following output: tcp 0 0 0.0.0.0:1111 0.0.0.0:* LISTEN 21596/monit Monit appears to be a monitoring tool in Ubuntu. Should I be concerned about this? How do I determine the purpose of port 1111? How do I close it if I need to? Answer According to this reference: Because protocol TCP port 1111 was flagged as a virus (colored red) does not mean that a virus is using port 1111, but that a Trojan or Virus has used this port in the past to communicate. So, it could be a virus/trojan. I would recommend you to use Net Activity Viewer to determine what process/service is keeping this port on listening state: After th

laptop - Is it possible to use three screens with Intel HD 3000 integrated graphics?

I'm getting a new Lenovo T520 with Intel integrated graphics. Is it possible to use three screens with Intel HD 3000 (the laptop internal screen + two external screens)? Answer No, according to Intel's FAQ on the HD 3000 integrated graphics: No. Intel® graphics products can output to one or two display devices at the same time. More than two display devices can be physically connected, but only two display devices can be used at any time. However it seems you can use a splitter to "clone" a third monitor. Some customers report being able to use third-party video splitter devices to allow output to more than two display devices. Intel has not tested these configurations nor can make recommendations on these third party devices. Keep in mind cloning only mirrors exactly what is on one of the two monitors it will not be an independent third monitor.

Resource Editor for Windows Applications to replace Icon , open source, quick and simple

I am using Windows XP, Windows 2003 and Windows 2000. Each application has a primary icon that is displayed in the taskbar and on the desktop and in the application window. The icon lives in the application files. Can you name a simple and preferably open source resource editor that allows me to quickly and simply replace the icon. Would be great if it is a "one click solution" that does the necessary steps transparent in the background, so not much internal knowledge of windows specifics internals is necessary and icons can be replaced quickly. If it is part of a bigger software development tool (like compilers) it should be possible to extract just the resource editor and deploy only that to the machines where I work without installation hassle. There is "Resource Hacker" which seems to do the job but is no longer maintained There is "eXeScope" hp.vector.co.jp/authors/VA003525/eimgexe.htm which is not open source and not free and also not maintained EDI