MS Wordi ülearused failid

Kui Word jm programmid tekitavad ise, luba küsimata,  uusi faile. Tegu on varukoopiatega ja seda funktsiooni saab keelata.

MS Word

OpenOffice / LibreOffice

Navigate to the Open Office backup folder. The location will depend on your operating system. In all of the below examples, replace “username” with your system user login. Look for any files ending with the extension BAK. Copy these files to another location on your system (such as the desktop).

  • Windows XP and earlier: C:\Documents and Settings\username\Application Data\OpenOffice.org\user\backup
  • Windows Vista /7 /8: C:\Users\username\AppData\Roaming\OpenOffice.org\user\backup
  • Linux: /home/username/.openoffice.org/user/backup
  • Mac OS X: /Users/username/Library/Application Support/OpenOffice.org/user/backup

Rename any backup files with a new extension to match the extension used by that Open Office file type. For example, if “filename.bak” is a word processing document, rename it “filename.odt”. ODT is the file extension used by the Open Office application Writer, and is compatible with all operating systems that have Open Office installed.

Gedit

  • Gedit is a very simple text editor. it doesn’t save periodically.
  • Edit –> Preferences –> –> Editor –> File Saving check mark on ¨Autosave files…¨
  • filename~

Maci asju

NTFS FAILISÜSTEEMI KIRJUTAMINE-LUGEMINE

Mac loeb NTFS falisüsteemi, aga ei kirjuta sellesse, kuid teda saab kirjutama panna.

Siin on juhised Mac OS X Lion 10.7 ja uuemate jaoks.

http://macinformers.com/how-to-NTFS-3G-support-for-macosx-lion/

EI SAA SALVESTADA JA ALLA LAADIDA

Kui faili mõnda kausta salvestamise või allalaadimise ajal hakkkab ilmuma teade

“The document ___ could not be saved. You don’t have permission. To view or change permissions, select the item in the Finder and choose File > Get Info”.

Siis ava Terminal ja kopeeri sinna need read ja vajuta enter:

cd /private/var/folders

sudo rm -Rf *

Vajuta Enter. 

Esimene rida viib sinna kausta, teise rea järel küsitakse administraatori parooli.

See õpetus oli siin https://discussions.apple.com/thread/3704159

PEIDETUD FAILID

Kopeeri see Terminali ja siis muutuvad Finderis peidetud failid nähtavaks:

defaults write com.apple.finder AppleShowAllFiles TRUE

killall Finder

Vajuta Enter.

ja nii lähevad mõned faili uuesti peitu

defaults write com.apple.finder AppleShowAllFiles FALSE

killall Finder

Vajuta Enter.

killall Finder asemel võib vajutada Option(alt)+Cmd+Esc ja Finder Relaunch.

EKRAANITÕMMIS JA SELLE TÜÜP

Shift+Cmd+3 – kogu ekraan

Shift+Cmt+4 – valitud ala

Meeldetuletus: System Preferences > Keyboard >  Keyboard Shortcuts

Failitüübi muutmiseks trüki Terminali

defaults write com.apple.screencapture type png 

defaults write com.apple.screencapture type jpeg

Vajuta Enter. 

FAILI/KAUSTA AADRESS AKNA TIITLIRIBAL

Trüki terminali

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

killall Finder 

Vajuta Enter.

ÕUNA MENÜÜSSE Quit Finder valik

Trüki terminali

defaults write com.apple.finder QuitMenuItem -bool YES

killall Finder

Vajuta Enter.

Open With MENÜÜ ON LIIGA TÄIS

Ava Terminal ja trüki

unlink ~/Library/Preferences/com.apple.LaunchServices.plist

Vajuta Enter.

LIBARAY KAUSTA SAAB

Kui Finder ei näita Library vm poolpeidetud kausta, nagu /opt/ , /var/, /private/var, siis ava Terminal ja trüki

open ~/Library/

“open ” järele koha aadress. Open teeb sama, mis topeltklõps – failid avatakse sellega, millega tavaliselt.

Vajuta Enter.

7z PAKKIMINE

Terminalis

7z a resources.7z ./resources/ -t7z -m0=lzma -mx=9

Kaustast “./resources/” luuakse “resources.7z

http://www.7-zip.org

http://www.kekaosx.com/en/

http://www.macupdate.com/app/mac/20526/7zx

TERMINAL, KÄSKUDE AJALUGU

history

Käsu taaskasutamine, hüüumärk(!)vahetule selle järele käsu number, näiteks

!497

Mingit liiki käskude filtreerimine, mitme sõnaline otsing peab olema jutumärkides:

history|grep rmdir

history|grep “port info open”

Motorola XT910 rootimise õpetuse link

Töötab ka Maci peal

rooting Motorola Droid Razr xt910 from Linux

http://blog.wpkg.org/2012/10/11/rooting-motorola-droid-razr-xt910-from-linux/

export PATH=$PATH:/usr/src/android-sdk-linux/platform-tools
adb wait-for-device

adb shell "rm -r /data/local/12m/batch 2>/dev/null"
adb shell "ln -s /data /data/local/12m/batch"
adb reboot
adb wait-for-device
adb shell "rm /data/local.prop"
adb shell "echo 'ro.sys.atvc_allow_all_adb=1' > /data/local.prop"
adb reboot
adb wait-for-device
adb remount
adb push su /system/bin/su
adb shell "chmod 6755 /system/bin/su"
adb shell "ln -s /system/bin/su /system/xbin/su 2>/dev/null"
adb push busybox /system/xbin/busybox
adb shell "chmod 755 /system/xbin/busybox"
adb shell "/system/xbin/busybox --install /system/xbin"
adb push Superuser.apk /system/app/Superuser.apk
adb shell "rm /data/local.prop"
adb shell "rm /data/local/12m/batch"
adb shell "chmod 771 /data"
adb shell "chown system.system /data"

adb reboot
adb wait-for-device
adb kill-server

MAc OS X – Convert document formats on the command line

Mac OS X built-in options:

textutil -convert fmt filename
textutil -convert pdf doc.rtf
# -output path Specify the file name to be used for the first output file. 
# -convert fmt  Convert the specified files to the indicated format and write each one back to the file system. 
# fmt is one of:  txt, html, rtf, rtfd, doc, docx, wordml, odt, or webarchive 
# -font font Specify the name of the font to be used for converting plain to rich text. 
# -fontsize size Specify the size in points of the font to be used for converting plain to rich text. 
# -format fmt Force all input files to be interpreted using the indicated format (by default, a file's format will be determined from its contents). 
qlmanage -x -t -i -s 2000 -o . image.svg
# Rectangular area for icons and thumbnails
qlmanage -x -t -s 2000 -o . image.svg
# Full document with frame and dropshadow for QuickLook
sips -i -s format png -c 2133 1600 image.in.png --out image.svg.png
# sips can do convert, crop, flip, rotate, resize and much more. 
# jpeg | tiff | png | gif | jp2 | pict | bmp | qtif | psd | sgi | tga
cupsfilter -c ./cupsd.conf doc.html > doc.pdf
# convert a file to another format using cups filter
# By default, cupsfilter generates a PDF file.
# http://localhost:631/help 
# 
lpr -PPrinterName filename
# print
afplay
afplay [option...] audio_file
 

How to Textile with TextWrangler

In case, I use PHP version of textile. Script creates a temporary file in user Documents folder and opens it in webbrowser.

/Users/username/Library/Application Support/TextWrangler/Unix Support/Unix Filters/textile.php

#! /usr/bin/php
<?php
/*
Textile This
*/
include(‘/Users/username/Sites/sites/ukj.pri.ee/class.textile.php’);
$outfile = ‘/Users/username/Documents/Textiled.html’;
$textile_output = ”;
$content = file_get_contents($argv[1]);
$textile = new Textile;
$textile_output = $textile->TextileThis($content);
file_put_contents($outfile, $textile_output);
// echo $textile_output; // replaces the textile source with a generated html
echo $content; // remains textile unchanged

exec(‘open “‘. $outfile . ‘”‘);
?>