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

ACM 11/16/2011

Avatar for tjk tjk
May 08, 2012

ACM 11/16/2011

Avatar for tjk

tjk

May 08, 2012
Tweet

More Decks by tjk

Other Decks in Programming

Transcript

  1. Announcements -- Movie Night • Movie night in two weeks

    (instead of meeting)? • No pressure to go, there would be movie food (pizza... lol). • Any movie ideas??
  2. Announcements -- Job Opportunities PowersportsTV.com, LLC • Software developer/engineer/designer to

    work in our SB office • Part-time or full-time • Looking for local current student or a recent graduate • Need to know PHP, MySQL, AJAX, jQuery, HTML • Design skills are a plus • We own and operate multiple internet properties • Looking for talented individuals
  3. Announcements -- UC Hackathon From UC Berkeley: Our undergraduate computer

    science student association (CSUA) has found that there is tremendous interest in their hackathons. They are getting more and more frequent, larger, and more fun. The current president, Ian Davis, and I were talking about bridging the larger UC undergraduate computer science community through this sort of an activity. We thought that perhaps we could have two simultaneous events in northern and Southern California tied together through a network and video link. We wanted to get a sense of the interest there might be in such an event, perhaps in the spring, and who might be the analogous student points of contact at the different schools.
  4. Updates -- ICPC • How did the competition go? •

    Any cool problems to share / stories? • What now? Any plans -- project Euler? Other competitions? • Google 'sponsorship'
  5. S ome = new S(); /* #2 */ • Siri

    'cracked'! ◦ "Today, we managed to crack open Siri’s protocol. As a result, we are able to use Siri’s recognition engine from any device. Yes, that means anyone could now write an Android app that uses the real Siri! Or use Siri on an iPad! And we’re goign to share this know-how with you." http://applidium.com/en/news/cracking_siri/ • Tell congres to stop the Stop Online Piracy Act (SOPA) ◦ "Don't let big corporations censor the internet. Send a physical letter to your representative." https: //sendwrite.com/sopa/
  6. S ome = new S(); /* #2 */ • Skyrim

    released! ◦ Who has it? TJ is buying it, he thinks.
  7. FLAW-related question • Who would like to learn about VIM?

    • What kind of time do you think a workshop on it should take? ◦ (aka how much time would you be willing to put in)
  8. FLAW #4 -- UNIX file basics • The file permission

    bits + folders • chmod • chown • setuid, setgid • executable bit • links (symbolic and hard) ◦ deployments
  9. FLAW #4 -- UNIX file basics File permissions, explained. Examples:

    -rw-r--r--, drwxr-xr-x, First character: • -: file • d: directory • l: link
  10. FLAW #4 -- UNIX file basics The next 9 characters

    are broken into groups of 3: USER GROUP EVERYONE --- ---- ---- And the three possible characters, generally are: (r)ead (w)rite e(x)ecute in that order
  11. FLAW #4 -- UNIX file basics Sometimes, the execute bit

    is (s) rather than (x). What does this mean? • setuid (suid) • setgid (guid) Security implications of this are important.
  12. FLAW #4 -- UNIX file basics /bin/chmod = "change mode"

    Can use octal: 000 -> three bits -> represents values 0 through 7 1 = 001 = --x 2 = 010 = -w- 4 = 100 = r-- 7 = 111 = rwx • chmod u+x file: add execute bit for owner • chmod 644 file: sets permissions to rw-r--r-- • suid: 4_ _ _, gid: 2_ _ _, sticky bit: 1_ _ _