Tuesday, May 23, 2017

linux - How to reuse/extend etckeeper's metadata engine for git control of non-/etc filesystems, or extend git natively with said capability?

I want etckeeper-like filesystem metadata control for non-/etc, git-controlled directories. Home and web-app directories, among others, are classically sensitive to metadata (file ownership, ACL, permissions). This can be extremely useful/important to employ git for automated server deployment (along with tools like Fabric), among other things. I would like to re-use etckeeper-like capability on said dirs, either with etckeeper itself or something else.


Can anyone suggest any tips/tricks/working solutions to provide either or both of the following:



  1. apply the etckeeper engine (only care about the git-specific capability of etckeeper) to non-/etc, git-controlled directories. (Can assume at least Debian/Ubuntu Linux; would like MacOSX/homebrew support if possible.)

  2. extend git with metadata support (beyond over-simplified things like git-cache-meta) to support an etckeeper-like capability or better?


There's a growing interest in extending git with filesystem-metadata-control capabilities. etckeeper's metadata "engine" seems quite powerful and reliable in my experience, and etckeeper seems popular with others as well. metastore less so at least in part due to metastore's non-text-based/merge-unfriendly challenges. Further, etckeeper appears to have started with a metastore-based core, but then switched to its own (speculative?).


Obviously, this has OS/filesystem-specific dependencies. (eg, not trying to auto-deploy on Windows.) Suggest an optional extension (if it's a "native extension") of git, enabled on-demand by the user with understood consequences of cross-platform breakage, such that native behavior doesn't break git's "by default" cross-platform friendliness. Further, don't need to save extravagant unix/darwin/etc metadata (like ACLs); basic user/group/other perms and user/group ownership would be fine. (These are the only things that are currently breaking things in my "security/vulnerability control/policies.") Specific OSes I'm targeting up front: Debian, Ubuntu, MacOS 10.6+. Later: Redhat's (CentOS, Fedora, RHEL), SUSE, maybe other Linuxes, and *BSD (FreeBSD, NetBSD, OpenBSD). Don't see a need/application for Windows/VMS (even though VMS can be posix-friendly) or other non-unix-like OSes at any foreseeable point.


See also: background on pre-existing git, file-metadata/file-type tracking capabilities at this stackoverflow question I posted.


Additionally: if anyone cares to develop requirements for such capability, I am sure that could prove useful, particularly for a new/uncompleted project to address above.

microsoft excel - How do I stop my account name appearing in Office application title bars?

I have an Office 365 Subscription with Office 2016 installed. All of my Office Apps including Word, Excel, Access and PowerPoint include my name in the application title bar, near the top right corner, adjacent to the "Ribbon Display Options", "Minimize", "Restore/Maxmize" and Close buttons.


I'd like to take some screenshots without including my name in every screenshot. How can I prevent my name from appearing in the title bar?

windows 7 - Download images from a site

I want to download images from a site say, xyz.com which has the following directory structure:


./a/b/c/d/pikachu.jpg


There are thousands of images inside d directory and they are directly accessible if I type the complete address but to download all the images in bulk I am using Extreme Picture Finder which is unable to access through a starting address(It is forbidden).
My question is different form other similar questions in firstly, I can't use wget because I don't have a linux installed. Secondly, I am in favor of delegating the task somehow to Extreme Picture Finder.


Any suggestion is highly appreciated.


I am using Windows 7.

Monday, May 22, 2017

linux - Fedora 19 (you have not created a bootloader stage 1 target device)

I want to install fedora 19 to my HDD but I get errors:





  1. you have not created a bootloader stage 1 target device

  2. sda6 must have one of the following disklabel types: GPT.



I tried:




  • Create 1-2 mb BIOS boot partition. (does not work)

  • Change UEFI to Legacy first in BIOS (USB does not boot)

  • Delete BOOTX64.efi in EFI folder in bootable USB (USB does not boot)


  • Use other USB creator - unebootin, lili usb, linux live usb creator (does not work)



Where is the problem? I've got Lenovo z500.

boot - Stop external usb harddrive from booting


Whenever I boot my machine with an external drive plugged into the usb I get an error:



Reboot and Select proper Boot device
or Insert Boot Media in selected Boot
device and press a key



I've reviewed my boot order, but my bios does not list any USB boot options.
How can I stop my motherboard from trying to boot to my external drive?


 MB: P4P800SE w/ AMIBIOS 1005
ext. HDD: FreeAgent 750gb

Answer



After I disabled "Legacy USB Support" in the BIOS, the system skipped USB drive detection and booted normally.


windows 7 - Computer slow or is it just me?



My main computer these days is a Laptop with an SSD.




Besides that, I have a desktop gaming rig. It is from last year, but it still runs recent titles really well. Crysis 2, Witcher 2, Diablo 3, not a problem.



However, after startup it is really slow. Like, Firefox will take half a minute from invocation to window. Steam will take minutes until it is up and responsive. Even the task manager takes, like, dozens of seconds to show up.



Later on, Firefox takes less than five seconds to start and everything is snappy, but the system will take at least fifteen minutes until it gets realistically usable. Luckily, it can be used to start games beforehand, so this is not usually a big problem.



The hard drive is about half full and not fragmented. However, this really seems uncomfortably slow to me, but then my day-to-day computer has an SSD and my expectations might be off. I am really not sure any more.



So, is there something wrong with my system or is this really expected behavior?




Edit: I am running an i5 760 @ 2.8 GHz with 4 Gb of memory on Windows 7 x64 with a Radeon HD 6800.



Edit 2: It seems the "slow" time at the beginning is caused by MsMpEng checking all the executables of all the games I have installed. Thus, this will have built up slowly as I installed more and more games. But why is MsMpEng doing that on every startup?


Answer



On Windows 7 there's a great utility called "Resource Monitor", it will show what apps are using the disk/cpu/network/memory (sort by the different columns to zero in on a particular resource usage).



Fire it up and watch what's running. Also, have a look in your Event Viewer to see if there are any services having a problem during start-up.


keyboard - Why does Ctrl+Alt+< not work?



My new laptop has a bit of an unusual German keyboard layout where the < key is located to the right of AltGr (see image below). This makes typing \| (AltGr+ß followed by AltGr+<) really really hard (and when typing math-stuff in LaTeX, this happens really really often). Then, I found out that all the AltGr-combinations can be replaced by Ctrl+Alt-combinations. On my machine this works for all AltGr-combinations EXCEPT AltGr+<.




So my first question is: Why? Why would Ctrl+Alt+* work for all keys except <? And my second question is whether it is possible (preferably but not necessarily without external software) to map AltGr+´ to AltGr+< to make typing \| easier?



enter image description here


Answer



Thanks to @harrymc for hinting at AutoHotkey.



I use the following AutoHotkey-script to map AltGr+´ on my keyboard to the pipe symbol |.



#NoTrayIcon

IconVisible := 0

; Map AltGr+´ to send a pipe character "|".
; ^! means Ctrl+Alt and
; VKDD is the AHK virtual key code for my ´-key.
^!VKDD::Send |

; Toggeling the AHK tray icon
; ^!+ means Ctrl+Alt+Shift and VKDD again is the ´-key
^!+VKDD::

if (IconVisible == 1) {
Menu, Tray, NoIcon
IconVisible = 0
} else {
Menu, Tray, Icon
IconVisible = 1
}


I found the AHK virtual key code by running some dummy AHK-script, double-clicking the tray icon and then opening View->Key history.



hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...