Search found 150 matches

by iw
Wed Feb 18, 2009 7:13 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0545: "Neutrality Schmeutrality"
Replies: 137
Views: 50327

Re: "Neutrality Schmeutrality" discussion

Obviously BHG would find a way arround this and still thats not the point. The discusion is if it's posible to force wikipedia to be unbiased and those articles wouldn't. On the other hand this is probably a skeme from BHG where he will tell them both that they have won, lure them into a cell and h...
by iw
Wed Feb 18, 2009 4:55 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0545: "Neutrality Schmeutrality"
Replies: 137
Views: 50327

Re: "Neutrality Schmeutrality" discussion

Everyone, the answer to this is quite simple: Make two, three, or several Wikipedia pages about it at the exact same time and force at least one to be even and one to be odd. That way, if he chooses one to be "the" Wikipedia page about the event, the bias is his.
by iw
Sun Aug 12, 2007 8:53 am UTC
Forum: Coding
Topic: PHP--Permissions, what is good, and what is not!?
Replies: 2
Views: 1624

Re: PHP--Permissions, what is good, and what is not!?

If it's temporary storage, you don't upload it. You can simply create it in the PHP script and chmod it to whatever you like. Your friend was probably trying to protect you from changing the permissions to make sure you didn't screw anything up ;)
by iw
Thu Aug 09, 2007 2:26 pm UTC
Forum: Coding
Topic: Ideas on improving security for my program?
Replies: 22
Views: 3505

It's a bit confusing what you are trying to do, but it sounds like you are trying to make a program where the only barrier in running is an online check that a password is okay. If that's it, then you have a DRM/TC-equivalent problem. I'm not clear on what you're doing, but if it's software that req...
by iw
Wed Aug 08, 2007 5:01 pm UTC
Forum: Computer Science
Topic: New to programming
Replies: 56
Views: 10802

I have a friend who once said that he doesn't understand why people think pointers are so hard to get. "You don't get your house confused with your address." I remember when I started learning C, and the confusion came out of stuff like: int *p vs *p = 4, when to use &x vs. x, and poi...
by iw
Wed Aug 08, 2007 4:53 pm UTC
Forum: Computer Science
Topic: New to programming
Replies: 56
Views: 10802

djn wrote:Gods, that's evil. How/when/why? And how does that work with the arguments-in-registers style of function calls?
(I can see it work if you do BSD style arguments-on-stack, but ...)
Same way it works for functions with like a zillion arguments, I would assume.
by iw
Tue Aug 07, 2007 1:53 pm UTC
Forum: Coding
Topic: Can anyone recommend a Python compiler/IDE?
Replies: 33
Views: 5336

As for the other thing. I'm sorry but you cannot turn Python code into something you can execute (well, technically there are some programs that try to do that, but they have limited functionality and in my opinion they're useless). Python is a scripting dynamic language. Python source cannot be tu...
by iw
Tue Aug 07, 2007 1:48 pm UTC
Forum: Coding
Topic: Random Linux stuffs, comparisons to Windows, and other ...
Replies: 26
Views: 4570

I get around limitations of the bash globbing system by using find and xargs. xargs basically runs a command on every file passed to it. So your example could work like this: find . -name "*.c" | xargs grep foo find, by default, lists every file in the current directory recursively, so you...
by iw
Sat Aug 04, 2007 2:42 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 555936

Actually, uploading them as binary caused some of my programs not to work earlier on. The professor said something to the effect that the problem was that in my Windows development environment, newline characters were used and this didn't agree with the linux environment, which needs carraige retur...
by iw
Fri Aug 03, 2007 6:07 am UTC
Forum: Coding
Topic: MFC or Win32?
Replies: 2
Views: 1519

I always recommend the SDL library to anyone who writes a game: it's multi-language, cross-platform, and, well, good.
by iw
Thu Aug 02, 2007 12:16 pm UTC
Forum: The Help Desk
Topic: Cleaning/Fixing Discs
Replies: 3
Views: 1825

Re: Cleaning/Fixing Discs

A non-homemade solution only costs like $20-30; check out Data Doctor or Spin Doctor by Digital Innovations. The way they work is by basically "resurfacing the CD": scratching off a thin layer of it while it is wet, then buffing it with a felt cloth so CD players can read it. Invest in one...
by iw
Thu Aug 02, 2007 12:11 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 555936

My professor looked at my code for over half an hour and couldn't figure out why it wasn't working (permissions are set correctly, and I uploaded the file as ascii text, not binary data, and those are the 2 most common problems students have in this class.) First off, this is backwards: if you ftp ...
by iw
Thu Aug 02, 2007 5:47 am UTC
Forum: Coding
Topic: Threading in C++
Replies: 33
Views: 6606

Okay, here's what my friend is thinking about threading. To me it mostly seems like a really, really bad idea, since I prefer MySQL databases when I have them. (Hmm, a giant array, even if was a dictionary, seems very silly.) Actually, if you were going to go that way, using MySQL would be quite si...
by iw
Wed Aug 01, 2007 8:05 pm UTC
Forum: Coding
Topic: Threading in C++
Replies: 33
Views: 6606

Check out the amazing SDL library : it gives you event loops, threading, image utilities, ways to interface with OpenGL (and I think DirectX), and as a bonus, your program will be easier to port to other operating systems. It's a C library, but it works with C++ natively and there are bindings for P...
by iw
Tue Jul 31, 2007 5:15 am UTC
Forum: Computer Science
Topic: New to programming
Replies: 56
Views: 10802

Shmifty wrote:Where is a good resource for Python programming?

Python Essential Reference is basically the K&R (i.e., a concise, useful, well-written reference) of Python.
by iw
Tue Jul 31, 2007 5:07 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0292: "Goto"
Replies: 157
Views: 44184

K&R on goto: C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to code without it. We have not used goto in this book. Nevertheless, there are a few situations where gotos may find a place. ...
by iw
Thu Jul 19, 2007 3:47 pm UTC
Forum: Coding
Topic: ICFP 2007! Who's playing?
Replies: 6
Views: 3252

Bump because the contest begins tomorrow at 6am EDT (12 noon CEST)!
by iw
Thu Jul 19, 2007 5:37 am UTC
Forum: Computer Science
Topic: Teach me
Replies: 43
Views: 15877

As far as Javascript and Ruby goes, I asked around the office (and beyond), and it looks like you guys are in the majority. Apparently everyone has been secretly in love with these languages for a while now. I find it strange that so many people could be so wrong..... Generally, the view of those p...
by iw
Wed Jul 18, 2007 7:34 am UTC
Forum: Computer Science
Topic: Teach me
Replies: 43
Views: 15877

That's essentially my point. My secondary point is that the top-down (dynamic -> static) approach teaches more of the abstract, scientific aspects of code first, which is probably more suited to a mathematician wishing to get into the world of CS. Which is exactly why I suggested it, because it sou...
by iw
Wed Jul 18, 2007 7:07 am UTC
Forum: Coding
Topic: My project...criticism? ideas? ect..
Replies: 9
Views: 2834

jinksys wrote:Looks like a simple content management system.
Very much like this one.

These are pretty huge in the business world. My last job was about 75% comprised of making these.
by iw
Wed Jul 11, 2007 1:01 pm UTC
Forum: Coding
Topic: Repeated newlines with regular expressions
Replies: 12
Views: 3970

Torn Apart By Dingos wrote:e text editor. Not free, but free to use as long as it's in beta (even after your 30 day trial expires).

Notepad++ is free, and has a lot of really neat features (like regexp search and replace) and works well with Windows (unlike Emacs).
by iw
Wed Jul 11, 2007 12:49 pm UTC
Forum: Coding
Topic: IDE Suggestions?
Replies: 33
Views: 6135

necroforest wrote:
iw wrote:emacs


%g++ -x c++ -
...
% ./a.out

You're right, bash is a close second.
by iw
Sat Jun 30, 2007 12:35 pm UTC
Forum: Computer Science
Topic: Stegosaurus Stegonography
Replies: 15
Views: 6029

Hint:
http://steghide.sourceforge.net/
by iw
Wed Jun 27, 2007 7:07 am UTC
Forum: Mathematics
Topic: What do you make of this guy?
Replies: 14
Views: 3685

Apparently the guy has a book or two (self-published under "Rcs Associates"), a patent on a "gravitational mass detector", a publication in IEEE, and a bunch of rants on patent reform and law. Looks like another independent inventor with a lot of ego.
by iw
Wed Jun 27, 2007 6:52 am UTC
Forum: Computer Science
Topic: Rules - Updated Nov 08, 2007
Replies: 8
Views: 34086

Re: Rules

gmalivuk wrote:Maybe also add something like "this is not tech support"?
Maybe changing the title to "Theoretical Computer Science" or something would help? "Math (related to computers)" would certainly do the trick...
by iw
Wed Jun 27, 2007 12:05 am UTC
Forum: Coding
Topic: Yay first app!
Replies: 16
Views: 4081

Also maybe you can set up a test database and test user so we can try it out ourselves :)
by iw
Wed Jun 27, 2007 12:04 am UTC
Forum: Coding
Topic: Any experience with working on larger projects?
Replies: 29
Views: 5338

Re: Any experience with working on larger projects?

And the Gang of Four book really helps get you thinking at a higher level. Be sure to get the right message out of this book, though. The Design Patterns book shouldn't be seen as an Aristotle-like categorization of all possible Patterns. The idea you should come away with is that using design patt...
by iw
Tue Jun 26, 2007 11:37 am UTC
Forum: Coding
Topic: Choosing a language
Replies: 92
Views: 14490

Second, let's say you've learned how to do all of your assignments in C, and now you are given a C++ compiler. You are told you need to learn C++. And you are given an assignment--you need to read in your name, and a series of integers, etc. Now write the program. What will you do? Simple--you'll w...
by iw
Tue Jun 26, 2007 4:51 am UTC
Forum: Coding
Topic: Any experience with working on larger projects?
Replies: 29
Views: 5338

EvanED wrote:
warhorse wrote:There should be a minumum number of functions, so aggregate when you can (instead of get_x() and get_y(), have get() and pass in flags to indicate what you want).


I disagree here.


Above all: be consistent in what you do.
by iw
Tue Jun 26, 2007 4:48 am UTC
Forum: Coding
Topic: Game idea but possibly way to large
Replies: 15
Views: 3818

Sounds like a great idea. I second the SDL suggestion, too. Be prepared to work on it for at least six months. More like a year, I'd say. As for the legal bit, if you really want to make it in the Snow Crash world, it depends on if you want to sell this or not. If you do want to sell it, get a lawye...
by iw
Sun Jun 24, 2007 12:25 pm UTC
Forum: Coding
Topic: Assembly... BUH BUM BAAHH
Replies: 90
Views: 23455

adlaiff6 wrote:5b. You are trying to exploit something. >_> <_<
How else can I get Total Disclosure street cred??
by iw
Sun Jun 24, 2007 12:22 pm UTC
Forum: Coding
Topic: Choosing a language
Replies: 92
Views: 14490

C is most certainly a "real" language, as is Python and Ruby and C++ and C# and Java and yes, even PHP. I think the important thing is to try out as many languages as possible so you understand what the best tools for the situation are. A lot of it also depends on what you feel the most co...
by iw
Fri Jun 22, 2007 3:57 am UTC
Forum: Language/Linguistics
Topic: Confusing Slang
Replies: 212
Views: 38716

ArchangelShrike wrote:What does oath mean in Aussie slang, by the way?

"Swearing" is short for "swearing an oath". Are Aussies confused by the (hickish) American "cuss"?
by iw
Thu Jun 21, 2007 10:33 am UTC
Forum: Coding
Topic: Assembly... BUH BUM BAAHH
Replies: 90
Views: 23455

It's also useful for figuring out if a certain buffer overflow is exploitable, too.
by iw
Wed Jun 20, 2007 4:26 am UTC
Forum: Coding
Topic: Assembly... BUH BUM BAAHH
Replies: 90
Views: 23455

Not practical? Certainly not, as long as you never touch a microcontroller or embedded system in your life, or try to write firmware drivers, or try to speed up your speed-critical C, or want to really really understand what you're doing, or.... Basically, here's I think what it comes down to. If y...
by iw
Wed Jun 20, 2007 4:18 am UTC
Forum: Coding
Topic: Choosing a language
Replies: 92
Views: 14490

I would say start with C simply because learning C after you learn something like Python might just piss you off (for loops? WTF?), and you should learn C before C++ because learning pointers is hard enough, let alone stuff like templates than can get pretty hairy. So a good order I think is: 1. C 2...
by iw
Tue Jun 19, 2007 1:44 am UTC
Forum: Mathematics
Topic: log and ln
Replies: 48
Views: 9709

Re: log and ln

mister k wrote:... so I have had countless answers wrong because of pressing log instead of ln.

Just make all your log calculations by calculating log x = log x / log base

Then you'll always be right no matter what standard your calculator is using ;)
by iw
Sat Jun 16, 2007 2:41 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0277: "Long Light"
Replies: 119
Views: 31444

nicooo wrote:I remember reading about a city using bus schedules to change the lights on roads where the busses are running late. Apparently this helps traffic flow more easily. Now I can't seem to find the article anywhere.

It sure as hell ain't Chicago.
by iw
Sat Jun 16, 2007 2:39 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0277: "Long Light"
Replies: 119
Views: 31444

Great. I'll be living in Valpo before too long. Thanks for giving me something to look forward to. Wow, I didn't expect people from Valpo to actually be on here! Why are you moving there? (btw the intersection is now fixed; they made the south->north lanes 3 wide, so there's a left, straight, and r...
by iw
Fri Jun 15, 2007 6:20 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0277: "Long Light"
Replies: 119
Views: 31444

I don't think I've ever complained about light length. I have complained about traffic flow, though. For example, in Chicago there's this off ramp that leads towards the suburbs (I-290 I think off 90-94) and the off ramp is this very narrow, huge curve. The off ramp routinely fills up with traffic -...

Go to advanced search