Saturday, 30 June 2018

windows 7 - Cannot access the shared folder

There is a shared drive in our university where anyone can share files. I had mapped this as a network drive on my computer earlier but cannot access it anymore. I am using Windows 7.


When I put the given IP (\\10.3.20.20) in run command, it says Windows cannot access \\10.3.20.20 with the Error code: 0x80070035


Success



  1. Everyone else can open it easily

  2. I can ping it

  3. I can open it in WinSCP

  4. net view \\10.3.20.20 works fine (shows Samba Server Version 3.0.33-3.7.el5) and gives the list of all folders in it

  5. I can open it from Windows XP installation from the same computer

  6. My browser works fine


Error



  1. net use \\10.3.20.20 returns System error 53 has occurred.

  2. Tried opening this from run

  3. Tried opening it in explorer

  4. I tried to map the network to a drive I got the same error message.

  5. Tried accessing a folder on this location

  6. I have turned off my firewall and anti-virus, this didn't help.


I live in a hostel, onsite of a university campus, and I'm trying to connect to my uni computer from the hostel. It is here where it fails. I cannot connect to the shared folders on my own workstation within the university from the hostel!


I can RDP into the workstation.

How to fix fonts in Firefox Windows 7


Sometime ago when I installed Windows 7 I played around with settings and I knew I changed some settings that affected the font on Firefox. In a few websites, few fonts look weird, it was quite manageable so I didn't mind it. However in other websites, almost all of the font looks weird like this:



Try viewing the image in full screen to see what I mean


How can I fix this?



Answer



Seems like I found an answer to my own question. After long research I finally found a solution in this site: http://www.ghacks.net/2011/03/23/blurry-fonts-in-firefox-try-anti-aliasing-tuner/


I did not use the Anti Aliasing Tuner though, what I did was simply disable Hardware acceleration.


enter image description here


I hope this helps someone in the future.


Some Windows System files cannot be deleted


When I used to be a kid instead of formatting I used to delete everything in my hard-disk.


When try to delete all the files from my Windows installed hard-drive some system files remains un-deleted. Even after installing another fresh copy of Windows (without formatting the drive) the files remain there un-deleted and when I try to manually delete them the system says "access denied" (don't remember the error message).


How can I delete these system Files ?



Answer



Although formatting the hard drive before an installation of a new Operating System is best and I highly recommend it, you can delete files that windows doesn't want deleted by taking ownership of the file and then deleting it. This is how you take ownership of a file:





  • Right click the file, select properties, and then the security tab.




  • Select then Advanced at the bottom of the window and then the tab owner.




  • Select Edit and then select the user you want to give permission to (either yourself or administrators)




  • Select Apply and then ok. Select ok and everything else so that all dialog boxes are closed.




  • Bring up the properties of the file again, and then select edit.




  • Select either the Users group or the Adminstrators group according to what you selected earlier.




  • Click the box below "Allow" and next to "Full Control"




You can then delete the files necessary.



Set up notepad++ so that clicking on the close button will only close the current tab


Is this possible? I often happen to have opened more than one document and after editing one I click on close without remembering that I actually just wanted to close that tab.



Answer



Using the parameters -multiInst -nosession will allow multiple windows to be created, which can still contain several tabs (however, they have to be opened through that window for obvious reasons). That way, closing one window will leave the remaining documents open.


linux - How to encrypt data in bitbucket without losing git diff tools?

Based on this question:encrypt files before sending them to cloud.


considering openssl: For example when using openssl we can write the files fooenc.sh:


#!/bin/sh 
openssl enc -bf -nopad -pass pass:1KjeHD8d6YUI80bIIEAQ9iYr@njqLw3T

and foodec.sh:


#!/bin/sh
openssl enc -bf -nopad -d -pass pass:1KjeHD8d6YUI80bIIEAQ9iYr@njqLw3T

In the .git/config file in your repository you should specify these filters;


[filter "crypt"]
clean = fooenc.sh
smudge = foodec.sh

i tried this approach and it occurred me:


error: cannot run fooenc.sh: No such file or directory
error: cannot fork to run external filter ourenc.sh
error: external filter fooenc.sh failed

Where am i suppose to put this *.sh?


Even that if i try to put


 [filter "crypt"]
clean = openssl enc -bf -nopad -pass pass:1KjeHD8d6YUI80bIIEAQ9iYr@njqLw3T
smudge = openssl enc -bf -nopad -d -pass pass:1KjeHD8d6YUI80bIIEAQ9iYr@njqLw3T

even thought it occurred me:


bad decrypt
3074115260:error:0607F08A:digital envelope routines:EVP_EncryptFinal_ex:data not multiple of block length:evp_enc.c:414:
error: external filter openssl enc -bf -nopad -pass pass:1KjeHD8d6YUI80bIIEAQ9iYr@njqLw3T failed 1
error: external filter openssl enc -bf -nopad -pass pass:1KjeHD8d6YUI80bIIEAQ9iYr@njqLw3T failed

Another aproaches were take in place like git-remote-encrypt or another using GnuPG:


In .git/info/attributes use:


myPrivateInfosFile filter=gpg diff=gpg

In your repo .git/config file:


[filter "gpg"]
smudge = gpg -d -q --batch --no-tty
clean = gpg -ea -q --batch --no-tty -r C920A124
[diff "gpg"]
textconv = decrypt

At last, using git-remote-encrypt approach it occured me:


gcrypt: Remote ID is :id:k/a9sdsd332e3442wdaJ
Counting objects: 102, done.
Compressing objects: 100% (71/71), done.
Total 102 (delta 8), reused 0 (delta 0)
gcrypt: Encrypting to: --throw-keyids --default-recipient-self
gcrypt: Requesting manifest signature
gpg: no default secret key: secret key not available
gpg: [stdin]: sign+encrypt failed: secret key not available
error: failed to push some refs to 'gcrypt::rsync:https://example@bitbucket.org/ourstuffteam/our.git'

None of this was a successful approach.


** According to this or others new approaches. How can i encrypt data into git more properly into bitbucket?**

memory - Is DIMM to USB convertor available?


I have a 512MiB DDR2 SODIMM SDRAM lying about, after upgrading my brother's notebook's to 2GiB. Seeing that it is not being used, and it hardly has any value on the market, I'd love it if I can use it for placing page files. Since Windows Vista/7 has ReadyBoost through USB, I suppose I can use that if only I had a DIMM to USB convertor solution in the first place. Any ideas?


(Griping because my 1 slot MicroDIMM Fujitsu tablet has 1GiB, and a 2GiB wafer costs at least $100, and I'm broke and NEET)



Answer



I have never heard of a USB RamDisk. I know you can get SATA ones:


http://techreport.com/articles.x/16255


so I guess there's no reason why you couldn't get a SATA one and put it in an external USB housing.


Not cheap though and most I have seen use DIMM not SODIMM.


windows 8 - Why does my downloads folder take so long to load?


When I open my downloads folder, no files appear, just a message saying "This folder is empty". I see the address bar progress slowly creeping along, and after about thirty seconds the files and folders appear. This problem only occurs in the downloads folder. If I search for a file in the downloads folder, it comes up, and if I right click on it and select "Open File Location", everything shows up instantly. I am using Windows 8, but I think I had a similar problem once in Windows 7. Sadly I can't remember how I fixed it.



Answer



By default, the Downloads folder tries to index files as Pictures, which is taking a long time.


From here:



  1. Right click your Downloads folder

  2. Go to Customize

  3. Select Document or General items from the drop down

  4. If Document was already selected, choose Also apply this template to all subfolders


Red icons appears in all drives Windows 7


Today, in all my drives in Windows 7 appeared a red icon. I try to delete the IconCache.db but doesn't work.


Drives with Red Icons in My Desktop



Answer



Update: it's caused by a change in the Windows system by the updates in combination with Dropbox. The Dropbox icon from folders is used on all devices. To fix it whithout deinstalling Dropbox I just removed the overlay icons (which I never bothered about):


Use the RegEdit to go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers


You will see a couple of " DropboxExt0x" entries (01-10 for me). You can export a Backup from the whole "ShellIconOverlayIdentifiers" entry and then delete the Dropbox ones. After a restart the issue is fixed (for now).


Where are my offline files if they are not in C:/windows/CSC?

I am using Windows 7 and am unable to find my offline folders. They're not at c:/windows/csc. I've unhidden hidden files and folders and protected operating system files. Where else could they be?

Batch rename images numerically?


Possible Duplicate:
Rename lots of files in one click



I have thousands of images that I wish to batch rename numerically.


The issue is all the dozens of images I have saved have osbscure filenames like in this screenshot


I want the output(s) to be something like: 0001, 0002, or 001, 002, etc


What would be the best way to achieve/do this?

installation - Error installing .NET Framework 3.5 on Windows 10

Since I upgraded to Windows 10 I'm no longer a "real" administrator on my personal computer and I can't download anything from Windows Update.


When I try to install .NET 3.5 I get



Error 0x800F081F



I already tried to change the source directly in the command panel (as admin) but it gave me a error message that the source was not found with the same error code.

linux - Why does `echo -e "\SOME_TEXT"` show only one backslash?


Could some one explain what is happening behind the scenes in character escaping in Linux shell? I tried the following and googled a lot, without any success in understanding what (and how) is going on:


root@sv01:~# echo -e "\ Hello!"
\ Hello!
root@sv01:~# echo -e "\\ Hello!"
\ Hello!
root@sv01:~# echo -e "\\\ Hello!"
\ Hello!
root@sv01:~# echo -e "\\\\ Hello!"
\ Hello!
root@sv01:~# echo -e "\\\\\ Hello!"
\\ Hello!
root@sv01:~# echo -e "\\\\\\ Hello!"
\\ Hello!
root@sv01:~# echo -e "\\\\\\\ Hello!"
\\ Hello!
root@sv01:~# echo -e "\\\\\\\\ Hello!"
\\ Hello!
root@sv01:~# echo -e "\\\\\\\\\ Hello!"
\\\ Hello!
root@sv01:~# echo -e "\n Hello!"

Hello!
root@sv01:~# echo -e "\\n Hello!"

Hello!
root@sv01:~# echo -e "\\\n Hello!"
\n Hello!

I am totally lost there, so for example, why do three backslashes give only one back slash? I would expect: the first two will be escaped to one, the third one will find nothing to escape so it will remain a slash (line in the first experiment), but what is happening is that the third one is just disappears.
Why I am getting one backslash from four \\\\ Hello? I would expect each pair will give one back slash -> two backslashes.


And why I need three backslashes in the last case to get \n escaped? what is happening in background of escaping to get that? and how is it different from \\n case?


I appreciate any explanation of what is going on in the previous lines.



Answer



This is because bash and echo -e combined. From man 1 bash



A non-quoted backslash (\) is the escape character. It preserves the literal value of the next character that follows, with the exception of . […]


Enclosing characters in double quotes preserves the literal value of all characters within the quotes, with the exception of $, `, \, […] The backslash retains its special meaning only when followed by one of the following characters: $, `, ", \, or .



The point is: double quoted backslash is not always special.


There are various implementations of echo in general, it's a builtin in bash; the important thing here is this behavior:



If -e is in effect, the following sequences are recognized:
\\
backslash
[…]
\n
new line



Now we can decode:



  1. echo -e "\ Hello!" – nothing special to bash, nothing special to echo; \ stays.

  2. echo -e "\\ Hello!" – the first \ tells bash to treat the second \ literally; echo gets \ Hello! and acts as above.

  3. echo -e "\\\ Hello!" – the first \ tells bash to treat the second \ literally; echo gets \\ Hello! and (because of -e) it recognizes \\ as \.

  4. echo -e "\\\\ Hello!" – the first \ tells bash to treat the second \ literally; the third tells the same about the fourth; echo gets \\ Hello! and (because of -e) it recognizes \\ as \.

  5. echo -e "\\\\\ Hello!" – the first \ tells bash to treat the second \ literally; the third tells the same about the fourth; the last one is not special; echo gets \\\ Hello! and (because of -e) it recognizes the initial \\ as \, the last \ stays intact.


And so on. As you can see, up to four consecutive backslashes give one in result. That's why you need (at least) nine of them to get three. 9=4+4+1.


Now with \n:



  1. echo -e "\n Hello!" – there's nothing special to bash, echo gets the same string and (because of -e) it interprets \n as a newline.

  2. echo -e "\\n Hello!"bash interprets \\ as \; echo gets \n Hello! and the result is the same as above.

  3. echo -e "\\\n Hello!"bash interprets the initial \\ as \; echo gets \\n Hello! and (because of -e) it interprets \\ as a literal \ which needs to be printed.


The results would be different with ' instead of " (due to different bash behavior) or without -e (different echo behavior).


Friday, 29 June 2018

Can I restore Windows 8/install Windows 7 from BIOS?


I recently got an ASUS K55A series laptop with Windows 8 on it, and have been trying to load Windows 7 on it for days to no avail, and recently I discovered how to get my Windows 7 install DVD to boot from the BIOS, but I deleted all of my Windows 8 system information from both partitions of my HDD and Windows 7 setup says it cannot install on the disc because of a partition format issue. I did not delete the recovery HDD partition for Windows 8, but I can't get the HDD to show up in my boot menu in BIOS, and none of the F keys work to get to recovery mode (only DEL and F2 work to get me into BIOS)



Answer



According to the manual, that notebook supports UEFI boot, which replaces the BIOS for booting.


In addition to that, if you do have UEFI enabled and you're trying to use a 32-bit Windows 7 install source it won't work, as UEFI booting is only supported in Win7 64-bit.


For that notebook UEFI booting is optional. So if it's enabled, disable it and try installing Windows again.


Installation Error 0x80070570 while installing Windows 7


I'm trying to install Windows 7 on my computer and am continuously getting the error code 0x80070570 when installation gets to around 77%.


I have tried using around 7 DVDs of the 64-bit version, all showing the same problem.



Answer



Start the install, let it go to up to 50% or something like that (before it reaches the critical 77%), and then cancel the install. It should take you back to to Install Now screen. Then start the install again. The installation should work now without any errors.


You may also want to disconnect any unnecessary hardware from the system before starting the installation. This includes any USB peripherals, including but not limited to:



  • printer

  • scanner

  • microphone

  • external disk drive(s)

  • USB flash drive


You basically want to disconnect everything except the keyboard and mouse which is necessary for the installation guide. This may also include:



  • video cards

  • graphics cards

  • network cards

  • secondary internal disk drive(s)


Of course, not all of these components may be applicable to a laptop computer. And for a desktop installation you don't want to disconnect the internal disk drive on which you actually want to install Windows on. This is the only disk drive you want to be connected to the system during the installation.


windows xp - Flash drive shows in My Computer but can't be accessed

I have a flash drive. When I plug it into my (Dell, Windows XP) computer it appears in My Computer as an empty drive - not a disk with no files on, a drive with no disk in! Double-clicking drive J: gives the message "Please insert a disk into drive J" (I get the same if I type in "J:" to the address bar, too...)


Someone suggested going to properties and entering a name but it won't let me type in this box. I've looked in the disk manager and again it appears as an empty drive.


I'm thinking that it might be fried...Can anyone give me any advice on how to either fix it or tell for sure that it's gone?

networking - Dual-boot laptop's wireless adapter is working fine in Linux, but not in Windows

My laptop is an Acer Aspire V5-573G, dual-booting Windows 8.1 (64-bit) / Linux Mint 16 (Xfce, 64-bit).


Currently it has a strange WiFi issue. On the Windows side, the wireless card is almost completely unusable as it only connects to my mobile hotspot and is unable to connect to any other wireless router except the University's WiFi.


A Can't connect to this network error comes up no matter what WiFi network it tries to connect to and irrespective of how many attempts. I also checked the event viewer and it will return mainly two reasons: one is The specific network is not available, and the one another is The driver disconnected while associating.


After some amount of trial-and-error, including re-installing the driver quite a few times (which didn't work), I ended up trying to connect the computer using Ethernet. This works and it also gets the WiFi to work. However, the speed is capped at about 64kbit/s and almost always stops functioning shortly afterwards. In addition, when the adapter is disabled, it won't connect again.


From the Linux side, it works without any problem. This makes me highly doubt that the adapter is damaged (I dropped my laptop bag once while the laptop was sleeping), but if it is, it shouldn't work in Linux, with my mobile hotspot or the University's WiFi either.


So, what I have in mind as the possible causes:



  • Some configuration file in Windows regarding wireless network is messed up. (Most likely, but I don't know how to fix it without reinstalling Windows, which means all my programs will be wiped clean.)

  • The adapter is indeed damaged. (But this does not explain why it works for some networks as stated earlier.)


Could someone enlighten me over this mystery?




Update: I've now tried re-installing Windows, but it's still not working. I guess the Wi-Fi card really is busted?

debian - How do I choose what shows up in PuTTY title bar from Linux?


In the PuTTY configuration there's an option in Terminal → Features called Disable remote-controlled window title changing. Without that enabled, the title bar of PuTTY will change every time I press return in the console.


I was thinking it'd be a more clean solution to set the title bar text from Linux than to specify one for every PuTTY client I have laying around. So where can I modify what Linux sets as the window title?





$ uname -a
Linux drevo 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 GNU/Linux

$ cat /etc/debian_version
6.0.4

Answer



Most terminal programs - including konsole, putty and xterm - emulate the old VT100 terminal. This terminal allows you to set certain things, including bold, colors, setting the terminal title, and so on, using special character sequences called escape sequences.


The bash shell has a variable called PROMPT_COMMAND which, if set, is evaluated before every prompt you print out (I believe zsh has something similar, in fact I think bash took the code from them). You can output escape sequences in PROMPT_COMMAND and it will set your title bar.


This is what I have in mine (Linux/bash):


USER=$(/usr/bin/id -un)
HOSTNAME=$(uname -n)
HOSTNAME=${HOSTNAME%%.*}
PROMPT_COMMAND='echo -ne "\e]0;$USER@${HOSTNAME}: $(pwd -P)\a"'

You can put this in your ~/.bashrc


There are a lot of customizations you can do with your terminal. I like bold in my prompt, to make it easier to see the end of my prompt. This makes it bold yellow, good against my default black background:


PS1="\[\e[33;1m\]\h:\$\[\e[0m\] "

Look around for Linux Prompt Customization, you'll find more HowTos than you'll know what to do with. Pick the one that you find easiest to read.


How can I diagnose a faulty power supply?


I've got an older PC that freezes/blue-screens at non-reproducible times. I suspect that it's caused by a faulty power supply, mainly because I don't have any other idea. How can I diagnose this properly as the cause for my troubles?



Answer



Wow, interesting question.


The problem with diagnosing a power supply problem (when it's not hilariously obvious), is that the problem will often only show up under load, so even if you pull it out and check the voltage on every plug, you may not see any problems.


As many others have said, you can swap it with a "Known Good" power supply and see if the problem persists. You might also want to try to run some sort of benchmarking application to put the system under heavy load: if the system always crashes under load, regardless of the application, that's a good indicator of power supply problems.


Trying to update from Windows Insider Slow Ring, get this error: Windows 10 Insider Preview 16251.0 (rs3_release) - Error 0xc1900201


As the description says, I'm trying to update to Windows 10 Insider Preview 16251.0, but I get an error 0xc1900201. I've rebooted the computer multiple times, with no luck. The update installs to about 85% or so, and a Windows Update window opens, saying "We Couldn't Update The System Reserved Partition". Thanks



Answer



I FOUND THE SOLUTION & IT WORKED FINE!
1. Install Minitool partition free version.
2. FInd your system reserved partition. It was a 100MB partition and ( In the status column it says "Active & System"
3. Right click on the partition and select extend.
(I extended 100MB more) Then just follow the instructions(It says restart to complete) & it's DONE! –


wireless networking - Will my device lose connection when switching to a different channel on the same SSID?


I am considering setting up a second router as an access point. The routers will broadcast on different channels. Will this cause any problems, e.g. a non-continuous connection?



Answer



Assuming you plan to connect the two routers with an Ethernet cable (LAN-to-LAN), that is the correct way to do it. The channels should be different. The SSID, encryption mode, and keys should be the same. Make sure to disable DHCP in the new router and don't use its Internet/WAN connection.


macos - Files on SMB-Share are locked and some apps can't touch them


Why do all files from a SMB share mounted on OSX are locked, generating Opearation not permiteted on some commands?


I have a Windows 7 x64 machine is providing a share.


The OS X 10.6 machine has mounted this share into /Volumes/share. I tested and I can add, delete and modify files from it using Finder or Midnight Commander.


Still, from some tools are failing to run giving errors like Operation not permitted.


The cause is the locked flag. I found that find /Volumes/share -flags uchg.


It seams the all the files that were modified from the OS X to get this flag by default.


Why is this happening (it shouldn't) and how to solve the problem? (probably requires modification of /etc/smb.conf)



Answer



I found a solution at http://www.stanford.edu/group/macosxsig/blog/2010/01/snow_leopard_samba_and_nt_acl.html


This feature/bug is specific to Snow Leopard - OS X 10.6.


Modify /etc/smb.conf and add


[global]
acl check permissions = no
nt acl support = no

Do not forget to restart samba, or reboot after this.


To detect all locked files run:


find /path -flags uchg

To remove all locks from existing files run:


chflags -R nouchg /path/

windows 7 - Menu select item stuck on screen after context or command menu has closed


Periodically when I select a menu command, the label or selected option gets "stuck" on screen and won't go away. I can close all open applications, including whichever one I was using when it got stuck, but it still won't go away.


In the screenshot below, I opened an new instance of IE just to show how the label stays on top. The label was not created by this instance of IE.


Lingering menu command label


(I added the circle in MS Paint. That part isn't stuck.)


The label that gets stuck is the first menu command I select in IE. If a label is already stuck, a new one does not get stuck (regardless of which instance(s) of IE are involved). Based on this knowledge, I now just open IE on my secondary monitor, carefully open the context menu so the Properties command is in the bottom corner, and click it. This is not a solution.


The floating label never moves and is transparent to mouse input (if I click it, it's as if I clicked the item behind it).


The label does not go away if I close all running applications. I haven't tried stopping services or closing system tray items like Live Mesh.


The label does go away if I change the screen resolution and then change it back.


Any ideas how I can stop this from happening? It's happened a half dozen times and it's becoming quite disrupting to my work.



Answer



The problem was introduced back in Windows 2000 when fading menu items were added. Originally, the feature was added in kernel-mode code and was tightly integrated into portions of the UI. Since it worked so well, it ended up staying there. The problem has appeared from time to time, but no one has had a reliable way to reproduce it in the kernel debugger to get it fixed.


The same effect can be achieved without changing the screen resolution or color depth. Go to Start -> Run -> and type tskill dwm. This command will reset the desktop window manager without the need to change the screen resolution.


Changing the screen resolution or color depth also resets the desktop window manager, so it's always been a workaround for the bug when it appears. Either of these solutions will fix the problem.


networking - Am I secure from network monitoring software if HTTPS is used?


I will be logging into my bank account and my personal email accounts at work. Its not banned at work, but I just don't want them to save/log a copy of whatever I do with these services. Especially my passwords.


If the service uses a HTTPS connection, will my company be able to track/save/log my passwords, that I use for these services? what about the contents of the pages?


Again, rules in my company don't ban usage of my personal email account or internet banking services, but I just don't want them to know any important information about these. It is okay if they knew that I am using those, but they shouldn't get access to my passwords.


Can I safely use them (knowing my company can't save any of that data) if HTTPS is used?


P.S. I am really not a network guy and I don't know much about how these things work. So please don't give any RTFM replies.



Answer



Before answering: If a browser warns you a site is using poor encryption or supplying incorrect identity information, it's important to read the error, understand it, and think hard about whether you want to continue.


Short Answer: Yes, if you're using a trusted device


Long Answer:


If someone is monitoring your connection from another computer (somewhere between you and your bank) and you are using HTTPS, and they are using signed certificates with a suitably strong algorithm, then you are in the clear. (Unless they save the data for years and later read it after the algorithm is broken - but they'd likely be better off breaking into your house and stealing your stuff ;) ).


Chances are, if it's your bank, then they are using signed certificates with a suitably strong cipher. You can verify this by looking at the SSL information for the page, which should be displayed if you look at the page info, click on the Blue or Green name to the left in the address bar with Firefox 3.5, or click on the lock to the right in the address bar in IE8. Firefox will also display the encryption algorithm used if you select More Information after clicking on the coloured area.


If you don't trust the device you're using to connect (such as a computer that is not your own that could have been modified by others), then it's of greater concern. Now, your workplace is likely not going to do anything illegal like look at your banking information; but it is possible for SSL to be undermined if your system is compromised. It could be that your computer is configured to accept certificates signed by a proxy (inspection of the certificate or certificate pinning would thwart this). However, surveillance could be anywhere - a keylogger wouldn't even need to defeat SSL to capture your banking credentials, for instance. SSL makes it so you don't need to trust the connection between two trusted endpoints, but if the endpoint itself is untrusted, all bets are off.


How to completely uninstall/remove cygwin from Windows 7

How can I completely uninstall/remove cygwin? I don't think it is as simple as deleting C:\cygwin. Maybe alter registry?

windows - How can I launch a file properties dialog from the command line?

It's simple programmatically with ShellExecute to specify the properties verb when instructing Windows to open a file, but can this be done from the command line or run box?


Ideally I'd like to do this without an external program or script.


It appears to be possible by calling ShellExecute by using rundll32.exe, but not without the right parameters.

Access Denied to "Documents and Settings" on Vista


Please help me before I defenestrate my computer!


I'm trying to browse to folder "c:/Documents and settings" on my MS Vista-machine and I keep getting an access denied window. Where do I change the settings so that I can access all folders on my computer.


Facts: I'm the administrator and only user on this computer, and I have turned user account control off.


Have searched superuser for a solution, but in my agitated state I may well have missed the answer.


Thanks folks!



Answer



You can't open "Documents and settings" in Vista. In fact it doesn't exist anymore. It's just a pointer to the new location which you will find under c:\users.


Thursday, 28 June 2018

Can a file transfer to a USB pen drive be tracked in windows 7?


My office is a normal one with many PCs connected in LAN. I want to bring few videos that I have downloaded over there when I am free. I want to use pen drive and copy it. I do not intend to do any harm by stealing their intellectual property but I just need my downloaded material which is over 4 GB. I want to know whether there are any chances of getting tracked if I copy my downloaded material because normally pen drives are not allowed in office. I am having Windows 7 on my PC.


Note: Again I would repeat there are no negative intentions behind this. I just need my training videos no more. So do not start downvoting me or close my question without realising my intentions.



Answer



Technically, if it is the company's computer, they have the ability to track your every movement, if they want to. This doesn't mean they do, just that they could. My recommendation is to check with your manager or whoever is in charge and see if they mind you doing it. If there are no bad intentions, then they might give you permission to do it.


music - Foobar2000 on linux


Does anyone successfully run Foobar2000 on linux ( under Wine ) ? Are there any alternatives with a similar philosophy, and maybe even with the ability to use the Foobar2000 plugins ?



Answer



There are lots of audio players on Linux that are similar to Foobar. You might like Amarok or Songbird.


However to get Foobar2000 running under wine, it looks like all you need to do is use winetricks to install needed fonts. This forum has instructions.


fan - Laptop Overheating. Is there a way to cool it?


I have a laptop that's running on the following:



  • MSI MS-1634X motherboard

  • AMD Turion X2 TL-66 CPU

  • ATI Mobility Radeon HD2600


It keeps overheating, especially when I do something more CPU and GPU-intensive such as games. I've tried SpeedFan and Notebook Hardware Control and neither are able to help control my fans. I also have a Targus Chillmat for my laptop which helps cool down my laptop, but it still overheats. Are there any fan controlling programs that I could use to maybe turn up the RPMs on my fans or any other ways to cool down my laptop? My laptop runs pretty hot, maybe 80c core when being used, not even intensively. The Hard drive stays cool though, close to 35c.


Any help is appreciated. Thanks!



Answer



80c core GPU or CPU?


If it's 80c GPU you are well within acceptable levels. Expect up to 90c without many concerns, although it would help to know your GPU make and model.


If it's 80c CPU then you do have a problem. You should check your BIOS settings to see if you are inadvertently limiting the fan performance.




After your comments on this post, there's no doubt really you have some kind of problem. That card, from a cursory look on the web, should run somewhere between in the 50c to 80c range. Hmm... ok:



  • Put the back of your hand near the exhaust areas of your laptop. Do you feel air flowing out? At that temp fans should be working at full speed. You should feel a relatively strong rush of hot air.

  • During computer normal operations (without playing a game) do you hear the fans starting and stopping, especially as you fire up applications or perform processor intensive tasks? This is an indicator your CPU thermal monitor is working and the CPU fan too. If you can tell if the noise is coming from the HDD or the CPU fan, use a CPU intensive application to test it (the HDD fan will stay quiet). For instance: Prime95

  • Download FurMark. Let the computer idle for 10 minutes to cool down some. Start it and do a stress test of any kind. Do you hear a fan starting and getting increasingly more noisy? This is an indication your GPU thermal monitor is working and the fan too.


If all is working as expected, you must have a fabrication defect. Those temperatures aren't normal. If you are still under the warranty send it to be fixed. If not, send it to your local PC repair shop and have it fully cleaned.


compression - Pros and cons of bzip vs gzip?


I've known gzip for years, recently I saw bzip being used at work. Are they basically equivalent, or are there significant pros and cons to one of them over the other?



Answer



Gzip and bzip2 are functionally equivalent. (There once was a bzip, but it seems to have completely vanished off the face of the world.) Other common compression formats are zip, rar and 7z; these three do both compression and archiving (packing multiple files into one). Here are some typical ratings in terms of speed, availability and typical compression ratio (note that these ratings are somewhat subjective, don't take them as gospel):


decompression speed (fast > slow): gzip, zip > 7z > rar > bzip2
compression speed (fast > slow): gzip, zip > bzip2 > 7z > rar
compression ratio (better > worse): 7z > rar, bzip2 > gzip > zip
availability (unix): gzip > bzip2 > zip > 7z > rar
availability (windows): zip > rar > 7z > gzip, bzip2

As you can see, there isn't a clear winner. If you want to rely on programs that are likely to be installed already, use zip on Windows (or if possible, self-extracting archives, as Windows doesn't ship with any of these) and gzip on unix. If you want maximum compression, use 7z.


Rar also has downside that, as far as I know, there is no free software that creates rar archives or that can unpack all rar archives. The other formats have free implementations and no (serious) patent claims.


microsoft excel - Run formula from different sheet

Can you run formulas from different sheets? (not simply showing the formula as a string/static text)


Say I type



=Sheet1!A1



where in that cell I have a formula



=concatenate(ice&cream)



Here's what I want to see as a result



icecream



But instead of this, I get the same =concatenate(ice&cream) function as a text string.


In my particular case the concatenate function creates an IMPORTXML formula from these 3 columns:


Column 1 (B5):



IMPORTXML(url,"//*/div[2]/div[1]/div/div/div[



Column 2 (C5):



1



Column 3 (D5):



]/div/div/div[1]/h4/a/@href")



Column 4 (E5):



=CONCATENATE("=", B5, C5, D5)



And returns as a result:



=IMPORTXML(url,"//*/div[2]/div[1]/div/div/div[ 1 ]/div/div/div[1]/h4/a/@href")



which extracts a piece of data from http://website.com. I need the IMPORTXML formula to run and give me the piece of data, not return the same formula as static text.


NOTE: I use Google Sheets so the simpler the answer the better (i.e. no macros or other tools if possible) Thank you

windows 7 - How to use rupee symbol in Dell keyboard?

I have Dell Latitude laptop and it has both Indian rupee symbol and euro in keyboard. But don't know how to use it. What keys can I press to insert the symbols?


I'm using Windows 7.


Keyboard

Keyboard focus on first file in Windows explorer?


When i open windows explorer, I usually navigate it with keyboard most of the time. My biggest annoyance is when I open a folder, and in it I want to open the first folder or file in the list. For this, I have to press the down arrow key, and the up arrow to get the focus on that file/folder. How could I make Explorer, automatically focus on the first file, so once i open the folder, I can just click enter and it opens?



Answer



The space key selects the first folder or file in the list.


iso image - Can a virus infect an ISO file?


I feel that it's going to be very difficult for a virus to infect an ISO file. What's your experience? Have you seen it happening ever? Is it not nearly unlikely?


I ask because I've just found that my computer is infected and I wish to salvage as much stuff as possible. So I was wondering if I could keep my ISO files.



Answer



I doubt that a typical virus would inject itself into an ISO. Note that if your ISO contains a virus already (e.g. the file was infected then put into the ISO) then you'll have issues.


Remove Windows Security icon from Start Menu on Windows 10 LTSC


As shown in the following image:


Menu Item: Windows Security


How can I remove the item "Windows Security" in start menu of Windows 10 (LTSC 2019)?


Same as this question on Microsoft TechNet, but no useful answer there.



Answer



Since it is NOT in locations for Start menu items


%AppData%\Microsoft\Windows\Start Menu\Programs
%ProgramData%\Microsoft\Windows\Start Menu\Programs

MS is hiding something. The following procedures works (on windows 10 LTSC 2019), but use it in your danger.



  1. open an elevated Command Prompt (an Administrative command prompt), copy and paste the following lines (and press return)


     set WS=%SystemRoot%\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy
takeown /f %WS% /r /a > nul
icacls %WS% /reset /t > nul
rmdir /s /q %WS%

Here is the screenshot Administrative command prompt




  1. in start menu, right-click Windows Security, -> more -> App settings Windows Security




  2. In the setting window, click reset -> reset




  3. now, the Windows Security is gone! Windows Security item gone




Removing drop shadow from windows in Windows 7


I recently made the switch to Windows 7 and love it. but I was wondering if/how I can turn off the drop shadow on the windows?



Answer



Go to the Control Panel, and click on the System icon.
Under the Advanced tab and Performance section, click on the Settings button.
You'll find there an entry called "Show shadows under windows".:


alt text


Disable it and they're gone.


More information in this thread at WindowsSevenForums.


bios - What does a TPM error message when booting mean?


I have a Gateway MT6728 laptop I was given to have, if I could fix it.


When the computer boots, it displays the message: No TPM or TPM has problem. Allegedly, this problem occurred after browsing to a video on YouTube. Regardless, the OS will not boot and the BIOS seemingly fails to boot as well.


Does anyone know what this means, and how to fix it?



Answer



Edit as I missed the will not boot part-


I think this is a bog standard Windows will not load error. If you have Vista or 7, try inserting the CD, going to repair and doing a startup repair.


If this is XP, go to recovery console and type the following


chkdsk /R
fixboot

If these methods do not work, start a new question asking for specific help of repairing Windows, however it may be quicker just to reinstall.


Regarding TPM-


I get this on my laptop as well.


It is nothing to worry about, it simply means your laptop's BIOS supports TPM and your laptop does not have one.


It has either always been there and gone un-noticed, or the BIOS was recently updated to a version that supports TPM and it is alerting you now that it knows it doesn't have one.


TPM is used for encryption amongst other activities, if you do not know what it is, the chances are you do not need it.


Case sensitive searches in Google Chrome


Is there a way to perform case sensitive on page searches in Google Chrome?


screenshot of browser


Say I'm searching for "Tree" and I want to exclude all variants such as "tree" or "TREE" which don't match the case I'm looking for. Is this possible?



Answer



No; as of 6th April 2011, this feature request with Chromium (the open source code base of Chrome) has been rejected.


Cannot end Windows 7 process, even tried pskill


I am having a problem where processes are hanging and absolutely refuse to die. I have tried using the task manager and pskill from the console (with admin rights) and while the program will state that it has killed the process it still remains and I cannot open a second process. This has happened with Opera and Truecrypt.


Operating system is Windows 7 Professional (64-bit). Rebooting the computer clears the hung process.


I also tried using a program called Ultimate Process Detail & Killer, which didn't help either.



Answer




ubuntu - Problems downloading remotely from IP Camera using iVMS-4200 software

I have access on a few IP camera through iVMS-4200 software. I can live view them and also load remote playback for previous recordings. However, when I try to download a specific video, I have the following error:



Status : Manually stop


Error message: Insufficient HDD space, can't proceed



I tried to change the location of download on my laptop, but still have the same error.


I use Linux (Ubuntu 14.04) and iVMS-4200. Is there any way to fix the problem or use another way to download the videos?


image

MS Excel: Unique random number generator within a range


I searched for a similar question but couldn't find one..


I want to generate 10 groups out of numbers ranging from 1-60 (including both), with each and every group containing random and non-repeating numbers. How can I do this in excel?



Answer



How to use it



  1. Open Excel & VBA editor (Alt+F11)

  2. Insert the code below under Sheet1

  3. Go back to Excel and select your desired range to fill with random & non-repeating numbers

  4. Execute the macro (Alt+F8)




Sub randomNumbers()
Low = Application.InputBox("Enter first valid value", Type:=1)
High = Application.InputBox("Enter last valid value", Type:=1)
Selection.Clear
For Each cell In Selection.Cells
If WorksheetFunction.CountA(Selection) = (High - Low + 1) Then Exit For
Do
rndNumber = Int((High - Low + 1) * Rnd() + Low)
Loop Until Selection.Cells.Find(rndNumber, LookIn:=xlValues, lookat:=xlWhole) Is Nothing
cell.Value = rndNumber
Next
End Sub

Excel file to proof


I love those small and simple solutions so much


internet explorer - Getting "Only a single instance of this application can run" error when upgrading Flash Player for Firefox and IE


I'm getting this error when I try to upgrade Flash Player for Firefox and IE:



Only a single instance of this application can run..



Any idea how to update Flash player then?


enter image description here



Answer



I think this problem is somewhat recent. I had a similar issue. My solution was:



  1. Downloaded and followed instructions for Flash Player Uninstaller.

  2. Downloaded latest installer.

  3. Installed latest installer.


It's a bit annoying because between steps 1 and 2 you need to reboot. But it worked for me.


Any way to "ungroup" taskbar items in Windows?


I mostly like the improvements in Windows 7, but am pretty annoyed with the new Taskbar... particularly its habit of always keeping items grouped.


Is there any way to ungroup the taskbar items in Windows?


And just for the record, "Never combine" does not work. True, setting this option creates a separate button for each instance of an application... but it still groups all the running instances together. For instance, all Explorer Windows are grouped together beside each other, and they can only be dragged around as a group---not as individual items.



Answer



There is a way.


7 Taskbar Tweaker can do it.



This programs enables you to tweak your Windows 7 taskbar. The tweaks are divided into three sections:



  • Taskbar items: control taskbar items related stuff, like middle/right clicking, hovering, dropping, etc.

  • Grouping and combining: disable grouping, allow to drag windows between groups, force/disable combining, etc.

  • Other taskbar options: mouse wheel options, double/middle clicking on the empty space of the taskbar, and misc.



enter image description here


Wednesday, 27 June 2018

ssl certificate - Chrome disable security warning for Intranet sites


I have a site in my internal network that has a valid certificate for it's external hostname (blabla.example.com). But when I access it from my LAN I use it's IP address to connect to it and Chrome emits a warning due to the fact the hostname is different than the one used in the certificate. How can I disable this warning for this site or, preferentially for my whole LAN?



Answer



acces your site via the external name. for this you have to adjust your dns-resolver to provide the internal ip of your blabla.example.com. since you are a great admin you are able to achieve this :)


(to answer that 2nd part seriously you would have to provide more information about your network-topology or you could search http://serverfault.com)


How to get Windows 7 logon wallpaper to tile to other monitors?

In 2000/XP/Vista it was easy to set a wallpaper for the logon screen, either manually through tools like Logonstudio or simple registry changes by hand on prepared installation images or through custom group policies.


In Windows 7 all this works as usual, but the secondary (or any additional) monitor is just black. The mouse pointer is visible on it but no matter what settings I can't get the logon wallpaper to tile (or stretch or fill or whatever) over onto it.


This makes it hard to OEM/company brand the installation for multi-monitor users. More annoying is the fact that it looks officially supported to brand the logon wallpaper in Windows 7 - as it's made extremely easy... apart from this little catch. XP and Vista has no problem tiling or stretching the logon wallpaper over multiple monitors.

partitioning - How do I merge two unallocated, non-sequential partitions on the same logical disk?


I'm wondering if I could merge two unallocated spaces as shown in the picture below:


Screenshot from Disk Management


I would like to combine the two unallocated spaces into a single space for further partitioning.



Answer



Since it's in a primary partition surrounded by unallocated space this should actually go pretty easily.



  1. Ensure you make a full backup.

  2. Get a disk partitioning utility. Personally I like to use a LiveCD of GPartEd.

  3. Use it to move the D: partition around to where you want it (slide it to one end of the unallocated space or the other kind of thing).

  4. Apply changes, and take a nap while it applies them (could take many hours to complete).


Example/general UI picture of GPartEd:


enter image description here


Dual monitor support for ASUS M4A785TD-V EVO


My motherboard is an ASUS M4A785TD-V EVO.


It has VGA and DVI onboard and I was wondering if I could hook up a monitor to both and be able to have dual monitor display (one long screen, not two monitors showing the same output).



Answer



Even better, according to the review "AMD 785G chipset. ASUS M4A785TD-V motherboard under the spotlight", thanks to DVI and HDMI out, "dual digital displays can be driven concurrently", so you don't have to use the analog VGA connector (unless of course you want to use an old CRT monitor).


And in order to get the "one long screen" select the option "Extend my Windows desktop onto this monitor" as opposed to clone mode.


How do I get permissions to save in a folder that Windows 7 denies me from?

I'm getting this message - You don't have permissions to save in this folder - even though I am the only user on this machine, and administrator.


How can I set permissions for myself to do everything, everywhere (including saving deleting etc)?


Edit: Sorry, forgot to say which folder it was. It is a folder in Program Files, where I save my PHP files for local testing.


Sorry if Im a bit daft with all this, but I've upgraded straight from XP to 7, and having never used vista, I'm used to being allowed to have full control.

linux - Is there a tool that can detect (and if possible, fix) glitches in MP3 files?



My collection contains some MP3s which have some glitches like:



  • displaying the wrong duration on loading

  • minor jumps

  • suddenly ending despite the duration claims another minute remaining

  • noise


I'm looking for a tool that can detect as many of these glitches as possible and fix those that can be fixed (obviously e.g. noise can not simply be eliminated in most cases).



Answer



The command-line tool mp3val makes quick work of scanning for, and optionally repairing, structural defects in mp3 files. I try to run it over pretty much every file in my collection, on the "can't hurt" principle. It identifies amazing numbers of ostensibly-good files with defects ranging from inconsequential to severe.


mp3val is especially good at recognizing and correcting header deficiencies, such as lack of VBR headers in a VBR file (the source of most wrong-duration and seeking issues). But it will also clear out garbage/corrupted audio frame data, unusable cruft that some players may handle less than elegantly if it's left in the file.


It can even be told to run over an entire directory of mp3's, repairing only those files it finds problems with, keeping backups (or optionally not), preserving timestamps (optionally), and logging the session to a text file (optionally).


And it's free and open source! (The link is to its sourceforge project.)


EDIT: One last thing I forgot to mention. "But mp3val hasn't been updated since 2009!!", I hear you cry. That's very true! It's been working just fine since 2009, and hasn't needed an update. (After all, it's not like the MP3 file format has changed any in the past 2 years!)


hardware failure - Why is my mouse pointer twitching?



I don't know if you've ever experienced such a behavior from your mouse pointer but it's happened to me several times.


The thing is, when I buy a brand new mouse, everything is fine for some time (a year or two) but after that, the mouse pointer starts twitching sometimes.


I first thought it's because of those old ball mice and due to their mechanical nature that this happens. But it keeps happening to the optical mouses too. I wonder what might cause this problem and how to avoid it?


This happens when the mouse is idle. I mean I'm not touching it at all and I use a standard mouse pad.



Answer



Whenever a mouse doesn’t work correctly and the pointer skips or jumps, the first thing you should do is to clean it. The rollers on ball mice accumulate dirt and oil and need to be cleaned, but even optical mice need to be cleaned, especially ones that are particularly sensitive and have high resolutions.


Check both the optical sensor and light closely for hair, particularly if you have a pet with very fine hair. These are small an light enough to remain stuck in there, unnoticed for quite a while, but are still visible to the optical sensor. This is a common cause of phantom optical mouse movements.


One way to prevent this is to place a small strip of clear, Scotch tape over the area.


enter image description here enter image description here


usb - How does a hard drive compare to Flash memory working as a hard drive in terms of speed?


Some experiment I did with hard drive read/write speed was 10MB/s write and 40MB/s read, and with a USB Flash drive, it can be 5MB/s write and 10MB/s read.


Also, if I put a virtual hard drive .vhd file in a hard drive or in a USB Flash drive and try a Virtual Machine using it, the one using the hard drive is quite fast, while the one using the USB Flash drive is close to not usable.


So I wonder some early netbooks use 4GB or 8GB flash memory as the hard drive, and even the Apple Mac Air has an option of using flash memory instead of a hard drive. But in those situation, will the speed be slower than using a hard drive, like in the case of a USB Flash drive?



Answer



One big difference is that the flash drive is using the USB bus, while the drive is using the SATA bus. So even if your flash memory was the same speed in both cases, the drive would have a higher potential throughput.


How come I cant connect to wireless on ubuntu but mac is ok?

So lately I have been travelling around San Francisco. I keep running into situations like this:



  1. Free Wifi is available, i.e. SFO airport or at starbucks

  2. Can't connect to wifi using ubuntu (even if I restart etc). No modifications to the network manager whatsoever

  3. When I boot into OS X, (I am dual booting ubuntu with mac os x on macbookpro), connecting to the same network is almost instantaneous and without any problems.


What could be the cause of this problem? Could it be that ubuntu's wireless connectivity is crappy or runnning ubuntu on macbookpro is not fully supported (I follow the guide completely on ubuntu's official pages).


Why am I experiencing this issue? How can I go about debugging it?


I am using the latest ubuntu 10.10.

windows 7 - Batch File that copies the first 2 lines of a text file into another text file


I have a text file A.txt


Pinging [xx.xx.xx.xx] with 32 bytes of data:

Request timed out.

Ping statistics for xx.xx.xx.xx:
Packets: Sent = 1, Received = 0, Lost = 1 (100% loss)

I would like to copy the first 2 lines of this file into another file B.txt, i.e.


Pinging [xx.xx.xx.xx] with 32 bytes of data:
Request timed out.

I know I can use FOR /F to loop through the lines in the file. I know how to skip the first two lines, but not to only read them. I've also tried to do it by using FOR /F with a DO ECHO and related FIND command and also a straight FINDSTR command (in both cases searching for "Pinging" and "Request") but I cannot get either to work properly.



Answer



I've posted the entire code below, but the real meat is here:


:: set counter
set c=0
for /f "delims=|" %%i in (%1) do (
:: increment counter for each line read
set /a c=!c!+1
if !c! leq %3 echo %%i >> %2
)

Basically you set the counter variable c to 0, then increment it for each line read from the text file. You test the counter against the max lines and echo it to the output file if it's less than or equal.


The "delims=|" parameter in the for loop keeps it from breaking the line into tokens at space characters and thus only outputting a partial line. The unusual !c! variable is how to reference variables that are using delayed expansion. If you just used %c%, the value would never change inside the for loop.


You provide the script with three parameters: input file, output file and # of lines to output. The %1,%2 and %3 represent each of these input parameters in the script.


 @echo off

REM ======================================================================
REM
REM NAME:
REM
REM AUTHOR: Scott McKinney
REM DATE :
REM
REM PURPOSE:
REM COMMENT:
REM DEPENDENCIES:
REM
REM Revisions:
REM
REM ======================================================================

setlocal ENABLEEXTENSIONS
setlocal ENABLEDELAYEDEXPANSION

set a=%1
if "%1"=="" goto HELP
if "%a:~0,2%"=="/?" goto HELP
if "%a:~0,2%"=="-?" goto HELP
if "%a:~0,2%"=="/h" goto HELP
if "%a:~0,2%"=="/H" goto HELP
if "%a:~0,2%"=="-h" goto HELP
if "%a:~0,2%"=="-H" goto HELP
if "%a:~0,3%"=="--h" goto HELP
if "%a:~0,3%"=="--H" goto HELP

:: set counter
set c=0
for /f "delims=|" %%i in (%1) do (
:: increment counter for each line read
set /a c=!c!+1
if !c! leq %3 echo %%i >> %2
)
goto END

:HELP
echo.
echo Usage: %0 ^ ^ ^
echo.
echo. Outputs the first ^ lines from ^ to ^.
echo.
:END

Date format worldwide in Excel

On a Mac Mountain Lion, US locales, I'm working on a Spreadsheet with macros like


TEXT(TODAY(), "yyyy-mm-dd")&" is the date"

The problem is that the sheet is also used on computers set with French locale, where the macro expects


TEXT(TODAY(), "aaaa-mm-jj")&" is the date"

and displays #VALUE (since a is for annee/year and j is for jour/day in French, not y and d).


Is there a way - macro style - to make this "yyyy-mm-dd" format more international, or to force Excel to use the "ymd" format even on a Mac using French locale?


(if possible doing this in the same cell, ie without adding a new cell having a date inside then referenced in the displayed cell, since I want to modify the sheet as less as possible)

linux - External ThunderBolt 3 SSD drive not recognized on Ubuntu 17.10 running on Macbook Pro A1706

So I've installed Ubuntu 17.10 on an external SSD and had it boot on my MacBook Pro A1706 (late 2016), works like a charm (installed the keyboard/touchbar module).


I have an external ThunderBolt 3 (USB type C) SSD drive. When I connect it, Ubuntu doesn't recognize it. lspci shows Thunderbolt is available. When connecting the drive to MacOS, it works perfectly.


Any ideas?

memory - Associate a tab in Google Chrome with its process in task manager


How do I identify which process belongs to which tab in Google Chrome?


Normally, I have a (ridiculously) large number of tabs open. If I need to free memory on my box, I would like to choose based on tab/process memory footprint.



Answer



Chrome has it's own in-built task manager which makes it easy to identify which process belongs to which tab(s). You can access it by the hotkey Shift+Esc or by right clicking on the title bar and selecting "Task Manager".


Chrome also has a more detailed memory page which can be accessed by opening a new tab and entering chrome://system/ into the omnibox.


How can I import a CSV file into an SQLite table that doesn't allow null values?


I've been using the SQLite Manager extension for Firefox to edit my Chrome web data file in order to restore my keyword searches, and I think I have everything in place except that when I import a CSV file into a table,



  • it won't import into the actual table because the table doesn't allow null values

  • if I import it into a new table that does allow null values, then all the empty strings end up as null and I have to manually edit the row, type and delete a character, and then it's set to empty string and it's fine


So: is there either a way to import the CSV so that empty cells are automatically turned into empty strings instead of null, OR is there a way once a table is imported that has null values to convert it into one that doesn't allow null values, where each formerly null value is the empty string?


Thanks!



Answer



If the values that are null are all strings, how about search/replacing all ocurrences of ;; with ;""; in the csv file ?


email - How to rebuild missing trash bin (and possible other system) folder(s) in Mozilla Thunderbird

Frequent related problems :




  • I can't delete any message in Mozilla Thunderbird




  • The trash bin in Thunderbird is gone missing, causing the impossibility to delete any message



windows - How to resize an NTFS volume to fill the partition?


Having only the Windows ISO file I installed Windows XP to a virtual machine, and moved it successfully to a physical partition on my machine.


Because I did a direct partition copy, from the virtual parition to the physical, Windows thinks it has still 10GB size, but the partition it sits in is 59GB.


Is there any way or hack to make it recognize the entire partition? Without data loss of course, respecting my ext4 or other linux partitions Windows XP does not know about.


Diskpart simply reject the extend command on it.


EDIT: I also heard people experiencing the same, when resizing the partition with GParted.



Answer



You cannot resize the a partition that's mounted. That's why diskpart refuses the extend.


You need to boot an Ubuntu live CD or pendrive.


And run ntfsresize


Here is a little tutorial: http://linuxtechres.blogspot.hu/2007/08/how-to-use-ntfsresize-from-command-line.html


Basically it says:


You need to do the following commands:



  • fdisk -l to find out which partition to touch.

  • ntfsresize --info /dev/ to get partition info.

  • ntfsresize --no-action --size to do a dry run. (you can use units in the size eg. 12000M)

  • ntfsresize --size to do the resize. This will schedule a chkdsk check so boot the Windows to finish it.


You need to be in disk group to carry out the action or run it as root.


command line - Invoke zsh, then *source* another file (while entering interactive mode)

This question is of course related, but different to the one about executing a command.


That questions’ solutions involve either starting a subshell – which isn’t possible due to the requirement of sourcing instead of executing – or modifying your ~/.zshrc, which isn’t possible if you want to distribute a script that does it. (Or rather modifying the user’s config files is a thing you just don’t do)


The problem is that with zsh there is no --init-file parameter like bash has (the first time ever i saw bash having a feature that zsh hasn’t)


I’ll provide an answer with my question, but it’s reeeaaallly ugly, and I hope someone knows a trick to circumvent it!

Tuesday, 26 June 2018

vlc media player - Can VLC play Blu-ray films?


I just tried to play a Blu-ray disc and VLC says Your input can't be opened: VLC is unable to open the MRL 'dvd://E:\'. Check the log for details.


I have a disc in the drive!



  • Will it not play because my monitor is in 4:3 view or something?

  • What can can I use to play it?

  • Any simple programs?

  • Any quality software I can use now? Or is everything paidware?


I have an LG drive on an HP computer using Windows 7.



Answer



Yes VLC can play Blu-ray discs.


You will need to update the keys database and AACS dynamic library, both of which can be downloaded from http://vlc-bluray.whoknowsmy.name/.


DVD player Ubuntu 9.10

Hello everyone at SeverFault. I am new to this fourm. I have been using ubuntu since 8.04. Here is my problem. When I try to watch one of my cisco videos I get wmas error. I never had to use this format before. I went on ubuntu fourm they told me to use vlc media. I am using vlc media. mplayer, it still have error with that, sounds and video. Is there a program that I could use to watch wmas files on my ubuntu 9.10.


It is a laptop ACer Extensa 5620z.


Thank you for who ever will help !!

administration - How to get to c$ with Windows 7


I'm trying to get to the admin share on a Windows 7 home machine from a Windows 7 home machine and nothing is working. I enabled file and print sharing in the firewall and even turned Windows Firewall off. I can get to the "Users" share that I remember setting up when I first installed.


When I go to \machinename\c$ instead of \machinename\users I get asked for a username and password and nothing works (not even machinename/adminuser). \users works because I'm using the same username and password on both machines (like in the XP/2000 days).


Is the admin share c$ gone in Windows 7?



Answer



HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
add a new DWORD called LocalAccountTokenFilterPolicy and set it to 1
reboot.

Delete it or remove the key when you don't want it anymore. Need i say from a security perspective this is suboptimal?


Filesharing needs to be allowed and the firewall need to be configured to allow that aswell.


Version control support in Microsoft Word 2007


When I am about to edit a Microsoft Word document, I can do undo and redo. If I close that document, undo and redo will not be available anymore. If and how does Microsoft Word support SVN or any type of version control? Can I switch between versions of a document?



Answer



The easiest way to do it is to allow tracking changes in a document (you can find more about this in this FAQ):



Track Changes is a way for Microsoft Word to keep track of the changes you make to a document. You can then choose to accept or reject those changes.


Let's say Bill creates a document and emails it to his colleague, Lee, for feedback. Lee can edit the document with Track Changes on. When Lee sends the document back to Bill, Bill can see what changes Lee had made.


Track Changes is also known as redline, or redlining. This is because some industries traditionally draw a vertical red line in the margin to show that some text has changed.



Here's an article on how you can enable and disable this feature.


How to call a program to be run with admin privileges but under the same user (Windows Command Prompt)

I need to invoke a program with admin privileges from command prompt. it should prompt to the user an alert such as:


enter image description here


I found many answers like:


runas.exe /user:administrator %~dp0\MY_PROGRAM.BAT

But it does not help me, because that in this way, the program run under Administrator account while I need this program to be run under the same user that invokes my script.


I'm working on Win7/8 and Server 2008 R2

windows 7 - Prefer wired over wireless on same network (special case)

In a related post (multiple nics force routing), I asked about forcing Internet traffic to go via one specific NIC where there were multiples. In that case, the 100Mb wired network had no Internet connection and I needed to have internet traffic go via a mobile broadband WiFi device (in this case a HUAWEI E585). I've been provided with a solution that works, by locating the place where Windows 7 stored the routing order for the adapters and adjusting accordingly.


What I didn't mention, in the previous post was the that the internal (wired) network was running out of a home based Wireless Router with both WiFi and Wired connections (Thomson TG782T).
OK, so if I have my laptop connected to the E585 and the wired connection to my internal network - all is fine. However, if I now disconnect from the E585, I have my laptop set up to automatically connect to the TG782T by wireless (in the event that it isn't directly connected by CAT5 cable).


Because I have set the Laptop to prefer the WiFi adapter over the wired adapter, it seems to me that if I'm connected to the TG782T by both WiFi and Wired connections, the WiFi connection would be preferred. Obviously, if I disconnect from the WiFi, the traffic will only be transferred by the wired connection. But if I forget, is there any way I can set things up so that the Laptop (Windows 7) understands that if it is connected to the same network by both wired and WiFi - that it should prefer the wired connection?


I've noted other posts on the site with similar topics, but it seems to me that I don't have the same situation - since I've already intervened to make the wireless preferred over the wired (for purposes of ensuring internet connectivity). For example, they mention that the routing metric for the wired connection should be lower than that for the wireless. but I've just checked mine and the values are: 10.0.0.10 (wireless) 25 and 10.0.0.30 (wired) 276 (possibly because of my re-ordering of the routing order).

windows - Kill a process with a specific "Command Line" from command line


Is there a command line utility that kills all processes with a specific command line?


E.g. kill all processes named "java.exe" with a command line that contains "-jar selenium-server.jar". This is possible through process explorer.



Answer



In Windows XP, you can do this easyly uing WMIC, the WMI Console. From a command propt, type the following:


wmic Path win32_process Where "CommandLine Like '%-jar selenium-server.jar%'" Call Terminate

Edit:


I replaced the alias 'process' by it full path ('path win32_process') as is Aviator's port. This alias may not be declared on every OS.


Monday, 25 June 2018

How do I set a custom zoom in Chrome?

In IE 9 you can type in whatever number you want to get the perfect zoom but in Chrome all I see is the + and - in the drop menu. How do I choose a custom zoom and set it as the default?

Windows 10: Change shortcut keys to switch between desktops



In Windows 10, the shortcut keys for switching virtual desktop are ctrl + win + right / left arrow. I'd like to simplify it, by changing it to ctrl + right or left arrow key only. How can I do this?



Answer



AutoHotkey is a great program for doing this exact type of thing. It is an very useful program for remapping keyboard keys, letting you set up hotkeys, and automating tasks. Here are the steps to set this up:



  1. Download AutoHotkey (http://www.autohotkey.com/) and install it.

  2. Right-click on your desktop > New > Autohotkey Script (name it whatever you want).

  3. Right-click, Edit Script.

  4. Paste the following text under the already-present text:


#NoTrayIcon ^Right::^#Right ^Left::^#Left



  1. Save and run the script to test its functionality.

  2. If it performs as expected, copy the script into the startup folder* so that it will run every time your computer starts.


Optionally, you can compile the script to run as a standalone .exe that can be run on other computers that don't have AutoHotkey installed. To do this, right-click the script file, and click "Compile Script."


*To access the startup folder in Windows 10, open "Run" (either press Windows Key + R, or search for it in the start menu) and type either (without quotes): "shell:startup" (to run the script for just the current user) or "shell:common startup" (to run it for all users). Paste it in the folder that opens.


windows 7 - How can I prevent an admin user from bypassing K9 Web Protection


Problem: It is super easy to bypass K9 Web Protection by renaming a file in the Windows\System32 directory in Windows 7.


Question: How do I prevent an admin user from renaming said file in said directory, thereby bypassing K9 Web Protection? OR, if I can't do that, how do I enable a standard user to install programs.



Answer



I actually can't think of a reliable way to do this as stated I'm afraid.


Perhaps someone with better Windows security knowledge knows of a way but as far as I know, a user with Admin rights on a non-Domain (stand alone) computer can do anything they want to if they know what they are doing.


You could try to fool Windows into adding the file into the list used by the Windows File Protection feature. But I've no real idea if this is workable. A determined person would still be able to delete the file if they really wanted to.




With regard to the second part of the question: you can't I'm afraid. Not on a stand alone PC.


If you really need protection on one or more computers, you need to make them part of a Windows Domain. Windows Domain's are able to enforce security policies of many kinds. This includes required software & services to be running, files and folders that are protected, limited administration rights and so on. To do this, you need to run at least one physical or virtual server and there are license costs too.




For your purposes though, a much better option that avoids running up an entire Windows domain would be to create a "transparent proxy". Basically, you set your router or firewall to only forward traffic to the Internet if it goes via your proxy. You run your filters on the proxy. Anyone who tries to bypass the proxy doesn't connect to anything useful. Set up DHCP (either via your router or from the proxy) so that PC's connecting to your network automatically have a "default gateway" pointed at the proxy and possibly filter all DNS requests through it as well. Of course, you still need a spare PC to do this and it may need to be a reasonable one if the traffic to the Internet is heavy.


UPDATE: Having read the other referenced thread re transparent proxying, I can see that your other problem was due to the lack of SSL support in TinyProxy. So don't use that if you can. If you have a PC that you can configure as a proxy, that would be best though to do it best, you need two ethernet ports. Even an old laptop would do the job, add a PCMCIA or USB ethernet adaptor as the second card. On a desktop, it would be easy, many desktops actually have to ethernet ports already. Have a search on Google on how to set up SQUID on Linux or even Windows (if you must) as a transparent proxy. With that set up, you will have no problem proxying and filtering SSL connections.


windows - Command line tool for image conversion




Possible Duplicate:
Free command line image converter



I need a command line tool for windows which can be used to convert an image from any common format to 24 bit bitmap. I'm writing some programs to do image manipulation in C, but I don't really want to write a ton of code to read images in multitudes of formats. I use bitmap format a lot for both reading and writing because it's pretty straight forward. I don't really want to convert all of the images by opening in paint and saving in the desired format.



Answer



ImageMagick can do format conversions with a tool that comes with it called convert. You can find binaries for it here.


You'll want to run something like this on Windows:


for %%f in (*.jpg) do (
convert "%%~nf.jpg" -type truecolor "%%~nf.bmp"
)

Or in Bash:


for f in *.jpg; do convert "$f" -type truecolor "${f%.*}.bmp"; done

Convert picks the format automatically from the extension and -type truecolor makes sure you are converting to 24-bit.


internet explorer - Why doesn't Google Chrome block all pop-ups?

For example, if you go to the website nba-stream.com and click on a game, the website will open up a pop-up, but since I have disabled pop-ups in Google Chrome in Chrome://settings, I shouldn't get any pop-ups. clicking on a game stream on nba-stream.com also opens up a pop-up ad


but if you visit the same website in Internet Explorer, the browser will block all pop-ups whatsoever: Internet Explorer 11 blocking pop-up

windows 7 - Can't read .CHM file in specific folder


I have installed WiX# on my Windows 7 (64 bit) operation system. I chose the folder name C:\Users...\WiX#\ for all files. Unfortunately I can't open the .CHM file. I get an error message



This program cannot display the webpage.



I can fix this by moving the file to another place or renaming the folder WiX# to WixSharp. Why does this happen and can I display the file without renaming the folder somehow?



Answer



This seems to be a known bug:



[...] If the CHM file name contains the # symbol, then the topics in the table of contents do not appear. If the path contains the # symbol, then you may receive an access violation error message.



The only resolution listed:



To work around this issue, remove the # symbol from the file name or from the path to the file.



The article is quite old so does not mention Windows 7 but I just tried it myself on Windows 7 Professional (32 bit) and can confirm the behaviour.


The CHM format is actually compiled HTML. The # character signifies an anchor in HTML so probably the CHM viewer fails to resolve the path properly and to retrieve the content.


windows - Ubuntu grub rescue prompt


Installed WUBI on Windows and the Ubuntu installation completed. The first time I logged in to Ubuntu it updated a full set of patches and asked to reboot.


Now after reboot it is showing me the error:



no such devices found


grub rescue>



Can you share some commands I could use to recover at least Windows? It is not even asking for the Windows login at boot time.



Answer



Cause: Grub2 is not supposed to replace the original bootloader.


Conditions: Windows 7, Netbook, no optical disc drive, no rescue CD, repair startup not found in Windows Rescue Environment (Press F8 before Windows logo appears), failed to uninstall Grub and restore Windows bootloader


Solutions:



  1. Get SuperGrubDisk to boot into the Windows partition.

  2. In Windows, get Mbrfix.exe to fix the MBR (run Mbrfix /drive 0 fixmbr /win7).


Do read the instructions in the documentation.


usb - Recovering Crashed Flash drive?


So my friend has a USB flash drive that isn't working. I don't know a whole lot about "recovery" software so I figured I'd ask you guys.


What steps can I try (I have access to a Linux machine as well) to see....if I can get ANYTHING off the flash drive?


I've google'd around, but most of the stuff seems for windows.



Answer



You can use TestDisk to recover files from FAT, NTFS, exFAT and ext2 filesystem.


For recovering photos use PhotoRec


Power on laptop without opening lid


I had a problem with the laptop lid so I am using it with an external monitor. I was wondering if there is any way to power on the laptop without opening the lid, that is through ports.


Laptop: Dell Inspiron 1525



Answer



Some laptops may support this through custom docks, but there is no general way to perform this.


networking - What is the actual IP address of my computer

I am testing out to see whats my IP address but depending on which website I used, I get different IP address. I am using a router


If I use this , My IP address is


enter image description here


If I use this , My IP address is


enter image description here


If I use this , My IP address is


enter image description here


If I use ipconfig/all , My IP address is 192.168.209.1


Why is there a variation in my IP address? Does it have something to do with DHCP???


Why does my IP address start with 202 sometimes, 218 sometimes, or 58 sometimes?


What is the true IP address of my computer??

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...