Search found 106 matches

by Karrion
Wed Jan 16, 2008 1:37 am UTC
Forum: Movies and TV Shows
Topic: The Sarah Connor Chronicles (Now with spoilers!)
Replies: 341
Views: 38787

Re: The Sarah Connor Chronicles (Now with spoilers!)

Note to the producers of Terminator: The Sarah Connor Chroniscles: less talking, more Summer Glau beating people (or terminators) up . That is all. The first episode was good, the second not so much. But then second episodes are often weak, since you generally have less time and money available than...
by Karrion
Wed Jan 09, 2008 3:11 am UTC
Forum: Coding
Topic: AVI- Writing an video analyzer - Help
Replies: 12
Views: 2500

Re: AVI- Writing an video analyzer - Help

Well AVI is a container format, so to some extent it depends on the codec of the video stream contained within the AVI. One (probably good) option might be to use libavformat/libavcodec from ffmpeg , like this . Then you'd look at the brightness of the pixels in each frame to find the dots. There ar...
by Karrion
Tue Dec 11, 2007 3:04 am UTC
Forum: Coding
Topic: Java help
Replies: 2
Views: 1035

Re: Java help

My first guess would be the call to Scanner.next() on the second line of processLine() - if there are no tokens in the line, that will throw a NoSuchElementException. Throw a check on Scanner.hasNext() in before that line abd see if that helps.
by Karrion
Fri Dec 07, 2007 5:45 am UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19487

Re: Filesharing: Inalienable right or punishable by death?

[some people] say that people who copy a song would not have bought the song if they were unable to get it for free. Why do you believe that to be the case? They might not buy every song they copy for free, but why do you believe they would not buy any of them? And can you say this applies to all f...
by Karrion
Wed Dec 05, 2007 11:50 pm UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19487

Re: Filesharing: Inalienable right or punishable by death?

(IANAL, the following is my understanding but I could be wrong) That depends on your jurisdiction. Here in Australia there are no fair use exceptions. It's technically illegal to copy anything even within your home; even recording broadcast TV on your VCR is illegal. So everyone just ignores it and ...
by Karrion
Tue Dec 04, 2007 11:42 pm UTC
Forum: Religious Wars
Topic: Underscores vs CamelCase
Replies: 108
Views: 94152

Re: Underscores vs CamelCase

Webzter wrote:I'm debating switching to leading underscores for fields, even though I think they look ugly, because it disambiguates the following for some people


That's what this. is for.
by Karrion
Tue Dec 04, 2007 1:18 pm UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19487

Re: Filesharing: Inalienable right or punishable by death?

personal, noncommercial copyright infringement This whole concept is the invention of mafiaa lawyers. There's nothing illegal about personal copying inside your own home, and absolutely nothing anyone can do about it. That depends on your jurisdiction. Here in Australia there are no fair use except...
by Karrion
Tue Dec 04, 2007 5:33 am UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19487

Re: Filesharing: Inalienable right or punishable by death?

No more reprehensible than using a public library. Only if you delete in within fairly short order. Why? I can borrow from the library over and over again. Yeah but while you have it, the library can't also lend it to other people without paying for more copies. I'd say personal, noncommercial copy...
by Karrion
Wed Nov 28, 2007 1:36 am UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19487

Re: Filesharing: Inalienable right or punishable by death?

Have you or anyone you know started liking a band because they had a specific label, or because you heard/saw a commercial for the band? Not that I recall, but I have started liking bands because I've heard them on the radio. Guess who controls what gets airtime? (Hint: it's not the listeners) But ...
by Karrion
Mon Nov 26, 2007 11:19 pm UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19487

Re: Filesharing: Inalienable right or punishable by death?

Artists absolutely deserve to be paid for their work. The vast majority of artists aer underpaid for what they do; there's only a small fraction who are vastly overpaid for it. The megacorp recording label executives, on the other hand, can fuck right off. It's called the free rider problem. If musi...
by Karrion
Mon Nov 26, 2007 5:24 am UTC
Forum: Coding
Topic: Robocode Java Compiler issues
Replies: 13
Views: 2371

Re: Robocode Java Compiler issues

Rysto wrote:First, you should never have a semi-colon directly after a brace in Java.


That's not entirely true... array initialisers and anonymous class instantiation can both involve a semicolon directly after a brace.
by Karrion
Thu Nov 22, 2007 2:22 am UTC
Forum: Religious Wars
Topic: The 1 true style
Replies: 198
Views: 165662

Re: The 1 true style

teenager messing around with too much spare time Please, for the love of all that is sacred, keep coding like this . If you actually code like this, you're way ahead of most high school coders, plenty of college coders, and some professionals. I am not necessarily advocating (or advocating against)...
by Karrion
Tue Nov 20, 2007 8:27 am UTC
Forum: Religious Wars
Topic: RMS: Madman or genius
Replies: 34
Views: 23546

Re: RMS: Madman or genius

Aristotle wrote:No great genius has ever existed without some touch of madness.
by Karrion
Mon Nov 19, 2007 6:57 am UTC
Forum: Religious Wars
Topic: Open vs. Closed Source
Replies: 41
Views: 14263

Re: Open vs. Closed Source

what is a scientific or mathematical program? Does Wolfram need to open source Mathematica? What about a closed-source version of BC? What about the Windows calculator? We had to write an n-body simulation for a class assignment a while ago, does that have to be open source? Games include physics e...
by Karrion
Mon Nov 19, 2007 2:52 am UTC
Forum: Religious Wars
Topic: Open vs. Closed Source
Replies: 41
Views: 14263

Re: Open vs. Closed Source

Generally, encourage open source but not require it. However there are some cases where use of open source should be mandatory; primarily when you're talking about goverments rather than corporations. For example: ⋅ Software developed by government departments should be open source; the ta...
by Karrion
Thu Nov 15, 2007 12:50 pm UTC
Forum: Religious Wars
Topic: File Systems' Case Sensitivity
Replies: 63
Views: 11758

Re: File Systems' Case Sensitivity

I actually kind of like the idea of the shell providing some level of help with case insensitivity. Things like an easy case-insensitive option for globs, but particularly for tab completion. Always look for a file in the case the user types first, and if that isn't found start checking for other ca...
by Karrion
Thu Nov 15, 2007 6:42 am UTC
Forum: Religious Wars
Topic: Operating Systems
Replies: 666
Views: 82211

Re: Operating Systems

Korandder wrote:Windows - Games only. And only because very few good games are released natively for Macs and Linux. Games aside a terrible operating system.


Fixed.
by Karrion
Thu Nov 15, 2007 6:35 am UTC
Forum: Religious Wars
Topic: Client Side Scripting
Replies: 18
Views: 5207

Re: Client Side Scripting

Flaws in your browser's security sandbox are not a reason to blame the concept of client side scripting.
by Karrion
Tue Nov 13, 2007 2:12 am UTC
Forum: Computer Science
Topic: ssh over http?
Replies: 9
Views: 5283

Re: ssh over http?

For example, the bytes going over an ssh channel will probably be very high entropy, lots of non-printable characters, etc. The router can easily detect with high probability after seeing a few bytes of the stream that it's not an unencrypted http session. To handle B), the protocol would encode th...
by Karrion
Thu Nov 01, 2007 2:01 am UTC
Forum: The Help Desk
Topic: I've Lost My GRUB
Replies: 4
Views: 1517

Re: I've Lost My GRUB

Download a linux liveCD/rescue disk type thing and boot from it. You should then be able to mount your mandrake partition (which contains the grub.conf file) and run the grub command to re-install the master boot record (google for details)...
by Karrion
Wed Oct 31, 2007 2:09 am UTC
Forum: Coding
Topic: C++ global variables
Replies: 15
Views: 3957

Re: C++ global variables

But... if you have a global variable, why does it have to point to another variable, static or otherwise? Can't you just put the value in the global? Perhaps I don't understand what you're trying to do.
by Karrion
Mon Oct 29, 2007 12:44 am UTC
Forum: The Help Desk
Topic: It's decided; I'm making the switch. Next order of business:
Replies: 21
Views: 2458

Re: It's decided; I'm making the switch. Next order of business:

der_bAUer wrote:I don't know how well Linux supports NTFS (last I checked, NTFS write support was still experimental, but this might have changed already).


The ntfs-3g driver is now considered stable, and I haven't seen any problems with it... yet ;-)
by Karrion
Mon Oct 29, 2007 12:34 am UTC
Forum: Hardware
Topic: PCI vs PCIe some help please?
Replies: 7
Views: 7078

Re: PCI vs PCIe some help please?

Schmendreck wrote:I can see that there are 3 PCI slots but whats the brown slot right next to them?


AGP

Edit: dammit, beaten :-(
by Karrion
Sun Oct 21, 2007 11:58 pm UTC
Forum: Coding
Topic: Burden of Java Libraries
Replies: 12
Views: 2322

Re: Burden of Java Libraries

Using a wildcard import could theoretically have a tiny compile speed penalty due to the compiler having to search all the class names in that package, but it's almost certainly negligible in any real world situation. At runtime, the compiler has already done all the work and it won't make any diffe...
by Karrion
Thu Oct 18, 2007 6:18 am UTC
Forum: Coding
Topic: Getting CVS to e-mail alerts on updates?
Replies: 4
Views: 1331

Re: Getting CVS to e-mail alerts on updates?

I'm pretty sure cvs will use the local mail program (local to the repository machine, that is). So it will use whatever of sendmail/qmail/etc that's installed on the box, see your system config for details.
by Karrion
Thu Oct 18, 2007 3:03 am UTC
Forum: Coding
Topic: Java help with references (I think).
Replies: 10
Views: 2238

Re: Java help with references (I think).

there is no such thing as "passing by reference" at all, anywhere. At the lowest level, all processes must communicate by writing bits in some medium. Every procedure call must eventually write something somewhere, so that everything, according to that logic, is "passing by value.&qu...
by Karrion
Tue Oct 16, 2007 4:48 am UTC
Forum: Coding
Topic: PL/SQL question
Replies: 4
Views: 2195

Re: PL/SQL question

I haven't done much PL/SQL, but what's wrong with the humble if-then-else?

Alternatively (and perhaps more cleanly, depending) you might be able to use an outer join to ensure you always get at least one row.
by Karrion
Fri Oct 12, 2007 1:01 pm UTC
Forum: Movies and TV Shows
Topic: Sweeny Todd trailer
Replies: 40
Views: 4703

Re: Sweeny Todd trailer

Belial wrote:Planet. of. the. Gorram. Apes.


I put that one down to a case of temporary sanity.
by Karrion
Thu Oct 04, 2007 11:12 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1962
Views: 564057

Re: The "IT DOESN'T WORK!" thread

I assume it has something to do with it being a floting point number, but could someone tell me what the problem is? Floating point numbers don't have infinite precision - they have to be stored in a limited number of bits, after all. So not every number can actually be represented by a float. This...
by Karrion
Tue Sep 18, 2007 3:29 am UTC
Forum: Coding
Topic: Is this possible with PHP, a random signature?
Replies: 10
Views: 3716

You'll also need to make sure your php code sets the Content-Type header to the correct MIME type for the image file. Basically you want to: ⋅  Determine the available files and select one at random ⋅  Set the Content-Type and Content-Length headers based on the selected file &sd...
by Karrion
Thu Sep 13, 2007 3:09 am UTC
Forum: The Help Desk
Topic: [SOLVED] Putty and tunneling
Replies: 5
Views: 2039

You want to add a Local Tunnel. For example, if you want to be able to use MSN, set up a local tunnel for source port 1863 to your msn server (mine is messenger.hotmail.com:1863), then point your IM client at localhost:1863
by Karrion
Tue Aug 28, 2007 3:34 am UTC
Forum: Coding
Topic: Counting Rows in SQL
Replies: 2
Views: 1702

I'm not familiar with MSSQL dialect, but can you do something like: SELECT COUNT(*) FROM FSDB85..OCRD WHERE CardType = 'c' AND CardCode NOT IN (SELECT OCRD.CardCode from FSDB85..CRD1 WHERE CRD1.CardCode=OCRD.CardCode AND AdresType='S' )
by Karrion
Thu Aug 23, 2007 7:47 am UTC
Forum: Books
Topic: Favourite book vendors
Replies: 18
Views: 5153

by Karrion
Wed Aug 22, 2007 7:18 am UTC
Forum: Coding
Topic: PHP sessions
Replies: 5
Views: 2077

it works, but then is there a way to display all of the urls of that session? Use array_keys() to get all of the stored URLs, since we are storing the URLs as keys of an associative array. (for bonus marks: what are some the advantages of storing the URLs this way, rather than as the array values? ...
by Karrion
Wed Aug 22, 2007 5:14 am UTC
Forum: Movies and TV Shows
Topic: Numb3rs
Replies: 21
Views: 5086

Vaniver wrote:And, somehow, all of this data is already in a computer system I have access to; I don't have to deal with the data entry of reams of data.


He is a university professor... what do you think grad students are for? ;-)
by Karrion
Wed Aug 22, 2007 5:05 am UTC
Forum: Coding
Topic: Java Servlet Redirect
Replies: 10
Views: 12808

I'm pretty sure you can't do that, at least not directly. When you send a redirect, the browser will resend the original POST variables to the new URL, so putting variables in the URL is really the simplest way. Otherwise you could write out a regular response with a form full of hidden variables (a...
by Karrion
Wed Aug 22, 2007 5:00 am UTC
Forum: Coding
Topic: PHP sessions
Replies: 5
Views: 2077

Untested, but you probably want something like:

Code: Select all

<?php
session_start();
$_SESSION['urls_visited'][$_SERVER['SCRIPT_NAME']] = 1;
/* ... */
?>
by Karrion
Tue Aug 21, 2007 1:13 am UTC
Forum: Coding
Topic: need a hand (java compilation)
Replies: 6
Views: 2024

Also be careful not to call any methods/classes that didn't exist in the target version of the standard API. I have a feeling -target won't make the compiler catch them as errors, so you'd end up with an exception at runtime.
by Karrion
Thu Aug 16, 2007 10:56 pm UTC
Forum: Computer Science
Topic: Efficiency vs. Clarity of code (discussion)
Replies: 60
Views: 11942

Tony Hoare? I thought it was Donald Knuth. Knuth popularised it, but Hoare originally said it. My opinion: 1) choose an efficient algorithm 2) implement it clearly 3) when faced with the rare incombatibility between 1) and 2), ensure the implementation is logically separated from other code (its ow...
by Karrion
Wed Aug 15, 2007 5:33 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0303: "Compiling"
Replies: 136
Views: 43837

I spend a lot of time compiling.

Actually that's not true. I spend a few seconds compiling, immediately followed by several minutes waiting for the web application container to reload.

Go to advanced search