Skip to main content

Posts

Showing posts from June, 2017

python - IntelliJ IDE: How to add one or more margins

I like PyCharm a lot. I write a good chunk of python for my job. I want to conform to PEP8 and it's line length suggestions as best as possible. Having right margins for 72 characters, 79 characters, and 99 characters is very important to me. However, within the current IntelliJ family of IDEs, a user can only specify one right margin as shown by this screenshot . Does anyone know of a plugin that allows a user to add more right margins? Or more right rulers (I don't need/want my code to be able to wrap at each vertical line)? Answer The only thing I was able to find is that with sublime text you can specify as many margins as you want, it is called rulers though. But Sublime text is not an IDE and doesn't implement as many features as PyCharm. I guess multiple margins isn't a feature that comes with IntelliJ products.

macos - How to run bash_profile function from desktop alias .command file on OSX Lion?

Ok, so I have this great little function in my bash_profile which works great when I call it from Terminal (it opens a new firefox window instead of new tab): function firefoxNewWindow() { /usr/bin/env osascript <<-EOF tell application "System Events" if (name of processes) contains "Firefox" then tell application "Firefox" to activate keystroke "n" using command down else tell application "Firefox" to activate end if end tell EOF } Now I create a text file and place it on my OSX Lion desktop with a .command extension (firefoxNewWindow.command), and put this text in it: firefoxNewWindow I then make sure it is executable by doing this: chmod a+x desktop/firefoxNewWindow.command Now when I double-click the command file on the desktop to run it I get this error: ~ >/Users/myname/Desktop/firefoxNewWindow.command ; exit; /Users/myname

64 bit - Windows 8.1 UEFI x64 is not able to boot-up UEFI Images

The question appeared after asking this one . It seems that the Win8.1 UEFI x64 Boot Manager is unable to boot anything other than the windows itself (winload.efi). Trying to launch any other UEFI image (.efi) from it gives the error code 0xC000007B and I'm pretty sure that this isn't because of a missing file but instead because the file is 'invalid' as when I rename that file the error changes to 0xC000000F. I have disabled the secure boot but without any luck. At the moment I'm trying to integrate the rEFInd bootloader. I can say that it's UEFI image is working as it is able to boot from a USB flash drive using the firmware. Using the Windows Boot Manager however give the same results explained above (error code 0xC000007B). At the moment my BCD configuration is (picture): Command line screenshot http://imageshack.com/a/img811/7857/kbth.png As F:\rEfit\refind is the directory where refind is stored and "refind_x64.efi" is the program image. NOTE:

wireless networking - Can't connect to wifi with laptop

I can't connect to wifi with my laptop but I can connect to wifi with my phone, ps3 and ipod etc. I can actually connect to the internet with my laptop when I use a cable to connect to the router. Does anyone know what my problem is? My connection worked perfectly before, but 3 days ago it just stopped working. I have windows 8. In the corner it just gives me a perfect bar connection and I cant find any solution on internet. Thank you Answer You have a few options and things to try I think A repair of the network adapter A System Restore

networking - Windows XP Internet Issue

I'm trying to fix a computer running XP for a friend, and it is being a pain. It is on the same wifi as this Mac I'm using to type this. It says it is connected and the signal strength is excellant. It is connecting through Windows, no 3rd party software. If I use Chrome or IE and get to the Connections tab of the internet settings, underneath LAN settings, Use a proxy server was checked, not sure why, but I unchecked it and checked automatically detect settings, and restarted, but to no avail. ipconfig yields: IP: 192.168.1.11 Sub Mask: 255.255.255.0 Default Gate: 192.168.1.1 ipconfig /release zeros out, as expected ipconfig /renew says: An error occurred while renewing interface Wireless Network Connection : unable to contact your DHCP server. Request has timed out. No operation can be performed on Local Area Connection while it has its media disconnected. I tried using winsockfix.exe, and netsh, with restarts, but to no avail. Network Connections lists: Wireless Network

Can I search and replace in a Notepad++ macro?

I'm trying to create a macro in Notepad++ that allows me to do a few standard Search & Replaces. I can get the macro to do everything (add lines, add characters) except search and replace. I can't find the files to edit the macro manually. Has anyone ever succeeded creating a Macro in Notepad++ that performs Search and Replace? How? PS: I'm not interested in other tools that can perform this - I know my way around perl, vi(m), UltraEdit, sed, awk myself - I was just wondering if Notepad++ could do this. Answer Yes you can, I just tried to record a new macro, did a search and replace and it successfully saved the action so when I played the macro, it did the same search and replace action. I am not an expert at Notepad++ Macros, but I am guessing you are... I opened a random file and created a macro called test. It looked for a word called "snip" and replaced it with "blaa". Opening up the shortcuts.xml file after closing Notepad++ reveals this ne

windows - Email When A Program Is Closed?

Is there any program I can run, that, when another program or service is quit that it will send an email notification? Something for Windows machines We have a building automation program that we would like to have running at all times. We just want to be alerted by email if the program gets closed. Thank you

Upgrade from Windows Vista (x64) to Windows 7 (x64)

Is it possible to upgrade from Windows Vista Home Premium (x64) to Windows 7 Home Premium (x64) without losing the current programs, their settings and the data in the hard disk? If possible, how much time does it take to finish the full upgrade? Is it necessary to backup the system against probable errors? Answer It's possible to do it, but it might take a long time (anything up to 14-15 hours). I upgraded from Vista Business to Windows 7 Professional in about 2.5 hours, even though I had quite a lot of apps. This question shows you the upgrade paths available from Vista to 7.

On Windows, what filename extensions denote an executable?

On Windows, *.exe, *.bat, *.cmd, and *.com all represent programs or shell scripts that can be run, simply by double-clicking them. Are there any other filename extensions that indicate a file is executable? EDIT : When I jump into a new project (or back into an old project!), one of the common things I want to do when looking around is to find out what tools there are. On Unix (which I've used for decades), there's an execute bit, so this is as simple as: find . -executable -type f I figured that on Windows, which seems to have a much more complex mechanism for "is this executable (and how do I execute it)", there would be a relatively small number of file name extensions which would serve roughly the same purpose. For my current project, *.exe *.bat *.cmd is almost certainly sufficient, but I figured I'd ask if there was an authoritative list. Answer The basic "executable" files (the ones Windows looks to execute via the PATH) are stored in an envir

memory - Should I be worrying about Single Channel and Double Channel for my RAM?

I've got an Asus P5N-EM HDMI motherboard. When I run CPU-Z, it says my Memory is Single Channel. Currently, i have 2x2GIG Kingston DDR2 ram modules installed. These are the screenies from CPU-Z: Note: Both slot #1 and slot #3 have the same data. Should I be trying to go dual channel? Should I care? Answer Looking at your board it appears that Slot#1 and Slot#2 (colored black?) should be used for the memory -- this ASUS board has 3 memory slots instead of the usual 4 and they are organized differently. Alternate is not right here. A good article discussing Dual-Channel RAM, Everything You Need to Know About Dual Channel Dual channel is the ability that some memory controllers have to expand the width of their data busses from 64 to 128 bits. Considering that everything remains the same (clock speeds, for example), the memory maximum theoretical transfer rate is doubled by the use of this technique. Memories based on DDR (Double Data Rate) technology such as DDR-SDRAM, DDR2-SDRAM

power supply - Agghhh! UPS Back-Up, Laptop Charger, Sparks

Boy… ok. This is so frustrating! Ok so, I've been getting a whole lot of problems with the electrical grid here lately: spikes, surges, lows, brown-outs, all kinds of problems, it's terrible, short-circuiting things left and right. I have been afraid to even plug my laptop (Toshiba Satellite L300 Series) in at all to charge it. So I wanted to get a really good surge protector/battery back-up to protect it (it's really important to me, I'm a sentimental sort, and I don't want to just upgrade to a new laptop like everyone tells me, I'm very attached to this one!). So I do some research, the APC Back-UPS Network 40 450VA Battery Back-Up System BN4001 is the one I end up going with. So I do all the stuff to get it set up, attach the battery, get it plugged in, turned on, all that, I go to actually try to plug my notebook's charger (which is, at this time, actually plugged in to the computer itself, mind you) into the UPS, and… it won't go in, can't get

Why won't my motherboard work with two CPUs?

I (very) recently built a computer with the following specifications: (x2) Intel Xeon X5650; Supermicro X8DTI-F Motherboard; AMD Radeon R9 280X; 16GB DDR3 FB 1333MHz RAM (4x 4GB); 1TB Seagate Constellation SED (enterprise HDD); RM850 PSU Now, the system runs perfectly fine with one CPU installed (installed Windows, games, programming, etc, are fine), but the system will not initialize both CPUs when both are installed. I have a PCI POST card (the same as shown below), and it stays on '00' when both CPUs are installed; the same code it uses when no CPUs are installed: Both CPUs work and so do both sockets (basically, everything works except when I try to use both CPUs at once), so I'm not entirely sure what's going on here. I have also tried another PSU and resetting the CMOS, none have worked. There is a BIOS update available for my motherboard, but applying it hasn't fixed the issue either. Here's the details in CPU-Z of each CPU: I took a screenshot of CPU-Z

Run batch file AFTER all other programs at Windows initialization

I have a set of programs running at Windows startup, some called from Registry and others called from Start Menu (Initialization). I'm trying to have a batch file loaded and showed its screen AFTER all other programs has had loaded. I tried changing their entries in Registry (Run subkey, also Wow6232Node) and Start Menu without success. That batch file is almost always the first screen I got and it is not desirable as I need. It has to be the last screen showed. Firefox uses to be the last one. So, how to load Firefox (and all others) BEFORE that batch file? How to delay or put a "sleep" command within Windows start up for a given program? I'd add that important thing is to set focus to batch file running after all other programs had loaded. My goal is to have that batch file in foreground and focused.

Ways to start a program at windows startup?

I had an updater program that started itself on logon but was not able to find it anywhere. After some time I found a hidden task in the task scheduler and managed to turn it off. That made me wonder, what are the possible ways to set a program to run at startup? I know of: Registry CurrentVersion\Run (msconfig Startup tab) Startup folder in the start menu for current and all users. as a service via task scheduler as a driver? After some searching I also found https://stackoverflow.com/questions/3070152/ Are there any other ways? Or other folders like the Startup folder which are executed at startup?

what purpose does HKCUsoftwaremicrosoftwindowscurrentversionexplorerfileexts serve?

Back in the day, one merely need look at HKCR\.ext which would point to HKCR\type-handler . HKCR is now a dynamic link to both HKCU\software\classes and HKLM\software\classes , in a cascade pattern (local user first, then local machine). However, now we also have this ..\explorer\FileExts registry tree, presumably at both user and machine levels as well. What does this additional complexity provide? I don't know about you, but I am forever fighting Windows to correctly open my files, with Explorer hanging quite often, or failing to open a given file from explorer. And it seems quite arbitrary, where an install of say TextPad on one machine will appear to be 100% functional, whereas on another will result in only limited functionality with either Explorer or TextPad crashing when a file is attempted to be opened (say via the right click menu, or send-to, or drag & drop, or double click). I've asked a few times and done myriad searches, and I have yet to find a comprehens

How to get backlight on my Acer Extansa 5220 laptop to lower than minimum brightness level?

Minimum backlight level is not as dim as I want. I want to be able to tune it to arbitrarily low level, for example to be hardly visible in a dark room (but still visible). In my digital camera I've implemented switching off and on backlight fast enough so it looks very dimmed. How to do it in my laptop? It uses some intel video card, so aticonfig is no use. Tools like "Dimmer" (that just makes pixels darker colour, attempting to "fix" excess brightness by filtering it in LCD) are not acceptable: even screen with all pixels set to black looks too bright. Expected ways: Fast enough repeated low level switching it on and off (not xbacklight/xrandr/other_things_that_turn_off_display). Only backlight, not LCD itself. Modifying something by hardware means (e.g. installing additional switch and resistor), if it is simple and safe. Pressing Fn+F6 does almost what I want from "Low level switching", but I cannot "press" it programmatically. Answer

google chrome - Can't boot to alternate OS or Live CD

I'm having trouble installing a new OS on a Toshiba Satellite Chromebook. I continue to encounter a message "The device you inserted does not contain Chrome OS" . I basically followed Chrome OS's Poking around your Chrome OS Device . The device wiped itself after I enabled developer mode. I can enter developer mode via ESC + F3 + Power , and I get the message "Boot verification is OFF" and then I get a message "Chrome OS is missing or damaged" . I'm fine with it because I'm installing a new OS. However, when I insert the thumbdrive with debian-8.3.0-amd64-lxde.iso dd 'd on to it, it results in the message "The device you inserted does not contain Chrome OS" . I get the same message when I boot with the thumbdrive inserted. I also get the same message when attempt to boot debian-8.3.0-i386-lxde.iso . According to Product Forums and Chromebook Central Help Forum , it could be a problem with the thumbdrive maker or the physical

Remote desktop minimize fails when in full screen (Windows 7 locally and remote)

I recently have a problem with Remote Desktop (RD) on Windows 7. When I am in a RD session in full screen and click on the "minimize" button on the RD toolbar, the screen flickers, but the window does not go away. The only way to minimize for me is to first click on "restore" and then on "minimize" in the non-fullscreen RD session. Anyone has a solution?

Creating a conditional drop down menu in Excel

I want to create a second drop down Select part that is conditional based on the part that matches the device. See the data sheet below. The idea is that if the user selects from the Select device drop down something like Computer the only options available under Select part will be Ram and CPU . I am using the Excel data validation -> validation criteria -> list function to do this. The data sheet is text only. From Data sheet the heading _Device[1]_ is for the first drop down and the headings _Part_ and _Device[2]_ are the matrix ready for the second drop down. The key requirements are that the drop down sheet has only two drop downs, devices and parts, and the data sheet has only text and nothing else. Drop down sheet _Select_ _Drop down_ Select device Select part Data sheet _Device[1]_ _Part_ _Device[2]_ Computer Ram Computer Car CPU Computer Fridge Window Car Seat Car Door

windows 7 - Can't Access a file I downloaded since I don't have permissions yet I am admin?

I downloaded some file and everytime I try to copy it or move it somewhere I get these errors Windows cannot access the specified device, path , or file. You may not have the appropriate permissions to access the item. You need permission to perform this action You require permission from "user(where this is my pc name/myusername)" to make changes to this file. Yet I am an admin and it is my only account on this computer and it saying to me I need permissions to open it up from "chobo2" user yet that's the account I am logged in as. I don't get it. How do I disable this stupid message so I can access every file I want. I am using windows 7 ultimate 64bit. As far as I know I have full permissions set so I don't know why I am getting this. Answer Check file/containing folder permissions and ownership. There should be something wrong with them. This message is typical if you tried to play with them before and messed settings up. If you are the owner than

Why does File Explorer hang frequently in Windows 8?

Why does File Explorer hang frequently in Windows 8 when I am browsing through a folder containing about 20-30 files and folders? The program hangs for around ~5-10 seconds like it is still processing. This happens with almost every start. This was not the case before, with Windows 7. The machine in question is running on an Intel Core i3 3GHz processor with 4GB of RAM. Answer For me, the Windows Defender is the cause of this Explorer slowdown. Here is what I get when scrolling through the Explorer: Look if you also have this high CPU usage. if yes, disable Defender and install a different AV tool.

macos - What can I do to stop the Play / Pause button from opening iTunes?

In Snow Leopard the Play / Pause media button (on the F8 key) opens up iTunes. How can I disable that? Preferably keeping the old Leopard behaviour, so I can use it to control other media applications (e.g. Spotify). Answer a better temporary fix is to start quicktime and just have it running(not playing a movie) in the background. It uses less ram/cpu than iTunes.

linux - ERROR: cuvid requested, but not all dependencies are satisfied: cuda/ffnvcodec

I am trying to compile FFMPEG with Nvidia Cuda support, on Debian 9.3. Parameters, what I am using: --enable-cuda --enable-cuvid --enable-nvenc --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --enable-gpl --enable-libx264 --disable-x86asm --enable-libx265 --enable-libfdk-aac --enable-nonfree Nvidia Cuda with drivers are installed. When I try to configure ffmpeg, it says: ERROR: cuvid requested, but not all dependencies are satisfied: cuda Newer ffmpeg will show a similar, re-worded message: ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec I absolutely don't know why I'm having this issue, because I am compiling ffmpeg on all of our trans-coding servers. Answer The NVIDIA headers were moved out of the FFmpeg codebase to a standalone repository in commit 27cbbbb . From the commit message: External headers are no longer welcome in the ffmpeg codebase because they increase the maintenance burden. However, in the NVidia ca

pgp - How do I display the usage flags for my encryption keys in a less hackish way?

I am trying to educate myself on the use of encryption keys and I've been experimenting with this old Linus Torvalds’ key that I found 956EB7BF449FA3AB . I am interested to display the usage flags but neither gpg2 --list-keys 449FA3AB nor gpg2 --fingerprint 449FA3AB display the usage flags. The only way I've found to get the usage flag information is this hackish way. $ gpg2 --edit-key 449FA3AB gpg (GnuPG) 2.0.26; Copyright (C) 2013 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. pub 1024D/449FA3AB created: 1999-10-05 expired: 2001-10-04 usage: SCA trust: unknown validity: expired sub 2048g/BFF491C5 created: 1999-10-05 expired: 2001-10-04 usage: E [ expired] (1). Linus Torvalds gpg> quit $ What is the official way to display the usage flags? Answer The machine-readable format using --with-colons contains the usage flag as last colu

How to recover data from old drives of different types?

I have a short stack of hard drives (4 or 5) that I have been pulling from my old and broken machines over the past number of years with the notion that at some point in the future I will somehow connect them into a new machine to get the data. And I guess the time is now. My question is, what's the best way to go about this? Note that the drives are of different types: SATA, EIDE desktop and laptop. Is there a good, single hardware/software solution that I could use to connect these drives one by one and recover the data? (These drives were all working when used last but I know that they may not spin up. Still, I hope that at least a few will.) Answer I prefer using one of these to get a hard drive connected to my computer. If the drive spins, you can generally use windows to read the data off of it. I know windows will read most anything that isn't corrupted. If the data is corrupted your only real choice is Spinrite . That will cover most any spinning drive. If the drive

networking - Some confusion about listening and open ports, difference between listening, open and blocked

I have been strugling for some time now to open ports on some Linux machines and I have followed some tutorials, which I tried in 2 different Linux VMs and failed for either, and after some research I think I have found out why this is failing. So, what did was to download gufw, set a rule to allow inbound connections to a specific port or disabled the firewall and rebooted. After that, when I scanned with zenmap I could see that the port was still closed. But when I used nc -l -p port I could see that the port was open. The same thing happened on port 80 when the apache server was running for that machine. Then, I configured the firewall to deny all inbound traffic and rebooted. I started the apache service and ran nc -l -p port and then scanned with zenmap and it said port 80 and the port chosen by nc were filtered From this I draw the following conclusions: Listening means that the port isn't protected by a firewall or the firewall allows inbound traffic to there and that there

windows - How to put a TAB character in a file/dir. name?

On Windows, besides the reserved characters ( " , : , / , \ , ? , * , < , > , | ), control characters (such with an ASCII less than 0x20 and also the 0x7F character) are not allowed in file and directory names (usually). There should be a way though to get the TAB character (horizontal tabulator, ASCII 0x09 ) in a file or directory name (although it might not be possible as the first and/or last character). So how can I get the TAB character in a file and directory name on an NTFS volume with native Windows tools? I am quite sure there is a way in Windows, although I do not know what about NTFS.

windows - Win 8.1 not going to sleep

I have searched quite a lot already but unfortunately didnt find any solution or hint yet. My problem is NOT that my computer starts/boots itself from standby mode. For this often discussed problem, there exists the commands powercfg -devicequery wake_armed and powercfg –lastwake . But for me, the problem is, that when I press "Energy saving" in windows, then my monitor immediately goes black, but my computer keeps running. How could I find out what is causing this issue and which driver/software keeps my PC running? I only installed a new nvidia driver and some windows updates lately, and I disabled Windows 8.1 fast boot mode, nothing more. Thanks in advance EDIT : powercfg /requests showing NONE everwhere VLC only in portable mode, so not running in the background powercfg -energy not showing any entries which say "preventing from sleeping" No print spooler entry, no Windows Media Player Network Sharing Service I also tried powercfg /requestsoverride driver srv

windows 7 - Windows7 access to printer shared with XP?

I have an eeebox running with XP 24/7 with an attached printer (Canon IP5300) installed as shared. We have a few other laptops and PC, all with vista, that can access and print on the shared printer without problem. We just received a new computer with Windows7-64 on it, but it fails to connect the shared printer. I tried connecting the printer with its USB cord directly to the Windows7 PC and the required driver was automatically downloaded and installed. I could then access the printer specific properties, etc. But if I connect it back to the XP computer, the windows7 PC still refused to connect to the remote printer although it now have the drivers. The windows7 is a family pack. Question 1: How do I solve this? Second unrelated question: I also have an old canon scanner still perfectly working with XP, but for which I can't find compatible drivers for windows 7. Do I have to buy a new one ?

cleaning - How can I remove the smell of cigarettes from my computer?

I'm a smoker, and of course I smoke in front of the computer when I'm at home. Last Friday I moved out from my mother's house to my own, and since the computers were always turned on and the room was one where everybody could smoke, the smell didn't bother me. At my new home, I turned them on, about 15 minutes ago, and now I'm dying because of the smell of cigarettes (this may be kind of stupid to hear from a smoker, but I hope some of you understand). This solution has to be relatively quick, because I can't stay without the desktop and the server for one week, for example. Tomorrow, I'm going to open them both, and remove all dust there is inside, this should clear some of the smell, but probably won't remove it completely. Does anyone know a technique to get rid of the smell? Update: Some pictures of the case after I opened it: Side Fan of the case click to enlarge CPU, Graphics Card and PSU click to enlarge PSU click to enlarge Answer Air Freshener

How can I fix the default search engine in Chromium on Linux Mint 11?

Lame. Linux Mint comes with some pretty nasty defaults as far as setting the default search engine go. How can I set it to Google proper? Can someone copy and paste the URL to use which is working for them? Answer Here's what I was able to recover from another computer: {google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&q=%s Thank goodness I had this other computer lying around, this was literally driving me insane.

Why is the Windows Features window showing PowerShell 2.0 installed?

I'm running a Windows 8 machine. The "Windows Features" window tells my that I'm using PowerShell 2, but the PowerShell environment itself says otherwise, see screenshot below. Why is the Windows Features window saying I got PowerShell 2.0? Answer PowerShell v3 is build into Windows 8, you can not add/ remove it. v2 is different story - it's optional, system will operate normally without it, so you can disable/ enable it. To use it - you need to run powershell.exe with parameter -version 2 - it should be first parameter on the list for it to work.

command line - adding PATH with SETX or PATHMAN or something else?

I am trying to add a PATH from command line, as with SETX %PATH%... it always expands the PATH, which I don't want. PATHMAN is exactly for this purpose, but it doesn't work for me on Windows 7. It freezes most of the times, and it doesn't check for duplicated. There must be a tool for managing PATH variables in the proper way. SETX would be perfect, but maybe not with the %PATH% syntax. Answer See the article Edit the PATH environment variable in Windows without pain . It recommends using pathed : For example, say that you have your Sysinternal tools in C:\Bin\Sysinternals and you want to add them to the PATH. Simply do: pathed /append C:\Bin\Sysinternals /machine If you want to add them to the user PATH system instead, then do: pathed /append C:\Bin\Sysinternals /user

vmware fusion - Insert key on external UK Apple keyboard

I am using an external Apple keyboard and using Windows 7 in VMWare Fusion. One of my Windows apps responds to the Insert key. How do I simulate pressing insert on the Apple keyboard ? I have searched around and the common response is to use the Help key, only my keyboard has no Help key. Answer I finally found one ! On the numeric keypad, the key for zero sometimes acts like the insert key. This is toggled by another key on the numeric keypad - the one containing the picture of a box with a diagonal cross through it (the numlock key ?).

Firefox completes the address bar with content absent from my history

I have set Firefox to complete the address bar with elements from the history only ( other options are: nothing, bookmarks, and a history+bookmarks). However, Firefox still continues to complete the address bar with elements that are no longer in my history. A search in the history returns 0 result for the incriminated string. How can I solve this without loosing my entire history? I have already tried shift + delete on the elements I would like to delete, without success. How can I find the source of a certain completion ? (like an SQL request in the sqlite3 files used to store history) I'm using Firefox 16.0.2 on OS X 10.8.2. Answer For some unknown reason, certain URL are absent in the history, but are still used to autocomplete the address bar. The raw information is stored in a file places.sqlite in the Firefox user directory. Locate it, quit Firefox, and run this command to locate places containing the URL you don't manage to delete within Firefox, $ sqlite3 places.sql

windows - How do we retrieve data from an unbootable computer?

Guys I'm in a big pinch right now. My computer (32-bit Vista Home Premium sp2) refuses to boot up (it keeps crashing with an error code 0x7b). I don't care about the computer right now but I need to backup the data inside it. My computer has a single physical drive partitioned into C:\ and D:\ . I've tried doing an external boot with Hiren's Mini-Windows-XP however there seems to be some bug with it because when I view my D:\ file system using Hiren's Mini-XP, there is only 16 GB of data see-able. However it's weird because when I right click D:\ drive >> properties, it shows that there is 116 GB of data (which is the correct amount). I've ensured that the folder options show "hidden files", so where is the remaining 100 GB of data? How do we transfer the data from a computer into an external drive when Windows doesn't even boot up? Answer The best strategy to do this is removing your unbootable disk from your computer, then connect

windows - How to batch copy & rename files?

I'm using windows server 2012 R2. I have a folder with a bunch of files and I want to copy for every file in that folder 20 times into another folder but the newly copied file has to be renamed using single alphabetical orders. For example a file called "orange.html" gets copied 20 times and moved to another folder. The new folder would contain 20 new copied files with file names such as a.html, b.html, c.html etc. This is the code but all it does increment by numbers but I want to increment by the alphabet @echo off for /L %%i IN (1,1,100) do call :docopy %%i goto end :docopy set FN=00%1 set FN=%FN:~-3% copy source-file.html poll%FN%.html :end Answer All it does increment by numbers but I want to increment by the alphabet The following batch file (test.cmd) should get you started: @echo off setlocal enableDelayedExpansion set "chars=abcedefhijklmnopqrstuvwxyz" for /l %%i in (0,1,25) do ( echo copy source-file.html folder\poll!chars:~%%i,1!.html ) endlocal

How do I stop Windows 10 going to sleep after locking with Win+L key

I've got a Dell XPS 13 (9360) with Windows 10 Home. Steps to reproduce: Open power options (Win-X, O) Click change plan settings next to the current plan ("Dell" in my case) Set both "on battery" and "plugged in" change "Put the computer to sleep" to something high or "Never" (I have 15 mins for battery, 1 hour for plugged in, tried "Never" for both too) Click save changes Open screen saver settings (Win-S, Change screen saver) Ensure screen saver is off (None) Ensure "On resume, display logon screen" is off Click OK Lock computer with Win-L Wait... Expected behaviour: Screen switches off after a short delay (~30 secs). Computer stays on, crunching whatever data you've left it to do. Actual behaviour: Screen switches off after a short delay (~30 secs). Computer goes to sleep after a further ~15 seconds. I would've thought this was a simple problem, but I've spent over two hours Googling etc for a solu

linux - CentOS and /dev/midi support

I recently asked earlier about connecting a MIDI controller to CentOS. I've got the same problem, except now I'm backtracing to find a different way at it. I'm talking about the elusive /dev/midi file mentioned in many tutorials. Has anyone managed to install/set up said device in Linux? On my box, neither /dev/midi, nor /dev/sequencer exist, (oh, and by the way- could someone please tag this "midi"? I don't have enough rep to do so...)

Is it possible to increase only the vertical size of a shape in PowerPoint?

I have a shape (rounded rectangle) in PowerPoint 2007 of which I would like to increase the vertical size only (to illustrate de-bottlenecking). So, the width will stay the same but the height will grow (both from the top and bottom, so the centre will remain in the same location). Custom Animation -> Emphasis only appears to change the whole shape . Is it possible to increase only the vertical size (stretch the shape)? This is during animation of the shape. Answer No there's not, but you can approximate this visual using two objects I don't think there's a native way to do what you're looking for, but this work-around might give you the same visual effect. This technique relies on creating two shapes: one for the starting size and one for the ending size, and then animating the end shape. Also, it may look better with a squared edged box, although I know you're using a rounded one. Create a box that will be your starting size , set the fill color as appropria

Two Way Link between excel workbooks

Is it possible in Excel to link two cells together (in different workbooks) so that a change in either is reflected in the other cell? The one-way linking whereby one cell is a view of the value in the other cell is easy. I'm after a two-way linking so that a user could update either cell and have the value reflected in the other.

Excel pivot table: Show values instead of summaries

I have a table of data like this: ID |Name |Brand |Model |License ------------------------------------ 1 |Foo |KOM |830 AC |A 1 |Foo |KOM |930 E |B 1 |Foo |CAT |980 H |B 2 |Bar |KOM |930 E |A 2 |Bar |CAT |980 H |A 3 |Baz |P&H |280 XB |B The ID and Name are tied together(ID 1 is always Foo), also there is never more than one license for a pair of Name and Model) I want to use a pivot table to turn it into this: | |CAT |KOM |P&H ID |Name |980 H |830 AC |930 E |280 XB ------------------------------------------- 1 |Foo |B |A |B | 2 |Bar |A | |A | 3 |Baz | | | |B This is as far as I've gotten: But: Ids and Names are in different rows It shows the count (always 1) of licenses instead of showing the values Is there a way to make it work the way I want? Answer Unfortunately, pivot tables can't return text. They aggregate. Howeve

Windows Search wont start (Error 1053)

Windows 10 "The service did not respond to the start or control request in a timely fashion." It's already set on Automatic Delayed Start, it was shown immediately after clicking Start. Please, don't suggest things like install NET Framework 1.1 SP1, or registry entry because it isn't set on Automatic Delayed Start, or as some MS person suggested go to services and click start. There is no feature in remove add windows compoments with name "Windows Search", so don't suggest me that at all. Answer I was just needed to get into Windows Indexing in Control Panel, and then click scan again, after a minute, Windows Indexing was get start, and after every boot it's working alright.

macos - Mount a HFSPlus disk with read/write permissions in Linux

I realise that this question is similar in nature to this question , but I'm hoping to specifically bring more attention to an additional problem in one of the comments of this answer to that question . I've taken out the hard drive of an old MacbookPro and I'm trying to mount it on my Elementary OS box, where it automatically mounts it as read-only. I want to gain r-w access to this drive. Following the procedure as given in the answer linked to above, after running sudo mount -t hfsplus -o remount,force,rw /dev/sdc2 /media/myharddrive I get mount: warning: /media/myharddrive seems to be mounted read-only. This has been noted by a comment on that question, but hasn't gained enough attention to reward an answer. How come it's still read-only? Isn't that what force ensures? The following may or may not be relevant: I also ran sudo fsck.hfsplus -f /dev/sdc2 following the blog post linked to in the answer and added the -f flag after fsck didn't want to per

How vibration sensitive are hard disk drives?

I've gotten my hands on a seriously cheap laptop grade 2.5 inch drive. I'm intending to use one on a desktop that doesn't have 2.5 inch bays as a boot drive. While I know there are adapters available, I know its fairly common with SSDs to simply velcro/tape the drive somewhere. I'm wondering if I can do the same with a laptop hard drive. One issue I see here is SSDs are fairly insensitive to vibration, while hard drives are. Just how vibration sensitive are drives? Would a jerry rigged mount need to take this into account? Answer Laptop drives are generally more vibration-resistant than desktop drives (they are designed to be used in a moving plane, car, in a laptop on someone's laps, etc.), so from this standpoint there shouldn't be a problem taping them somewhere inside your computer's case. There are other problems, however: When hard drive is fastened properly, metal bracket also acts as a heatsink. Moreover, in a properly designed case there should be

windows 7 - What does "fix network problems" actually do?

When a network connection doesn't connect to the internet, Windows pops up a dialogue, asking whether you want to "Fix network problems". What does it actually do when you click "yes"? Answer It checks for and fixes a number of specific known possible problems including problems with DHCP, DNS and adapter configuration. Microsoft has posted the complete list at When to Run the Fix My Network Wizard .

hard drive - Is it sufficient to refresh an archival external HDD with chkdsk?

Some background: I have been helping my uncle, a photographer, maintain a system of storage for all his work (Terrabytes of images!). We do this by using two external hard drives for his data storage. One of them we call the "Work Horse" drive, which he uses for working on files in Photoshop etc. thoughout the day. The other, called "Archive", receives any changes (using SyncToy) to the Work Horse on a daily basis. When the external drives start to get full, the pair of drives are eventually disconnected from the system, replaced by a new pair of drives. The full work horse is then stored on-site , the Archive at a family member's house. We have used this approach for the past few years - and I am now starting to think about 'refreshing' some of the older drives to prevent the effects of 'bit flux' or 'bit rot'. The Question: Is using the bad sector check included in Windows 7's chkdsk sufficient for revitalising every bit of data on

linux - Restrict access to some websites for different users

On a Debian based system; as the superuser, I need to restrict access to some websites but specific to user. For instance, abc.com for user1, xyz.com for user2... I tried /etc/hosts file. Adding a line like 127.0.0.1 abc.com does what I want. But it applies to all users as there are only one hosts file. As far as I learn so far, it is not possible to configure hosts file for different users. Are there any other ways of doing this? Answer If users are locally logged in, you can use iptables: iptables -A OUTPUT -o EXTERNAL_IF -m owner --uid-owner USERNAME -d DESTINATION_WEB -j REJECT where: EXTERNAL_IF is the name of the Internet-bound interface (e.g. eth0) USERNAME is the login id of the restricted user DESTINATION_WEB is the DNS name or IP address of the destination website. Beware of sites that host many websites (such as blogger) or those that have multiple public IPs (such as Google)

macos - Why won't OS X trust GitHub's SSL certificate?

When I go to any github.com page in Chrome, I get a big ugly error: You attempted to reach github.com, but the server presented a certificate issued by an entity that is not trusted by your computer's operating system. This may mean that the server has generated its own security credentials, which Chrome cannot rely on for identity information, or an attacker may be trying to intercept your communications. You cannot proceed because the website operator has requested heightened security for this domain. The same thing happens (in Chrome and with curl) when I go to https://www.digicert.com/ too. This strange problem started about a week and a half ago. Here's what I see when I click the broken lock icon in the address bar: But gist.github.com works just fine: It doesn't work with curl either: Everything works fine in Firefox. Here's what it looks like in Firefox: I noticed that the first certificate in the chain is different in my broken Chrome/Safari as compared to

pen - What types of styluses would work on a Microsoft Surface?

I tried using a regular stylus on the Microsoft Surface, but that doesn't work; the screen is unresponsive. Is there a stylus available or does anyone already have good experiences with another type of stylus? Answer According to Paul Thurrott's Microsoft Surface: RT vs. Pro, a Specifications Comparison article: Pen support Surface RT : Capacitive pen supported (but not included) Surface Pro : Includes pen (likely active digitizer-based but not specified) Also, Pen. A number of readers were worried that Surface RT/Windows RT didn’t support pen input. It does. Further, if you go to the official Help Me Choose page, click the Download specs link and read the PDF , it clearly states: Other Relevant Links

Black screen on Windows 10 Remote Desktop after Windows 10 May Update 2019

I always connect to my domain computers using Windows 10 Remote Desktop in version 1809 without any problems. Now, some computers were upgraded to Windows 10 1903 May Update 2019 version . After that, i can connect to those computers, but it always shows a black screen and i cannot do anything . CTRL+ALT+END does not work. It shows the mouse icon, so i supose that the session is connected OK, but i cannot do anything or to manually start the explorer. Of course, i cannot see the Desktop. I followed the steps on: Windows 10 Remote Desktop Connects with Black Screen then Disconnects without success. Anyone have an idea? I would not like to have to go back to the previous version Thanks!

macos - Mac OS X auto Sleep prevention

I have a problem with Mac OS X (Leopard) on my MacBook Pro: when I go away for a few minutes my laptop automatically sleeps and all my running applications stop working (such as my downloads). What should I set so that it works like Windows and it shows the lock screen but applications continue doing their job, such as downloading. P.S.: I downloaded the lock screen widget and when I use it my applications don't close but I lose my internet connection until I unlock my laptop. Answer [This answer is based on the OP's comment on deddebme's answer.] Follow deddebme's directions. Go to System Preferences->Desktop & Screen Saver->Screen Saver, then select the screen saver you want and the time you want before it appears. (Optionally, set hot corners for the screen saver as well so you can lock-on-demand.) Go to System Preferences->Security->General, and make sure Require password to wake this computer from sleep or screen saver is checked Now you have eve