- No more daily logins. Log in once with your Duck ID and password
when you set up UO Secure on your device, then only twice a year when
you change your password.
- More efficient wireless connections. If you are experiencing more and more dropped connections to UOwireless, then run this setup process (XpressConnect).
Jan 31, 2013
UO Secure: How To Bypass UOwireless Login
Nov 29, 2012
Well-capitalized Seattle start-up seeks Unix developers
https://groups.google.com/forum/?fromgroups=#!topic/mi.jobs/poXLCW8udK4
(Click on the name, Jeff Bezos, to expand the post.)
Oct 16, 2012
Now Hiring: CIS/CIT Tutors for UO TLC
The University of Oregon Teaching and Learning Center (TLC) is now hiring qualified students to tutor students in CIS 105, CIS 110, CIS 111, CIS 122, CIS 210 and CIS 212.
To tutor students in one or more of these courses, you are welcome to submit an application to the TLC. The application form is available as a PDF file online at the UO TLC website.
Eligibility Requirements
For CIS recommendations , contact the following CIS faculty:
CIS 105: John Conery and Kathleen Freeman.
CIS 110, CIS 111: Michael Hennessy and Eric Wills.
CIS 122, CIS 210: Michal Young and Kathleen Freeman.
CIS 212: Eric Wills.
Application Procedure
1) Complete the UO TLC application form.
2) Schedule your interview with the two CIS faculty listed for the course.
3) Print an unofficial transcript from DuckWeb.
4) Submit application packet to 68 PLC.
For Futher Information
Contact any of the CIS faculty listed, above.
To tutor students in one or more of these courses, you are welcome to submit an application to the TLC. The application form is available as a PDF file online at the UO TLC website.
Eligibility Requirements
- Grade of A in the course(s) you wish to tutor
- 3.0 or higher cumulative UO GPA
- Two faculty recommendations from the subject area(s) you wish to tutor
- Tutor application including an unofficial transcript
- $9.25/hr for tutoring small groups (up to five students)
- $9-$11/hr for private tutoring
For CIS recommendations , contact the following CIS faculty:
CIS 105: John Conery and Kathleen Freeman.
CIS 110, CIS 111: Michael Hennessy and Eric Wills.
CIS 122, CIS 210: Michal Young and Kathleen Freeman.
CIS 212: Eric Wills.
Application Procedure
1) Complete the UO TLC application form.
2) Schedule your interview with the two CIS faculty listed for the course.
3) Print an unofficial transcript from DuckWeb.
4) Submit application packet to 68 PLC.
For Futher Information
Contact any of the CIS faculty listed, above.
May 17, 2012
A Mother's Day story for Unix command-line hackers (& Toy Story fans ;-)
Here's a short story about how Toy Story 2 was almost erased before the film could be rendered for theaters.
From Kottke.org.
From Kottke.org.
Apr 27, 2012
Unix Shell Skills for Scientists and CIT Students
The Unix Command Line Interface (a.k.a. Shell, or CLI) for Web Developers
- Your CIT GTF will be your Unix Drill Instructor (DI) and run you through basic training: Unix for Web Developers, which is a Reader's Guide to the University of Surrey's Unix for Beginners tutorial, parts 1, 2, and 5.
- For more practice:
• The Command Line Crash Course: Controlling Your Computer From The Terminal.
This free online mini-book teaches you Unix or Windows command line skills, in a few hours to a few days. It has little explanation and focuses more on doing a small set of commands until you remember them.
• Software Carpentry Project's Video Lectures on the Unix Shell.
The Software Carpentry project's mission is "to help scientists be more productive by teaching them basic computing skills", including the Unix shell. All of their content is available at the Software Carpentry website.
Jan 10, 2012
How do I get into the 111 lab I want if it is full?
If you are unable to enroll in the course or any lab because the course is full, your only option is to wait until someone drops the course.
Since some students are "shopping for courses" during week 1, you should see spots start to open up at the end of the first week.
If you are already enrolled in the course and a lab, but would like to switch to a different lab that is already full, here's what to do:
Go to the lab you want and ask the GTF if there's room for you. If your GTF says Yes, make sure that s/he has your name removed from your original lab and added to the new one. If the GTF says No, you will have to attend a different lab.
For labs that are full, two names may be added beyond the max on the condition that the added students bring a notebook computer or watch over someone's shoulder on days when the lab is full.
Students actually registered for the lab are guaranteed a workstation if they need one.
Oct 8, 2011
The Tilde (~) in Unix and URLs
UNIX
In the Unix shell, the tilde (~) is an abbreviation for the path to your home directory. (It has other expansions but this the meaning when the tilde is used as a separate word.)
Tilde expansion is the process of converting the abbreviation to the path to the user's home directory.
Example (not using ~)
/home4/susanQ/public_html/111/ is the Unix path to Susan Queue's 111 folder on shell.uoregon.edu.
Example (using ~)
~/public_html/111/ is the Unix path to Suzie's folder on shell.uoregon.edu
Example
URLs
In a URL, the tilde (~) has a related but different meaning: it stands for the path to your public_html folder on the web server.
Example:
URL:
http://uoregon.edu/~susanQ/
Corresponding Unix path on the server:
/home4/susanQ/public_html/
Example:
URL:
http://uoregon.edu/~susanQ/111/
Corresponding Unix path on the server:
/home4/susanQ/public_html/111/
In the Unix shell, the tilde (~) is an abbreviation for the path to your home directory. (It has other expansions but this the meaning when the tilde is used as a separate word.)
Tilde expansion is the process of converting the abbreviation to the path to the user's home directory.
Example (not using ~)
/home4/susanQ/public_html/111/ is the Unix path to Susan Queue's 111 folder on shell.uoregon.edu.
Example (using ~)
~/public_html/111/ is the Unix path to Suzie's folder on shell.uoregon.edu
Example
$ pwd
/tmp
$ cd ~
$ pwd
/home4/susanQ/
$ echo $HOME
/home4/susanQ/
(~ is a synonym for the value of the shell's HOME variable)
URLs
In a URL, the tilde (~) has a related but different meaning: it stands for the path to your public_html folder on the web server.
Example:
URL:
http://uoregon.edu/~susanQ/
Corresponding Unix path on the server:
/home4/susanQ/public_html/
Example:
URL:
http://uoregon.edu/~susanQ/111/
Corresponding Unix path on the server:
/home4/susanQ/public_html/111/
Sep 1, 2011
1-Armed Bandits && Demorgan's Law
When simulating the spin of a three-wheel slot machine, how do we detect three of a kind?The following condition recognizes three of a kind:
var s1 = 'lemon', s2 = 'lemon', s3 = 'lemon';
console.log((s1 == s2) && (s1 == s3) && (s2 == s3));
We can modify it to control a loop that spins the wheels:
s1 = RandomOneOf(['lemon', 'cherry', 'bar', 'donut']);
s2 = RandomOneOf(['lemon', 'cherry', 'bar', 'donut']);
s3 = RandomOneOf(['lemon', 'cherry', 'bar', 'donut']);
while (!((s1 == s2) && (s1 == s3) && (s2 == s3))) {
//spin again...
}
Applying Demorgan's Law we get:
while (!(s1 == s2) || !(s1 == s3) || !(s2 == s3)) {
//spin again...
}
Equivalently:
while ((s1 != s2) || (s1 != s3) || (s2 != s3)) {
//spin again...
}
To hit the jackpot, we must spin the wheels at least once. This leads to a final, simpler version using a do-while:
do {
s1 = RandomOneOf(['lemon', 'cherry', 'bar', 'donut']);
s2 = RandomOneOf(['lemon', 'cherry', 'bar', 'donut']);
s3 = RandomOneOf(['lemon', 'cherry', 'bar', 'donut']);
} while ((s1 != s2) || (s1 != s3) || (s2 != s3));
The do...while loop will always be executed at least once, even if the condition is false, because the statements are executed before the condition is tested.
It is a post-test loop; the while loop and the for loop are pre-test loops.
=> Use a do-while when an action must be performed at least once.
Jul 1, 2011
Web Apps w/o Programming: If this, then that (IFTTT)
IFTTT. Put the internet to work for you by creating tasks that fit this simple structure:
if this then that.
A Web Tool That Lets You Automate the Internet. (NYT)
7 Ways to Automate Your Life With ifttt. (NYT)
Mar 1, 2011
SSH and the Unix Shell's Erase Key
SSH sometime uses the Delete key to erase characters, but I prefer to use the Backspace key. How do I set it up?
You have several options, as follows:
- Windows: Start SSH, select Edit > Settings > keyboard, then select Backspace sends Delete (or whichever key you want to use), then click OK.
- OS X: Start Applications > Utilities > Terminal, the select Terminal > Window Settings..., then select Keyboardin the drop-down list, then check Delete key sends backspace.
- Set your Unix shell's Erase key--
Use Pico or Emacs to edit your login shell's startup file, .bash_profile:
$ pico .bash_profile
Add this line to the .bash_profile:
stty erase '^h'
save the file and exit pico.
Labels:
Backspace,
Emacs,
Emacs Lisp,
Mac OS X,
Operating Systems,
Secure Shell,
shell,
Unix
Customizing your Unix Command Line Prompt
Read Generic UNIX Interactive Prompts
Nov 28, 2010
Final Exam Review Problems
- (1) Write an alarmClock() function that accepts an integer representing the day of the week (Mon=1, Tue=2, ... Sun=7) and returns a string: On weekdays the clock tells us to get up, and weekends it tells us to snooze more. On Monday, the clock adds some extra harassment to get us out of bed.
Examples
alarmClock(2) => Hi ho, hi ho, it's off to school we go...
alarmClock(6) => Hit the snooze button!
alarmClock(1) => Daylight in the swamps! Up and at'em!
Strategy: Use an else-if - _______________________________________________
(2) Write a bowlingScoreFeedback() function that accepts a bowling score 0 .. 300 and returns one of these messages:
300: "most triumphant!"
200..299: "pretty good!"
50..199: "making progress!"
0..49: "better take up Scrabble!"
Examples
bowlingScoreFeedback(250) => pretty good!
bowlingScoreFeedback(25) => better take up Scrabble!
_________________________________
(3) Suppose you want to get a table at a hip restaurant: The variable "style" represents the stylishness of your clothes and "bribe" represents the bribe presented to the Maitre'd.
The Maitre'd is satisfied if style is 8 or more and bribe is 5 or more.
One way to code this up is to write the "satisfied" expression as a straight translation of the problem statement, and then put a ! in front of it://Elevate snoot if not satisfied function maitreD(style, bribe){ if (! ((style >= 8) && (bribe >= 5)) ) { return "tant pis pour vous" else return "Ainsi, s'il vous plaƮt" }
Jul 14, 2010
Jimi Hendrix in JavaScript

ifSixWasNine, by Jared (a.k.a. "Jimi" ;-) Hendricks
ifSixWasNine(6) ==> 9
ifSixWasNine(12) ==> 18
Exercise: Write and test this function.
Jul 12, 2010
xhtml: logical vs physical tags
HTML includes two types of Style Tags:
Rationale: the goal in xhtml is to separate structure elements from style elements, and remove the latter from html. Content should be styled with CSS rather than html. Logical tags describe the structure or semantics of content and are, therefore, preferred over style elements like <b> and <i>.
- logical (a.k.a. phrase elements)
tag the information according to its meaning (e.g., abbr, acronym, code, etc.) - physical
tag the exact appearance of the information (i.e. b, i, etc.)
Rationale: the goal in xhtml is to separate structure elements from style elements, and remove the latter from html. Content should be styled with CSS rather than html. Logical tags describe the structure or semantics of content and are, therefore, preferred over style elements like <b> and <i>.
Subscribe to:
Posts (Atom)


