Search found 507 matches

by the mishanator
Thu Jul 28, 2011 9:46 pm UTC
Forum: Forum Games
Topic: Wikipedia: Philosophy
Replies: 60
Views: 28251

Re: Wikipedia: Philosophy

Anime
Animation
Illusion
Sense
Physiology
Science
Knowledge
Fact
Information
Sequence
Mathematics
Quantity
Property (philosophy)
Modern philosophy
Philosophy
by the mishanator
Thu Jul 28, 2011 9:39 pm UTC
Forum: Forum Games
Topic: Count to a Million
Replies: 95187
Views: 7515233

Re: Count to a Million

33812
by the mishanator
Thu Jul 28, 2011 9:14 pm UTC
Forum: Coding
Topic: Rotating axis in 3d.
Replies: 4
Views: 1366

Re: Rotating axis in 3d.

I expect that you record a position at the start and then rotate by an angle proportional to the distance from the starting point. I figured, but how is this proportion computed? I only have x and y coordinates. If for example you drag down on the window, it will rotat the y axis down, and the z ax...
by the mishanator
Thu Jul 28, 2011 8:49 pm UTC
Forum: Coding
Topic: Rotating axis in 3d.
Replies: 4
Views: 1366

Rotating axis in 3d.

I am attempting to learn how to do stuff with OpenGL so to practice, I am writing a program that plots a function in 3d; here it is: #ifdef COMPILE_SCRIPT #!/bin/sh gcc -framework GLUT -framework OpenGL -framework Cocoa -std=c99 -Wall -pedantic -Wextra main.c -o main exit #endif #ifdef __APPLE__ #in...
by the mishanator
Wed Jul 27, 2011 4:47 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, but no one is friends with you because you break stuff frequently.

i wish for enough influence on the english language to be able to decide how words are spelled.
by the mishanator
Fri Jul 22, 2011 3:04 pm UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, but it's encrypted.

I wish the moon was habitable
by the mishanator
Thu Jul 21, 2011 8:22 pm UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, he is guilty of poisoning it.

i wish for a hammock in the shade.
by the mishanator
Wed Jul 13, 2011 3:40 am UTC
Forum: Coding
Topic: irb vs ruby script trouble
Replies: 6
Views: 1632

Re: irb vs ruby script trouble

The code you're running is erroneous, and I may be utterly mistaken but the behaviors could differ due to how the interpreters handle errors. It is an error because using the "<<" operator on a ruby string with an integer transforms the integer to a character and appends it to the string....
by the mishanator
Tue Jul 12, 2011 11:49 pm UTC
Forum: Coding
Topic: irb vs ruby script trouble
Replies: 6
Views: 1632

Re: irb vs ruby script trouble

what version of ruby are you using?
by the mishanator
Tue Jul 12, 2011 11:18 pm UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, now it is simple: you are in a coma

i wish for a tardis
by the mishanator
Tue Jul 12, 2011 11:11 pm UTC
Forum: Coding
Topic: irb vs ruby script trouble
Replies: 6
Views: 1632

irb vs ruby script trouble

This has really been frustrating me: in irb: irb(main):190:0> s = '' => "" irb(main):191:0> s << 123456789 => "\xFC\x87\x96\xBC\xB4\x95" in a script: s = '' s << 123456789 when run: test.rb:4:in `<main>': 123456789 out of char range (RangeError) What is the meaning of this/what a...
by the mishanator
Mon May 02, 2011 7:16 pm UTC
Forum: Coding
Topic: c++ closures
Replies: 15
Views: 2996

Re: c++ closures

Oh I didn't realize that you can do that. C++0x seems great, but when are people really going to be using it? I'm aware that there is probably a "release date" or whatever, but when would you say it's safe to actually start using it? I ask because for example GCC when compiling C programs ...
by the mishanator
Mon May 02, 2011 6:25 pm UTC
Forum: Coding
Topic: c++ closures
Replies: 15
Views: 2996

Re: c++ closures

Does the existence of lambda imply closures?
by the mishanator
Mon May 02, 2011 4:20 pm UTC
Forum: Coding
Topic: c++ closures
Replies: 15
Views: 2996

Re: c++ closures

Code: Select all

In function int main(int, char**):
error: expected initializer before string constant
in lambda function:
error: hello was not declared in this scope


So that looks like there aren't closures then, or is something different happening?
by the mishanator
Mon May 02, 2011 3:04 pm UTC
Forum: Coding
Topic: c++ closures
Replies: 15
Views: 2996

Re: c++ closures

Thanks for the tip. The compiler I use is GCC 4.6.
by the mishanator
Sun May 01, 2011 3:28 am UTC
Forum: Coding
Topic: c++ closures
Replies: 15
Views: 2996

Re: c++ closures

Theres also a possibility that I'm just doing it way wrong. Here's what I have: void Server::wait_connections() { boost::asio::io_service io_service; boost::asio::ip::tcp::acceptor a(io_service, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port)); for (;;) { boost::shared_ptr<boost::as...
by the mishanator
Sun May 01, 2011 12:36 am UTC
Forum: Coding
Topic: c++ closures
Replies: 15
Views: 2996

c++ closures

I'm not entirely sure if a closure is what I'm looking for here, but here's what I need. I have const variables in the scope of one method of a class, the method calls a handler in it's body which is multi-threaded. I need for the handler function to (for lack of a better term in my vocabulary) &quo...
by the mishanator
Thu Apr 28, 2011 1:50 am UTC
Forum: Science
Topic: a few questions
Replies: 2
Views: 654

Re: a few questions

It's homework that was due a few days ago =) lol
by the mishanator
Thu Apr 28, 2011 1:41 am UTC
Forum: Science
Topic: a few questions
Replies: 2
Views: 654

a few questions

A new element has been discovered with an atomic mass of 154.4. If this element forms a solid, what is its expected specific heat? how do i do this? Suppose a one-atom thick film of platinum has been created. Predict the specific heat of this nanofilm. How come this isn't just the specific heat of p...
by the mishanator
Fri Apr 15, 2011 2:05 pm UTC
Forum: Science
Topic: Simple thermodynamics question
Replies: 6
Views: 1545

Re: Simple thermodynamics question

For the record, it's usually considered nice to announce it when you're trying to get the board to do your homework for you.

It was implied >>

I've got it. Thanks guys.
by the mishanator
Fri Apr 15, 2011 6:10 am UTC
Forum: Science
Topic: Simple thermodynamics question
Replies: 6
Views: 1545

Re: Simple thermodynamics question

How is that relevant though? I don't know how much substance there is.
by the mishanator
Fri Apr 15, 2011 2:32 am UTC
Forum: Science
Topic: Simple thermodynamics question
Replies: 6
Views: 1545

Simple thermodynamics question

Imagine that we measure the pressure of the helium gas in a constant-volume gas thermometer to be 44.0 kPa at the triple point of water and 48.7 kPa when immersed in a certain liquid. What is the temperature of that liquid?

where do i start?
by the mishanator
Fri Apr 08, 2011 6:52 am UTC
Forum: Individual XKCD Comic Threads
Topic: xkcd.com/unixkcd
Replies: 292
Views: 115085

Re: unixkcd

phlip wrote:In particular, the command "curl <URL>" (which, in real life, is a command to download a file) will open up a frame with that URL.

I noticed this with wget.
by the mishanator
Fri Apr 08, 2011 5:15 am UTC
Forum: Individual XKCD Comic Threads
Topic: xkcd.com/unixkcd
Replies: 292
Views: 115085

unixkcd

when u type the command 'unixkcd' it opens a shell within the current "shell"... i wonder, is this by design?
by the mishanator
Wed Apr 06, 2011 3:12 pm UTC
Forum: Coding
Topic: for loop scope
Replies: 3
Views: 1051

Re: for loop scope

I was asking to make sure I wasn't doing that =) thanks anyway though.
by the mishanator
Wed Apr 06, 2011 7:05 am UTC
Forum: Coding
Topic: for loop scope
Replies: 3
Views: 1051

for loop scope

if i have something like this:

Code: Select all

boost::mutex _mutex;
for (int i = 0; i < 100; ++i) {
  boost::mutex::scoped_lock temp_lock(_mutex);
}


is there a lock on _mutex for as long as the for loop runs?
by the mishanator
Sun Mar 27, 2011 5:43 am UTC
Forum: Coding
Topic: stl priority_queue
Replies: 4
Views: 1754

Re: stl priority_queue

=) thank you so much, I got it working.
by the mishanator
Sun Mar 27, 2011 5:30 am UTC
Forum: Coding
Topic: stl priority_queue
Replies: 4
Views: 1754

Re: stl priority_queue

In either case, bool operator>(object &, object &) is redundant since these ordered containers are only defined on types with strict weak orderings and you can derive all comparisons using less than and logical conjunction, disjunction, and negation. I'm sorry, I don't understand. (I'm a ne...
by the mishanator
Sun Mar 27, 2011 2:16 am UTC
Forum: Coding
Topic: stl priority_queue
Replies: 4
Views: 1754

stl priority_queue

i have something like this: #include <iostream> #include <queue> class object { public: object(int thing1): thing1(thing1) {} int get() {return thing1;} friend bool operator<(object &first, object &second) { return first.thing1 < second.thing1; } friend bool operator>(object &first, obje...
by the mishanator
Sun Feb 20, 2011 1:22 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, but i steal them from you.

i wish for gigabit wifi
by the mishanator
Sat Feb 19, 2011 9:58 pm UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, it's better, but not by enough to be noticeable.

i wish for another monitor.
by the mishanator
Sat Feb 19, 2011 7:40 am UTC
Forum: Computer Science
Topic: swapping values
Replies: 7
Views: 2079

Re: swapping values

I guess I should be more clear about my question, I see THAT it works and how it works, but why does it work? Is this just some happy coincidence or is there some rigorously proven concept behind this?
by the mishanator
Sat Feb 19, 2011 7:17 am UTC
Forum: Computer Science
Topic: swapping values
Replies: 7
Views: 2079

swapping values

Today I ran into a neat trick for swapping values. It's not necessarily efficient, but it's neat nonetheless. For example: a := 12 so in binary 1100 b := 17 in binary 10001 a = a\oplus b so (in binary) a = 11101 b = b\oplus a b is 1100 a = a\oplus b and a is 10001! I can't figure out how this works....
by the mishanator
Fri Feb 18, 2011 2:53 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, the pony sneezes a lot, and very loudly... to the point of driving you mad.

i wish for a fourth of a penny.
by the mishanator
Fri Feb 18, 2011 2:32 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, but the cheese is infested with sentient nano bots whose only goal i to make you suffer as much as possible.

i wish i understood fisiks
by the mishanator
Mon Feb 14, 2011 9:27 pm UTC
Forum: Coding
Topic: competition problem: swaps to sort
Replies: 5
Views: 2651

Re: competition problem: swaps to sort

O(n^2) is not efficient enough when u have input of 1 million and time limit of 2 minutes.

@quintopia this seems to only happen on lists of odd cardinality and that have the center term in the correct place (i havent looked at it too much so maybe that's not right)...
by the mishanator
Mon Feb 14, 2011 7:26 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, but the knife is such that any pain you cause the tuna (or any other living thing) is also inflicted on you.

i wish for an inexhaustible can of dr. pepper of regular dimensions.
by the mishanator
Mon Feb 14, 2011 7:18 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, a tuna spawns on your keyboard.

i wish for an inexhaustible barrel of dr. pepper
by the mishanator
Mon Feb 14, 2011 6:59 am UTC
Forum: Coding
Topic: competition problem: swaps to sort
Replies: 5
Views: 2651

competition problem: swaps to sort

I was in a local programming competition recently and one of the problems was basically to calculate the minimum number of swaps necessary to sort a list. Only adjacent values could be swapped. I didn't think of an efficient enough algorithm at the time but I've revisited it and I think i have one (...
by the mishanator
Mon Feb 14, 2011 6:40 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26079
Views: 2482370

Re: Corrupt-a-wish

granted, light in terms of the amount of good experiences.

i wish for potato chips

Go to advanced search