Install and use TwitteR to DM when task is done

Thursday, March 22nd, 2018
Commands, R, Software, Ubuntu
,
None

After trying several annoying “recipes” I landed on this approach on Ubuntu (Linux). Will try Windows later on to see if it differs. I use R-studio.

Update: Worked fine on Windows (just skip the first section)

 

Installing on Ubuntu

Got a bunch of errors trying to install “devtools” in R. First install packages (terminal): sudo apt-get install libssl-dev

still got errors and went on to install this: sudo apt-get install libssl-dev

TwitteR install on Ubuntu and Windows

Went on to install the following R-packages:

install.packages(c("devtools", "rjson", "bit64", "httr"))

Loading library and installing twitteR via GitHub:

require(devtools)
install_github("geoffjentry/twitteR")

Creating twitter app

Create a Twitter application at http://dev.twitter.com. Make sure to give the app read, write and direct message authority. You can change this under the Permissions tab. The information about API stuff is found under Keys and Access Tokens

Go nuts with twitteR

require(twitteR)

# copy paste from web
APIkey           = "insert_here"
APIsecret        = "insert_here"

# set up and follow the steps
setup_twitter_oauth(APIkey, APIsecret)

Once completed you’re ready to go!

The function taskStatus sends a Twitter DM after completion of a task to twitter_user:

taskStatus(print("Watch your fucking phone!"), "twitter_user", msg = " It's fucking working!")


Lexmark s605 Interact on Ubuntu 13.10

Thursday, January 16th, 2014
Commands, Software, Ubuntu
, ,
None

Lexmark S605 Interact printer

Lexmark S605 Interact printer

I struggled for some time to get my Lexmark printer to work both on and off my wireless home network, and it was hard to find help online. One day of frustrating trials and errors boiled down to this:

  1. I installed the recommended drivers from Lexmark Support
  2. I opened the Lexmark Printer Utility from the Ubuntu menue
  3. I followed the instructions to install a new wireless printer.
    Trying to print at this stage gave an error message: Directory “/usr/local/lexmark/v3/bin” has insecure permissions.
  4. Following the advice in this thread.
    I changed the permissions:
    sudo chmod 755 /usr/local/lexmark/v3/bin/printfilter

And it worked :-)



Ubuntu Upgrade Trauma

Saturday, May 1st, 2010
Ubuntu
, , ,
None

This past week has been slow and easy. I suppose I should be more stressed out by the fact that I’m at the end of my fellowship. But there is no help in worrying, -certainly not at this point. I’m going at it at a steady pace and plan to put in some extra effort when I return to RUC. These past days I’ve been doing the things that I missed the most. Hugging Lars, walking Birk and fucking up my computers. I’ve been through a traumatic upgrading of Ubuntu both at work and at home. At work it led to difficulties connecting to internet. At home I managed to fuck up GRUB, but got rescued by the Ubuntu Live CD. NOTE TO SELF: I should NOT mess around with computer stuff I know absolutely nothing about…

My netbook works great though :)  – upgraded without any hickups! Ubuntu 10.4 seems great!

By the way… I use Zotero reference manager and Open Office. With the new Firefox 3.6 I banged my head against the screen for a couple of hours (-especially since I’ve been confident [stupid] enough to install 64-bits system) before I found THIS and got the sun java plugin to work again. This is a life saver.
Best HOWTO ever!!

Want to know more about Ubuntu? Visit Ubuntu Homepage



Back

Post Archive

by Date: