
This lady made these excellent arm warmers. Her color and pattern selection is a perfect match with my tastes.
Here's a picture of one of her pieces:
so begins veronica's tirade in the movie Heathers. i'm working on a prepared response to craigslist responses like this one:
where is glenmont? is it near germantown?
to the effect of "who do you think i am, google?" in other words, why are you bothering me with questions you can answer yourself. i'd like the response not to be mean, but to basically say,
Lucky you! You are the recipient of my canned response to questions that can easily be answered by a Google search. Like most people who sell things on Craigslist, I am less likely to respond to people who ask questions I've essentially already answered. The ad includes the information you need. Please query Google, and when you find out the answer to your question, or if I have misunderstood your question, I hope to hear from you again.
alternately,
google knows.
if you have a lot of email, turn on the "Advanced IMAP Controls" Labs feature, then, under "Manage Labels", turn off IMAP access for all the folders except the one you want to download.Thanks Matt! Once I had searched for the iTunes receipt messages, I applied a label to them and downloaded only those messages.
cat receiptPlainText.txt | grep -v "Order Total:" | grep -B1 -A1 "Report a Problem" >purchasesOnly.txt
b=`cat purchasesOnly.txt | grep -v "Report a Problem"| sed 's/^Free/\$0.00/' | sed 's/, v[^,]*//' | tr -d ","`
echo $b | tr -d "*" | sed 's/ -- /\*/g' | tr "*" "\n" | grep "Seller"| sed 's/ Seller:/HBPH/' | sed 's/ \$\([0-9\.]\{4\}\)/, \1/g' | sed 's/HBPH/,/g' | sed 's/^/\"/' | sed 's/$/\"/' | sed 's/, /\", \"/g' >appPurchases.csv
“Enron-type accounting standards have become the norm...Every time I look at this data, I feel dirty.” - law school professor William Henderson of Indiana UniversityThe article reminds me of several recent articles pointing out the crummy conditions for people with science PhDs and how there too the interests of the educating institutions are at odds with those of the applicants and trainees. In the case of science, this is the result of how our academic science research and training is organized: a structure not infrequently called a pyramid scheme.
code formatting kludged together from output from Pretty R at inside-R.org -- i had to hack at it to get it to work on blogspot, and that made it uglier than it should be. normally they make (as per the name) pretty stuff.
- select a word in the first listing
- from the right click menu, choose table2clipboard/select table
- scroll to end of page,
- shift click in last item to extend selection to include all items,
- right click and choose View selection source
- it takes a while for this window to populate
- Copy, paste and save text as "ebay_search_results.txt"
cd /Users/exampleUser/ebaySoldPrice/
cat ebay_search_results.txt | sed 's/~//g' |
sed 's/<table class="li" r="/~/g' |
tr "~" "n" | sed 's/ shipping.*$//' |
sed 's/([0-9]*).*class="vip">/1~/' |
grep Sold | sed 's/<[^$]*$/~/' |
sed 's/Free shipping/$0/' | sed 's/<[^$]*$/~/' |
sed 's/<.*$/~na/' | tr "~" "t"
>ebay_search_results_cleaned.txt
sed s'/\~//g'### remove any tildes in ad title
tr "~" "\n"### replace tildes with newline
sed 's/<table class="li" r="/~/g'### replace table starts with tildes
sed 's/ shipping.*$//'### get rid of text after shipping
sed 's/\([0-9]*\).*class\=\"vip\"\>/\1\~/' |### keep the initial row number, deletes everything else until the title
grep Sold### limit to items that sold
sed 's/\<[^$]*\$/~/' |### delete text between title and price
sed 's/Free shipping/\$0/'### give free a numerical value
sed 's/\<[^$]*\$/~/' |### delete text between price and shipping price
sed 's/<.*$/~na/'### if price doesn't have a dollar amount, delete text and give it an NA value
tr "~" "\t"### replace tildes with tabs
>ebay_search_results_cleaned.txt### direct the output into a file