|
2005/11/3-4 [Computer/SW/Unix] UID:40412 Activity:low |
11/3 What is a good way to delete all the lines in a file after a regular expression match. For example, if I want to do a "last" and get output only for this year or month, so I want to delete all the lines after "Dec". \_ sed /Dec/q file That'll delete everything after (but not including) the first line matching "Dec". If you want to delete that line too, you can use sed '/Dec/,$d' instead. --mconst \- while a fine answer, awk '/Dec/{exit};{print}' may run faster than sed '/Dec/,$d' on large input if the match \- while a fine answer, awk '/Dec/{exit};{print}' will run a lot faster than sed '/Dec/,$d' on large input if the match is early. awk may be easier to tweak to make the matching more precise as well. The POWER of AWK. ok tnx. more precise as well. ok tnx. more precise as well. The POWER of awk. ok tnx. \_ Indeed. You could also use sed -n '/Dec/q;p', if you're not ready for the POWER of AWK. --mconst \_ The easiest way, of course, is to assign this to an intern or the new guy. |
2005/11/3-4 [Politics/Domestic/California, Politics/Domestic/President/Clinton] UID:40413 Activity:nil |
11/2 Amusing Fark post arguing politics with Magic The Gathering cards: http://csua.org/u/dwv |
2005/11/3-4 [Transportation/Car, Transportation/Car/RoadHogs] UID:40414 Activity:nil |
11/3 The riots keep going and going... http://www.breitbart.com/news/2005/11/03/D8DL2HH0B.html \_ Guess they should have let them keep their headscarves. |
2005/11/3-4 [Politics/Domestic/911] UID:40415 Activity:nil |
11/3 Osama bin Laden, new media star: http://chronicle.com/temp/reprint.php?id=fnj1gbnwm02kjbzy51xwsh9vhm788cgp "If I have learned one enduring lesson from months of reflection on the words of Osama bin Laden, it is that the best defense against World War III is neither censoring nor silencing him but reading what he has actually written and countering his arguments with better ones. He has left a sufficient record that can, and should, be attacked for its deficiencies, its lapses, its contradictions, and, above all, its hopelessness." \_ Good project. For whatever reason, Americans rarely get good translations of what's actually being said in Arabic. \-The time has come for [or came a few weeks ago for the CSUA]: "Stupidity carried beyond a certain point is a public meanace." --(somewhat ironically) Ezra Pound \_ No man hath stupidity enough that is not matured and ripened by and made fit for God by that stupidity. \_ And the Arab media carries everything we say faithfully? \_ Nonsequitur. |
2005/11/3-4 [Recreation/Dating, Politics/Domestic/President/Clinton] UID:40416 Activity:moderate |
11/3 http://www.snopes.com/politics/sexuality/reynolds.asp Claim: An ex-congressman who had sex with a subordinate won clemency from a president who had sex with a subordinate, then was hired by a clergyman who had sex with a subordinate. Status: True. \_ If they were the same subordinate, this would be funny. \_ It might even qualify as interesting. Hmm... No, I'm wrong. \_ I like the insuation that having sex with a subordinate makes you a pedeophile. \_ huh, who ever suggested kids? \_ read the link \_ I read it--do you mean the guy's conviction for sleeping with an underage girl? \_ Lewinskying is not sex! \_ That depends on what your definition of 'is' is. \_ ^'is'^'sex' \_ I disagree, blowjobs are included in "had sex with". However, blowjobs are not included in "sexual relations". \_ "A U.S. federal court decided that calling a woman 'Monica Lewinsky' amounted to sexual harassment" http://www.indbazaar.com/spade/punchbag.asp?id=6 |
2005/11/3-4 [Uncategorized/German] UID:40417 Activity:nil |
11/3 do you read german? what the heck is going on here? http://tinyurl.com/9qs3f \_ Four dead in a murder/suicide in Lohmar. 1 daughter was spared. http://tinyurl.com/dzsbb \_ nsfw |
2005/11/3-4 [Computer/SW/Apps/Media, Recreation/Media] UID:40418 Activity:nil |
11/3 Can anyone tell me who wrote the original version of "If I didn't have you." recently made famous by them movie _Monsters INC_ ? \_ It's an original by Randy Newman. \_ are you saying it was original for the movie? 'Cause I would have sworn I had heard that basic song long before the movie. (though, this would not be the first time I thought a new song was an old one). \_ 1) It's a Randy Newman song, so it sounds like EVERY OTHER RANDY NEWMAN SONG EVER. 2) It's a common turn of phrase in many standards. \_ If by "Randy Newman song" you mean "Randy Newman song that was written for a movie", then sure. You might want to compare "You've got a friend in me" to, say, "Rednecks" or "Birmingham". -gm \_ Ooh, a two step instead of swing! How ... adventurous? \_ Why do you hate LA? -gm |
2005/11/3-4 [Reference/RealEstate] UID:40419 Activity:low |
11/3 In Arkansas, we kill our deer with our bare hands! http://news.yahoo.com/s/ap/20051102/ap_on_fe_st/deerly_departed \_ Great URL \- tresspassers will be eaten \_ A guy was recently killed by a deer. They can inflict some damage. However, why this guy didn't shoosh it out of the house is anyone's guess. \_ Mynd you, m00se bites kan be pretti nasti. \_ Heh. I just rewatched that this week. Heh heh. \_ Is the guy a pro wrestler or something? |
2005/11/3-4 [Uncategorized] UID:40420 Activity:nil |
11/3 An example of true leadership: http://i.a.cnn.net/cnn/2005/images/11/03/brown.emails.pdf \_ The man is a god! A true fashion god! \_ I like the "I should have done my announcement a week early." Wow. Just... Wow. |
2005/11/3-4 [Computer/HW/Memory] UID:40421 Activity:nil |
11/3 In Windows XP, how can I trace all the files called by an executable? I'm trying to run Quicken off of my USB thumbdrive by doing this: 1. Installed a copy (I bought at Fry's) on XPProAtHome machine. 2. Copied executables to USB thumbdrive. 3. Used SysInternal's procexp.exe to see what files qw.exe used when it was running on XPProAtHome. 4. Copied some additional dll's and other files that procexp.exe highlighted to USB thumbdrive. 5. Copied additional dll's and other files to appropriate directories on XPProAtWork machine. 6. Ran qw.exe off the thumbdrive using XPProAtWork. 7. Quicken hangs at splash screen. Apparently, just copying the executables and additional dll's and files is not sufficient. Procexpe.exe also highlighted some registry keys in use on the XPProAtHome machine, but I haven't tried copying those to the registry in XPProAtWork yet. Before I do that, is this even feasible? I googled on 'tracing files called by executables' but the results mostly relate to networking issues. Any help is appreciated. \_ try filemon? \_ Why not mount the drive then install onto it? Doesn't Quicken ask where you want to install it? \_ But it will still modify the registry of the target machine, right? So will it run if I try to take it to another machine? -op \_ Oh, probably... why not just put your data files on the thumb drive? Why do you actually need the bins there? \_ Yes, I plan on putting my data files on the thumbdrive too. I want to put the binaries on there so that I can run it on any PC without having to install it on that PC. |
2005/11/3 [Politics/Domestic/Crime, Politics/Domestic/President/Bush] UID:40422 Activity:nil |
11/3 Okay, as I survey all the major (TV/print) news web sites, I see all of them feature Libby/Rove as a main story (usu with photo), except http://cnn.com. Even http://cnn.com International Edition shows Libby. Even http://foxnews.com covers it prominently. |
2005/11/3-4 [Recreation/Dating] UID:40423 Activity:moderate |
11/3 My girlfriend is upset that I occasionally look at porn. I'd say it's about once a week or less, but up to three times a week. She thinks that's a lot. WTF? http://www.msnbc.msn.com/id/9504659 "About 38 percent of men used it three times per week or more" \_ Do what I do, porn surf in the bathroom with a wifi. This is exactly why I think wifi is the best thing next to bread -married and little sex \_ Is this a "She asked me if i use porn and i said ___" or a "she caught me at the computer with my pants down for the third time in a month" thing? \_ She's upset about your lack of formatting ability. \_ You can't understand why your girlfriend is upset that you're looking at porn? \_ WTFC? \_ Stop using porn a find a GF you can share it with or doesn't care. \_ Watch it at work. \_ Since when do people start "using" porn? \_ Have you seen op's gf? You need a "running start." \_ That Hald guy came from Denmark, where teenage porn was legal. Don't know about now. Don't know about now. Here are some titles from 20+ yrs ago: http://www.sexshop2000.dk/english/Productdetail.asp?ProductID=2329 http://www.sexshop2000.dk/english/Productdetail.asp?ProductID=2199 I remember both titles used to be "Teenage Sex nnn" (3-digit numbers) back then instead of the ones listed now. \_ Tell her that if she doesn't let you look at porn, you will expect her to have sex with you three more times a week. expect her to have sex with your three more times a week. Maybe that is the real issue. Maybe she wants to have sex more often. Have you considered that? \_ Bwahahahahaha! |
2005/11/3-4 [Politics/Foreign/MiddleEast/Iraq, Politics/Domestic/President/Bush] UID:40424 Activity:moderate |
11/3 Anyone wonder why NYTimes circulation is down? http://www.townhall.com/opinion/columns/michellemalkin/2005/11/02/173917.html \_ because Michelle Malkin is an idiot? \_ wow, that was pithy and useful commentary! thanks! \_ don't confuse "idiot" with "evil" \_ Malkin is right in this case. The NY Times reporter should have included more of the letter. I also do not disagree with the general assessment that Malkin is an idiot. -moderate/liberal \_ except this is status quo for the NYT. go see 'manufacturing consent'. \_ You think so, and I think George HW Bush thinks so, too, and Bush Sr. is a very smart man. I think both of you are wrong though. \_ Come back when you have some idea what you're talking about. This has zippo to do with Bush. WTF did that come from? You have no clue what I was even talking about. Go look up what 'manufacturing consent' even is and then go see it. \_ Come back after you've re-read my post and think about what exactly I wrote. Okay, now tell me what exactly my position is. (fyi, I happen to agree that the mechanisms described in that book you mentioned are accurately described) mechanisms in that book you mentioned are accurately described) \_ Obviously I'm too dumb to get whatever your clearly made point was. I still don't think you have one. You agree that the mechanisms are described accruately but you duck the point of who uses them. Since he was specifically talking about the NYT, how about we agree this sort of thing is status quo for the NYT and this has nothing to do with Malkin, Bush or wtf. \_ you agree with the author of "In Defense of Internment: The Case for 'Racial Profiling' in World War II" but you are a "moderate/liberal"? I think not! We had a word for people like Malkin in the 1930s- it's "fascist." Look it up kiddo. \_ Wow, what a poorly thought out troll. \_ It sounds like the reporter got a little heated in his reply to the reader, but even Malkin admits: "Dao apologized to Valois for the tone of his snippy e-mail," Of course, she can't pass up the opportunity to flame him anyway: "but apparently feels no shame or sorrow for distorting a dead Marine's thoughts and feelings about war, sacrifice and freedom." Scumbaggery will out. |
2005/11/3-4 [Politics/Domestic/California] UID:40425 Activity:nil |
11/3 http://csua.berkeley.edu/ElectronicVoting.html Since I haven't seen this advertised on {listdujour}@csua, anyone going? --Jon \_ has someone told the ASUC? |
2005/11/3-4 [Uncategorized] UID:40426 Activity:nil |
11/3 I miss you waner. How's your love life? |
2005/11/3 [Computer/SW/OS/OsX] UID:40427 Activity:nil |
11/3 Are there any good free browsers for Mac OS 8/9? |
2005/11/3-4 [Health/Disease/AIDS, Health/Disease/General] UID:40428 Activity:very high |
11/03 I wasn't involved in the discussion below, but you self-righteous do-gooders really blow my mind. I'm curious as to just how rampant this type of (un)thinking is. It is time for a poll -phuqm It is reasonable ... to force children to have HPV vaccinations: . unless they are Christian scientists or other similar wingnuts: to allow parents to make this decision based on whatever beliefs: . \_ So you disagree with mandating vaccinations in general? Or is it just this vaccination that is nearly always effective against a virus that will give you or your female partner cancer? \_ dude, what is so hard about putting a little '.' next to the first choice? Why would I want to talk to you if you aren't willing to play along with my poll? Because I'm such a nice guy I will assume that the first . in that category is yours and will answer your question soon thereafter. -phuqm \_ I'm contesting your question because it's loaded. If you can't ask a direct question, don't expect a direct answer, crebbs. --scotsman --scotsman \_ so you have some policy against answering loaded questions? What are you a politician? feel free to add your own category if you think these don't cover all the basis, but I don't see what is wrong with the way these are phrased (unless you object to me calling C.scientists wingnuts, but somehow i doubt that is is the problem.) If there is some other problem I'd LOVE to see an explanation of it. -phuqm \_ Oh, and you know who I am, and I know who I am, and so do most people here who care, so is it really necessary to keep outing me? (anyway i'm not him) \_ Hmm... Should we tell root to squish his account for sharing it? \_ yes you are. -phuqm \_ bastard. \_ yep. -phuqm \_ Or maybe they could squish you for talking to yourself... \_ if that's squishable, then I will have a tough time coming up with a defense. \_ So, yeah, i'm rabid libertarian and - despite the obvious free \_ So, yeah, i'm a rabid libertarian and - despite the obvious free rider problem - I never think it is o.k. to force a parent to allow the government to inject something into their child. I don't really care if the person's reason is that he thinks the vial is full of little deamons that are going to steal his kids soul; to me it is a simple question of who decides: the govmnt. vial is full of little demons that are going to steal his kids soul; to me it is a simple question of who decides. \_ Do you also disagree with forcing kids to go to school? What about the government taking kids away from parents who the government deems incompetent? Just curious. \_ If you were to live on an isolated desert island where your choices had no effect on other ppl, then this line of thinking makes sense. However, if you are living in a place w/ thousands of ppl your choice not to vaccinate your children can have a profound effect on the health of other children. What right do you have to ask other ppl to sacrifice their childrens health? As I said below, once you agree to live in society there is no such thing as an abs. right. Think of it as the price of admission. \_ Why would it have a profound effect on other children? The other children would be vaccinated if the other people are worried. \_ Once you agree to live in society there is no such thing as an abs. right. Every right is subject to some amt. of regulation by the legislature/executive. If the gov feels that the best or only way to deal w/ a major health problem is mass vaccination and they have proof that the means chosen (mass vaccination) are the best or only way to deal w/ the problem, then you have three choices - go along w/ the vaccination, get the law repealed OR leave society. \_ indeed. though I fail to see what relevence this has on this discussion. I would also point out (also somewhat ir- relevantly) that there are few places left on the planet not claimed as the dominion of some "society" or other, which makes that last option increasingly difficult. -phuqm \_ If this is a major health problem only option 1 makes sense. Options 2 and 3 suggest that regardless of a finding that this is a major health problem, the kooks have some rights that trump. I'm saying no. Any right the kooks have are subordinate to society's interest in the general welfare. There are plenty of places in this world where society doesn't really reach (different than claimed as territory by some nation). You can't let a bunch of kooks run around and not vaccinate their kids b/c anything less than total vaccination will be ineffective. If the legislature finds that this is a major health problem, I'm willing to defer to that judgment b/c the whole reason they were elected was to make this sort of decisions (via advice from qualified agencies, &c.) \_ Well, I guess it's ok so long as it's someone right thinking like you deciding what is in the best interest of society. \_ You are skipping forward to the assumption that this is a 'major health problem'. Also, no one ever acknowledged that drug companies have sold us plenty of crap over the years that causes side effects such as sterility, liver failure, heart failure, kidney failure, and death. Don't worry, it was all tested! Yay! You're still fucked and can't undo the damage. I guess we'll just raise taxes to pay for all the law suits. \_ It's major if you're a woman. \_ I'm not skipping forward. I'm merely saying that if the gov. finds that this is a major health problem, they have the pwr to act on it w/o having to worry about the rights of the kooks. |
2005/11/3-8 [Reference/Military, Politics/Foreign/MiddleEast/Iraq] UID:40429 Activity:moderate |
11/3 In the good old days, we count 'casuaties,' not 'death' in a conflict. I am just wondering do we even keep track of 'casuaties' in Golf War 2? Where can we get them? \_ http://www.defenselink.mil/news/casualty.pdf 19,219 \_ http://www.defenselink.mil/news/casualty.pdf -- ~15k casualties \_ Disappointed that the American death toll is too low? \_ Just want to make sure I am comparing apple to apple when I am making comprison... I am just wondering what is the 'casualty rate' of our little Iraqi Advanture here. My guess is that the 'casualty rate' is bit more than 1/20, which is pretty high. \_ About 14000 casualties. I don't know how you calculate the rate. \_ 14k out of 250k forces in Iraq? \_ But how many have cycled through? \_ What were the casualties rates in other wars like WWII or Vietnam War? \_ The problem with casualties is that they run the gamut from a bump on the head received during combat to blinding and maiming. The number of amputees, as compared to the number of deaths, is far higher for this war than for any other. \_ Bump on the head? I thought casualty only counts wounds serious enough to take a person out of action. \_ I am pretty sure "casualty" is a guy (or gal) that you have to evacuate. A RTD (return to duty) kind of scratch or bump does not count. -ausman (former Army medic) does not count. -ausman (former Army colonel) \_ this is what concerns me. I have been told repeately that many of these 'wounded' would of died even 10 years ago. this translates that these guys are not dead, which is good politically. But what kind of disabilities would they suffer as result? That is the big cost of our little Iraq war that most people don't think about. |
2005/11/3-4 [Consumer/Camera] UID:40430 Activity:nil |
11/3 How can I set iPhoto to not automatically lanuch when the camera is inserted? \_ /Applications/Image Capture.app Preferences \_ Thanks! so intuitive.. |
2005/11/3-8 [Academia/Berkeley/CSUA] UID:40431 Activity:nil |
11/3 The Constitution has been amended! Your new politburo members are: Bonnie as Events Officer and Edilaic as Alumni Relations Officer. -mrauser \_ damn, I can no longer say I've held every CSUA office -Jon \_ You could always go to UCBEx and qualify for those last two. \_ Does this mean we can't burn flags anymore? |
3/15 |