Search found 970 matches

by MrGee
Sun Jul 08, 2012 5:32 pm UTC
Forum: Mathematics
Topic: What is the best growth path for an investment?
Replies: 3
Views: 2360

What is the best growth path for an investment?

Suppose you had $10,000 to invest with one of three funds that all have 10 full years of history. -Fund A doubled its assets in the first year and then broke even every year after. -Fund B broke even for nine years and then doubled its assets in the tenth. -Fund C earned 7.2% every year, compounded,...
by MrGee
Wed Mar 21, 2012 6:19 pm UTC
Forum: Coding
Topic: Visual Studio Find and Replace Macro
Replies: 8
Views: 2750

Re: Visual Studio Find and Replace Macro

...I think this would be very easy to do with the .NET Regex class; if I were operating on a string variable. So as an alternate solution, how do I get the entire VS solution into a variable? For example: Dim selection As TextSelection = DTE.ActiveDocument.Selection selection.ReplacePattern(......) ...
by MrGee
Tue Mar 20, 2012 8:04 pm UTC
Forum: Coding
Topic: Visual Studio Find and Replace Macro
Replies: 8
Views: 2750

Re: Visual Studio Find and Replace Macro

Find: //\[source1\]{(.|\n)*}//\[/source1\]{(.|\n)*}//\[destination1\](.|\n)*//\[/destination1\] Replace with: //[source1]\n//[/source1]\2//[destination1]\1//[/destination1] Unreadable, but seems to work just fine. So I tried this out, and it works as a macro. Thanks! There were a few caveats though...
by MrGee
Thu Mar 15, 2012 4:30 pm UTC
Forum: Coding
Topic: Visual Studio Find and Replace Macro
Replies: 8
Views: 2750

Re: Visual Studio Find and Replace Macro

Find: //\[source1\]{(.|\n)*}//\[/source1\]{(.|\n)*}//\[destination1\](.|\n)*//\[/destination1\] Replace with: //[source1]\n//[/source1]\2//[destination1]\1//[/destination1] Unreadable, but seems to work just fine. So you do the whole thing in one call to DTE.Find.Execute? Not sure I follow the logi...
by MrGee
Wed Mar 14, 2012 8:58 pm UTC
Forum: Coding
Topic: Visual Studio Find and Replace Macro
Replies: 8
Views: 2750

Re: Visual Studio Find and Replace Macro

public class Foo { //[source1] public string ToString() { return "I am overriding ToString!" } //[source1] } public class Bar { //[destination1] //[/destination1] } Objective: have Bar override ToString(). And no, I can't just copy-paste, because there are tons of sources and tons of dest...
by MrGee
Wed Mar 14, 2012 1:13 am UTC
Forum: Coding
Topic: Visual Studio Find and Replace Macro
Replies: 8
Views: 2750

Visual Studio Find and Replace Macro

I've asked several people this question and they all seemed stumped. The issue is this: I need a Visual Studio 2010 macro that will scan my solution, take the code in the [source][/source] tags, and put it between the [destination][/destination] tags. Sounds easy right? Unfortunately I can't figure ...
by MrGee
Sat Jan 07, 2012 6:30 pm UTC
Forum: Movies and TV Shows
Topic: Things you remember watching but can't remember the name of
Replies: 760
Views: 281966

Re: Things you remember watching but can't remember the name

Looking for a link to a video I saw years ago: It was a stage play starring a ninja who would do comically ridiculous stunts by having the stage crew, dressed in black, carry him or the props around in a very obvious way. Every time he was about to do something he shouted WOOOOOSS! (rhymes with goo...
by MrGee
Sun Jan 01, 2012 6:34 pm UTC
Forum: Movies and TV Shows
Topic: Things you remember watching but can't remember the name of
Replies: 760
Views: 281966

Re: Things you remember watching but can't remember the name

Looking for a link to a video I saw years ago: It was a stage play starring a ninja who would do comically ridiculous stunts by having the stage crew, dressed in black, carry him or the props around in a very obvious way. Every time he was about to do something he shouted WOOOOOSS! (rhymes with goos...
by MrGee
Mon Oct 17, 2011 2:47 pm UTC
Forum: Mathematics
Topic: Dollar Cost Averaging
Replies: 9
Views: 1471

Re: Dollar Cost Averaging

Well, that seems to be the last word on that. If a random walk has a positive expectation all by itself, though, I'm curious why the lump sum strategy doesn't show an expected profit. It's important to be sure that the two sides in the DCA debate are talking about the same thing -- usually they're b...
by MrGee
Sun Oct 16, 2011 2:12 pm UTC
Forum: Mathematics
Topic: Dollar Cost Averaging
Replies: 9
Views: 1471

Re: Dollar Cost Averaging

I would just like to point out the following is may not be what you expect: double multiplier = r.Next() / (double)r.Next(); Given that Random gives you uniformly distributed numbers, doing a division of one uniformly random variable by another uniformly random variable gives you a different distri...
by MrGee
Sat Oct 15, 2011 12:50 am UTC
Forum: Mathematics
Topic: Dollar Cost Averaging
Replies: 9
Views: 1471

Dollar Cost Averaging

So I've been reading a lot of articles on dollar cost averaging. People keep saying that it doesn't work, but their arguments seem to rely crucially on the fact that the stock market has an upward bias. My question is, would DCA improve your expected value if stocks on average stay at the same value...
by MrGee
Tue Aug 03, 2010 10:27 pm UTC
Forum: Coding
Topic: Syntax Highlighting in Visual Studio
Replies: 4
Views: 2105

Re: Syntax Highlighting in Visual Studio

I guess I'll download the trial version of Visual Assist while I look for a cheaper solution. Thanks.
by MrGee
Tue Aug 03, 2010 9:23 pm UTC
Forum: Coding
Topic: Syntax Highlighting in Visual Studio
Replies: 4
Views: 2105

Syntax Highlighting in Visual Studio

Does anyone know of a Visual Studio 2008 addin that provides additional options for syntax highlighting? I was going to try making one myself like so: http://msdn.microsoft.com/en-us/library/bb165041(VS.80).aspx ....but it looks like a huge amount of work. Is it too much to ask that my member fields...
by MrGee
Tue Aug 03, 2010 8:21 pm UTC
Forum: Coding
Topic: Random Phonemic Word Generator
Replies: 18
Views: 8728

Re: Random Phonemic Word Generator

You mean something like this? data:text/html,%3C!DOCTYPE%20html%3E%3Cmeta%20charset%3Dutf-8%3E%3Ctitle%3ERandom%20phoneme%20mixer%3C%2Ftitle%3E%3Cscript%20src%3Dhttp%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.4.2%2Fjquery.min.js%3E%3C%2Fscript%3E%3Cscript%3Efunction%20rand(a%2Cb)%20%7Bi...
by MrGee
Mon Aug 02, 2010 8:24 pm UTC
Forum: News & Articles
Topic: More Cloaking
Replies: 18
Views: 1363

Re: More Cloaking

Every time I see something like this I have to point out the problems (which are largely NOT fixable): 1. It only works for a very narrow range of frequencies (the most optimistic bandwidth figure from the actual article [Semouchkina et al., "An infrared invisibility cloak composed of glass,&q...
by MrGee
Wed Jul 14, 2010 2:27 pm UTC
Forum: News & Articles
Topic: Plastic Soup
Replies: 111
Views: 26068

Re: Plastic Soup

Meh...I think we can do better. Let me know when it's thick enough to walk on.
by MrGee
Wed Jul 14, 2010 2:23 pm UTC
Forum: News & Articles
Topic: RIAA Pays $16M+ in legal fees to collect $391K
Replies: 34
Views: 3538

Re: RIAA Pays $16M+ in legal fees to collect $391K

Still, the average settlement is only $3,000. That's just 10 laywer-hours per case. It would be easy to lose money.
by MrGee
Fri Jul 09, 2010 4:01 pm UTC
Forum: News & Articles
Topic: The Rational Optimist
Replies: 28
Views: 3918

Re: The Rational Optimist

It takes 3 minutes to earn the price of a McDonald's cheeseburger today


Wait, wait. A cheeseburger costs a dollar, so $1/3 minutes is $20/hr wage. And yet the median wage, before taxes, in 2008 was only about $13/hr.

Using the average wage is rather misleading, methinks.
by MrGee
Sat Jun 05, 2010 7:50 pm UTC
Forum: News & Articles
Topic: Professor pretends there'll be an exam, rickrolls students
Replies: 35
Views: 4505

Re: Professor pretends there'll be an exam, rickrolls studen

The problem with this hypothetical tactic is that it only works once. Every time you declare a fake test, the students increase their subjective probability that there's no test to study for. So, at equilibrium, you'll have students sometimes choosing not to study for a real test. Basically a "...
by MrGee
Thu Jun 03, 2010 9:02 pm UTC
Forum: Gaming
Topic: Onyx Risk Basic Facts
Replies: 0
Views: 582

Onyx Risk Basic Facts

So I wanted to do some calculations regarding turning in cards in Onyx Risk, but I've been completely unable to find some basic information. Could someone who has the game please tell me: -How many cards of the 42 territory cards have 2 stars -The troop reinforcement schedule. My memory is: 2->2 3->...
by MrGee
Thu Jun 03, 2010 5:43 pm UTC
Forum: News & Articles
Topic: Acupuncture pain molecule found
Replies: 29
Views: 3396

Re: Acupuncture pain molecule found

Griffin wrote:Because placebos WORK


Even on mice?

Regardless of the energy lines business, I think it's still pretty interesting if stabbing yourself anywhere can be a valid medical treatment for pain.
by MrGee
Wed May 26, 2010 5:47 am UTC
Forum: News & Articles
Topic: Students Kicked Off Campus for Wearing American Flag Tees
Replies: 573
Views: 42244

Re: Students Kicked Off Campus for Wearing American Flag Tee

Well, looking at the incident from a practical standpoint, what's done is done. Looking forward, is there any legal recourse for the flaggers against the district? I seriously doubt it. Parents have the right to tell their children to change their clothing. And re: in loco parentis , the school had...
by MrGee
Thu Apr 29, 2010 8:21 pm UTC
Forum: News & Articles
Topic: Woman Gets Life In Prison For Making Boy Touch Breasts
Replies: 42
Views: 5855

Re: Woman Gets Life In Prison For Making Boy Touch Breasts

If you have an example of a case where you think the judge's sentence really was too lenient, show it to me and I'll reconsider. Consider yourself shown. Hmm, that's pretty awful. I suppose that's a good reason for mandatory minimums for hate crimes, if you're concerned that judges and/or prosecuto...
by MrGee
Thu Apr 22, 2010 2:19 pm UTC
Forum: News & Articles
Topic: Apple Employee Misplaces New iPhone
Replies: 24
Views: 2872

Re: Apple Employee Misplaces New iPhone

Oh sure, he just 'happened' to leave his phone in a bar... Apple has done things like this in the past. It would really surprise me if this wasn't a deliberate leak. If they leaked it on purpose, you'd think they would wait until they could get better press than "The camera keeps crashing and ...
by MrGee
Wed Apr 21, 2010 4:10 pm UTC
Forum: News & Articles
Topic: IMF to tax the banks?
Replies: 6
Views: 789

Re: IMF to tax the banks?

I fail to see any outcome for this except that the problem of moral hazard gets ten times worse. It's just a cast-in-stone guarantee that our banks are too big to fail.
by MrGee
Tue Apr 13, 2010 1:39 am UTC
Forum: News & Articles
Topic: Paid to Learn in School
Replies: 63
Views: 6441

Re: Paid to Learn in School

Please, everyone knows a mere steelworker could never father a child with any intelligence.

And in seriousness: as much as I dislike public education, it's a lot better than no education at all.
by MrGee
Tue Apr 13, 2010 1:31 am UTC
Forum: News & Articles
Topic: Plans to arrest Pope underway.
Replies: 90
Views: 9586

Re: Plans to arrest Pope underway.

For this, I think, he ought to be charged with being an accessory to sexual assault and sexual interference with a minor, after the fact. What on earth is "sexual interference?" It sounds like somebody got in the way of a kid having sex. Its a catch-all for many sex offenses against a min...
by MrGee
Mon Apr 12, 2010 6:43 pm UTC
Forum: News & Articles
Topic: HP working on memristor chips
Replies: 22
Views: 3338

Re: HP working on memristor chips

I thought the problem with smaller transistors these days was that you get inevitable current arcs between components because they're so close together. How are memristors going to change that?
by MrGee
Mon Apr 12, 2010 6:40 pm UTC
Forum: News & Articles
Topic: Plans to arrest Pope underway.
Replies: 90
Views: 9586

Re: Plans to arrest Pope underway.

Le1bn1z wrote:For this, I think, he ought to be charged with being an accessory to sexual assault and sexual interference with a minor, after the fact.


What on earth is "sexual interference?" It sounds like somebody got in the way of a kid having sex.
by MrGee
Mon Apr 12, 2010 6:36 pm UTC
Forum: News & Articles
Topic: Bill O'Reilly pays marine father's legal costs
Replies: 62
Views: 6498

Re: Bill O'Reilly pays marine father's legal costs

If our society truly has become sufficiently enlightened as to move past an issue, let it die a natural death; forcing it only invites trouble. People kept telling Martin Luther King Jr. that. If only he had listened, the idiot might not have gotten himself shot. Yes, because obviously Martin Luthe...
by MrGee
Mon Apr 12, 2010 6:11 pm UTC
Forum: News & Articles
Topic: Wikipedia Accused by Larry Sanger of Hosting Child Porn
Replies: 46
Views: 7119

Re: Wikipedia Accused by Larry Sanger of Hosting Child Porn

Perhaps most relevant here is that is legal to restrict obscenity. From my reading of the paragraph you quote, I take it that it was the lack of specificity that led to the law being struck down, not the fact that speech was being curtailed. No. The language "overbroad" doesn't necessaril...
by MrGee
Sun Apr 11, 2010 11:50 pm UTC
Forum: News & Articles
Topic: HP working on memristor chips
Replies: 22
Views: 3338

Re: HP working on memristor chips

"The use of transistors is limited by Moore's Law."

Sounds perilously close to "I have no clue what Moore's Law is"
by MrGee
Sun Apr 11, 2010 11:43 pm UTC
Forum: News & Articles
Topic: High School cancels Prom due to same-sex couple's existence
Replies: 152
Views: 19618

Re: High School cancels Prom due to same-sex couple's existe

I am surprised that the kids kept the secret. I was so against high school in general that I would have done the opposite of whatever the teachers said. Didn't part of the article say she knew about the "real" prom as well? Was she actually invited to the "real" one though? My u...
by MrGee
Sun Apr 11, 2010 5:04 pm UTC
Forum: News & Articles
Topic: Bill O'Reilly pays marine father's legal costs
Replies: 62
Views: 6498

Re: Bill O'Reilly pays marine father's legal costs

Bubbles McCoy wrote:If our society truly has become sufficiently enlightened as to move past an issue, let it die a natural death; forcing it only invites trouble.


People kept telling Martin Luther King Jr. that. If only he had listened, the idiot might not have gotten himself shot.
by MrGee
Sun Apr 11, 2010 4:56 pm UTC
Forum: News & Articles
Topic: Teabonics
Replies: 46
Views: 6092

Re: Teabonics

Last night I drew up a t-shirt for a party that said "THIK: It's not illegal yet."

If I hadn't noticed the problem before leaving, I think I might actually have died of irony.
by MrGee
Sun Apr 11, 2010 4:48 pm UTC
Forum: News & Articles
Topic: Polish president among 132 dead in plane crash
Replies: 25
Views: 3105

Re: Polish president among 132 dead in plane crash

Golf clap.
by MrGee
Sun Apr 11, 2010 4:07 pm UTC
Forum: News & Articles
Topic: Wikipedia Accused by Larry Sanger of Hosting Child Porn
Replies: 46
Views: 7119

Re: Wikipedia Accused by Larry Sanger of Hosting Child Porn

One day I will understand this world where sex is barely tolerated, but torture and murder can draw cheering crowds.

I think Sanger is justified in accusing Moller though; there is specific evidence of his views in the links.

And shame on everyone who thought drawing CP is legal.
by MrGee
Sat Apr 10, 2010 4:31 pm UTC
Forum: News & Articles
Topic: We can't rely on financial regulators to protect us
Replies: 27
Views: 2692

Re: We can't rely on financial regulators to protect us

I don't think the financial world was unaware of the imminent crisis. I had my friend Regular Joe telling me the housing market was going to explode months before it all started, just because he knew that all the teaser mortgages were coming due. It's the old game of pass the grenade: you know someo...
by MrGee
Thu Apr 08, 2010 12:47 am UTC
Forum: News & Articles
Topic: We can't rely on financial regulators to protect us
Replies: 27
Views: 2692

Re: We can't rely on financial regulators to protect us

I don't know about Vaniver, but I absolutely believe in that separation of financial sectors. The traders with the champagne lifestyle, only as good as their last trade, selling naked shorts and burning out by the age of 35 most definitely should not be a part of the same organisation charged with ...
by MrGee
Thu Apr 08, 2010 12:32 am UTC
Forum: News & Articles
Topic: High School cancels Prom due to same-sex couple's existence
Replies: 152
Views: 19618

Re: High School cancels Prom due to same-sex couple's existe

I am surprised that the kids kept the secret. I was so against high school in general that I would have done the opposite of whatever the teachers said.

Also small towns have their good sides...for example

http://abcnews.go.com/GMA/story?id=6211839&page=1

Go to advanced search