Author: admin

Gvim loading slowly when used with FileZilla

I learned emacs and vim briefly, so I wanted to start using it with everything, especially FileZilla, which is where I do a lot of coding.

I installed Gvim, since logging into the server through the terminal, and editing files directly with vim was too cumbersome (you needed to manually download a file, edit it, then upload it all in the terminal..)

I had this as my default editor:

/usr/bin/gvim

And files were taking 5-10 seconds to load after they were downloaded from the server.. 
I changed it to:

/usr/bin/gvim -f

And it fixed it (for some reason)

Will Grayson Will Grayson by John Green and David Levithan

A story about two high school guys, both named Will Grayson. One is gay, one is straight (just like the authors) and in the middle of the book they meet.

I really felt so much of the emotion that the characters were going through in the book – it was wonderful.

[spoiler intro=”Click for spoiler content”]

There was an amazing contrast and unity between the two authors and the two stories.

Often times through the book I was reminded of the latest John Green book “The Fault in our Stars” – such as straight Will’s parents working with cancer patients, a girl named Hazel, talking about depression in the same way Hazel and Augustus talked about caner – that they were like ticking time bombs, waiting to hurt the people around them.

[/spoiler]

Ubuntu GIF screen cast

A screencast is the recording of computer screen (aka screen capture) with the help of screen recording software. If you want to convert these screencasts into animated GIFs to use them on your blog or website, then this tutorial will explain this using two methods under Ubuntu/Linux Mint.

Method 1

The first method consists of using Byzanz which allows to record screencasts as GIFs. To install it under Ubuntu 12.10/12.04/11.10 or Linux Mint 13/12, open the terminal and run these commands:

sudo add-apt-repository -y ppa:fossfreedom/byzanz
sudo apt-get update
sudo apt-get install -y byzanz

You can now use this comman to record GIF screencasts (replace details with your own):

byzanz-record --duration=15 --delay=2 --cursor --x=65 --y=88    --width=666 --height=500  output.gif

 

For more help about the use of Byzanz, run this command:

byzanz-record –help

Note: The GIF file will be saved in the current terminal location.

 

Easy file manipulations in locked folders

Sometimes you want to delete/ insert/ edit files that are in some locked location – like – outside your Home folder, in the system somewhere in Ubuntu. You could use the terminal to gain admin privileges and access the files, or copy/ move folders, but there is an easier way. You can do it through the GUI by typing this into the terminal:

  • gksudo nautilus

Then a new finder window will open in which you will be running in SUDO – Admin. Nautilus is the file manager used in Ubuntu Unity. If you use Kubuntu it would be “kdesudo dolphin” for example. This is an add-on which adds an “Open as administrator” dialogue to right click.

Extract here when double click

Mac computers save a bit of time with extracting for simple people that just want to always extract to current folder – just double click, and it loads.. no menus, no semi-extracted file browsers. Simple.

In ubuntu: do this:

  • right click on a ZIP file (etc.)
  • select: “open with other application”
  • click “use custom command”
  • paste in ”/usr/bin/file-roller -h”
  • check “remember this application”

And that’s it  ~ ZIP files will always extract on double click.

(you need to repeat this process for different types of archives)

Share your mouse between two computers – Ubunt, Mac – SynergyShare

I saw some posts and tutorials about using Synergy to connect Ubuntu/Mac – but after following a few, I couldn’t get it to work, then trial and error, more tutorials, and I got it, so I’ll share – Ubuntu having the mouse/ keyboard, and sharing them with Mac – (client)

This makes it as if it’s dual-screen – but with different operating systems.

  • Ubuntu – search software center for “synergy” – install QuickSynergy
  • Mac – SynergyKM – I used version 1.3.1
  • I don’t know if this file has anything to do with getting it to work, but:
    download this file, edit it replacing “pushka” with your main computer name that has the keyboard and mouse to share, and “sda” with the extra computer.
  • Install these on the separate machines
  • Then move the file to /etc (in Filesystem, Root.) But you need to have Admin privileges.
    Open up Terminal, type in:
    “sudo mv “
    Then drag into the terminal the file you just downloaded (it will write in the link to it)
    Then press space
    Then type “/etc” (or again, drag in the folder into the terminal.)
  • On ubuntu open up the preferences -> share, and type in the computer name in the box where you want the computer mouse to switch to the mac.
    EG: I have my MacBook next to my desktop on the left, so I type “sda” (the name of my Mac Computer into the left box)
  • On Mac – Prefrences -> use, type in the computer name and .local (like, “pushka.local”)
  • Then run the two apps on both computers, and it should be done ~ ~

If you find it’s the same on other opperating systems, leave a comment below ~
If you don’t need that file – comment, and I’ll remove those steps ~

Resize windows by holding Alt, and draging right click

In Ubuntu the edge of windows for resizing is quite sensitive and thin.

But there is an easier way to resize windows ~ 
just like you can move windows around by holding Alt and draging the window with your left mouse button – you can do the same with your right mouse button to resize the window.

Install Compiz – then do this:

Alt+F2 (run program) -> type ‘gconf-editor’ ->  click to directories: apps -> metacity -> general -> ‘resize_with_right_button’ tick the checkbox

And that’s it ~