Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Page
Discussion
Edit
View history
Editing
Mika/Notes/Computer Stuff
(section)
From WikiDotMako
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Miscellaneous= Writing down things I've learned. Some miscellaneous stuff are: * AJAX example: Checks if the username you entered is taken. * Javascript example: Drag choices up and down. * The tool to take a screen-videoshot (screencast) is to install recordmydesktop. * i686 (or i386) are 32 bit. Intel 64 bit processor is usually marked by _64 (really?) * Add a keyword (i.e. g) to a bookmark (i.e. http://www.google.com/search?q=%s) to make a shortcut in the address bar in Firfox. * [http://cran.r-project.org/doc/manuals/R-intro.html#Top R tutorial] * Vector graphics vs Raster graphics * To rid the high pitch noise on my X61s, add options processor max_cstate=2 to your /etc/modprobe.d/options file. * In order to have certain things started every time I start my laptop, I can add things to the .Xsession file and start the session with Xsession when I log in. I've added things like gnome-power-management and awesome (awesome should be at the end). * I installed chromium by following [http://www.ubuntugeek.com/how-to-install-chromium-google-chrome-in-ubuntu-using-deb-package.html this instruction]. * Change network manager keyring by Applications > Accessories > Passwords and Encryption Keys. * Firefox forgets history after 7 days even though it's set to remember for up to 90 days. I went about:config and changed browser.history_expire_days to 90 days. * Converting 3gp to avi: I had to do sudo apt-get install ffmpeg libavcodec-extra-52 to get extra libraries. Then, a variation of ffmpeg -i input.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 output.avi because it gave errors for xvid (change to libxvid) and mp3 (change to libmp3lame). Still not working but it at least makes the output file. * Things to check out: gcommons, bak, [http://acabed.muc.ccc.de/acab/ acabed] * In order to hide oversized background on a website, use in CSS: overflow:hidden; * sh files --> sh file.sh * imap folder can be merged by tagging all msgs in one folder and ;s (save) in the folder of my choice. * tgz files: gzip -d filename * baobao: graphical tool for space analysis * ibus-daemon wasn't working. I couldn't start it by ctrl-space: 1) ps ax |grep ibus (this showed "defunct for ibus) 2) ps ax |grep X 3) restart X by killing the process (That didn't fix it. See the next point.) * upon Ubuntu Upgrade, the Japanese input stopped working ("no input window" in ibus). I uninstalled scim and it's all fixed now. * smbclient -L (server name) to see the list of services on the server. * Start mutt. c and imap://(server name) to get emails on the local machine. * Thumbnail images for RAW files stopped working. Installed gnome-raw-thumbnailer (probably) again. Also created a file raw.thumbnail saying: :<code>[Thumbnailer Entry] Exec=/usr/bin/gnome-raw-thumbnailer -s %s %u %o MimeType=image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-pef;image/x-pentax-pef;image/x-ptx;image/x-pxn;image/x-r3d;image/x-raf;image/x-raw;image/x-rw2;image/x-rwl;image/x-rwz;image/x-sigma-x3f;image/x-sony-arw;image/x-sony-sr2;image/x-sony-srf;image/x-sr2;image/x-srf;image/x-x3f;</code> * Iceweasel/Firefox keyword shortcuts: Right click on a search box (i.e. Duckduckgo search box) and select "Add keyword shortcut" and add a keyword. * Piwik is like visitors. Used Piwik Analytics, a wordpress plugin. Make sure to insert / for the path to piwik.php etc and enter correct site ID obtained from the analytics code. I inserted the code from the Piwik server on other pages in index.html. Make sure that the text doesn't wrap in the middle of the code. In vim, :set textwidth=1000 etc. * Accidentally changed the WP siteurl on the admin page to a wrong url and couldn't log back in to fix it. I edited the theme's functions.php and added :<code> update_option('siteurl','http://example.com/blog'); update_option('home','http://example.com/blog'); </code> ::After logging back into the website, I deleted these lines -- it's important to delete them! * Pitivi: I can't separate the audio from the video. dpic suggests: <dpic> hm. it doesn't happen to me but i highly recommend compiling the development version http://www.pitivi.org/?go=download apt-get build-dep pitivi git clone git://git.gnome.org/pitivi cd pitivi ./autogen.sh && ./configure && make bin/pitivi should work much better * A pdf file cannot be opened unless using Adobe. Downloaded their pdf reader from the website, chmod +x that file, ./the bin, and it's all set. * For each new computer, I should setup an ssh key and add .pub to my remote servers? keygen, id_rsa etc. See my link on ssh on links. * Was trying to upgrade my libreoffice but it seemed to have had problems with previous versions of libreoffice on my computer. apt-get remove libreoffice* did NOT do the trick. I had to locate libreoffice |less to identify what other libreoffice3.5 (previous version) were lurking around (i.e. .config/libreoffice in the home directory and other .libreoffice3.5 config files or /opt/libreoffice etc etc). Before removing these guys, dpkg -i on deb files in the downloaded libreoffice 3.6 files just led to libreoffice 3, which had no menus, pretty broken. * My server was very slow -- apache2 has spawned too many children: I ssh'ed (slowly) to my server and did sudo killall -9 apache2 . I can change in apache2.conf how many children to have. afterwards, instead of restarting apache2, I can just do sudo invoke-rc.d apache2 reload . * index html works locally but not on the server: permission issue. chmod. * logitech bluetooth/wireless mice work great with debian. Using M185. Less colorful than M325 but cheaper and as useful since I don't care about syncing with keyboard. * to save an attachment in mutt, type v on the email with the attachment -> select the attachment and hit s to save locally. * irc op: ask chanserv the list for each channel (/msg ChanServ access #(channel name) list) * irc op: /msg ChanServ op #(channel name) (nick) to add an operator * 2017-09-16 ThinkPad TrackPoint mouse started to move on its own (this always happens with Thinkpad after a few months of use). I want to disable the Trackpoint mouse. Solution here: https://cederlys.wordpress.com/2010/07/13/disabling-the-track-stick-in-ubuntu/ Step 1: Figure out the prop # for the trackpoint mouse <code> xinput -list </code> Step 2: See how the particular prop is set up <code> xinput -list-prop (the prop # you just looked up) </code> Step 3: Disable the mout <code> xinput -set-prop "(Device name shown in Step 1 and 2)" "Device Enabled (or something like that as shown in Step 2)" 0 </code>
Summary:
Please note that all contributions to WikiDotMako are considered to be released under the Attribution-Share Alike 3.0 Unported (see
WikiDotMako:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information