Search found 975 matches

by masher
Tue Dec 14, 2010 11:50 pm UTC
Forum: News & Articles
Topic: Lighter bikes, not faster to commute on...
Replies: 21
Views: 3182

Re: Lighter bikes, not faster to commute on...

The Reaper wrote:
Spoiler:
Image
Lightcycles<3


http://www.wired.com/autopia/2010/11/ge ... ght-cycle/
by masher
Fri Dec 10, 2010 11:00 am UTC
Forum: News & Articles
Topic: Canadian military seems to be pretty cool, dontcha think?
Replies: 21
Views: 2851

Re: Canadian military seems to be pretty cool, dontcha think

Joeldi wrote:Why does there need to be a difference in dress code?


Because females like being able to wear skirts (in my experience), and female pants are cut differently to male pants.
by masher
Fri Dec 10, 2010 4:14 am UTC
Forum: Serious Business
Topic: Meritocratic Democracy?
Replies: 49
Views: 6584

Re: Meritocratic Democracy?

I have no desire to go into politics.

I do want to better myself; this is why I went to university, do my volunteer work, completed my PhD, do my job.

Why would I want to go into politics where I would be required to engage in duplicitous behaviour, contrary to my beliefs?
by masher
Fri Dec 10, 2010 3:30 am UTC
Forum: Serious Business
Topic: Meritocratic Democracy?
Replies: 49
Views: 6584

Re: Meritocratic Democracy?

A percentage of high school graduates are selected based on a standardized evaluation of merit. These graduates will then undergo a specialized education with emphasis on political theory, social science, philosophy, ethic and economic. This is the wrong bit. I wouldn't have wanted to do this when ...
by masher
Thu Dec 09, 2010 5:50 am UTC
Forum: Mathematics
Topic: Math Problem Clock Cycles
Replies: 6
Views: 1732

Re: Math Problem Clock Cycles

So I got a problem, duel sided. For this problem, assume the program used to decrypt the document used 4 operations per attempt at the codebreak. 1) How long will it take the average computer, lets assume 3 ghz processor. To solve a pdf password of 24 characters, case sensitive, all keys on keyboar...
by masher
Thu Dec 09, 2010 4:29 am UTC
Forum: Fictional Science
Topic: Jumping into a pair of jeans
Replies: 14
Views: 5289

Re: Jumping into a pair of jeans

Just do what Wallace does.
by masher
Thu Dec 09, 2010 2:01 am UTC
Forum: Forum Games
Topic: Picture Pwn4ge!
Replies: 8368
Views: 1211727

Re: Picture Pwn4ge!

Image
by masher
Thu Dec 09, 2010 1:29 am UTC
Forum: Coding
Topic: sudoku solving algorithm
Replies: 26
Views: 3094

Re: sudoku solving algorithm

Thesh wrote:That's not valid, you have two fours in the first square and third column. I think you have to remove more than a few numbers to have a puzzle with multiple solutions.


Fixed. It was a typo; you should now be able to see the multiple solution.
by masher
Thu Dec 09, 2010 1:03 am UTC
Forum: Coding
Topic: sudoku solving algorithm
Replies: 26
Views: 3094

Re: sudoku solving algorithm

so your saying there are cases where the user will find the board to be invalid? thats impossible, then they solved it wrong. Consider this starting board: 1 2 3 | 4 5 6 | 7 8 9 7 8 9 | 1 2 3 | 4 5 6 4 5 6 | 7 8 9 | 1 2 3 ------+-------+------ 9 1 2 | 3 4 5 | 6 7 8 6 7 8 | 9 1 2 | 3 4 5 3 4 5 | 6 7...
by masher
Wed Dec 08, 2010 12:01 pm UTC
Forum: Coding
Topic: sudoku solving algorithm
Replies: 26
Views: 3094

Re: sudoku solving algorithm

the mishanator wrote:oh... i dont think i was clear about the games purpose. it generates boards that are solutions, then randomly removes numbers based on the difficulty level and the user solves it.


But unless you are careful on how you remove the numbers, you can generate a puzzle that has more than one solution.
by masher
Wed Dec 08, 2010 5:24 am UTC
Forum: Religious Wars
Topic: I hate math notation!
Replies: 57
Views: 22567

Re: I hate math notation!

No. Your example is why I hate maths not written as maths. Your psuedocode is ambiguous (and also has redundant brackets). Does (-b + sqrt( b^2 - 4*(a*c))) / 2 * a mean {\frac{-b + \sqrt{b^2 - 4ac}}{2a}} or does it mean {\frac{-b + \sqrt{b^2 - 4ac}}{2}}a They will give very different results. That'...
by masher
Tue Dec 07, 2010 11:53 pm UTC
Forum: Religious Wars
Topic: I hate math notation!
Replies: 57
Views: 22567

Re: I hate math notation!

Why does a division operation need to look so vastly different from all other operators? Why can't it be a slash, as used in pseudo code? Which division operator? are you talking about the horizontal line? That is a formalised slash (/). Are you talking about ÷? It's just a convention. You can make...
by masher
Thu Dec 02, 2010 3:57 am UTC
Forum: Forum Games
Topic: Count to a Million
Replies: 95140
Views: 7507708

Re: Count to a Million

31469
by masher
Wed Dec 01, 2010 11:21 pm UTC
Forum: Coding
Topic: Problem With 0 At Start of Integer
Replies: 20
Views: 2502

Re: Problem With 0 At Start of Integer

masher wrote:How do you separate it currently?
by masher
Wed Dec 01, 2010 11:05 pm UTC
Forum: Coding
Topic: Problem With 0 At Start of Integer
Replies: 20
Views: 2502

Re: Problem With 0 At Start of Integer

you would need to use strings at some point to split it anyway... You don't need it as a string to split it. You'll need the results of the "splitting" to make it "MM/DD/YYYY", but the actual method extracting the month, day and year can be done with mathematical operations. . W...
by masher
Wed Dec 01, 2010 10:59 pm UTC
Forum: Coding
Topic: Problem With 0 At Start of Integer
Replies: 20
Views: 2502

Re: Problem With 0 At Start of Integer

How do you separate it currently?

I just did a quick test then, and I can write some code that will handle that. (assuming that MM/DD/YYYY is a string...)
by masher
Sun Nov 28, 2010 11:59 pm UTC
Forum: News & Articles
Topic: Largest Arms Deal In U.S. History
Replies: 37
Views: 4440

Re: Largest Arms Deal In U.S. History

rath358 wrote:does RCS stand for "radar cross section" in this context?
It seems the most likely out of the things offered by acronymfinder, but I can't be sure.


Yes.
by masher
Thu Nov 25, 2010 2:48 am UTC
Forum: The Help Desk
Topic: Alt Codes on Netbook
Replies: 8
Views: 1610

Re: Alt Codes on Netbook

I know that on my laptop I need to use the alt and fn keys. alt to get the alt codes and fn to activate the numpad that is on the keyboard.
by masher
Wed Nov 17, 2010 3:40 am UTC
Forum: Coding
Topic: C: Sum not converging to e as it should.
Replies: 23
Views: 2643

Re: C: Sum not converging to e as it should.

Sagekilla wrote:As a quick check, the smallest factorial you can fit in a signed integer (32-bits) is 12!, with a value of 479,001,600.
You are, without a doubt, overflowing.



Yes.

Just tested with ints and longs (in java) and I get quite a difference, except that with longs, I've started calcing -e....
by masher
Wed Nov 17, 2010 3:15 am UTC
Forum: Coding
Topic: C: Sum not converging to e as it should.
Replies: 23
Views: 2643

Re: C: Sum not converging to e as it should.

Code: Select all

          terma = term*pow((-1), (n+i+k)%2);
            termb = term*pow((-1), (n+i)%2);


Why are the "%2"'s there? They aren't in your original formulae
by masher
Tue Nov 16, 2010 10:13 pm UTC
Forum: Science
Topic: Numerical differentiation. What am I actually doing?
Replies: 6
Views: 1604

Re: Numerical differentiation. What am I actually doing?

ta for that everyone.

@gorcee thanks for the papers, I'm having a look at them now, just for fun...

.

The thing is that using the turning point in the s/t curve as the delimiter between the two models actually gives a nice result...

Oh well, back to the old drawing board
by masher
Tue Nov 16, 2010 6:21 am UTC
Forum: Science
Topic: Numerical differentiation. What am I actually doing?
Replies: 6
Views: 1604

Numerical differentiation. What am I actually doing?

I have some data that I (a colleague) wishes to fit some rate equations. scale.png We think that there are two regimes, and when fitting with two rate constants, we get better answers. In order to try and find the time at which we should change over equations, we differentiated the data y'_i = \...
by masher
Mon Nov 08, 2010 10:38 pm UTC
Forum: The Help Desk
Topic: Firefox won't work on xkcd
Replies: 7
Views: 859

Re: Firefox won't work on xkcd

phlip wrote:There's probably an extension for it, though.


This one?
by masher
Thu Nov 04, 2010 3:34 am UTC
Forum: Science
Topic: Chemistry Safety
Replies: 24
Views: 2394

Re: Chemistry Safety

http://www.piercenet.com/msds/EN6797.pdf Eye contact : Immediately flush eyes with plenty of water for at least 15 minutes, occasionally lifting the upper and lower eyelids. "He drowned...in recursion." Are those first aid measures jokes? Seriously that seems... and in the event of a smal...
by masher
Fri Oct 29, 2010 3:57 am UTC
Forum: General
Topic: On Bashing Chiropractic
Replies: 24
Views: 3453

Re: On Bashing Chiropractic

Depends. I went to a chiropractor for back pain and the only treatment I received was spinal manipulation. I saw my x-rays, and I had deformed vertebrae. Manipulation help put them into place and helped with nerve pinching and the like in my upper back and neck. There was nothing in there that I wou...
by masher
Fri Oct 22, 2010 4:12 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0809: "Los Alamos"
Replies: 181
Views: 47978

Re: 0809: Los Alamos

tigger89 wrote:soh-cah-toa/coh-sah-toa would be a reference to what ranges trig functions are positive in?


Sine of an angle in a triangle is equal to opposite over hypotenuse, cosine is adjacent over hypotenuse and tan is opposite over adjacent.
by masher
Thu Oct 21, 2010 10:54 pm UTC
Forum: Science
Topic: Curve / peak fitting
Replies: 5
Views: 999

Re: Curve / peak fitting

Do you have any theoretical basis for choosing a fitting model? Fitting a single curve is easy, but if you want a robust model for fitting a family of curves it helps to know why the data looks the way it does. I'm modelling the the energy distribution coming out of a synchrotron wiggler. I have th...
by masher
Thu Oct 21, 2010 4:45 am UTC
Forum: Science
Topic: Curve / peak fitting
Replies: 5
Views: 999

Curve / peak fitting

Hi All I'm currently trying to model some data. I would like to fit the peak using a single peak of whatever profile I end up choosing. The data pretty much follows a lognormal curve, but is a little different... I'm currently fitting the data with the following model: f(x) = y_0 + \frac{a}{...
by masher
Tue Oct 19, 2010 4:40 am UTC
Forum: School
Topic: Guidelines for election of head of student council
Replies: 7
Views: 2383

Re: Guidelines for election of head of student council

Have a voting system where you put down their favourite choices in order (1 being favourite, 3 being the least favourite of the three they select), then have 1 point for a 3, 3 points for a 1 etc, however many people you need from that year group who have the most votes can go forward. Or just give...
by masher
Tue Oct 12, 2010 1:03 am UTC
Forum: Coding
Topic: universal function for pawns.
Replies: 52
Views: 5573

Re: universal function for pawns.

Actually, in a truly OO design it would be even better to give Pieces no knowledge at all about their position... because, afterall, the board is already keeping track of their positions. Same story for whether positions are occupied or not (if you do it like this, every piece will be keeping a pri...
by masher
Mon Oct 11, 2010 4:18 am UTC
Forum: The Help Desk
Topic: Openoffice Calc plugin/extension?: drag cell to move
Replies: 0
Views: 1054

Openoffice Calc plugin/extension?: drag cell to move

Hi all

Is there a plugin/extension for OO.o Calc such that I can drag a cell like in Excel? ie click on the edge of the cell/selection to drag it? It is very cumbersome to drag single cells in Calc atm with having to highlight the cell first....
by masher
Tue Oct 05, 2010 10:58 pm UTC
Forum: Science
Topic: Cross correlation
Replies: 2
Views: 672

Re: Cross correlation

That means, you should compare intensity values measured at the same angles. I know. That's why I asked if there were any algorithms that calculate a cross-correlation using an x-value, instead of an index number, so I wouldn't have to pre-treat my data to throw away all the non-equivalent angles i...
by masher
Tue Oct 05, 2010 4:49 am UTC
Forum: Mathematics
Topic: System of Equations with 4 variables
Replies: 10
Views: 2057

Re: System of Equations with 4 variables

By "clever solution" do you mean that the values of a-d are cool/weird/nice, or that the method of solving the equations is clever?

Because the former would be cool, whereas the latter is just an application of linear algebra...
by masher
Tue Oct 05, 2010 4:25 am UTC
Forum: Mathematics
Topic: System of Equations with 4 variables
Replies: 10
Views: 2057

Re: System of Equations with 4 variables

kcaze wrote:To me, it seems like there would be a really clever solution to this system of equations.


What makes you say that? I mean that the set up of the equations themselves looks pretty, but the answer for each doesn't seem to follow an order...
by masher
Mon Oct 04, 2010 10:10 pm UTC
Forum: Science
Topic: Snowball fight.
Replies: 14
Views: 2842

Re: Snowball fight.

the mishanator wrote:thanks for the help gentlemen


No worries.
by masher
Mon Oct 04, 2010 4:55 am UTC
Forum: Science
Topic: Snowball fight.
Replies: 14
Views: 2842

Re: Snowball fight.

You've got: v=u+at which can be rearranged as (assuming v=0 ) t=\frac{u}{a} and then you can substitute u : t=\frac{30\sin\theta}{9.8} The horizontal displacement is given by s_h = 2vt as there isn't any acceleration in the horizontal. The factor of 2 comes from the time calculation only going to ap...
by masher
Mon Oct 04, 2010 4:42 am UTC
Forum: Science
Topic: Snowball fight.
Replies: 14
Views: 2842

Re: Snowball fight.

You're out by a factor of two (that t is the time to apogee, you need twice that to get back down to the ground). The distance the ball travels is 45.89 m. This is the distance the first snowball travels. It is also the distance the second snowball travels. Now, at what angle (other than 75º) can yo...
by masher
Mon Oct 04, 2010 4:37 am UTC
Forum: Science
Topic: Snowball fight.
Replies: 14
Views: 2842

Re: Snowball fight.

Third ball?

You're only throwing two.
by masher
Mon Oct 04, 2010 4:28 am UTC
Forum: Science
Topic: Snowball fight.
Replies: 14
Views: 2842

Re: Snowball fight.

You're on the right track... You don't need to know vertical displacements, only horizontal. So, to calculate the distance the first snowball travels: Solve for t: v = u + at 0 = 30 \sin 75 + (-9.8) t That's the time to the apogee, so the total transit time from you hand to his face is 2t No...
by masher
Mon Oct 04, 2010 3:59 am UTC
Forum: Science
Topic: Snowball fight.
Replies: 14
Views: 2842

Re: Snowball fight.

Quoted to unbeak the post... One strategy in a snowball fight is to throw a snowball at a high angle over level ground. While your opponent is watching the first one, you throw a second one at a low angle and timed to arrive at your opponent before or at the same time as the first one. Assume both s...

Go to advanced search