Skip to main content

Posts

Showing posts from March, 2015

How can one disable automatic re-adding of an unwanted keyboard layout in Windows 10?

Canonical question: One has a Windows 10 installed with display language A, but uses keyboard layout B. What does one need to do, to stop Windows from automatically adding an unwanted keyboard layout from language A to one's system? My example: I have a Windows 10 in English and I'm using a Slovenian keyboard layout. And this is working just fine, until I run a certain program that Windows ever so intelligently thinks needs an US keyboard layout. Windows adds this unwanted layout automatically, switches to it and doesn't remove it afterwards. The new layout isn't even listed in installed layouts. The only way to remove it after it appears, is to manually add it as a keyboard layout and remove it. It seems that's a common problem for many people but after many hours of googling, I just couldn't find a good solution for it... It would be perfectly fine with me if I could just completely remove the US keyboard layout from my system, but if I do that, the keyboard...

linux - How to prevent sudo users from running specific commands?

I have a very sensitive network setup and I really dont want to mess up with it. My network consists a bunch of users who are with sudo privilege. I want to stop them from running service NetworkManager restart service network restart commands. Is there any way I can achieve this? Answer There are 1000 ways to run service network restart without doing sudo service network restart . Here is an example of what a naughty user might try: $ echo "service network restart" > /tmp/hax $ chmod a+x /tmp/hax $ sudo /tmp/hax If you provide users with the ALL command alias, and then try to create a blacklist, they will always be able to find a way around it. Blacklist bash, and they will use python. Blacklist python, and they will use Perl. Blacklist Perl, and they will use PHP. Nobody wants that! If you really don't want someone to do something, you should do as Thomas says, and create a whitelist of things they are allowed to do. An example of a small whitelist with an exclu...

browser - Firefox modifying google searchplugin to not country redirect

I'm trying to modify the google.xml file in the browser/searchplugins folder in a way that it won't country redirect anymore. For example, to always reach the german google site, I have changed the last lines of the google.xml to this: ...... At first, after restarting firefox, it didn't seem to have changed anything, however the next day when I started firefox, the changes seemed to have taken effect, because when I tried to google something, an Error Message was displayed aka "Uknown URL /ncr/search". I now would like to know, how I can FORCE FF to reload the plugin immediately so I don't have to wait one day to test each change I made. Also it would be nice to know of course, how I need to modify the google.xml correctly. Answer Doing more research, I found out that FF can be forced to reload modified searchplugins by deleting the search.js in %AppData%\\Mozilla\\Firefox\\Profiles\\[ID].default\\ or the linux equivalent folder. To actually get google ...

windows 10 - How can I free up space taken up by an incomplete Microsoft Store download?

Yesterday, I purchased a game (The Outer Worlds) via the Microsoft Store. I began downloading and installing it via the UI. At the beginning of this process, I was informed that I'd need some relatively large amount of free space (about 24 GB). That was fine, I had 32 GB free on my C: drive, so I clicked OK and started downloading. The download was very large and I was unable to finish it that night. I clicked "pause" and shut down my computer, expecting the download to resume when I re-opened the Microsoft Store UI (the same way that, say, Steam will resume an interrupted download). This didn't happen. Whoops! Instead, I'm now prompted to install The Outer Worlds fresh, with no acknowledgement that I've already partially downloaded it. More worryingly, the amount of free space detected by Windows on my C: drive is now much lower . I'm guessing that the space allocated for my first attempt at downloading the game is still reserved, but I've been unable...

networking - How would I go about knocking someone off my home internet?

Is there a way I can see who is accessing the internet on my network and block them? I am connected through Ethernet and there are 2 laptops connecting though the network via wifi, and it is the wifi users I would like to block. Answer I guess who is accessing is connecting with wi-fi so if you have a router, you could change the password to access the wi-fi. Additionally, you can enter in admin mode on the router, look at the machines connected, black list them or fix their IPs (giving allways the same one) and block the IPs in the firewall. These 1st steps will probably solve the problem.

motherboard - How do I know when my on-board ethernet is dead? (Realtek 8112L LAN controller w/ AI NET2 )

So I have an ASUS P7P55D-E Pro motherboard. It has an on-board Realtek 8112L LAN controller w/ AI NET2. I suspect that my LAN controller is dead but I don't really know for sure. This is what I know thus far: Everything was working, I have a triple booted system and ethernet was functional under Linux, Win7, and OSX. My ethernet is no longer functional under all three of the operating systems. I was experiencing random momentary internet outages before everything finally went dark. I don't know much about the AI NET BIOS tool but I believe it just checks for ethernet problems before you boot into an operating system. In any case, it doesn't find a connection upon boot. I've checked the connection on a couple of other machines and everything worked fine. I think I already know the answer to my question, but are there any other possible explanations, or is it dead? Answer Try reseting the CMOS by removing the battery or jumper method (moving the jumper from pins 1-2 to ...

windows - All File And Printer Sharing Doesn't Work, Error 0x80070035 on Access, Any Network, Any PC

I am experiencing a problem across all of my Windows 10 devices (and, previously, Windows 7 devices) -- basically, any attempt to access a Windows network share over the network ends in Error 0x80070035, "Network Path Not Found". There are three PCs in play here, two running Win 10 Home and one running Windows 10 Pro. The Win 10 Pro machine previously ran Win 7 Ultimate as well as Linux Mint and I encounter errors if I attempt to use them too. (Though, I remember Win7 working a long time ago) Strangely, all the computers affected can see each other in Network Neighborhood! Note that I have been able to transfer files via SMB when both sides of the connection are powered by Samba or a really old version of Windows. But if that side is running a recently patched version of Windows with what I think is SMBv3, then life is 0x80070035. Most frustratingly, just yesterday a brand new laptop arrived and it too displays this issue. I've done extensive research on 0x80070035, and ...

hyper v - "windows hypervisor platform" is missing

I bought a new laptop with AMD ryzen 5 processor and soon I found that I'll have to enable "Windows Hypervisor Platform" to emulate android system(in Android Studio) but that option is not at all present in my windows.(Hyper-V is present but not Windows Hypervisor Platform) I've windows updated to latest version still that option is missing. How to enable that feature or what to do to make x86 android system emulate?

How does Windows Actually Handle File Associations?

I have a problem with file associations. My C# application can set the file association for its own extension so that users double clicking the project file it uses will open my app and load the file. This causes problems with two third party components. Each use licensing. When using the double click, the license dialogs for both components appear. When running the app from the executable this does not happen. If I drag the appropriate file onto my app shortcut the app starts with the file and no license dialogs appear. Therefore I have to conclude that the problem is in the way Windows executes the file association action. The folks who create the license code have told me that the problem is likely to be that the executable name got changed and the license code rejects it. I can only assume that this relates to the argument containing the file name. I have tried to catch the code execution via breakpoints in my code but I can't get it to happen even if the breakpoint is on the f...

How to repair .NET framework 4 installation on Windows 8

My mscorlib.dll seems to be corrupt. I tried reinstalling from the standalone .NET 4 installation package, but .NET 4 is integrated into Windows 8.1. Is there a way to repair it? I have tried System Restore and sfc. They did not work. I know I can reinstall the system, but I would like a less painful solution. Answer I manually copied the corrupt file from a different computer with the same Windows installation. It took some permission changing, but I managed to replace the file.

encryption - Decrypt SSL traffic with the openssl command line tool 7

Generating the master secret/key I followed the steps outlined in my shell script. I validated that I am passing data correctly to it by manually entering these steps several times (entering $key manually) and ultimately I arrive at the same outcome/data in this case key = decrypted pre master key from previous step 03033ab0d673caefc4a9f6d35cf51d349815d67a09ac454f11dfb9741c96001a 66a3e82f688b82138403018384cf35f2 mseed.key = "master secret" + client.random + server.random The file is a binary file when I use that the hexdump xxd -p mseed.key so you can see the data: 6d617374657220736563726574 5b689404b500456eef2f1a79ec782eb3ee aac3a8d7c02ae03c8426f363b18a33 5b6894043bb1289e158b0278ef66dc 53c9fa71e75e900739af2657cd4476ec1e Note: the spaces are not in the data I added those manually to make it clear client.random xxd -p crnd.bin 5b689404b500456eef2f1a79ec782eb3eeaac3a8d7c02ae03c8426f363b1 8a33 server.random xxd - srnd.bin 5b6894043bb1289e158b0278ef66dc53c9fa71e75e900739af2657cd4...

display - Laptop Screen Blackout / Flicker issue; Works fine on External Monitor

Specs of machine at the bottom (Alienware m15x) Short Version: non-functioning WLED screen on laptop Problem history: Screen had been ever-so-slightly flickering (very sporadically) for the past 1-2 weeks. I barely noticed, though in retrospect it was lazy of me not to check that out or be concerned earlier. Then last night (6/18), with multiple programs open and while on Skype, the screen flickered, went black, and would not come back. I could still alt-tab and hear ambient sounds of various programs, and my Skype chat was still live. Eventually I gave up and turned the machine off. Upon turning it back on, it seemed to start as normal, I could hear Windows noises signifying I'm on the password screen, nothing sounded weird with the hardware. But nothing shows up on the screen. I tried removing battery and doing a few basic things to no avail. Eventually I tried using a VGA plug into an external monitor, which works perfectly. As I was checking my email and typing, I noticed sudde...

How does parity work on a RAID-5 array?

I'm looking to build a nice little RAID array for dedicated backups. I'd like to have about 2-4TB of space available, as I have this nasty little habit of digitizing everything. Thus, I need a lot of storage and a lot of redundancy in case of drive failure. I'll also essentially be backing up 2-3 computers' /home folders using one of the "Time Machine" clones for Linux. This array will be accessible over my local network via SSH. I'm having difficulties understanding how RAID-5 achieves parity and how many drives are actually required. One would assume that it needs 5 drives, but I could be wrong. Most of the diagrams I've seen have only yet confused me. It seems that this is how RAID-5 works, please correct me as I'm sure I'm not grasping it properly: /---STORAGE---\ /---PARITY----\ | DRIVE_1 | | DRIVE_4 | | DRIVE_2 |----| ... | | DRIVE_3 | | | \-------------/ \-------------/ It seems that drive...

linux - Two keyboards on one computer. When I write with A I want a US keyboard layout, when I use B I want Swedish. Possible?

I have a laptop which I use an external keyboard with. When I type using the external keyboard I want to use a US keyboard layout, since that's the type of external keyboard I have. On the other hand, when I type using the integrated keyboard I'd like to use a Swedish layout. Is this possible? And how would I go about doing it? I'm asking here as I think we'll find most Linux expertise here.

Why do some USB extension cables have an extended shroud at the female end?

Some of the USB 2 extension cables in my collection have an extra sheath or shroud at the female end, with the type-A socket recessed inside by a few millimeters. Is there a reason for this? Is it standardized or documented anywhere? In the attached photo, from left to right, the type-A socket is, Flush with the sheath, works with all plugs and devices. Recessed about 3mm, works with most plugs and devices. Recessed about 5mm, works with very few plugs and devices. The cable lengths are approximately 32in, 16in, and 20in, respectively. They are passive extension cables. Answer USB 2.0 extension cables are illegal from USB specification standpoint. This is because the extra imperfection along USB 2.0 transmission line causes massive degradation of signal integrity. So no test procedures nor acceptance criteria are there, and anyone can craft whatever they feel. There are more variants of overmolds, like this one below. Use at your own risk. Works fine for me though.

video - MacBook Pro (with DVI) to HDMI, including audio - possible?

I have a MacBook Pro with DVI. I'd like to hook it up to my living room TV for movies and such but I want to keep it out of the way. I already have HDMI cables run to the basement where I have a cable box. Is there something I could you to connect the MBP video and audio to HDMI so I only need the one cable to the TV? I'm looking for a quality picture but I don't want to spend a ton of $. I've googled a bit, but I'm looking for some recommendations. Answer To get both the audio and video into one signal will require circuitry. I had a friend in your situation, except he had a newer MBP that has Mini DisplayPort. He ended up going with this from MonoPrice. He has excellent results with it. I don't see the same for DVI+Audio to HDMI, however, or they are much more expensive, e.g. here . This however looks promising for you - you would need a TOSLink miniplug adapter to get digital audio out of the MBP's 1/8 stereo jack.

HP Printer odd behaviour in Vista Home Basic

I Have a HP 1018 printer. In my previous PC (with vista home premium) it worked just fine, and still works. In my new PC, which came with vista home basic, the printing almost never works. What happens is as follows 1 - I install the printer, windows says its ok. 2 - I send a document to print. 3 - Printer screen (spool) shows the document for 1 or 2 seconds and then it disappear. For two times it worked after numerous reinstallations, and after I restart my computer it stop working again. Any Ideas?

Is there a "save desktop icon arrangement" option in windows?

I normally work on Windows with a 1600x1200 or similar large desktop screen and have my icons laid out just perfectly so. Every now and then I need to hook up to a projector or do a WebEx at 1024x768 or the ungodly 800x600 to do a demo/presentation/online meeting only to find after the meeting when my desktop size is restored that all my icons are scrunched up into a big mess in the top left corner. Is there a way I can "save" the layout before I start something that will resize my desktop? If not, I noted (from the Related Questions when I composed this) that Stardock has a tool called Fences , that does a swell job of grouping icons etc. Before I install it, does anyone know if it is "protected" from these screen resizes? or would it still squish the desktop, just not as badly due to the grouping? Answer Windows actually has this ability built-in, but it's not in the UI anywhere by default. http://snipplr.com/view/5295/saverestore-desktop-icon-layout/ Save t...

Excel: Delete row if cell in certain column is blank?

I am a complete newbie to Excel so please excuse me if this is something easy to do. I have looked through a lot of options but couldn't find what I needed. Basically, I want to delete all of the rows that don't contain a value in column C. How would I go about doing this? I am doing this manually right now for 5000+ products and it's driving me insane.

Remove file type associations in Windows 7

I have set up a custom file association for .cfg to open in WordPad , but I can't seem to figure out how to remove it. How do I remove file associations in Windows 7? Answer From a command window, you can use the "ASSOC" and "FTYPE" commands to add/edit/delete file type associations. C:>assoc /? ASSOC [.ext[=[fileType]]] .ext Specifies the file extension to associate the file type with fileType Specifies the file type to associate with the file extension Type ASSOC without parameters to display the current file associations. If ASSOC is invoked with just a file extension, it displays the current file association for that file extension. Specify nothing for the file type and the command will delete the association for the file extension. and: C:>ftype /? FTYPE [fileType[=[openCommandString]]] fileType Specifies the file type to examine or change openCommandString Specifies the open command to use when launching files of this...

cmd.exe - Windows 10 high CPU usage unless task manager is opened

A desktop gadget I am using indicates 100% CPU usage. But every time I open Task Manager to find the cause, it suddenly drops to 10-15%. If i close it, it spikes back to 100%. Also Command Prompt is not working as expected. When I launch it, it closes by itself within a second. Dr.Web CureIt! and Malwarebytes do not detect anything. What's the problem?

microsoft excel - Execute SQL Query with VBA and fill sheet with data

Very new to any form of code. Attempting to run a script in VBA that will pull data from an access database using SQL and put it into an excel spreadsheet. Code is similar to below. Runs clean but I don't know how to use the data it is pulling. Thanks in advance. Sub Get_Data() Dim cn As Object Dim rs As Object Dim strFile As String Dim strCon As String Dim strSQL, strInput As String strFile = "S:\Location.Database.accdb" strCon = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" & strFile Set cn = CreateObject("ADODB.Connection") cn.Open strCon strInput = InputBox("Input Desired Name") strSQL = "SELECT NAME, Location WHERE NAME =""'strInput'"";" cn.Execute strSQL cn.Close Set cn = Nothing End Sub Answer You need to fill your recordset object (That's the rs variable you declared). I have changed the code below to do just that. You can then copy the results from the recordset directly into a rang...

5 pin DIN KeyBoard. System not booting

I have a BIW1B ver 1.0 mother board with 5 pin DIN key board Port. But now it is not working. I replaced a new port and soldered it back. Still no response. It does not have any ps/2 port or usb port. may be some connector on the board, but I could not locate it. But there is a serial port to use serial mouse. Can we use this serial port for both ps/2 KB & MS. Please guide me.

windows xp - Disk Read Error whenever i install XP pro

I have a computer which has a raid 0 with 2 hard drives When i installed Vista on the computer it worked fine, saw the raid setup and allowed me to install quickly But like most people i hated vista so i decided to install XP Pro instead, this involved me having to get a RAID & SATA driver floppy for it to recognise my hard drives The Install goes fine, but when the computer restarts it always comes up with Disk Read Error I have used 3 copy's of xp and none of them have worked always comes up with the same error, but when i installed Vista back on it works fine Answer Try integrating the SATA/RAID drivers directly onto the XP installation disc with nLite . That way, you won't have to hit F6 to install the drivers from the floppy, but if for whatever reason Windows needs the drivers during the install (e.g. before the first reboot when it is copying the files), it has them. I know many will be skeptical of this idea, but I highly recommend you give it a shot - it solved a...

microsoft access - Active content security warning in all files

Every time I open a *.mdb or *.accdb file I get the yellow Message Bar with a text in Spanish that translates as: Security Warning: Some active content has been disabled. Click for more details. ... and a button labelled «Enable Content». Here's a screen-shot I found of the English version: The button makes the bar disappear and seems to remember my decision for current file. The "more details" link opens the "File-> Information" panel where I can read that " VBA Macros " were disabled. The problem is that I'm not getting this warning for specific files: I'm getting it from all files , including those that apparently have no macros at all (the "Database tools-> Visual Basic" doesn't show any code). Even if I go to "File-> New" and create a blank database, the warning pops up when I open it. My questions: Is the warning supposed to show up always no matter the file contents? If not, where can I find the VBA mac...

performance - Intermittent massive graphics slowdown (25fps->1fps)

I'm seeing the following frustrating behaviour with my home PC (running Windows XP Home; dual 2GHz CPU, 2 GB RAM, NVIDIA GeForce 8400 GS graphics card). I'll be doing some fullscreen application - usually a game - which has been running at a perfectly respectable frame rate for a while, perhaps 5-10 minutes. Then, with no visible cause, it'll suddenly slow down massively, displaying only 1-2 frame a second, and holding up processing correspondingly. As you can imagine, this makes most things pretty much unusable or unplayable. If I do persist with trying to use it, then after 5 or 10 minutes, it'll suddenly recover and return to full speed. But after another 10 minutes or so, it'll do the slowdown again. This happens with several different games, all fairly recent ones. It doesn't happen when running games in browsers, even if they hit performance issues. Nor does it happen on video playback. Forcing the app or game to change screen resolution does fix the issu...

How to allow Chrome (browser) to load insecure content?

Google Chrome, by default, blocks insecure content on secure pages. Is there any way to allow it to load the full content and have it ask me (like Firefox does)? Even if it doesn't ask me and just loads it that is OK with me. Answer When you visit a secure page with insecure content, a shield icon will appear at the right edge of the omnibar. Click on the shield icon, and then click Load anyway , and the insecure content will be loaded.

macos - MacOSX - Is it possible to have two internet connections on the same computer?

I have a Mac and I connect to the web using my cable modem. But I have access to a wifi connection that could give me a second web access. I can enable both on system preferences, but when I access the web, the iMac uses the wifi. Each of these connections gives me 30 Mbps. I was wondering if there was a way to have both enabled and have a sort of 60 MBPS super connection... is this possible? I mean, to combine two accesses and have one big connection? Answer Leo Notenboom wrote an article on the matter a few years back it seems. It should describe to you why this is somewhat pointless. TL;DR: Expensive, not the purpose of these technologies. If you want faster downloads, DownThemAll! is your friend.

windows 7 - Default Program With Multiple Versions Installed

I have multiple versions of Excel installed. Excel 2010, 2007 and 2003. I have them installed on one hard drive with Windows 7 Ultimate as the OS. When I double-click on an XLS file, Excel 2007 opens. I would like Excel 2010 to open. I read and followed the instructions to go to the Control Panel at "Control Panel\All Control Panel Items\Default Programs" and set the default programs. I changed the default to the physical EXE for Excel 2010 at the proper folder that it is installed. When I double-click on the XLS files, Excel 2007 still opens. So I tried to change it to Excel 2003 just to see if it changed to that and it still opens Excel 2007. What am I missing? I would really like the file extension to open Excel 2010, but can not seem to do that. UPDATE: I've also investigated Registry settings for this and still cant seem to get Excel 2010 to start as the default program for XLS files. Not even CSV files, it defaults to Excel 2007.. Anyone?

Windows 10 modern-ui apps wrong language

I've installed Windows 10 official release (not the preview) from Windows 7 Ultimate SP1 and I've some problems with the language. My OS is in French but all my modern-ui apps (weather, store, calendar,...) are in English. I've W10 Professional and I precise that when I had W7, I had to set default language to French after the installation (this was an english version of Windows). Have you some ideas ? Answer I've solved my problem by putting in the languages settings the French language at the top. After some restarts all my modern ui apps are in French.

cpu - Quad cores have lower processor speed, are they still better?

So, I am looking at building a new laptop. Two examples of the processors I am looking at are: Intel® Core™ i7-740QM Quad Core 1.73GHz 6MB Intel® Core™ i5-520M Dual Core 2.40GHz 3MB Now I realize that one has more cache that the other, but that is a significant difference in clock speed. If I take the cache out of it the equation, which is faster? For example: If I am running a non-multithreaded app, is it going to run slower on the Quad core (1.73 GHz) than on the Dual Core (2.40Ghz)? Answer There is no one answer fits all. If you are running a lot of other programs, the more cores the better. If not, having a higher base speed may be better. As for raw benchmarks, The i7 740QM @ 1.73GHz is rated at 3634 Whilst the i5 520M @ 2.40GHz is rated at 2341 So, the I7 as you would expect is a higher performance processor. There are other factors such as FSB/DMI/cache to look at which can dramatically affect the speed of the processor.

High latency/ping to local gateway WHILE STREAMING [wireless]

Recently I've become fed up with my wireless internet and want to identify the problem. I don't have a patch cord yet to test a direct connection but so far every computer I've tested has reported high latency while trying to ping the wireless gateway (192.168.0.1). Here is a ping test result on the computer I'm at now: http://pastebin.com/JQj2dPy6 Keep in mind my desktop computer is currently streaming a 1080p live stream from Twitch. Is this the sole reason my gateway is taking so long to respond? My connection to the WAN is set at 30Mbs download and 5Mbs upload, so why would a 1080p stream (estimating 10Mbs download) slow down my local network? Here is a picture from inSSIDer 2.1 showing the wireless networks in my area. Everyone is stacked on channel 6 with one network on channel 11 while MINE is alone on channel 1. Any ideas or help is appreciated!

Windows using too much RAM, how to diagnose resource hog

I have 16GB of system RAM. On startup with no applications open except the task-manager Windows is using about 3gb of RAM. I looked in the processes tab, but nothing seems to be out of the ordinary. How can I find out why my Windows is using so much RAM. all processes from all users Reading from the poolmon it seems that my wireless broadcom driver is using about 0.4GB of of RAM. Even if I remove it would still be using 2.6GB on start-up, which is still too much. After reinstalling the wireless driver associated with the memory leak. I have a new screenshot and would like to confirm that it was indeed a memory leak. Answer You have a memory leak caused by a driver. Look at the high value of nonpaged kernel memory. In your case this is over 3.7 GB. You can use poolmon to see which driver is causing the high usage. Install the Windows WDK , run poolmon, sort it via P after pool type so that non paged is on top and via B after bytes to see the tag which uses most memory. Run poolmon ...

How to delete a file ending in a dot in Windows 7?

After installing Cygwin on Windows 7 and realizing I'm better of with using Linux on a different partition, I wanted to uninstall it. However, Cygwin has no uninstaller so I was left with the option of deleting the whole folder it was installed in – which I did. The problem is that a single file remained, in the whole directory tree, named README. at C:\cygwin\usr\share\texmf-dist\doc\latex\hausarbeit-jura\README. I know Windows isn't supposed to allow files with names ending in . , but this one obviously got through, and I cannot delete it. When trying to do that, I get Item Not Found This is no longer located in C:\cygwin\usr\share\texmf-dist\doc\latex\hausarbeit-jura . Verify the item's location and try again. When viewing the properties of the file (Right-click, Properties), Windows tells me that it has 0 bytes. However, when viewing it in the explorer window, and clicking on it, the windows status bar thing tells me it has 517 bytes. Any ideas on how to get rid of it?...

networking - Why is my connection refused when port-forwarding?

This question is related to this: Application / Device setup for remote network connections I have a 2wire 3801HGV router and I made some firewall settings to open some ports on one of my connected devices. So now actually it will say: Pinholes external pin-holes (186 available): pinh[0]: id 5, proto 6, sess tout 86400, pinh tout 0, arg 0 natpt|user l: 192.168.1.253:80, n: **.**.***.**:80 pinh[1]: id 6, proto 17, sess tout 600, pinh tout 0, arg 0 natpt|user l: 192.168.1.253:80, n: **.**.***.**:80 pinh[2]: id 7, proto 6, sess tout 86400, pinh tout 0, arg 0 natpt|user l: 192.168.1.253:9000, n: **.**.***.**:9000 pinh[3]: id 8, proto 6, sess tout 86400, pinh tout 0, arg 0 natpt|user l: 192.168.1.253:18004, n: **.**.***.**:18004 pinh[4]: id 9, proto 17, sess tout 600, pinh tout 0, arg 0 natpt|user l: 192.168.1.253:9000, n: **.**.***.**:9000 pinh[5]: id 10, proto 17, sess tout 600, pinh tout 0, arg 0 natpt|user l: 192.168.1.253:18004, n: **.**.***.**:18004 Of course instead of th...

Why are there so many /dev/tty in Linux?

In ubuntu 10.04, if I check under /dev, there are more than 50 ttys. tty0, tty1, tty2.... I understand tty is a character device for console input/output. but why is there so many of them? is it something like pool? and what is the difference between /dev/pts/0, 1, 2... , /dev/tty? If I open up a terminal, new number is created under /dev/pts. but I don't know when /dev/tty? is used. even if I create a SSH connection, number of /dev/tty s are same. and if I do cat /dev/tty0 and type something in keyboard, I get corresponding outputs. why is this happening? Answer The ttys are not just input/output devices. They also do a special job of acting as the controlling terminal for a session, like sending signals (Ctrl+C). /dev/ttyNN are virtual consoles, which are full screen displays on the monitor. The terminals start from /dev/tty1. You could switch to these consoles, usually, by pressing Ctrl+Alt+Fn keys. e.g, Ctrl+Alt+F1 takes you to the first virtual terminal. Nowadays, most of th...

wireless networking - Different ssid on the same channel

My friend's home wifi network was set up by the service provider, and I noticed that the (single) router is broadcasting 3 SSIDs. One of them is 5 Ghz, but the other two is 2.4 Ghz and on the same channel. I was wondering whether that makes sense. Wouldn't the two 2.4 Ghz networks interfere with each other? Answer It's probably routing a guest and private network - this is fairly common. There is an impact, but this can be managed, and it's better for the router to use the same frequencies rather then overlapping ones. (WIFI devices can manage co-ordinate sending across multiple AP's) CISCO has a nice paper on it - https://documentation.meraki.com/MR/WiFi_Basics_and_Best_Practices/Multi-SSID_Deployment_Considerations

windows 7 - Microphone volume at maximum yet too quiet

I have got a reasonbly basic desktop microphone, however for reasons that I don't understand it is extremley quiet. I dual boot, both systems run Windows 7, one system is working just fine although the other system, after I restarted the computer a couple of weeks ago, the microphone is now far too quiet. I've been through the Sound control panel. The correct microphone is selected as the default communication device. The microphone level is set to 100. The microphone is plugged into a sound card, so I uninstalled the audio card (an Asus D1) driver and reinstalled it which made no difference. If I tap the microphone, it does register 5 or 6 green bars in the recording volume monitor. So, does anybody have any suggestions on where to look next?

Convert Outlook .ost file to .pst

Possible Duplicate: Is there any way to “restore” a .pst (Outlook Personal Folder) or .ost (Offline Folder file)? Here's the situation... We outsource our Exchange hosting to a 3rd party company. We had a user leave last week and the email provider was supposed to export her mailbox to a .pst for our Help Desk (where I work). I pulled .pst file from them today and it was only 265 KB! You have to be kidding me... I have a full system backup of this users computer from less than a week ago and their .ost file is 445 MB so I know the user had email. The email provider has already removed her mailbox. I've contacted them about the problem and am waiting to hear back. My question for everyone is, how do I go about extracting email from an .ost file or is it possible to "convert" it to a .pst file? Can anyone see any other options? EDIT: This is for Outlook 2003 and Exchange 2007. Answer If you have a backup of the machine, you can fire up outlook with the 445MB OST in pl...

windows - Can winsxs be moved and if so how?

I know it can't be deleted and while there are some posts that talk about making it smaller, they have not worked for me. At this point my 18 GB winsxs folder is taking up almost half of the drive that I have the OS on. I have tons of space on other drives though - can I move it? Answer Yes, you can. Read this . Be warned: If you move it, Windows can get unstable, and BTW they'll be regenerated at some point. That 18 GB isn't real since a lot of those files are hardlinks to files elsewhere and are counted twice. I've been obsessed with winsxs starting with Windows Vista and after with Windows 7 until I gave it up. If you want to do it, I recommend to read blog post Disk Space before. Don't delete it!

shell - re-use '~/.profile` for Fish?

(I'm talking about the shell Fish , esp. Fish's Fish .) For Bash/ZSH, I had ~/.profile with some exports, aliases and other stuff. I don't want to have a separate config for environment variables for Fish, I want to re-use my ~/.profile . How? In The FAQ, it is stated that I can at least import those via /usr/local/share/fish/tools/import_bash_settings.py , however I don't really like running that for each Fish-instance. Answer My current solution (see here for a maybe more recent version): egrep "^export " ~/.profile | while read e set var (echo $e | sed -E "s/^export ([A-Z_]+)=(.*)\$/\1/") set value (echo $e | sed -E "s/^export ([A-Z_]+)=(.*)\$/\2/") # remove surrounding quotes if existing set value (echo $value | sed -E "s/^\"(.*)\"\$/\1/") if test $var = "PATH" # replace ":" by spaces. this is how PATH looks for Fish set value (echo $value | sed -E "s/:...

cleaning - Can I put keyboards in the dishwasher?

After a few years, keyboards develop a fine patina of what I refer to as "hand jam". I've heard that they can be safely cleaned in the dishwasher as long as you let them thoroughly dry out (like for a week or two). Maybe not the fancy ones with the LCD displays and what not, but the basic keyboard, yes. Has anyone tried this? Answer I tried it, failed I tried it on a Mac keyboard. It got sparkling clean but didn't work after that. I didn't use a hair dryer as others have suggested, I just let it sit upside down under my desk. On a second keyboard I popped off the keys and put them in one of those little bags for washing small things. That worked very nicely for me.

microsoft excel - IF Statement with life of contract dates, total amount and monthly write off

I am trying to create an IF Statement that based off the start date, life of the contract and Prepaid amount it will populate accordingly in the correct month. Example: start date is 7/1/2017 , amount is $911.97 and life of contract is 3 months . How do I get each month to reflect the correct monthly cost for that month if any, based on the life of the contract? If just for 3 months Oct and on should have zeroes. Example: THANKS FOR YOUR HELP!

ssh - sign_and_send_pubkey: signing failed: agent refused operation

I have tried every possible piece of command I could lay my hands on. I still get this. I spun a digital ocean droplet with ubuntu 16.04 on it. I followed the tutorial until I had to login in again as the new user. I am at my wits end trying to find a solution. This is the output if I give the command ssh-add Could not open a connection to your authentication agent.

windows 7 - How to remove a Page Break in a .docx file that was converted from an .odt file?

I recently converted an OpenOffice .odt (word-processing) file to an MS Word 2010 (.docx) file. The .odt document contained a page break. The page break appears in the .docx file in MS Word, but after an exhaustive effort (and Google search), I can find no way to remove the page break from the .docx document through MS Word. I can add new page breaks from within MS Word (and remove them) just fine - it's just this one page break that was imported from the .odt file that I cannot remove. Can someone please tell me how to remove the page break that was imported from the .odt file? Answer Try turning on paragraph marks. You then may be able to see and delete the page break. http://office.microsoft.com/en-us/word-help/show-or-hide-formatting-marks-HA010102250.aspx

windows 7 - Is there any way to enable Remote Desktop Connection with a password without setting a password on the OS?

I'm running Windows 7 and would like to use Remote Desktop Connection to connect to my home computer. As such I want to enable password security for Remote Desktop Connection, but I do not want to have to enter a password to log into my computer if I'm physically at my computer. Is there any way to do this? I am an administrator user, and I want to have the same icons and configuration regardless of if I log in remotely or locally but I want only the remote connection to require a password. I read about being able to do something similar by adding another user account, but is there any way to do it so that the same icons and settings take affect regardless of how I log in? Answer You can set a password for your account, then set autologin. To set up autologin, type control userpasswords2 into the run box (accessed by pressing  +  R ). Then, uncheck the box for "users must enter a username and password to use this computer." When you click OK, it will prompt you fo...

Windows 7 wake from sleep and UTC?

I've been having problems with windows 7 waking from sleep after one minute or so on my laptop. I also have ArchLinux installed on this computer. A while back I tried a registry tweak to get windows to use UTC so it would play nice with Linux. The registry tweak didn't seem to work and my windows clock was always wrong. Today I deleted the registry entry that I added, and the problem with sleeping seemed to go away. Can anyone make sense of this? Edit: I'm specifically wondering about the sleep problem, not so much about the clock. The registry entry I added was: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] "RealTimeIsUniversal"=dword:00000001 Answer Ok. UTS is Universal Time Coordinated, or the same as Greenwich Mean time. Keep that in mind. EST or Eastern Standard Time, which is my time zone, is -5:00 from GMT... or UTC. So, if the only clock I could see with my eyes was set to GMT, I would have to subtract 5 hours from it to know ...

linux - How to install ant 1.8 on Ubuntu 11.04 properly

I have attempted to install ant 1.8 on a Ubuntu 11.04 box using these instructions: http://www.thegeekwork.com/how-to-install-ant-1-8-2-using-ppa-on-ubuntu/ And when I list what it has installed, I get the following: $ dpkg -L ant /. /usr /usr/bin /usr/share /usr/share/maven-repo /usr/share/maven-repo/org /usr/share/maven-repo/org/apache /usr/share/maven-repo/org/apache/ant /usr/share/maven-repo/org/apache/ant/ant /usr/share/maven-repo/org/apache/ant/ant/1.8.2 /usr/share/maven-repo/org/apache/ant/ant/1.8.2/ant-1.8.2.pom /usr/share/maven-repo/org/apache/ant/ant/debian /usr/share/maven-repo/org/apache/ant/ant/debian/ant-debian.pom /usr/share/maven-repo/org/apache/ant/ant-launcher /usr/share/maven-repo/org/apache/ant/ant-launcher/1.8.2 /usr/share/maven-repo/org/apache/ant/ant-launcher/1.8.2/ant-launcher-1.8.2.pom /usr/share/maven-repo/org/apache/ant/ant-launcher/debian /usr/share/maven-repo/org/apache/ant/ant-launcher/debian/ant-launcher-debian.pom /usr/share/maven-repo/org/apache/ant/ant...

Persistent sign-in button in Google Hangouts Chrome extension; unable to log-in and use the app

A few weeks ago, I removed and re-installed the Hangouts extension for Google Chrome, and ever since, I have been unable to sign back in. Whenever I press the blue sign-in button in the extension's view tab, I am redirected to a Google sign-in page, but after signing in, I am redirected back to the blue sign-in button in the extension's view tab (???). The following attempted solutions do not work: Note that this is a personal--not a Google Apps for Business--account. Thanks in advance for your help. Answer After a little more tinkering in the Chrome settings GUI, I figured out that the issue was caused by the fact that I block all third-party cookies in my browser (I had assumed that this setting wouldn't apply to Google-made apps like Hangouts). To solve the problem, I went to Settings > Advanced Settings > Manage Content > Manage Cookie Exceptions then added hangouts.google.com and talkgadget.google.com to the exceptions list.

firefox - How to make Google Search scriptless with NoScript/AdBlock?

How to configure AdBlock or NoScript to make Google Search scriptless, but not to break multitude of pages that use Google's scripts (like if I "forbid google.com" in NoScipt) @related https://webapps.stackexchange.com/questions/13566/how-to-turn-off-googles-page-preview-in-search/13626#13626 Answer NoScript's base functionality works domain-by-domain, but the Application Boundaries Enforcer (ABE) can work on specific URLs and it's flexible enough to do what you want. Here's the USER rule I used to get decent searching without breaking the rest: Site ^https://encrypted.google.com/(s|search)(\?.*|$) Deny INC(SCRIPT,XHR) Sandbox Just add it at the end in NoScript Options > Advanced > ABE > User . The Site line matches both the page you load and the URL used under the hood for Google Instant updates, so whether the combination of Site and INC() matches on the URL of the top-level request or the request being judged (NoScript's ABE docs aren'...