Saturday, 27 January 2018

mount - dual boot ubuntu with windows 8

I want to install Ubuntu beside my windows 8 but I made a mistake that i installed only Ubuntu ,but when I logged in Ubuntu and went to open my partitions , an error appeared said tha



Error mounting /dev/sda5 at /media/abdo/mohamed:


Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/abdo/mohamed"'


exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option"".



Please I need help here.

windows - How do I get the list of defined shortcut keys in the Start menu?

How can I find out which keyboard shortcuts are defined inside the Start menu? And what shortcuts they are assigned to?


Platform: Windows XP SP2 64 bit.




Example:


I open my main Visual Studio solution with a shortcut key, Ctrl+Alt+M. This is set up by having a shortcut inside the Start menu with:


Target: "D:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" D:\dproj\MSQall\MSQuant\MSQuant.sln

Shortcut key: Ctrl+ALT+M

If a new shortcut is added and its shortcut key is also set to Ctrl+Alt+M then there are now two shortcuts with the same shortcut key (conflict). To prevent this it would be nice to know which shortcut keys are already assigned and to which shortcuts.

print to pdf - Creating PDF Documents


When creating PDF documents a friend of mine told me that doing a "Save As" is generally a better way to create a PDF doc, the way that I generally created them was through the "Print to PDF" option in most software.


Aren't both ways to creating PDF documents generally the same?



Answer



Yes and no!


It really just depends on the program you are using.


Typically Save to PDF is supported in very few applications (either by Adobe or by the program maker). It creates an enhanced PDF file that typically has additional features - such as if you had hyperlinks in a document, they will be preserved.


Printing to PDF is different as it is for ANY program that can print. It basically redirects what would come out of your printer into a PDF file. In the above example with the hyperlink - In Microsoft Word, it would typically just come out as blue text (as it would on physical paper) unless you manually format it!.


That being said, I believe that a few PDF printers do try to preserve some enhanced features, however the above should be typically true for most.


windows 7 - Rearrange Firefox toolbars


I am using Firefox 4, and the one thing which annoys me the most is order of my toolbars. I have tried Customize option but it only lets me move items of toolbar and not the whole toolbar itself. Can anybody please help me with repositioning my toolbar orders?



Answer



There's an add on that lets you move toolbars, maybe this helps. It's for 4.08b only, but you can change these requirements and try to install it anyway.


DragNDrop Toolbars



Install this extension, and you will be able to chose the vertical order of your toolbars simply using "Drag and Drop".


You will not be able to merge toolbars, or add one at the bottom of another one.



enter image description here


Apart from that, maybe this Firefox Help page will help: "How do I customize the toolbars?"


linux - How to run the awk command in Windows 7?


I have the following adb + awk command which will work fine in Linux environment [Ref].


adb shell dumpsys package | awk -v RS='\n +Package' '/android\.permission\.CAMERA/{print $1}'

But I need to run this command in Windows 7 PC which has GnuWin32 Gawk package installed. I can run awk commands from the C:\Program Files (x86)\GnuWin32\bin folder and run the adb commands from the C:\Program Files (x86)\Android\android-sdk\platform-tools folder. I need to run the above command and get the list of packages that has the CAMERA permissions allowed.


Setting Windows Environmental Variables for AWKPATH and also in PATH variables didn't work. So I just copied the contents of GnuWin32 gawk's bin folder and pasted in the platform-tools folder. But when I run in command prompt I get,


awk: +Package'
awk: ^ invalid char ''' in expression

How can I run the above command in Windows? or What is the correct expression that I can run?



Answer



Try to replace the ' with " . So that the command looks like,


adb shell dumpsys package | awk -v RS="\n +Package" "/android\.permission\.CAMERA/{print $1}"

Take a look as well: Grep and Awk in Windows Invalid Char in Expression Error


Remove the Browser ballot app from Windows 8

I made the mistake of installing the browser choice app/update on one of my PCs and now, it cannot be uninstalled. I cannot uninstall the update and I can't even uninstall the "Metro" app it installs.


I have found this tutorial for Windows 7 online but I haven't found any feedback to tell if it really works:



To uninstall KB 976002:



  1. Go to C:\Windows\Servicing\Packages

  2. Find the two .mum files relating to KB 976002

  3. Take ownership of them, give yourself full control

  4. Open Control Panel, programs, Installed Updates

  5. Find KB 976002 and right click, Uninstall is not available. Important: Do not close this window, to avoid re-verification of the checksum of the .mum files.

  6. Go back to the two .mum files for 976002. Edit them both with notepad, change Permanance=”Permanent” to Permanence=”Removable”

  7. Go back to the Installed updates list, hit F5, right click KB 976002. Uninstall is now available.

  8. Uninstall the update (if you want to be double-careful, monitor with sysinternals process monitor).

  9. Reinstate the two keys which the uninstall removes [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce] [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx]

  10. Reboot the PC

  11. Run the 947821 update to verify the component store

  12. Go to WU, check for updates, hide the 976002 update



Also I cannot find any related .mum files.


Does anybody know which mum files I should edit, if this method makes sense. Or does anybody have an alternative way of removing the update?

networking - Decrypting TLS Browser Traffic With Wireshark - Body is still encrypted

I was trying to reverse engineer a protocol using wireshark. I followed this article and tried to decrypt TLS Browser Traffic using SSLKEYLOGFILE since decrypting using private key didn't work for me. Using SSLKEYLOGFILE seems to work. But only headers get decrypted. How do I make the body decrypted as well?


Note: The solution in this question might not apply to my question because decrypting using public key doesn't support Diffie-Hellman ciphers. But I am not using private key to decrypt. Instead I am using SSLKEYLOGFILE which supports Diffie-Hellman ciphers. See this article

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...