Skip to main content

Posts

Showing posts from March, 2016

router - Two public IPs behind a cable-modem using D-Link DIR-300

I have a cable-modem connection to the internet and I bought a router in order to share my internet connection betwen my laptop and my PC. The router I bought is D-Link DIR-300. The first weird thing I notice after connecting all the wires and cables was that my laptop had direct connection to the internet (public IP) even though it was connected to the router (not the cable modem). After that I connected my PC to the router, and to my surprise my PC got a public IP as well (a new IP, different from that of my laptop). If I ping from my laptop to my PC (and vice versa) I get a successful response, meaning my PC and laptop can reach each other, but not through a private LAN (which doesn't exist in my case because both computers were given public IPs) but through the internet. The ping between the two computers takes about 20 ms which is clearly a ping through the internet given that a ping through a private LAN takes 1 ms or less. I also tried a D-Link DI-604 for testing, but that d

Editing or adding a custom context menu item in Firefox?

In Firefox when I highlight a text or phrase and right-click it, I noticed there's a sweet menu item called "Search Google for [highlighted text]". Now that I discovered it, I use it all the time for quick Google look-ups on things. But most of the time, I like to use it to look up a definition of a word I don't know. My question is, how can I edit that menu item (or create a new one) so when I click that menu item, it pre-fills the Google search box with "define: [highlighted text]"? And if not, how can I create a context menu-item so I can look up words on a particular dictionary site? Thanks for any insight! Answer The particular menu item you are referring to is tied directly to your selected search provider in the search bar in the upper right hand corner of Firefox. If you change your search provider to "Wikipedia" for example, you will now see "Search Wikipedia for [highlighted text]". You can find lots of new search providers on

docker - Cannot Enable Hyper-V on my machine

I'm trying to enable Hyper-V on my machine in order to use Docker. I've tried letting Docker enable it, using Windows Features to enable it, and using Powershell (as administrator) . My system is running Windows 10 Pro 64-bit and has all of the Hyper-V options enabled (VM Monitor Mode Extensions, SLAT, Virtualization Enabled in Firmware, Data Execution Protection). Windows Version: 10.0.14393 Build 14393 Processor Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 3401 Mhz, 4 Core(s), 8 Logical Processor(s) Installed Physical Memory (RAM) 16.0 GB Running this command in PowerShell (as admin) has following output: PS C:\WINDOWS\logs\dism> DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image Version: 10.0.14393.0 Enabling feature(s) [==========================100.0%==========================] Error: 0x800f0831 DISM failed. No operation was performed. For more information, review the log file. In the l

linux - How do you check how much power a USB port can deliver?

Some laptops have a special USB port that can deliver more power than the other ones. However it is not always easy to identify which one is the good one, nor how much power it can deliver. So is there a good way to figure it out? I'm open to any software or hardware solution. Answer Under Linux, you can see this in the tree of lsusb -v . Specifically, call lsusb -v |grep 'Bus\|MaxPower' to avoid excessive output. Debian / Ubuntu: Use sudo aptitude install usbutils to obtain this tool. Redhat / Fedora: Use sudo yum install usbutils to obtain this tool. Gentoo: Use sudo emerge usbutils to obtain this tool. A solution on Windows which doesn't require additional software is the Device Manager itself: Go to Device Manager ( devmgmt.msc ) Click View > Devices by connection . Click on your Machine Name , hit the * to expand everything. Look through the properties of the different USB Hubs, you can see what devices are connected. On the power tab, you get to see t

windows 7 - The specified network name is no longer available

I'm trying to transfer files from my windows 7 machine to my self built windows home server (old dell 4550). The WHS is the default install except Whiis add-on is installed. I also installed and uninstalled firefly media server add-on, and added two external usb 2.0 hard drives When I try to copy files, they will start copying then hang until I get this error "There is a problem accessing \server\folder" When I try to copy via command line, it will copy 2-3 files then say "the specified network name is no longer available" then copy a few more and repeat. this happens with the copy and xcopy command. I running a 10/100 netgear 24port switch (unmanaged) and linksys WRT54GL flashed with the tomato firmware. cat5e cables. I have already tried all the basics I could think of like changing cables ports making sure both NICs are set to auto negotiate. Mapped the share as a drive. updated all drivers. uninstalled and reinstalled drivers. Any body have any ideas?

Insert a header in a LibreOffice Writer document

I am editing a book in LibreOffice Writer. The first page is the title page; the second page is the table of contents; the third page is Page 1, and on this page I wish to create a right-justified header to read: Author's Name / BOOK TITLE / 1. Each subsequent page will have the same header text, but with pages numbering consecutively, 2 through the end of the book. How is all of this done?

networking - Merging two incoming broadband lines for faster Internet

We have a broadband line coming into our building which delivers around 8-10Mbps, which is okay but not great. Fiber is available in our area (30-100Mbps) but it's not available where we are just yet. Is there some way we could connect two lines (which we would take from two different providers so we would have redundancy if one failed) and merge them into one signal which we could distribute? Is there some sort of setup that can do this? Of course we have the option of a leased line but for 12Mbps symmetrical upload/download we'd be looking at around £500 per month compared to £15 per month for normal or fiber broadband. I made a small pseudo flow chat of the setup below: Answer This is known as Multi-Homing or Multi-WAN . Most router manufacturer firmwares don't support this, but 3rd party firmware (DD-WRT, pfsense) is capable of doing load-balancing on a Multi-WAN connection. The catch is while you can create 20Mbps of bandwidth , you cannot achieve 20Mbps of speed o

bash - Right align part of prompt

I am sure that I have seen someone have a part of their prompt aligned to the right in their terminal window and then have the actual cursor start on a second line. I know that I can achieve the second line with a "\n" in the PS1, but I cannot figure out how to align part of it to the right. Was what I saw just whitespace added between the two strings? Answer What you want can fairly easily be done by displaying the first line before displaying the prompt. For example, the following displays a prompt of \w on the left of the first line and a prompt of \u@\h on the right of the first line. It makes use of the $COLUMNS variable which contains the width of the terminal and the $PROMPT_COMMAND parameter which is evaluated before bash displays the prompt. print_pre_prompt () { PS1L=$PWD if [[ $PS1L/ = "$HOME"/* ]]; then PS1L=\~${PS1L#$HOME}; fi PS1R=$USER@$HOSTNAME printf "%s%$(($COLUMNS-${#PS1L}))s" "$PS1L" "$PS1R" } P

display - MPlayer halts when I exit the SSH session in Linux

I want to launch MPlayer via SSH and let it run (I’m a radio fan). For this I SSH to my remote machine (a Cubietruck running LUbuntu) and I issue the following command: screen mplayer -playlist .path/to/the/playlist Everything works as expected, but when I exit my SSH session the music stops altogether. After logging back in I cannot find my screen instance anymore ( screen -ls says No Sockets Found in /var/run/screen/ ) I’ve used screen with another application (such as rTorrent) and everything worked ok. Is this a specific MPlayer issue? Update: the reason I use screen and I'm not going the "nohup" way is that I want to re-gain access to the mplayer instance (change the station, change the playlist etc.)

How to Merge Data From Multiple Excel Files into a Single Excel File or Access Database?

I have a few dozen excel files which are all of the same format (i.e. 4 worksheets per Excel file). I need to combine all the files into 1 master file which must have just 2 of the 4 worksheets. The corresponding worksheets from each Excel file are named exactly the same as are the column headers. While each file is structured the same, the information within sheet 1 and 2 (for example) is different. So it can’t be combined into one file with everything in one sheet! I've never used VBA before and I'm wondering where I might start this task! Answer Since you wanted them on one sheet, I think the above isn't what you were looking for. I use Microsoft Access to merge data. Especially, if different sheets have a similar identifier (part number/contact person/ect). You create a "table" for each spreadsheet to be merged You create a "query" which pulls the desired columns to one sheet

How do I expand all columns in Excel spreadsheet?

I have a spreadsheet with many columns. The columns are all a small standard width. Double-clicking the partition line between columns will expand the column width to encompass the longest string in that column. Is there a shortcut to perform this operation on every column in the spreadsheet? Answer Click where the row and column headers meet, this will select the entire sheet, like so: Then double-click any one of the column partition lines. I do this all the time, and it's as quick as you can get.

FFMPEG - Merge two audio file with defined overlapping time

Requirement I'd like to concat two audio files with predefined overlapping time. For instance, if 10 sec overlapping is defined, then the ending 10sec of first audio and the starting 10sec of second audio are overlapped in the output. |<---- 1st mp3 file --------------------> | | <-----------2nd mp3 file ------------->| result: |<-----------------------(overlap 10 sec )--------------------->| Answer Use ffprobe to get duration of 1st mp3 file. Run ffmpeg using adelay to delay the audio and amix to mix the two audio streams into one: ffmpeg -i 1.mp3 -i 2.mp3 -filter_complex "[1]adelay=Ns|Ns[a1];[0:a][a1]amix=inputs=2[a]" -map "[a]" output.mp3 Ns = 1.mp3 duration - overlap duration . For example, if 1.mp3 is 30 seconds long, and you want a 10 second overlay, then use 20s|20s . This assumes 2.mp3 is stereo. If you ffmpeg is older than version 4.2 then use milliseconds instead of seconds in a

Windows 10 taskbar not working

Everything was fine, and suddenly, the start menu button, including everything else on the taskbar, stopped working. I can right click on start button but if I try clicking volume, battery, action center etc icons, nothing happens. I have tried the powershell command option and the only solution that seems to work for other people, is creating a new user account, this is my work laptop so I can't do that. Any ideas what might be going on? I have tried the following solutions with no result: 1) Right-click at Start and run Command Prompt as Admin Type command: ren %windir%\System32\AppLocker\Plugin*.* *.bak Restart Windows Be happy Thank you UHLIK from THIS thread on the Microsoft Forum after reading THIS thread on the forum. 2) Right-click at Start and click RUN type SERVICES.MSC and press the enter key right click on APPLICATION IDENTITY and select START Be happy… a reboot is not required UPDATED: August 19, 2015: A third fix I have used successfully is: 3) Create a new user and l

Unable to find videos cache for youtube videos in chrome

I have watched a video on youtube, I didn't close the browser window and it is buffered. I can watch that video anytime, without connecting to internet, as it is completely buffered. But I am not able to find the local cache for it, I checked the default folder of cache for my browser(chrome), which is: %AppData% Local\Google\Chrome\User Data\Default\Cache, but videos is not there. However it must be there somewhere in my local system as I am able to watch it again and again without connecting to internet. I used to get those previously, but something happen either it is saving in some other folder or what. does anyone has any idea? Answer I found the location at last, It seems the new google chrome has changed the location for Flash temporary files, instead of using the old location for cache files ...AppData\Local\Google\Chrome\User Data\Default\Cache it is using the below new location: ...\AppData\Local\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash However I am n

sorting - Alternate Row Colors of Duplicate Data in Excel

I am working with a dataset in Excel that contains duplicate values and non-duplicate values that are numbers. I would like each duplicate value group to have alternating shades via Conditional Formatting if possible. I've tried to create a "helper" cell to increment for each duplicate group, but can't seem to figure it out. Here's a slice of the data set (which is in rows A2 through A30) 1 1 1 2 3 6 8 9 10 11 12 15 15 17 18 18 19 20 20 20 20 20 21 21 24 25 25 25 25 And the intended result would be for the 1's to be red, the 15's to be green, the 18's to be red, the 20's to be green, the 21's to be red, the 25's to be green, etc... Answer Set B2 to =IF(A2=A3, 1, -2) and set B3 to =IF($A2=$A3, B2, IF($A3=$A4, IF(B2>0,3-B2,B2+3), IF(B2>0,-B2,B2))) and drag it down to B30 (or the last row that contains data, whatever that is).  This will evaluate to a positive number if this row is part of a duplicate value group and a negative valu

microsoft excel - CSV files cant store special characters?

I have read several other questions on this subject but none have an answer which fixes my problem. I have an execel file which is in russian and I need to convert it to CSV without it losing any of the special characters because at the moment it just converts them to "?" So far after reading similar questions I have tried: saving to from .xlsx to .xls and then to .csv with no luck importing the spreadsheet into google spreadsheets and downloading as .csv with no luck downloading OpenOffice and trying to save it as CSV using Calc with no luck Changing the encoding within excel when you saveit, going into web options. with no luck opening it up in notpadd++ and encoding it as ANSI as well as other types with no luck. could someone help me out here is there anything else I can try? Answer This is a well known issue with saving CSV files in excel, and I do not believe it is possible to solve directly. However an addon such as this one (includes source) can be used to get arou

How do I remove the OneDrive folder from my File Explorer folder tree in Windows 10?

I don't use or want to use OneDrive, but after upgrading to Windows 10 it's been installed automatically and added to the sidebar of every explorer window: I can't seem to figure out how to get rid of it. I can't uninstall it like a normal app, and I can't seem to unpin it in Explorer's options. I tried following one of Microsoft's guides (requires login) to getting rid of it, but that seems to only remove stored OneDrive files. I've also tried following another Microsoft Guide and SU answer , but I can't seem to edit group policies on my computer (maybe because I upgraded from Win7 Home Premium?). All I would really like is to be able to remove the OneDrive shortcut from my explorer sidebar, though being able to uninstall OneDrive would be a bonus. I'm not sure what I should try now. Is there a way to remove OneDrive from Windows 10? Answer EDIT: New technique. Since 2 upgrades ago, you can now simply uninstall Microsoft OneDrive if you don&

windows - How to set boot disk flag with diskpart

My Windows Server 2008 R2 won't start and stops with Stop 7B, so I start the recovery console and use diskpart to check the disk. There are to partitions one of Type 17 and one of type 07, the detail disk command show me that the disk is not a boot disk. How can I set this boot flag with diskpart? Or is this flag only set true if the MBR works fine. I try following commands: bootsect /nt60 ALL /force /mbr bootrec /fixboot bootrec /fixmbr bootrec /rebuildbcd the last command show me the number of OS is 0, so how can I set this flag to true? Here is the output of diskpart detail disk: Answer The diskpart in recovery console doesn't allow you to make a partition active(bootable). Use Gparted Live. http://en.wikipedia.org/wiki/Diskpart "On the Recovery Console, which is included in all Windows 2000, Windows XP and Windows Server 2003, there is a diskpart command which is significantly different from the one included in the actual operating system. It only provides functiona

How to enter Unicode characters in the Windows Explorer (file manager) on Windows 7?

I try to use Unicode characters in file names. It is possible to use them, if I copy the character into the clip board and paste it into the file name. But I did not manage to enter them directly via the keyboard. I enabled the hex numpad registry key: [HKEY_CURRENT_USER\Control Panel\Input Method] "EnableHexNumpad"="1" But when I try to use it I never get the character I want to. I tried it also with several browsers at the browser test page but nothing works. When I enter Alt + + + 2 2 2 2 I get a black smiley instead of the spherical angle. How can I use a Unicode character in a file name by renaming it with the Windows explorer?

memory - Is it possible to increase the video RAM on a system with Intel onboard video?

I bought a new computer with a Intel(R) Q45/Q43 Express Chipset (Microsoft Corporation - WDDM 1.1), which has dedicated video RAM of 64MB. Is it possible to do something about this? For test I downloaded a couple of games, and even old Counter Strike 1.6 is not playable on this PC. Computer Specifications: Processor - Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz RAM - 6GB Video Card - Intel(R) Q45/Q43 Express Chipset (Microsoft Corporation - WDDM 1.1) Dedicated Memory - 64 MB Total Memory - 2.0 GB Pixel Shader Version - 4.0 Vertex Shader Version - 4.0 Operating System - Microsoft Windows 10 (build 17763), 64-bit Answer Taking the question to be "Can you do something about the RAM amount on the on-board (intel) GPU." Depending on your BIOS, you may be able to assign more RAM to the GPU, but it won't make a significant difference to the game-playing ability of the GPU, as it's simply not powerful enough. bear in mind that any RAM you do assign to the GPU is no

VirtualBox 4.3.12, Windows 7 as guest and host OS: host -> guest clipboard not working

I use VirtualBox 4.3.12 r93733 . Guest OS: Windows 7 SP1 x64 Ultimate Host OS: Windows 7 SP1 x64 Ultimate I installed the VirtualBox Guest Additions and rebooted the guest OS. The host -> guest clipboard is not working, is there any way to fix this issue? Host -> guest clipboard means that I copy something in their keyboard in the host OS and try to paste it in the guest OS. The guest -> host clipboard works fine. I set the clipboard to be bidirectional: The VirtualBox Guest Additions are running fine on the guest OS: I restarted VBoxTray.exe but it didn't help. I also try giving administrative permission to this process. Before upgrading VirtualBox (I believe I had 4.3.6) the bidirectional clipboard was working fine. Answer you need to do one step more, when you start your window 7, you will see menus at top. click on Devices -> shared Clipboard -> Bidirectional now you can copy and paste from host to guest or gues to host

Excel X Y (Scatter) Chart using more than one value per cell

Is it possible to have more then one value in a cell and then use an X Y (Scatter) chart to represent the dots on the X and Y Axis ? Here is what I mean: Instead of having just one value per cell like in the image below, I want to have all the values in one cell, but the same X Y Scatter chart. Is it possible ? like this : Answer You can't do that directly with the built-in charting tools. They rely on data not only in separate cells, but arranged in specific ways. If there is a particular reason why the data is in that form (like imported that way or compacted for some purpose), you would need to parse it into separate cells in a layout that the charting features can handle.

macos - Can I access mac iTunes library from an iPad?

Can I access my iMac based iTunes library from my iPad over my home wifi? I know I can sync them up but the library is too big. Edit; just to clear(er), the movies, podcasts etc which are stored on the iMac, I want to watch them on my iPad without syncing. I know I can create playlist to sync a subset of my library, but that is not what I want. What I'm thinking about is using my iPad as a kind of portable apple TV. Answer I just tried it on my iPhone, but it should be similar for iPad. Download the Remote application from the iTunes/App Store. Open it and enable Home Sharing , enter your Apple ID credentials. Open iTunes on your Mac, select Advanced » Turn On Home Sharing . Enter your Apple ID credentials there. Now your iOS device can access your Mac's library and you can remotely control iTunes from your iOS device by using Remote . You can play the audio via the computer's speakers, or via any connected AirTunes speaker. Which the iPad is sadly not. Get Airfoil by

linux - Cannot connect with WPA2 (AES) encryption + EAP-TTLS PAP with FreeRADIUS auth

I successfully set up an enterprise Wi-Fi connection with LDAP authentication by way of FreeRADIUS . I used EAP-TTLS PAP because I have hashed passwords in my OpenLDAP directory. When I use TKIP wireless encryption for that WPA2 access point, everything goes very well and my Android phone clients connect just normally (until now all clients have just been Android phones). BUT when I use AES , the clients cannot connect any more, and I don't know why. The log seems very good, and I tried and searched a lot with unfortunately no success. Here is my FreeRADIUS log: http://pastebin.com/gF1tBGkM You may ask why I want AES. That is because Microsoft Windows does NOT allow the TKIP algorithm for enterprise WPA2 connections (maybe just to annoy us and make the matter harder). I tried all the open source free third party software to be able to use the unsupported protocols, but they where all very old and they didn't work, and I am trying to do everything natively without any third pa

windows 7 - Toshiba P775-S7215 with a broken wireless button?

I'm troubleshooting a wireless connectivity problem on a Toshiba P775-S7215. The wireless seems to be stuck "Off". Pressing the wireless button (located to the right of the power button) causes it to beep and light up, but then it seems to turn itself off (light goes out). Holding FN-F8 causes a window to pop up that claims "the wireless communication switch is off". Disabling "eco mode" via the Toshiba eco Utility in the system tray causes the eco light (green light between the power button and the wireless button) to go out and the wireless button to light up, but everything still claims the hardware radio switch is still off (including the Intel My WiFi utility in the system tray). Pressing the wireless button in this configuration causes a beep and the light goes off briefly before coming back on. The owner claims no configuration changes have been made recently and the problem started occurring today after a cold boot. Going back to a system resto

browser plugin - Replace only a specified font in Chrome

I find Georgia taxing, as it's become all the rage on too many websites in the last year or so. I've got custom stylesheets set up in Chrome to tweak a number of sites I like, but it becomes prohibitive to make a custom stylesheet for every site, and I really only want to do a replacement where they've used Georgia. Equally annoying is popping up the inspector whenever I change a page to set the fonts again. Anyone know how to do this? Alas, there doesn't seem to be a plugin that has this—either they replace all the fonts on a page, or are too narrow in focus. If there's nothing out there, I may consider writing a bookmarklet to do just this, and perhaps eventually expand that to plugin(s) for the various browsers, but I'd rather not duplicate work someone else has already done. Answer Create a Chrome extension that examines the tags listed in the array types into any page you open, if process found a node with the style attribute font-family equal to font

linux - ssh freezes when trying to connect to some hosts

When I try to ssh to particular machine/s in a list, The SSH command happens to be freezing. I tried out setting ssh timeout. But then also it's freezes even after the timeout. In verbose mode : OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to x358.x.server.com [10.x.x.x] port 22. debug1: fd 3 clearing O_NONBLOCK debug1: Connection established. debug1: identity file /export/home/sqlrpt/.ssh/identity type -1 debug1: identity file /export/home/sqlrpt/.ssh/id_rsa type -1 debug1: identity file /export/home/sqlrpt/.ssh/id_dsa type 2 At this point it freezes. A work around I thought was to create a child process for each ssh calls and if the process doesn't respond after a timeout - Kill it. But are there any less complex ways, so that I can accommodate it in a shell script itself rather than going for a C/C++ program ?

windows - Why does my computer run fast after a clean install?

I recently formatted and reinstalled Windows on my laptop. It now runs much faster. I have been doing this about once a year for the past decade. Why is this needed? I always figured this had to do with installing and removing programs, which over time fill up the registry with junk. Is this true? Are there any programs that can tweak the system without reformatting? Answer The registry is a bit of a misconception, The way it works, it could be filled with junk but it shouldn't slow down your machine - imagine, all roads are linked, but just because there is a traffic jam somewhere doesn't always mean it will affect you somewhere completely different! It is pretty much just software that starts with your computer, updaters and bad drivers. You can greatly speed up your computer using Microsoft / Sysinternals AutoRuns and delete/disable enries you do not want to start up with your machine.

Windows 10 Free Upgrade - What happens to Windows 7/8?

Microsoft is giving Windows 10 away for free to Windows 7/8/8.1 users. If one reserves Windows 10 with the new notification in the tray area, what will happen to their Windows 7/8/8.1 license? Are you really getting Windows 10 for free, as in you upgrade from 7/8/8.1 but you still own the previous version of Windows and Windows 10, or are you really trading your old Windows license for a new one? Basically, after upgrading to Windows 10 for free from Windows 7, will I still own Windows 7? (Will the product key for 7 still work?)

How to change the icon associated with a particular file format (and only that file format) on Windows 10?

Currently I have associated various text file formats (.md, .txt, .taskpaper) to be opened by sublime text. This results in ALL of them being assigned the SAME icon file, namely the sublime text icon. How can I get each file format to have its own unique icon file (supplied by me)? Change the icon associated with one of the file types using FileManType by Nirsoft. The Result: it changes the icon for ALL of the file types that sublime opens (not what I wanted) Now I tried to get clever... (1) created a shortcut of the sublime exe for each file format (2) gave each shortcut its own unique icon, which the shortcut accepted (3) set the program that (say) .md files opened with to its own special shortcut etc... This time it just ignored the icons contained in the shortcuts and remained with the sublime icon Any ideas?

Since last week, Windows profiles get replaced with temporary profiles

Since Saturday last week ( 7 Apr 2018 ), I am experiencing strange problems with a lot Windows 7 installations. The problem is that user profiles get replaced with temporary profiles. In the registry, under key HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList , the profiles get renamed to .bak and a new profile with directory C:\Windows\Temp gets created. Most of the time, the profile MSSQL$... gets damaged, which renders SQL Server 2012 unuseable. But I also noticed this issue on several non-SQL-Server profiles, including the user profile on my private computer. After renaming the ".bak" key back to its original name, the profile actually works fine again. Since last Saturday, 8 independent customers* had this problem, and also my own profile got corrupted. The weird thing is that I could not see any recently installed Windows Updates (except MSSE updates) which could have caused the issue. I also didn't find any Malware that could cause the issue. I didn

optionally run several commands when starting tmux

I have a ~/.tmux/dev file which looks like this: selectp -t 0 # select the first pane splitw -h -p 50 # split it into two halves selectp -t 1 # select the new, second (1) pane splitw -v -p 50 # split it into two halves selectp -t 0 # go back to the first pane send-keys 'vim .' Enter If I run tmux source-file ~/.tmux/dev from inside a tmux session, it works fine. I want to create a bash script that opens tmux and automatically runs those commands. I tried running tmux new 'tmux source-file ~/.tmux/dev' but I only see two panes; the pane with vim is missing. I have read How do I get tmux to open up a set of panes without manually entering them? , but before installing a tool for managing tmux configs, I would like to grok what's happening here. Thanks in advance for any light you can shed on the subject. Answer This is what is happening: tmux new 'tmux source-file ~/.tmux/dev' The new commands creates a new session with a single window that has a

networking - How do I tell Windows to use 802.11 in preference to 3G?

I have a Samsung NC-10 netbook which I take to work every day. Most of the time I use it just on the train/bus, but I also use it at work and home. It has a built-in 3G card which I want to use when travelling, but I'd prefer to use wifi when I'm at work or home, for obvious reasons. Unfortunately, if the 3G connection is up, Windows appears to use that in preference to wifi. Starting up and shutting down the 3G modem is a bit of a pain - it's not hard as such, just a bit inconvenient. Ideally I'd like it to always be up, and even have the connection itself up all the time, but without routing traffic through it if there's a wifi connection up. This is what my Android phone does, for example. Is there somewhere in Windows which lets me express an ordering for network interfaces? I suspect the routing table may be relevant, but it's a bit of a pain to mess around with. I'd really expect there to be a simple GUI way of setting this up - after all, it would

Comparing Similar Text Strings in Excel

I am currently trying to reconcile “Name” fields from two separate data sources. I have a number of names that are not an exact match but are close enough to be considered matched (examples below). Do you have any ideas of how I can improve the number of automated matches? I am already eliminating middle initials from the match criteria. Current Match Formula: =IFERROR(IF(LEFT(SYSTEM A,IF(ISERROR(SEARCH(" ",SYSTEM A)),LEN(SYSTEM A),SEARCH(" ",SYSTEM A)-1))=LEFT(SYSTEM B,IF(ISERROR(SEARCH(" ",SYSTEM B)),LEN(SYSTEM B),SEARCH(" ",SYSTEM B)-1)),"",IF(LEFT(SYSTEM A,FIND(",",SYSTEM A))=LEFT(SYSTEM B,FIND(",",SYSTEM B)),"Last Name Match","RESEARCH")),"RESEARCH") Answer You might consider using the Microsoft Fuzzy Lookup Addin . From MS site: Overview The Fuzzy Lookup Add-In for Excel was developed by Microsoft Research and performs fuzzy matching of textual data in Microsoft Excel. It can be

bash - PuTTY not sending Esc

I SSH with PuTTY from my Win7 x64 laptop to a Unix environment for my office. The problem I'm facing is very similar to this post where I cannot send an Esc character to the terminal. I first noticed it when trying to exit insert mode in vi , but based on the troubleshooting within that post that I've done it seems that hitting the Esc key just isn't doing anything at all. So first off, let me restate the problem. Logged into PuTTY, vi a file, go into insert mode, can't come out without hitting F1 and then :q (to quit the help), then I can save and quit the document. The first troubleshooting step in the other question states to try this: python -c "print ord(raw_input('char '))" Then the result should be 27. Running this, I'm told I have an empty string (similar to one of the comments, but this user never comes back). Then I tried the next thing in the comment...but to be honest I had no clue what I was looking for. Command and my results are

Does opening a lot of tabs in Google chrome cause a performance issue?

I have heard that each tab in a Google chrome is a separate process. So if any tab crashed it won't be affected to the whole browser. So if you open so many tabs there will be as many processes in the OS. Is this a performance issue? Answer I've used Chrome as main browser on one of my PCs. I've never experienced performance problems . Actually the mechanism keeps the single tabs very responsive because one "bad" site doesn't affect the other tabs. BTW: also Internet Explorer 8 implemented the same mechanism and future versions of Firefox will do the same. Edit: Here is an interesting blog post written by Scott Hanselman: Microsoft IE8 and Google Chrome - Processes are the New Threads

power supply - Electric shock with plugged in VGA cable

Possible Duplicate: Why would I get an electric shock from a VGA cable connected to an LCD monitor? Similar to this question I got shocked today with a new computer I just bought. How is this possible and how can I prevent this? There is no power cord in the PC Only the VGA cable is plugged in, tested 2 different flat panels When touching the case and my metal desk, I feel a shock. Unplugging the monitor cable from the pc stops the shocking (obviously) unplugging the power cord from the monitor stops the shocks (obviously) power-outlets are not grounded, and there's no grounded outlet on this floor (top floor)

filesystems - Is it best to reformat our external Hard drive to exFAT for compatibility with Mac?

I just got one of those Western Digital 2TB Passport external hard drive. Is it true that if I want the iMac running Lion on it to be able to read and write any files on the drive, and to have files greater than 4GB (which FAT can't have), then it is best to reformat immediately to exFAT before writing anything to this new drive? Answer I'd use UDF, which also supports files bigger than 4GB, and is not proprietary like exFAT is. You can create a UDF filesystem using newfs_udf on OS X 10.5 or newer. Note that Windows XP can read but not write to UDF, while Vista and newer can read and write.

xml - Advantages of DOCX Format Over DOC

Today I have accidentally found out that the .docx is the same .zip (or there is no big difference between them). When you change the .docx to the .zip and open with WinRAR you see a bunch of XML files in the folders. In that XML file it is stored the text, fonts, owner, last modified and so on. In a word all the information is being stored as an XML data. But the same is not right for .doc extension files. It is impossible to open them as .zip op as .rar. So question: What is the advantage of storing .docx’s data in XML that Microsoft has changed the way of storing data? Indeed I want to know not the advantage of XML format but why Microsoft is using multiple XML files to store the .docx data. It turnes that .docx is not new format in the root. Answer A .docx file can store embedded resources, like image files, not just XML files. Instead of encoding stuff in base64 or something and storing it within an XML file or inventing yet another binary serialization format, they decided to

linux - How to restrict use of a computer?

Suppose that some person is insomniac because of a bad habit of chatting on the IRC every night until 3AM. That completely ruins this person's life because he is unable to wake up on time to attend his exams, because he will be fully exhausted everyday and will feel depressive. That person is conscious of this bad behaviour, and would accept any help including installing a software on his own computer granting me admin privileges to install it. Do you know of such a software that ideally would: Would prevent use of the computer at certain time ranges, let's say 11PM — 6AM Would gracefully shutdown the computer at the beginning of that time range (not killing all the applications brutally), and shutdown it if the user attempts to switch it back on Would warn 10 minutes beforehand Could occasionally be disabled if I give a one-time password to that person? That person uses Linux, and I am curious of knowing what is available for that purpose. It is kind of a parental control, but

memory - Performance of Multiple RAM Sticks Compared to Single Sticks

It's no secret that using two physical drives gives better performance than two partitions on the same physical drive; because there are two devices, they each have their own platters, head, caches, controllers, etc. (eventual system bottlenecks and such aside). I'm wondering if the same thing is true of RAM. That is, for example (other factors such as speeds, timings, etc. being equal), would installing two 1GB sticks of RAM give better performance than one 2GB stick? I can't find any useful information on any tests, analyses, or comparisons on this subject. There's plenty of people asking it, but no definitive answers, just speculation. For the record, I'm not concerned about "one stick allows for future upgrades" or single vs. dual channel (this can be dealt away with by for example doubling everything—in my particular case, I'm trying to determine whether two 1GB sticks is better than four 512MB sticks or vice-versa). Thanks a lot. Answer Even if

formatting - Word 2010 Equations Alter Themselves without my Approval

I regularly use Microsoft Word 2010 to write long, technical documents. One of many annoyances is that equations alter themselves without my approval. For instance, characters sometimes completely disappear. The most common issue, however, is that my vectors, which I always write in boldface but not in italics , occationally (and seemingly randomly) turns up in italics when I open a document I have previously saved. (Before I saved it, all vectors were in boldface but not in italics.) Before I save the document: When I open the document later: Is there a known solution to this problem?

home networking - How can I make wireless transfers faster on a Linksys WRT54G running DD-WRT?

I have a Linksys WRT54G plugged into the cable modem, and a 2nd wireless router, an old D-Link plugged into that. Both wireless routers work, but if I connect wirelessly to the Linksys router I get transfers going about 10 times slower than if I connect wirelessly to the D-Link even when accessing computers that are plugged directly into the Linksys router. I've tried using just the D-Link and removing the Linksys, but it seems to hang regularly when it's running a DHCP server. When I have both routers on, the D-Link passes all DHCP requests to the Linksys. If I disconnect and reconnect, the Linksys runs at full speed for a while, but quickly drops back down to slow speeds. What might be causing this, and how can I go about fixing it? @Spiff: I ran IPerf between my laptop ('chris') which is connecting wirelessly to the Linksys, and 'server' which is wired to the Linksys. This is with the D-Link router turned off. I get very different results depending on which i

windows 7 - Dual boot manager not displaying XP after i installed Win7

I'm a Java Student and my Tomcat Server wasnt running properly on my XP OS and since i cant afford buying a new OS for my computer, i had to get one the easy way. So,I installed an unconventional version of Windows 7 that i found somewhere on the web. The win 7 works fine but most of my disk space is located in my XP partition so i d'like to go back to XP in order to clean up my disk but i'm afraid i didnt setup the dual boot properly. Now i cant access the XP part of my computer because XP doesnt showup in the dual boot manager. It also seem like both OS are running on the same disk partition. How can i start my computer XP or just get rid of win 7 ? Thank you.

Are there differnces in life expectation for 1~2TB external (portable) HDD and external (desktop) HDD

According to current technology and most popular products, are life expectations for 1~2TB external (portable) HDD and for external (desktop) HDD significantly different? Which one will likely be more durable and last longer? Same question if I use them as if they were both portable? For example, Seagate FreeAgent GoFlex - Hard drive - external (portable) 1TB USB 3.0 and Seagate Expansion External Drive - Hard drive - external ( desktop) 2TB USB 3.0 ? Thanks! Answer Microsoft recently released the results of a long-term, million-machine hardware failure analysis and found that, overall, laptops are more stable than desktops, including the disk subsystem. The original report is available at https://research.microsoft.com/apps/pubs/default.aspx?id=144888 with a tl;dr summary at http://www.extremetech.com/gaming/131739-microsoft-analyzes-over-a-million-pc-failures-results-shatter-enthusiast-myths . Quoting the latter, in turn paraphrasing the former: "Desktops don’t come off loo

Cann I use a 19.5V 4.62A laptop charger for 19V 4.74A laptop?

My laptop charger (Toshiba Satellite L850 18U - 19V 4.74A ) has been broken. So I bought a new charger - Trust 90W charger. According to the new charger's packaging it is suitable for my laptop. But when I opened it on the product label it says that the charger is 19.5V 4.62A . Do you think that it is save to use it? As the packaging says that it is suitable for 19V 4.74A.

CLI way of uninstalling a Windows update?

Basically, what can be achieved by going to Control Panel > Uninstall a Program > View Installed Updates > Right Click Uninstall, but through the command line? Looking for a way that works across the Windows platform but if (and according to my reading, most likely) it's version dependent so be it. Maybe something like: C:\command /uninstall "Security Update for Windows 7 for x64-based Systems (KB2705219)" Looks like using the KB would be great but wusa.exe works for the above example update but not for say "Security Update for Silverlight (KBXXXXXXXX)". Not much consistency. I'm really surprised there isn't much documentation on this. How does an app like WUInstall do it? Follow up question is how is that list of "View Installed Updates" populated? I've searched the registry like crazy hoping for an "UninstallString" or equivalent but only found references to the regular Add/Remove Programs list.

memory limit - How to check if PAE is enabled? (Windows 7 32 bits)

How to tell for sure if PAE (Physical Address Extensions) is enabled or not? There is a SPECIFIC command I can use? I can read a registry value or something? (Windows 7 32 bits) I have found this on Internet but it doesn't answer my question: If your server has hot-add memory ability (ability to add more memory without shutting down the server !!) or data execution prevention (DEP) is enabled then PAE will be enabled automatically !! It only reformulate the question as "does my Qosmio x505 laptop support hot-add memory?" Answer How to tell for sure if PAE (Physical Address Extensions) is enabled or not? On any modern Intel/AMD (x86/x64) system with hardware-level DEP, PAE is enabled out of the box on Windows XP (SP2?) and up, since it's required for the DEP feature to work. "does my Qosmio x505 laptop support hot-add memory?" No, it most assuredly does not. Hot-add RAM is generally only found on high-end server hardware. Edit: According to MSDN Entry for P