Skip to main content

Posts

Showing posts from December, 2015

windows xp - Making laptop not increase/decrease screen brightness when changing power source

When I disconnect my laptop from AC power, its screen becomes more dim, in order to save battery. When I connect it back to AC power, it becomes bright, because now it's not concerned with battery level. I appreciate this logic, but I prefer my laptop stay at the same brightness level regardless of whether it's plugged-in or not. How can I accomplish this? (I'm using Windows XP.) Answer Look at your power management settings (try Control Panel | Power) or your laptop may have a manufacturer-supplied program to handle this. Usually these let you create and/or select power management profiles, which can include screen brightness settings.

networking - Setup Linksys WRT54G to use modem`s DHCP server

i cant figure out how to set Linksys WRT54G Wireless Router to use modem`s DHCP server. My network scheme is like this: [COMCAST MODEM] [HUB] | | [LINKSYS] [SERVERS] ||| [COMPUTERS] Here is the situation: my modem works as DHCP server, and it works fine. But linksys router has its own DHCP server and its breaking the network all the time (IP conflicts). I solved this problem (for a while): I set different IP ranges on both devices, 10.1.10.10-100, 10.1.10.200-250. And it works. Before i had Apple Airport Extreme wireless router which was set to bridge mode. So it was using modem`s DHCP server. Im looking how to do this with Linksys Wireless Router ?

browser - Can a website know about my browsing history?

When I visit a website it sometimes puts cookies on my browser. Usually cookies keep track of browsing info from that particular site. If I don't delete those cookies and browse other websites, will the cookies be able to know which site I am browsing? Also, can any website read browsing history which is saved by browsers? Can any website know about my browsing history by help of cookies, browsing histories saved by browsers, or by any scripting language e.g. javascript? Answer The short answer is yes , though it is not as easy as you might think. The browser stores cookies independently for each domain. That means that www.foo.com cannot access the cookies made by www.bar.com and vice versa. The vulnerability (or loophole) is in included pages. Most advertisements come from a different domain than the page itself, so they create their own sets of cookies. When another site includes an ad from the same ad provider, they can read their own cookies created earlier and they know ...

How to remove a .pdf's document restrictions?

I need to remove some restrictions from a .pdf document: I can't zoom or use any other buttons. The toolbar just isn't available. I never saw a .pdf file like this one.

unix - Cut - the delimiter must be a single character

I am trying to cut the information from a variable of a variable. I am using csh. Ex: setenv time \`date | cut -d ' ' -f 4\` echo $time setenv hour \`$time | cut -d \':\' -f 1\` echo $hour Output: 09:18:47 09:18:47: Command not found. cut: the delimiter must be a single character Try \`cut --help\' for more information. Can some one please help me? Answer First, on line three, you're trying to run a command stored in the $time variable. You need to echo it to pass it into cut. Second, cut takes a single delimiter, the quotes don't need to be escaped. Try this: setenv time `date | cut -d ' ' -f 4` echo $time setenv hour `echo $time | cut -d ':' -f 1` echo $hour

windows 7 - Run program as admin without entering credentials? (Automatic Win7 elevation)

I'm working on my systems without admin rights, but I'd like to start sysinternals process explorer as full admin to have some debug access on my machine. Right now I run procexp.exe with parameter /e, which prompts me for admin credentials. Of course I could use runas, but for this I would need to put my admin passwort in clear text in the corresponding batch file, which is something I don't like to do. Is there a way to tell windows that this one procexp.exe is allowed to run as admin without needing to enter the credentials? In Unix systems this is done using setuid (or setgid), but how can I achieve this functionality in windows? Answer I found an answer on Stackoverflow , which works for me: runas (at least on xp sp3) has option "/savecred" - it asks for password the first time and then it uses stored one (even after reboot). You need to be aware that this is a security problem, though: after you ran /savecred once, every executable can execute itself with ...

Enable Chrome Extensions for all users

How can I have the same Extentions for all the users of the same computer? More details: I only want this for Windows, but if your solution works for others, that's ok. When I say users I mean: Chrome users, not Windows users. And not having to install every extension for every user. And a better solution would be that the user data (for the extension) doesn't get shared between users. Would be nice, if this is just a setting/configuration from Chrome, and not Windows. Is this possible ? how ?

windows 7 - How can I run another app when pressing the calculator key on my keyboard?

I've a Logitech Media Keyboard 600 which features a separate button to launch the calculator. I need that quite often, but the Windows shipped calculator is useless; there are more advanced out there. So I've installed another calculator application and want this special key start this other app instead of the default one. Is that possible? I'm not searching for a solution to pin the app to the taskbar and use another shortcut key to launch it. Answer Did you try Logitech's SetPoint software? It may not let you change what program the key opens, but it's worth a try. I don't have a Logitech keyboard, so I can't check. You could also try replacing the Calculator executable ( %windir%\system32\calc.exe ) with the other calculator, but that may be risky.

iso image - How do I download the Windows 10 1511 ISO without using the Media Creation Tool?

For some reasons, I cannot run the Media Creation Tool due to company policy. How can I download the windows 10 Threshold 2 ISO otherwise? There seems to be a link here that has it, but visiting it redirects me to another page. Cached copy of the webpage in question: Here Answer It's here, try it Download 32 or 64 bit ISO, all languages available. Hashes are verified against MSDN's ISOs. All match. UPDATE: ^^^ became obsolete, but... There must be a way :-). Use browser, which can change user agent. I use Firefox with User Agent Switcher addon. Set Your browser user agent to Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1; Nokia; Lumia 520) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Mobile Safari/537.36 Edge/14.14348 and click here now select which ISO to download and here You go. UPDATE2: for people who writes "it doesn't work for me" in comments. I just checked it works perfectly. Idea is not to set exactly the same user agent I typed, but to...

macos - sublime text 2 command create link but the command is empty

I want to create the link about sublime text2 which is placed in applications. If I paste the /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl in bash, the sublime text 2 will open. And I use the sudo ln -s "/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl and I check that my path has add the /usr/local/bin by echo $PATH which results in /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin: and I cd to the /usr/local/bin and found there is a subl script but I use vim to open it, the file is all blank. And I restart the terminal and type subl but results -bash: subl: command not found . How do I fixed it? Answer If you don't want to use Sublime Text 3 yet, which has a lot of differences from Sublime Text 2, and is still in beta, here's how to fix your problem. Just run each of these commands (in order) from Terminal and you should be all set: sudo rm -rf /usr/local/bin/subl This will remove whatever subl links ar...

command line - Bootable USB flash drive from iso using windows CMD (I can't find the tutorial...)

In the begining of last year or the end of 2014 I learnt how to make a bootable flash drive from an .iso from a youtube video. I tried to find the video but I can't and it's not in my history. The video was very simple; first it taught how to format the flash drive using DISKPART and that part I remember, what I don't remember is the last part. I remember it used the xcopy command with some options and the source and destination, the latest being the flash drive. As for the source I don't remember if it is the .iso file itself with some options that cause the files to be extracted the same way CD Burning software does or if it was something else. I don't remember what the options were neither, but I remember one of them was /f I know the tutorial works because I tried it. The tutorial was very simple and quick and only used the cmd, no other software. To sum up: Format the flashdrive to FAT32, assign it a letter... xcopy _some "options i don't remember...

Can't insert cells in Excel 2010 - "operation not allowed" error message

I was working on a spreadsheet in Excel 2010, and all of a sudden when I attempted to insert a new row of cells, I saw that the insert and delete options were grayed out. I attempted to copy a different row and insert it as a new row, but I got the error message: "This operation is not allowed. The operation is attempting to shift cells in a table on your worksheet." I have not merged or hidden any cells/rows/columns. There are no formulas. There is no data verification. I tried closing and re-opening the spreadsheet. Searching for answers brings up nothing useful. Answer As the message indicates, you're trying to insert rows into a Table in your sheet. Typically, but not necessarily, tables will have banded formatting. When you click in a cell in a table, the Table tab will appear, like so: The Insert and Delete commands get grayed out when there's more than one table intersecting the row you're trying to delete (and maybe other times): I haven't figured ou...

What does the [@[bar foo]] operator do in Excel, in particular the at sign?

I've seen someone construct what seemed like cell references in Excel that looked like =[@[column title]]*someothercell What is this feature called, are the rectangular brackets and the at sign independent or do they belong together? How does it work precisely? I've googled around for a while and tried by hand in Excel, but couldn't get it to work. Answer The square brackets are used for structured references , which make it easier to reference data in named tables (which you can create by going to Insert → Table). The @ is new notation in Excel 2010 replacing [#This Row] from Excel 2007. The at symbol is used to shorten formulas inside named tables referencing cells in the same row. The inner square brackets are only needed because your bar foo table heading contains a space.

How to avoid keyboard layout automatically changing on windows

I have two input languages in my language bar (windows xp). The problem is that windows likes changing between them without any intervention. That's really annoying! I know about the shortcuts and already turned off Word language detection, but the problem is everywhere (specially command prompt). I use both languages and I want to change between them only manually. How to turn off this automatic change?

Add audio at specific time in video using ffmpeg

I want to add an M4A audio of 5s duration to an MP4 video file. I have already tried the -itsoffset command of ffmpeg . ffmpeg -i a.mp4 -itsoffset 00:00:10 -i b.m4a -map 0:0 -map 1:0 -preset ultrafast o.mp4 Commandline output ffmpeg -i psy.mp4 -itsoffset 00:00:10 -i cut.m4a -map 0:0 -map 1:0 -c:v copy -preset ultrafast -y out.mp4 ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg developers built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libo pencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib twolame --enable-libvo-aacenc --enable-libvo-amrwbenc ...

aero - How do I keep Windows 7's taskbar icon highlighting from getting stuck?

In Windows 7, in the Aero interface, if you move the mouse over an icon it gets highlighted. This is definitely pretty, but sometimes the system gets into a state where the highlight gets stuck, and whichever button you hovered over last with the mouse cursor remains highlighted even when you move the mouse out of the taskbar. This can be very distracting if you're expecting the taskbar icons to tell you something useful, such as displaying a progress bar or turning orange if you have a new IM. I did a bit of searching about this issue, and the only thing I came up with was this . And the response, from Microsoft support no less, could hardly be less helpful. The question was, "the highlighting gets stuck sometimes and doesn't go away until I reboot." And the answer basically says "did you try rebooting? That ought to fix it." So, does anyone know anything useful about this issue? Does anyone know what causes it (and thus how I can avoid having it happen)? D...

hard drive - How to prevent my client from hacking into the demo computer I provide him?

I need to provide a customer of the company I work at, a laptop computer with a demo software that will run on it. The software is for display only and doesn't require any user interaction via keyboard or mouse. I need the computer to disable all device inputs and the hard drive to be encrypted, so only this computer can run. I want to prevent the customer from accessing the computer while it works and prevent the option of removing the hard drive and using it on a different computer. Does anyone know of any hardware computer\hard-drive combo that can do this? Thanks. Answer Check your laptop's BIOS at boot, look around for options like hard drive encryption or "ATA Hard Disk Lock" (not encryption, but I don't think most drives have any mechanism that would allow you to bypass the password). You can shoot epoxy into the firewire port to prevent them from attaching a PCI memory reader debugging tool. Update The fact that it's Linux gives you some more flexib...

windows 7 - when vpn is connected intenet is not accessible

I need vpn to access certain lan. The problem is - when I connect to vpn intenet stop working. But I need to have access to lan and intenet at the same time. When VPN is connected and I try tracert, I receive "The network is unreachable" message. Sorry about Russian language below, this is copy-pasted from console: C:\Users\Oleg>tracert 173.194.69.102 Трассировка маршрута к bk-in-f102.1e100.net [173.194.69.102] с максимальным числом прыжков 30: 1 * * * Превышен интервал ожидания для запроса. 2 1.1.1.1 сообщает: Заданная сеть недоступна. Трассировка завершена. or after Google Translate: C:\Users\Oleg>tracert 173.194.69.102 Tracing route to bk-in-f102.1e100.net [173.194.69.102] with a maximum of 30 hops: 1 *** timed out a request. 1.1.1.1 two reports: The specified network is unavailable. Trace complete. How can I fix this problem?

linux - Tool to arrange browser windows on multiple monitors, interact with web page - all on startup?

Imagine you wanted to arrange content for a video wall type application. I'd like the computer to - upon startup - open a handful of browser windows, potentially interact with them (log in, drill in to a menu), arrange them across up to four monitors, and then go into a full screen mode. The problem is somewhat similar to a kiosk or digital signage type problem, but those tend to be focused on single display. Thanks for any input you have! Oh while, I'm looking primarily for Windows software, if anyone is aware of solutions for linux or mac I'd love to hear those as well. Answer Sikuli (cross-platform) is a very easy to use scripting language the focuses on on-screen object recognition, like clicking and moving windows. It also has an IDE the helps you capture screenshots of buttons for using in your scripts. Otherwise for scripting you have: AutoHotKey (AHK) (can send messages to windows, click on buttons and do on-screen OCR , like Sikuli, but doesn't have as nice...

windows 10 - remote desktop connection on 2 out of 3 monitors

I am using Windows 10 to remotely connect to my virtual machine also running Windows 10. I have three monitors and like to use two of them for remote desktop connection, but not all three. I am aware of this option: I there a way I can select just 2 out of 3 monitors for RDC? I've also used Remote Desktop Connection Manager , but it does not help. PS: I've read older questions ( this and this ), but I hope things might be different now.

hard drive - Changing sector size on Samsung 840 SSDs

I have a Samsung 840 SSD and an 840 EVO. Both are reporting 512-byte as the logical and physical sector size. A datasheet for the similar-but-not-identical 840 Pro also states 512B. In reality sector size for SSDs is a compatibility measure, page size (8KiB for these drives) is what is read/written. Intel provides a tool to change the sector size and claims it as a performance optimisation. This makes sense to me - if the OS is issuing 16 commands per page instead of one, it is at least adding overhead in the OS, perhaps also in the driver, and perhaps reducing durability (dependent on protocol/controller optimisation). is matching sector size to page size indeed a performance/durability optimisation? is it possible to change on Samsung drives?

linux - How can I read input from the hosts keyboard when connected via SSH?

I'm currently experimenting with an RFID card reader that emulates a keyboard. When you connect a card, it will read out data from it and then emulate keystrokes according to configuration. I've connected this device to a Raspberry Pi and connected to the Raspberry Pi via SSH. Obviously, when the reader now emulates keystrokes, they land on the local tty of the Pi (and not in my SSH session). So I'm having a hard time getting to that input right now. Ultimately, I'll be writing a piece of software to handle the input, but for debugging and development purposes, it would be quite helpful to get the keyboard input in my SSH session. I tried the following sudo cat /dev/input/by-id/usb-HID_OMNIKEY_5127_CK_01010053423438303000835748112531-event-kbd Which does give some output when I connect a card, but it's not what I would have expected. It seems like that would be raw input data. I would love to get the keys as readable values. The data that is being read from the /de...

microsoft excel - Want to use HLOOKUP to drag down the whole column, how can I do this?

See the following screenshot: This is only an example, my real worksheet is more complicated than this and has hundreds of rows. My current formula is =HLOOKUP(A7,A1:D4,2,0) , but this formula doesn't allow me to drag it down the column so that I can get "2-Jan-12" and "3-Jan-12" for Tom too. How can I change the formula to make it suitable for dragging down? Update: I tried =HLOOKUP($A$7,$A$1:$D$4,2,0) , but upon dragging down now I get 5 for "2-Jan-12" and "3-Jan-12" as well. I want to drag the formula down so that "2-Jan-12" shows 6 and "3-Jan-12" shows 7. Answer You need to update the 2 also so you can use this version in B8 copied down =HLOOKUP(A$7,$A$1:$D$4,ROWS(B$8:B8)+1,0) ROWS function increments as you drag down and changes the row_index_num in HLOOKUP to 3, 4 etc. Note: the above doesn't actually match the dates, it just gets the value from the next row regardless of date, to specifically match dates us...

How to determine whether I run a 32bit or 64bit Ubuntu install

How to determine whether I run a 32bit or 64bit Ubuntu install? Answer Did you try uname -m ? It seems like the uname -m actually gives x86_64 when it is an kernel 64 bits i686 for 32 bits kernel Otherwise, not for the Linux kernel, but for the CPU , you type: cat /proc/cpuinfo or: grep flags /proc/cpuinfo Under "flags" parameter, you will see various values. Among them, one is named "tm(transparent mode)" or "rm(real mode)" or "lm(long mode)" rm means: 16 bit processor tm means: 32 bit processor lm means: 64 bit processor Note: you can have a 64-bit CPU with a 32-bit kernel installed" Source .

What do you call the place on a hard drive (or motherboard, or anywhere else) to place jumpers?

Most hard drives have a set of pins next to the pata or sata port to place jumpers to do things such as designating it a slave or master. What is the name of those set of other pins? Hard drives are a common place to see them, but they also appear on motherboards, and even other consumer electronics, such as a television set or television remote. I've always just called them "the pins where you put the jumpers." Do they have a proper name? EDIT: I realize that they are physically the same as a header, but since a header is used to attach a new component, I would not consider it to be a header since jumpers are not a new component being attached. Answer While they are the same physical part as a header , generally with PCs 'headers' are pins you attach leads to. Say, the HDD LED or the Power Switch leads. Pins specific to jumpers are refered to as "Jumper Pins" and are arranged into "Jumper Blocks".

address bar - Removing past searches from Google Chrome's omnibar

One time I searched for Orange Juice in Chrome's Omnibar. Now, every time I start typing Orange , I get the search suggestion: How do I get Chrome to stop offering me this search suggestion? If I need to edit some config file, I can do that. Please don't post answers if you haven't ensured they work first. (This is intended to prevent people from answering "Press Shift-Delete.") Clarification: I'd prefer a solution in which I can selectively delete entries, not just by time segment. I also prefer a solution that does not involve cancelling any Chrome functionality. Answer The term Orange Juice is stored in the C:\Users\{username}\AppData\Local\Google\Chrome\User Data\Default folder for Windows 7, and in /Users/{username}/Library/Application Support/Google/Chrome/Default for Mac OS X, inside a SQLite database file named History (no file extension), in a table called keyword_search_terms . If you're looking to change URL predictions, the table is ca...

upgrade - The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer

We have a client machine secon (XP-Pro, SP3) and a server machine servlet . When upgrading Norton Antivirus from 11.4 to RU6, one of our applications named 'LeaftradeLauncher' did not start anymore. When I checked secon 's application syslogs, these are some entries I found: "The description for Event ID ( 0 ) in Source ( Leaftrade Alerts ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: LeaftradeLauncher::Tem.InitClient sucessful. Initialized with server:servlet" When I Googled it, I found some sites mentioning that we need to check in services.msc , to see whether services are disabled or not. Some sites mentioned that either the DLL file responsible for generating the event for these application is damaged, ...

windows - downloads stall at 99% or so

Often when I try to download a large file, it stalls at 99% or so and never completes. I think I read somewhere that this problem could have something to do wireless routers. What can I do about this? Answer How long do you typically wait before assuming it will never complete? Depending on the application, it could be verifying the integrity of the file. As you said, the files are large, so computing a hash may take some time. Some Anti-virus applications will also stall large file downloads near the end while they scan the entire thing, although there are some that will scan your download progressively piece by piece instead of stalling you at the end.

windows 10 - Monitor will not stay off

I am having this issue where the monitor will not turn off even though Windows power options are configured for it to turn off after a specified period of time. In testing, I configured the timeout to 1 minute and waited for the monitor to turn off. The monitor will look like it will turn off, but it turns back on after a few seconds! I also tried third party software to turn off the monitor like nircmd and turn off monitor , but both of these exibited the same behavior. I have also tried running nircmd in safe mode, but once again, the monitor flashes off then on. In an attempt to diagnose this, I made sure to unplug everything from the PC except for the power and display cable, however, the same thing occurred. Additionally, I have disabled wake timers and wake on lan. There are no game controllers connected the the PC as well. This issue is extremely puzzling. Everything that I have tried will not solve the problem. This PC is an HP Compaq 6200 running Windows 10 LTSB 2016. Answer...

windows - Format an external hard disk to FAT32, only option showing is NTFS

I am trying to format an external hard disk to FAT32 (I need it to work with some hardware that expects it to be in FAT32). When I am trying to format it via Windows the only option get is to format it to NTFS. When I am trying to format one of my own partitions (on the hard disk that is running the OS) I can do it only in NTFS while another partition my OS can format in both NTFS and FAT32. What can cause such a behavior and how can I format the external hard disk to FAT32?

How can I see which DLLs included in Windows contain icons?

When changing shortcut icons it's useful to know which DLLs and EXEs included with Windows contain icons, but there are so many DLLs (especially in System32) that it's difficult to find the ones which contain useful icons. Which DLLs or EXEs included with Windows (any flavor) contain icons? Answer Use IconsExtract from NirSoft. It scans a folder you select and can list any icons and files which contain icons.

Is it possible to "return" to GRUB after booting Linux without restarting

I am dual-booting Windows and Linux on my SSD and find myself often switching between the two OSes. The SSD is really fast and both OSes boot in about 3 seconds once selected in GRUB. However, it takes forever (about 30 seconds) for my BIOS, RAID and second SATA controller to initialize before I'm finally in GRUB. So I was wondering if it is possible to skip these initializations and just "return" to GRUB once I have booted Linux. Ideally I would also be able to do the same from within Windows but my hope is not very high there :) I did a little search online and found nothing but a somewhat out-dated linux loader - loadlin.exe, which one could run from within Dos or Windows 95/98 to boot Linux. So at least the concept of switching OSes without rebooting is not new. Anyone know of a current tool that does this? If not, is there a technical issue that prevents us from writing such a program or is there simply not enough demand? UPDATE: A friend of mine just told me about K...

It's All Text for Chrome?

I'm a big fan of It's All Text for Firefox, as it's really helpful to be able to quickly open up gvim and write out code, wiki markup, etc in a powerful editor rather than trying to do edits in a large text box. Is there a similar plugin for Chrome? I'm looking for a cross-platform solution, or at least something that will work on Linux. Answer On macs: On Windows: Other platforms: from https://github.com/stsquad/emacs_chrome/blob/master/servers/README Because the Chrome(ium) security model doesn't allow for extensions spawning processes we can't just exec() the editor process. Instead we have to implement an "edit server" which listens to XmlHttp requests on port 9292 (default) and then sends a response when the edit is complete. We include a couple here: Both of these require you run a webserver too, (e.g. http://opencoder.net/edit-server ):

Close a particular opened folder using cmd or batch file with Window version 1909 or greater?

As per this thread , it seems that the solution doesn't work anymore for version 1909 . When I open a folder in File Explorer such as C:\ and run the cmd command tasklist /V /FI "IMAGENAME eq explorer.exe" I get NA under the window title column. And if I try taskkill /FI "IMAGENAME eq explorer.exe" /FI "WINDOWTITLE eq C:\" it doesn't kill File Explorer with C:\ folder open. Is anyone else experiencing this issue also? The related thread that no longer works for my build of windows: How to close a particular opened folder using cmd or batch file?

Czech language input method and font support in gvim 7.4 on Windows 7

I would like to reopen a question related to the following: (Czech) character set support in gvim 7.3 on Windows 7 Basically, in that post I noticed that some Czech characters were being displayed as black squares. So I posted the question and noticed that the problem seemed to go away by changing the font. I thought that solved the problem because the characters in the file I was using displayed correctly. However, I have noticed the following: while some Czech characters display correctly by changing the font from the Gvim menu, others do not display correctly: For instance when I paste the character Ů (Latin capital letter u with ring above) or ů (Latin small letter u with ring above), no font displays the resulting character correctly. For instance, the Fixedsys font displays a black square and a small u, respectively, while Lucida Console displays a capital U and a small U, respectively. I have tried all fonts available from the gvim drop-down menu, and none seem to work for thi...

How to prompt (gui) and use root password on a script?

I would like run a script of mine that need some root privilegies on a gui way. For example, a simple script could be: #!/bin/sh clementine sudo shutdown -h 00:00 The first line opens the clementine music player (and I don't want root privilegies to open it) and the second will halt the computer on a specific time. I would like run the script using Alt+F2 and a dialog ask the root password to me when it is needed. How to do this? Answer Use kdesudo : #!/bin/sh clementine kdesudo "shutdown -h 00:00"

drivers - Cannot setup PCI Passthrough for display adapter in VirtualBox

VirtualBox supports PCI Passthrough and I'm trying to attach my graphics card to the guest OS (host is Windows Server 2012 and guest is Windows 8.1 Professional - so they should both work with the same driver). I've followed the directions at http://howtoware.blogspot.com/2012/01/oracle-vm-virtualbox-how-to-use-pci.html (which are the same directions as in the VirtualBox manual) to set it up. Problem is at this step: VBoxManage modifyvm "VM name" --pciattach 02:00.0@01:05.0 This command attaches the device at [PCI Bus 2, Device 0, Function 0] in the host to [PCI Bus 1, Device 5, Function 0] in the guest. What destination (guest) address (PCI bus, device, function) should I be using to attach the display adapter from my host to my guest? I've tried a bunch of different addresses but VirtualBox reports back with the following errors: If I attach to a device address that does NOT exist on the guest, I get this error: Failed to open a session for the virtual machine...

cpu - Running a Sandybridge i5 2500K on an h67 board

Is anyone aware of any issues/downsides of running a Sandy Bridge i5 2500K on an H67 board? Some info for context: I'm planning on building a dual monitor, quiet, development rig. I have no plans to do any overclocking. I have no plans to do any gaming on the rig ( if that changes I'll add a dedicated card) The reason I'm looking at the K CPU is that it comes with the 3000 version of the integrated GPU, rather than the 2000 on the other i5s. This is important to me because I want to take advantage of the H67 chipsets ability to support dual monitors using the integrated GPU. Some downsides that I am aware of: The 2500K is a great overclocking CPU but by pairing with an H67 chipset I lose the abilty to take advantage of that Answer Answering primarily for the benefit of future searchers. It would appear there are no downsides known to the community other than those outlined in the question.

Touchscreen over Ethernet (with video?)

I've got touchscreen which has a VGA output and a USB (or alternatively, serial) connection which acts like a mouse (for the resistive touch part). I've got Cat5E cabling in my house, and would like to run this screen remotely in my living room connected only to some sort of KVM switch, driven by a computer upstairs in a different room across the Cat5E ethernet cabling, i.e.: +--------+ +-------+ +--------+ +------+ | Touch +--USB---+ Magic +--Ethernet--|| ... ||-----+ Magic +---USB----+ PC | | Screen | | Device| | Device +---VGA----+ | | +--VGA---+-------+ +--------+ +------+ +---+----+ | Power Is this possible to do? What is the the "magic device" I need - an IPKVM? I don't want to spend too much. (I could buy a new PC for $200!) I'm quite happy to get my hands d...

linux - How to disable power saving on my Lenovo Y50's subwoofer audio pins?

Follow-up from: How do I make my Lenovo Y50's subwoofer work on linux? To cut things short, I have a Lenovo Y50 that has an integrated subwoofer, that only works on Linux Mint if I set some settings on two pins using HDA Analyzer. The same solution doesn't work on Fedora and other distributions. More info in the link above. I've had some time to investigate a bit further and noticed that there are differences in what HDA Analyzer's text dump tabs tell me for each of the pin, on each of the distros (Linux Mint on left, Fedora on right): I've learned that D0 means full power state and D3 means low power state. I've researched on how to disable power saving on my audio card completely, so I've tried the following on Fedora, inputting in the terminal and testing before and after reboot, but it didn't solve my problem: echo 0 > /sys/module/snd_hda_intel/parameters/power_save echo N > /sys/module/snd_hda_intel/parameters/power_save_controller I've al...

windows 7 - How can I stop the remote computer from changing my keyboard layout?

Whenever I open an RDP connection to a remote machine, that machine will be using the English (EN) keyboard layout and I have to constantly switch it back to German. I use a customized keyboard layout on my workstation and this layout is not present on the remote machine. I assume this to be the cause of the issue. Answer Neno Loje mentions this issue (and the solution) in his blog. In the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout Create a new DWORD value IgnoreRemoteKeyboardLayout and give it the value 1 . That should be sufficient to solve your problem. However, there are some known problems with certain Windows versions, as discussed in these knowledgebase articles: Windows XP Windows Server 2003 In addition to that, Remko Weijnen explains on his blog how to even adjust the keyboard profile on the login page. If you want to change the keyboard layout that is used before logging in (“at the logon screen”) you need to modify the k...

backup - Can you store CDs/DVDs in a fireproof safe?

I have a normal WalMart-style fireproof safe that I use to store important documents. I've also been using it to store backup DVDs, each in its own slim case. This takes up a bit of space though, so I was thinking of putting them into one of the small CD flip folders, and putting the whole folder in the fireproof safe. Is this safe? Is there a better method to keeping backup CDs safe from a fire? Answer As per Ray Bradbury, the ignition temperature of paper is 451 degrees F. Fireproof boxes and safes are rated with different standards, and ratings that are suitable for paper records only are not suitable for CD/DVDs. From this vendors page page (just something I grabbed from the Internet - no idea who they are or what their products are like) UL 72 Fire Resistance Testing Standards .. 1.6 The interior sample temperature and relative humidity limitations applied to the three classes of devices reflect the type of records to be stored in the device. Class 350 rated devices are int...

Display selected keyboard layout in Windows 7 task-bar notification area

In control Panel I selected two keyboard layouts, a standard one and an extended one. They mainly differ in that one uses ` as a dead key for composing accented characters. The other allows simple entry of ` without having to press a space bar afterwards. Because I have more than one keyboard layout selected, I have a keyboard icon in the task-bar notification area. I can toggle between the two layouts using Ctrl + Left Shift but I have no visual indication of which is currently selected. Just an unvarying icon of a keyboard. I recall older versions of Windows (XP?) did have at least show a two character country identifier in the notification area. I can choose "show the Language Bar" (which appears at top of screen) but would prefer something smaller and less conspicuous. Is there any way to display the name of the current keyboard layout in the task bar notification area? Or at least a different icon for each? Answer In Properties of that particular keyboard layout you...

Why is Google Drive so heavy on my CPU?

As the below screenshot shows, despite the fact that Google drive doesn't appear to be doing anything (it's not syncing any data) it's using over 12% of my CPU (a core i7). The official documentation states: Depending on your network connection and computer preferences, Google Drive may consume a large amount of CPU to complete its initial sync. However it has been installed for over a month now and doesn't have anything new to sync. Why, then, does it use so much of my CPU?

ubuntu - SSH authentification with public key fails

I have my id_rsa.pub key under my /home/user/.ssh. I carefully copied that key and paste my key to respository Git account. While trying to connect from my local system to my git respository, I got the following error: warning: Authentication failed. Disconnected; no more authentication methods available (No further authentication methods available.) I removed SSH in system and re-enable and did again, but no luck. I have no idea what's happening with my SSH key. Can any one please tell me on this? Note : I noticed in my home /home/user/.ssh && /home/user/.ssh2

Windows 8 Snap on desktop not working

I'm trying Windows 8 and I want to test the new snap feature where you can have two metro apps side-by-side. However, it doesn't seem to work. I place my cursor on top of the screen, and drag left or right, but all it does is move the current app around, and when I release my mouse it always goes back to the original, single-app view. So how do I properly use this feature on a desktop? Answer You have to drag the app to the left or right until you see a vertical dividing line appear in the background. Once you see that, you can release the mouse button and it should be snapped to that side of the display. However, this feature requires at least a 1366x768 screen resolution . If your screen's resolution is smaller than this, Windows disables the ability to snap metro apps. The recommended way to get it is to increase your screen resolution in order to take advantage of this feature. However, allegedly you can do a quick modification in the Windows Registry to force it to b...

virtualbox - Why can't I create soft link on vboxsf file system?

ln -s keeps saying me that file system is read-only, however it is not. ice@distantstar:~/virt ➜ touch file ice@distantstar:~/virt ➜ rm file ice@distantstar:~/virt ➜ ln -s ~/.bashrc ~/virt/.bashrc ln: failed to create symbolic link `/home/ice/virt/.bashrc': Read-only file system ice@distantstar:~/virt ➜ mount | grep virt none on /home/ice/virt type vboxsf (rw,nodev,relatime) ice@distantstar:~/virt ➜ cat /etc/fstab | grep virt VIRT /home/ice/virt vboxsf rw 0 0 Answer In Virtual Box 4.1.8, creating symlinks using a guest-OS in a shared folder has been disabled for security reasons. For more information, check out this ticket: VirtualBox Ticket 10085 Disabled Symlinks To re enable, you can try running this command: VBoxManage setextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME 1 where SHARE_NAME is the name of your Shared Folder. Alternatively you can downgrade to 4.1.6 and that should fix the issue.

networking - Allowing a friend to connect over the internet to a Minecraft server I've hosted?

I have set up a Minecraft server and have built lots of things, now I want my friend to play on it too. I'm hosting it on my home computer and don't want to have to set up a new server elsewhere so I need to allow my server to be accessible over the internet. How can I make this server available for my friend to connect to over the internet?

microsoft excel - making a list of PO combinations that equal X using list of random numbers

I have an excel sheet that has a list purchase orders with a case value associated with each PO. for example: 3156922129 10 756941986 13 1356902364 15 3156892373 15 9156912182 17 3756902389 22 I don't have the full list posted but it has 42 instances of the above example. What we are having to manually now is look at the PO quantities and get combinations that add up tp 75. This is the number of boxes we can fit on a pallet. At the end we end up with 26 skids with the PO's that equal to or come close to the 75 pc goal. Is there a way to take this list and have excel give you what PO's would equal to or come close to the desired 75 goal?

How to turn on/off fonts anti-aliasing in Notepad++?

Is there a way to turn on/off anti-aliasing in Notepad++ , either through settings or a certain plug-in? Answer Notepad++ uses the same settings as the rest of the applications on the system. There isn't any setting within it to change this. P.S.: If you are having issues with blurry text on DPI settings higher than 96 DPI on Windows Vista/7, turn on "Disable display scaling on high DPI settings" on program's "Compatibility" tab.

windows 7 - Chrome not listed in default programs

After switching browsers from Firefox to Google Chrome I've tried all the solutions that I know of, going into the registry and manually changing the default program there, going into the control panel and trying to figure out how to manually change the protocol, uninstalling Firefox completely, restarting my computer, downloading Default Programs Editor, and running every single one of these in administrator mode. I STILL cannot get Chrome to open ANY hyperlinks in Skype or program links or anything that involves FTP, HTTP, or HTTPS protocol. I haven't even been able to find Chrome in the list of available programs that I'm allowed to set the protocol to. I'm getting pretty tired of even thinking about forcing the protocol as Google Chrome. Here's an imgur album of the screenshots that I'd imagine would help: http://imgur.com/a/53NE5

motherboard - PC won't start unless I reset CMOS

Situation: My PC is dead in the water. Both power buttons (Case/MB) have no effect. If I pull the power cable, reset CMOS, reconnect the power cable, then press either power button the PC fires right up. The system operates normally once running, however neither power button will shutdown the PC. I use the Power button on my keyboard to shutdown. Question: What causes a motherboard to require a CMOS reset in order to power on? What is on the CMOS that physically denies power for startup? Information: This issue was sudden onset, meaning no changes to hardware, software, power sags, brownouts, overloads, etc. prior to symptoms. All components have been voltage tested with a VOM. The wall outlet, PSU, CMOS battery, MB, etc. all check out. I have tried alternate PSU & RAM modules. No effect on symptoms. Running system with bare minimum hardware has no effect on symptoms. I have not flashed the BIOS/CMOS yet. No sense doing this unless I'm positive it's the solution. No sign...

ubuntu - SSH tunnel for VNC not functioning

I am playing with my sexy new Ubuntu 10.04 server I am trying to tunnel x11vnc through SSH to putty. Steps I took (all from my Windows 7 client) open putty (0.60) Enter the server address under host name. The server is the DMZ computer on my home network. The client is behind NAT. The server has a dynamic DNS so I entered "xyz.dyndns.org" under host name. (yes, the real server is something other than "xyz" please don't go hack ) Under SSH--> Tunnels--> I enter 5900 under "source port" and "127.0.0.1:5900" under destination. Click Add Click Open enter username and password type "x11vnc -usepw" it confirms that the server is running and serving at 5900. I have also confirmed that there are no firewall rules blocking access to 5900 and one allowing access to everyody (no, I won't leave it like that for long). open TightVNC viewer type in 127.0.0.1:5900 and it responds: sorry loopback connections are not enabled The error log ...

Aero Glass/Transparent window borders in Windows 8?

While I'm really liking Windows 8 , I do miss having the semi-transparent borders round my windows, like with Aero Glass in Windows 7. I note that the taskbar in Windows 8 is semi-transparent... Is there a way to change windows border opacity, to restore Aero Glass or even just so that it looks like the taskbar? Thanks for any help. Answer Aero Glass can be enabled with a DLL available for free here : This DLL is loaded via AppInit into the DWM.exe and Explorer.exe and and hooks the functions SetWindowCompositionAttribute and DwmEnableBlurBehindWindow and implements them again to enable the Glass effect again in Windows 8. Now you can work with Windows 8 without getting headache because of the ugly Theme :)

windows 7 - Why half of my RAM of 8GB is missing?

Have been sitting with 8GBs of RAM for 2 years still thinking I needed another 4GBs and never questioning why so often I get message about low physical memory that would close all open programs (Firefox mostly since it is mainly what I use) if not paid attention to immediately. I would then have to restart programs using most memory (Firefox is one of them) to continue working normally and not losing any unsaved changes. Anyway, II have noticed that although system sees 8GBs of RAM, it still uses half of it and I will demonstrate this with screenshots further. Combined screenshots of System Information and Task Manager: Resource Monitor screenshot: RAMMap screenshot: And finally my swapfile condition at one time and another. The point is that it is big all the time: Notice " Available " and " Free " memory from above screenshot. This is what I see in Task Manager most of the time and opening another 5-7 tabs in Firefox causes " Low Memory " warning to ap...

Networking - Games can't see/join anyone else's LAN servers, unless I host

This happens with various games, from Battlefield 2 to Trackmania and therefore seems to be some network configuration error: When anyone else hosts a LAN game I am the only one that can't see their server in the in-game server browser, nor can I join it with a direct IP connection. However, when I host the game everyone else is capable of joining my server without any problems. I am also the only one on the network experiencing these issues. Things I already checked: Windows Firewall is set to allow each application (and the problem still happens when it is completely disabled) Other networking an internet programs like browsers, e-mail, ssh and ftp are working perfectly fine Various static/dynamic IP address/subnet mask and default gateway settings don't fix the problem Answer The problem seemed to be that the games don't properly handle my PC having multiple network adapters. They then connect using the wrong network adapter and only see that adapter's own network...