Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ACM 10/19/2011

Avatar for tjk tjk
May 08, 2012

ACM 10/19/2011

Avatar for tjk

tjk

May 08, 2012
Tweet

More Decks by tjk

Other Decks in Programming

Transcript

  1. Upcoming events Google -- early November Workday -- November 17th

    @ 6:30 in ESB 1001 Workday's mission is to build the next generation of enterprise business services—Human Resource Management, Financial Management, and Payroll—and deliver the solutions on a Software as a Service (SaaS) model.
  2. Upcoming events (cont'd) IEEE Extreme -- this weekend (hope you

    signed up!) if you didn't, sorry. IEEE didn't tell us, blame them. >_< IEEEXtreme is a global challenge in which teams of IEEE student members – supported by an IEEE Student Branch, advised and proctored by an IEEE Member – compete in a 24-hour time span against each other to solve a set of programming problems. ICPC Competition -- November 12th
  3. Upcoming events (cont'd) AS Tech LAN Party #14 -- November

    19th No description necessary. Go! :) Facebook event page: https://www.facebook.com/event.php?eid=204528062952513
  4. Social Activities? • Small video game LAN • Capture the

    Flag versus IEEE • Board game night (with IEEE) • Movie Night Pick one!
  5. [ICPC Teams] Update • Practice sesh last Sunday 10/16 ◦

    Regional rules ◦ Environment / language • Next practices are scheduled team-by-team • Coach: Ben Hardekopf • Funding from the CS department for fees and transportation to regional competition in Riverside. • MEET AFTER if you are part of this or interested in becoming part of it. Last chance! ASSERT(sum(people) mod 3 == 0)
  6. [Programming Project] Update We are meeting every Sunday @ 2:00

    PM in the CS conference room (here) What we've done in 2 meetings: • Covered some of the tools we are using and set us up our machines • Done a mini-overview of Ruby on Rails What we're doing next: • User registration + login • and a landing / index page
  7. [Programming Project] (cont'd) Want to be in this file? Join

    us! Bring your laptop to this room this Sunday! :)
  8. Watch'ya guys (& gals) doing? • Anyone in CS 48?

    What project are you working on? • Any difficult assignments / tests coming up? • GE classes to recommend
  9. FLAW #2: /bin/bash tricks! Basics: • . = current directory

    • ..= parent directory • / = root directory • ~= home directory (~brad -- brad's home directory) • .file = hidden file named ".file" Less basic: • echo $? = print error code of previous command • > = redirect stdout to file • | = pipe stdout to other command's stdin, e.g: tj@l33t $ echo 5*3 | bc 15
  10. FLAW #2: /bin/bash tricks! Need to sudo that last command?

    Don't retype it! Use the powers given to you! tj@l33t $ cat /etc/shadow /etc/shadow: Permission denied --- Oh yeah?!!? --- tj@l33t $ sudo !! Password: i_h3artUn!c0rns </etc/shadow contents>
  11. FLAW #2: /bin/bash tricks! Use your history! tj@l33t $ history

    | tail -n 3 8 who am i 9 who mom likes 10 rm -rf / tj@l33t $ !9 who mom likes tj pts/8 2011-10-19 00:20 (ip98-185-209-51.sb.sd.cox.net)
  12. FLAW #2: /bin/bash tricks! Send a job to the background!

    While it's executing: • ^Z (control+z to "stop" / suspend), then... tj@l33t $ bg /* type bg to send to background */ Before it's executing tj@l33t $ wget http://www.google.com & /* & at end of line means run in background */
  13. FLAW #2: /bin/bash tricks! Bring a job to the foreground:

    tj@l33t $ jobs [1] + running pidgin tj@l33t $ fg 1 /* and it's in the foreground... don't need to specify number -- defaults to last */ Make sure to redirect stdout / stderr when running stuff in the background otherwise you'll get a mess in your terminal.
  14. FLAW #2: /bin/bash tricks! readline library shortcuts... too many to

    list: • ^W = deletes previous word before cursor • ^U = deletes the line • ^R = reverse search (super useful!!) best trick: • sudo apt-get install zsh • sudo pacman -S zsh • sudo yum install zsh • ... =]
  15. FLAW: for next time If anyone has a request for

    a FLAW or wants to host one, let TJ or Brad know!