Search found 711 matches

by scarecrovv
Fri Apr 26, 2013 2:50 pm UTC
Forum: Computer Science
Topic: Soft hash function
Replies: 13
Views: 7945

Re: Soft hash function

Ah ha. I was wondering what this was for. If that's the case, you may want to scale each character you add by 0.1 or 0.01 so that changing a single input character not only changes a single output character, but also doesn't change that output character by very much. Alternatively, if the input char...
by scarecrovv
Fri Apr 26, 2013 2:19 pm UTC
Forum: Computer Science
Topic: Soft hash function
Replies: 13
Views: 7945

Re: Soft hash function

How about this? Input string = ABCDEFGHIJKLMNOPQRSTUVWXYZ First byte of hash = (A+D+G+J+M+P+S+V+Y) % 256 Second byte of hash = (B+E+H+K+N+Q+T+W+Z) % 256 Third byte of hash = (C+F+I+L+O+R+U+X) % 256 Each byte is the sum of every third character (or byte) of input (mod 256), starting at the first, sec...
by scarecrovv
Thu Apr 25, 2013 1:28 pm UTC
Forum: Science
Topic: Speed of Propagation of a Magnetic Field.
Replies: 116
Views: 25023

Re: Speed of Propagation of a Magnetic Field.

In the above spinning yo-yo experiment what would happen if instead of cutting the rope, make it simply vanished. Propagation? how much time the yo-you would keep spinning without a rope ? Cancellation of force is or is nearly instantaneous. The problem with this reasoning is that cutting the rope ...
by scarecrovv
Tue Apr 23, 2013 3:36 pm UTC
Forum: Coding
Topic: Save my brain from this LaTeX bug
Replies: 12
Views: 9040

Re: Save my brain from this LaTeX bug

I like xulaus's version. Also, you might try asking on http://tex.stackexchange.com/. It's full of TeXnicians.
by scarecrovv
Tue Apr 23, 2013 3:06 pm UTC
Forum: Science
Topic: Sun as final storage for radwaste?
Replies: 134
Views: 23894

Re: Sun as final storage for radwaste?

Holy shit. I hadn't heard about the cholera outbreak in Haiti. That's atrocious.
by scarecrovv
Sun Apr 14, 2013 2:25 am UTC
Forum: Science
Topic: Confusion about hertz and radians
Replies: 24
Views: 5783

Re: Confusion about hertz and radians

Ah ha! There's the insight I was looking for. The units of a radius is meters/radian. It seems obvious in hindsight. Thanks very much!
by scarecrovv
Sat Apr 13, 2013 8:26 pm UTC
Forum: Science
Topic: The Smell of Old Electronics
Replies: 4
Views: 1510

Re: The Smell of Old Electronics

After some googling I think that the smell you're talking about is given off by heated Bakelite . I'm no chemist though, so I don't know. If you want a smell generator, you could put a big power resistor in a Bakelite case and plug it in. If you do this, I am not responsible for what happens to your...
by scarecrovv
Sat Apr 13, 2013 4:34 pm UTC
Forum: Science
Topic: Confusion about hertz and radians
Replies: 24
Views: 5783

Re: Confusion about hertz and radians

That's interesting. So to apply your advice to the piston example above, I should somehow tag values, so it would be: (10 meters of piston A) / (5 meters of piston B) = 2 (meters of piston A / meters of piston B) or (10 meters of arc) / (5 meters of radius) = 2 radians where radians are defined as (...
by scarecrovv
Sat Apr 13, 2013 4:07 pm UTC
Forum: Science
Topic: Confusion about hertz and radians
Replies: 24
Views: 5783

Re: Confusion about hertz and radians

That's sort of what I thought, and I tried to represent that in software by making a new dimension for angle (just like length, mass, time, current, etc). What I'm specifically having trouble with though is getting the computer to know when it should put in or take out a factor of radians. Take this...
by scarecrovv
Sat Apr 13, 2013 3:29 pm UTC
Forum: Science
Topic: Confusion about hertz and radians
Replies: 24
Views: 5783

Confusion about hertz and radians

Ever since it was drilled into me by my high school chemistry teacher, I've been a stickler for units. When I'm doing any sort of physically meaningful calculation I insist that the units work out, and I've caught many mistakes this way. Since I've recently also gained an interest in type level prog...
by scarecrovv
Tue Apr 09, 2013 2:44 pm UTC
Forum: Science
Topic: Need help from engineers
Replies: 8
Views: 1725

Re: Need help from engineers

It wouldn't be half as elegant or simple as many of the gear designs posted here, but if your grandfather really really wants a specific motion that would be hard to achieve by other means, he could set up some sort of x-y table, and drive it with cams. I can't draw you a picture at the moment, but ...
by scarecrovv
Tue Apr 09, 2013 2:36 am UTC
Forum: Science
Topic: Genetic Engineering Leads To Turduckens
Replies: 19
Views: 2581

Re: Genetic Engineering Leads To Turduckens

In defense of the anti-GMO people (though I am not one of them), I too thought their position was absurd until I learned that they (or at least the one I talked to) don't object to the concept of genetic modification of food, but to the specific modifications made. In particular, the guy I talked to...
by scarecrovv
Mon Apr 08, 2013 10:48 pm UTC
Forum: Fictional Science
Topic: Psychohistory (Can we predict the future?)
Replies: 12
Views: 5601

Re: Psychohistory (Can we predict the future?)

I would assume, of course, that the Star's End headquarters are a Decoy, and the actual headquarters are in "Trantor, KS."
by scarecrovv
Thu Apr 04, 2013 4:57 am UTC
Forum: General
Topic: Nudity and Lighting Yourself on Fire
Replies: 94
Views: 25559

Re: Nudity and Lighting Yourself on Fire

If my goal is to become one with the flame, then in my mind that requires that I combust as completely as possible. Since I doubt that I would be terribly flammable after the fuel is consumed, the initial quantity of fuel must be as high as possible. Clothing would allow me to hold lots more fuel cl...
by scarecrovv
Wed Apr 03, 2013 5:25 am UTC
Forum: Fictional Science
Topic: Psychohistory (Can we predict the future?)
Replies: 12
Views: 5601

Re: Psychohistory (Can we predict the future?)

Foundation is awesome. Another good novel with similar ideas is "In the Country of the Blind" by Michael Flynn. It has a very interesting Afterword, in which Flynn attempts to apply some of the principles of Ciliology (what Psychohistory is called in his book) to the real world. He points ...
by scarecrovv
Wed Mar 20, 2013 2:05 pm UTC
Forum: Coding
Topic: The Red Spider Project
Replies: 246
Views: 147459

Re: The Red Spider Project

Hello folks. It's been a while. And it will probably be a while too, since I'm a bit busy trying to graduate at the moment. Regarding xkcd-fetch, and various bugs, misleading documentation, etc: issues almost certainly exist. If you think something is wrong, feel free to go fix it. I'll try to take ...
by scarecrovv
Mon Mar 18, 2013 12:29 am UTC
Forum: The Help Desk
Topic: Excel-fu Question
Replies: 18
Views: 3682

Re: Excel-fu Question

Well if all you want to do is track your stats in a game, then learning to program a computer is probably overkill. However if you've been looking for a fun adventure anyway then you might as well start here . Once you've gained a basic familiarity with the language, then you should be able to under...
by scarecrovv
Sun Mar 17, 2013 11:50 pm UTC
Forum: The Help Desk
Topic: Excel-fu Question
Replies: 18
Views: 3682

Re: Excel-fu Question

I freely admit to not knowing excel-fu, but this sounds like a job for a real programming language. Python would be a good fit. Do you know any python?
by scarecrovv
Wed Mar 13, 2013 3:41 am UTC
Forum: News & Articles
Topic: NASA Finds Conditions Once Suited for Ancient Life on Mars
Replies: 2
Views: 700

Re: NASA Finds Conditions Once Suited for Ancient Life on Ma

Iulus Cofield wrote:Now we must abandon a child on the surface of Mars to be cared for by the ghost men of Mars and sent back at 33 years old to save our souls with free love.

Free love and telekinesis. Don't forget the telekinesis.

On topic though, that's pretty awesome.
by scarecrovv
Fri Mar 01, 2013 2:23 pm UTC
Forum: Science
Topic: Sun as final storage for radwaste?
Replies: 134
Views: 23894

Re: Sun as final storage for radwaste?

I seem to vaguely recall something about them trying to devise a sufficiently clear warning symbol that would last thousands of years in such a scenario... a thousand rosetta stones with hundreds of languages with clear explanations and explanations of basic physics and the the effects of radiation...
by scarecrovv
Fri Mar 01, 2013 5:36 am UTC
Forum: General
Topic: xkcd on Kickstarter
Replies: 16
Views: 3936

Re: xkcd on Kickstarter

A book is a great idea! So great, in fact, that he's already done it. A kickstarter doesn't seem to have been necessary.
by scarecrovv
Fri Mar 01, 2013 5:26 am UTC
Forum: Hardware
Topic: Crashy-ass computer... It's a mystery
Replies: 35
Views: 20947

Re: Crashy-ass computer... It's a mystery

You could also try BSD, the GNU Hurd, and Plan 9 from Bell Labs, if you seek to rule out Linux as the problem without using non-free software. Windows is not the only, or even the best, alternative. :P
by scarecrovv
Sat Feb 23, 2013 3:50 pm UTC
Forum: Religious Wars
Topic: What OS do you use?
Replies: 321
Views: 139514

Re: What OS do you use?

Well it's been a few years since I posted in this thread, so here's an update. Nowadays I use Arch at home, and RHEL 6 at work.
by scarecrovv
Sat Feb 09, 2013 8:37 pm UTC
Forum: Science
Topic: EMDrive and other reactionless propulsion claims
Replies: 71
Views: 13587

Re: China Picks up the EMDrive

This is my favorite quote from the article: Even the most advanced theoretical critique, produced by John Costella, a PhD in relativistic electrodynamics, amounted to arguing about the direction of an arrow on one of Shawyer's diagrams. The reason that the most advanced theoretical critique was on t...
by scarecrovv
Fri Feb 08, 2013 8:31 pm UTC
Forum: Science
Topic: Asteroid redirection question
Replies: 22
Views: 3317

Re: Asteroid redirection question

A spacecraft like this is called a Gravity Tractor. Wikipedia proposes two solutions to the problem you point out. The first solution is to direct the exhaust so that it just misses the asteriod, with multiple engines so that the total force vector is straight away from the asteroid. This is somewha...
by scarecrovv
Fri Feb 08, 2013 3:11 pm UTC
Forum: Fictional Science
Topic: Getting rid of my digestive system
Replies: 24
Views: 8991

Re: Getting rid of my digestive system

I believe so (see people in comas), but if you try this and starve to death, I am not responsible.
by scarecrovv
Fri Feb 08, 2013 3:16 am UTC
Forum: Coding
Topic: Writing My Own Logic Gates in Python
Replies: 32
Views: 7563

Re: Writing My Own Logic Gates in Python

Here is some good documentation on exceptions. Without going into it too deeply, here's one way to do what you want: def validate(x): if x == 1: return True elif x == 0: return False else: raise Exception("Invalid input - please enter either a 1 (True) or a 0 (False).") # rest of your log...
by scarecrovv
Thu Feb 07, 2013 4:56 pm UTC
Forum: Hardware
Topic: Crashy-ass computer... It's a mystery
Replies: 35
Views: 20947

Re: Crashy-ass computer... It's a mystery

* a different window manager, or It's happened in GNOME 2 and GNOME 3... So that's at least two drastically different versions of window managers... I'm not real sure how that could make a difference anyway, though. Assuming I had the same problem, I concur that it's not the window manager. I exper...
by scarecrovv
Thu Feb 07, 2013 3:21 pm UTC
Forum: Coding
Topic: Writing My Own Logic Gates in Python
Replies: 32
Views: 7563

Re: Writing My Own Logic Gates in Python

Here's how you instantiate a class: class Hello: def __init__(self): self.hi = "hello" x = Hello() print x.hi # prints: hello So in your case, call LogicGateAND() to create an and gate. However, I noticed that in your implementation, your __init__ method takes a couple of arguments (x and ...
by scarecrovv
Wed Feb 06, 2013 1:25 am UTC
Forum: News & Articles
Topic: Exile the Obama way
Replies: 48
Views: 4356

Re: Exile the Obama way

This is obviously atrocious and terrible and needs to stop, but this sort of thing seems to have been going on for longer than Obama has been in office, so putting all the blame on him as the thread/article title seems to do is somewhat misleading. Also, perhaps I'm missing something, but what's sto...
by scarecrovv
Tue Feb 05, 2013 6:26 pm UTC
Forum: Hardware
Topic: Crashy-ass computer... It's a mystery
Replies: 35
Views: 20947

Re: Crashy-ass computer... It's a mystery

When the crash happens, it's like the system just stops. Anything onscreen stays onscreen, any audio playing loops (more like the last quarter second or something, rather than the last few seconds). There's no popping sound that I'm aware of, the computer just seems to.. stop. Can't move the mouse ...
by scarecrovv
Tue Feb 05, 2013 2:16 pm UTC
Forum: Hardware
Topic: Crashy-ass computer... It's a mystery
Replies: 35
Views: 20947

Re: Crashy-ass computer... It's a mystery

One thing to check is if anything odd shows up in the system logs just before the computer crashes. I once had a weird problem that I fixed by reseating the memory modules, and it showed up as memory errors in /var/log/messages. Really though, intermittent problems such as you describe are the worst...
by scarecrovv
Sun Feb 03, 2013 4:28 pm UTC
Forum: Coding
Topic: Writing My Own Logic Gates in Python
Replies: 32
Views: 7563

Re: Writing My Own Logic Gates in Python

Note that python already has "and", "or", and "not" operators, so treat this as a fun exercise, not a regular coding practice. One way to simplify your code is to use Exceptions for the input checking. That's what they're for. What good is a function for validating your...
by scarecrovv
Wed Jan 30, 2013 12:08 am UTC
Forum: General
Topic: Midnight is the begining of the day
Replies: 18
Views: 4010

Re: Midnight is the begining of the day

Nothing is ever scheduled for midnight around here. People always schedule things for 23:59 instead.
by scarecrovv
Mon Jan 28, 2013 2:43 pm UTC
Forum: Coding
Topic: Comp lang for real time, distributed, fault-tollerant app
Replies: 5
Views: 1807

Re: Comp lang for real time, distributed, fault-tollerant ap

Check out Erlang. It is made for real time, distributed, fault-tolerant stuff.
by scarecrovv
Fri Jan 25, 2013 5:42 pm UTC
Forum: General
Topic: Please Answer Entirely Honestly: World Domination
Replies: 48
Views: 8111

Re: Please Answer Entirely Honestly: World Domination

As others have said before, ruling the world sounds like work. I'd just want the right to step in whenever and point out that something is clearly stupid and force people to stop, at gunpoint if necessary. I've created several plans for achieving this goal. My favorite at the moment is to land on th...
by scarecrovv
Wed Jan 23, 2013 6:34 am UTC
Forum: Science
Topic: [HOMEWORK] Time Delay Circuit
Replies: 6
Views: 1916

Re: [HOMEWORK] Time Delay Circuit

If you want to make it more complicated (may I ask why?) you could put another transistor in parallel with the capacitor, whose base would be a reset input of sorts. You pull reset high, then you pull it low, and after a short time the LED comes on. Then pull it high again and the LED turns off. Rea...
by scarecrovv
Thu Jan 17, 2013 8:25 pm UTC
Forum: Coding
Topic: Python: embeddable regex?
Replies: 3
Views: 1926

Re: Python: embeddable regex?

Well in Python, the regexes you pass to the re library are strings, so you could do something like this: note = "[a-g][0-9]" # your note regex noteRegex = re.compile(note) chord = "(" + note + "/)+" + note # your chord regex, assembled by concatenating strings, some of ...
by scarecrovv
Wed Jan 16, 2013 12:44 pm UTC
Forum: News & Articles
Topic: Extraterrestial life found?
Replies: 20
Views: 2481

Re: Extraterrestial life found?

I am not a geologist, and I have only glanced at their paper so far, but one thing that comes to mind is that this meteorite could have originated at earth. Perhaps it was flung out into space by some previous impact event, and is just now returning. The impact that wiped out the dinosaurs is just o...
by scarecrovv
Tue Jan 15, 2013 12:35 am UTC
Forum: Science
Topic: Alleged invisibility cloak
Replies: 33
Views: 6096

Re: Alleged invisibility cloak

The biggest issue is that you wouldn't be able to see anything from inside. And that nobody knows how to make one that covers the whole visible spectrum, and even less the IR spectrum. I'm not sure why everybody seems to think that you can't see out of an invisibility cloak. I'm not a physicist, so...

Go to advanced search