Forum: Coder's Corner Lounge
Jun 30th, 2008, 11:40 AM
|
|
Replies: 40
Views: 994
Re: Is it right to have your child baptised?
Seem fair? are you a parent? Have you done anything with regards to parenting? Do you have ANY IDEA how many things a parent has to do that may not be "fair" to the child...
Would I like my child to...
|
Forum: PHP
Jun 25th, 2008, 1:10 PM
|
|
Replies: 6
Views: 135
Re: Order by RAND()
Did you try select top(1) from tblexample order by rand()
That seems to be what I've found, although everything I've found has also said that using order by Rand() is horrific in performance terms.
|
Forum: Other Programming Languages
Jun 19th, 2008, 11:24 AM
|
|
Replies: 18
Views: 564
Re: D Programing Language-To replace C/C++?
I guess my point was that people have been saying that Cobol is dead for years, each new language that comes out is going to "replace Cobol" heck most of the people I work with were told 20 years ago...
|
Forum: Other Programming Languages
Jun 18th, 2008, 11:58 AM
|
|
Replies: 18
Views: 564
|
Forum: Other Scripting Languages
May 26th, 2008, 3:48 PM
|
|
Replies: 1
Views: 162
Re: MSSQL - Help with query performance
Um, wait, you have a table, with a status column, and a date column, and you want the total of each status for each date?
If that's it (and I'm not messing this up) then it's a piece of cake
select...
|
Forum: C#
May 21st, 2008, 12:47 PM
|
|
Replies: 3
Views: 194
Re: I am a Novice in programming
How long is a piece of string?
Equally good question I think.
Seriously... depends on what you are trying to do, what are you trying to program, or what would you like/want to program.
|
Forum: Other Scripting Languages
May 21st, 2008, 12:44 PM
|
|
Replies: 1
Views: 127
Re: SQL - Getting tables in a like
Probably depends on the Database type, in DB2 you could goto the SYSIBM.SYSTABLES table (think that's what it's called) in SqlLite there is a query to find tables that are named like something... so...
|
Forum: C#
May 20th, 2008, 2:37 PM
|
|
Replies: 10
Views: 366
Re: SQL Statement Question
Why are you trying to search every column of the table for particular text/value, this sounds like the database may not be designed correctly for what you are trying to use it for.
|
Forum: Other Programming Languages
Apr 16th, 2008, 11:03 AM
|
|
Replies: 2
Views: 191
Re: DOS FTP help?
I just tried it (use it at work) and it works just fine, do you have the right case, remember that the machine you are getting files from may be case sensitive.
|
Forum: C#
Apr 15th, 2008, 1:30 PM
|
|
Replies: 5
Views: 192
|
Forum: C#
Apr 8th, 2008, 1:58 PM
|
|
Replies: 5
Views: 227
Re: The immutability of strings
Efficiency isn't critical, but I like to try to program in an efficient manner, taking 10 seconds to do something that should take less than a second (if programmed in the same language) is bad...
|
Forum: C#
Apr 8th, 2008, 1:56 PM
|
|
Replies: 5
Views: 227
Re: The immutability of strings
Thanks for the info Jimbo, very useful, I had already played some with StringBuilder for the scrabble program just because having the number of string operations that I had (for 8!) was a HUGE...
|
Forum: C#
Apr 7th, 2008, 6:41 PM
|
|
Replies: 5
Views: 227
The immutability of strings
Quick question...
Just having read through stuff recently and trying to be a little more concious of efficiency in my programs I wasn't sure about this.
I know that having the following
String...
|
Forum: C#
Apr 2nd, 2008, 11:04 AM
|
|
Replies: 4
Views: 196
|
Forum: C#
Mar 27th, 2008, 3:38 PM
|
|
Replies: 8
Views: 208
Re: Regex, or I'm thick
Ooble, thanks, for some reason I had the ^ as meaning "not", somewhere I'm sure one of the many pages I read said that. Anyway, thanks again.
|
Forum: C#
Mar 27th, 2008, 1:30 PM
|
|
Replies: 8
Views: 208
Re: Regex, or I'm thick
Well this seemed to do it
@"^\s"
But I'm utterly baffled as to why, this comes up true for a string that's just whitespace, and false for a string with characters, which seems to be utterly...
|
Forum: C#
Mar 27th, 2008, 1:06 PM
|
|
Replies: 8
Views: 208
Regex, or I'm thick
Can't for the LIFE of me figure how to do this, and it seems like it would be stupidly simple.
I want a REGEX that will tell me if a string contains anything other than whitespace.
I've tried @"\s"...
|
Forum: C++
Mar 25th, 2008, 10:52 AM
|
|
Replies: 10
Views: 399
Re: String Selection Sort
May just be me, but I have no clue what you are trying to actually achieve.
Can you post some examples of what the results should be and that may make it clearer what you are trying to do, and what...
|
Forum: PHP
Mar 24th, 2008, 5:28 PM
|
|
Replies: 7
Views: 277
Re: MySQL - Basic Combining Of Queries
Sane,
Glad that was the right query, was a bit hard trying to read between the lines of what you actually wanted, especially when you added the table_ranking into the mix which wasn't even in your...
|
Forum: PHP
Mar 23rd, 2008, 11:42 PM
|
|
Replies: 7
Views: 277
Re: MySQL - Basic Combining Of Queries
How about
Select a.name as user1, b.name as user2
from $table_user a
,$table_user b
,$table_match c
where a.user_id = c.user_id1
and b.user_id = c.user_id2
|
Forum: C++
Mar 21st, 2008, 10:36 PM
|
|
Replies: 11
Views: 685
Re: problems with CopyFileEX
No, the second method will still have exactly the same problem, because when it's a problem with dividing an integer by another (at least it is in C#) it doesn't matter what you do, the result is an...
|
Forum: C++
Mar 20th, 2008, 3:47 PM
|
|
Replies: 11
Views: 685
Re: problems with CopyFileEX
My guess (and it is a guess) is that Total and Transfer are ints (or some variant like that) and when you divide one by the other the result is an int (even if you put it into a float, it's doing...
|
Forum: Coder's Corner Lounge
Mar 19th, 2008, 7:23 PM
|
|
Replies: 27
Views: 974
Re: Do you like solving programming problems?
Rhiever,
Yes, I know it's supposed to be in C not C#, but since I can't be bothered re-learning C (I already have 80 hours of work to do a week, why add to that by trying to re-learn C and find C...
|
Forum: Coder's Corner Lounge
Mar 19th, 2008, 6:09 PM
|
|
Replies: 27
Views: 974
Re: Do you like solving programming problems?
Out of interest, are you going to publish the winning solution(s) or even any of the solutions, I've done some work on this and have a C# program that's doing it quite nicely, but nothing like the...
|
Forum: C#
Mar 18th, 2008, 1:43 PM
|
|
Replies: 1
Views: 115
Re: Recursion with int arrays
See and I answered my own question.
Changing the line from data.Add(v) to data.Add(v.Clone()) resolved the issue, as the return isn't v, it's a clone of v, as such and future changes to v don't...
|
Forum: C#
Mar 18th, 2008, 1:29 PM
|
|
Replies: 1
Views: 115
Recursion with int arrays
So I was playing around with the scrabble problem that was posted, but playing in C# and ran into a quandry, that I'm not 100% sure how to get out of
I have a recursion routine to figure out all the...
|
Forum: C#
Mar 13th, 2008, 4:40 PM
|
|
Replies: 8
Views: 262
Re: Help loading images into Bitmap Array
I'd guess it's as easy as your statement
Bitmap[] image = new Bitmap[5];
You're only allowing for 5 things, yet you're adding 6, therefore the last one is going to bomb out (think that's it from...
|
Forum: Coder's Corner Lounge
Mar 13th, 2008, 11:13 AM
|
|
Replies: 27
Views: 974
Re: Do you like solving programming problems?
Does seem like it could be interesting, but limiting the language down severely limits the number of responses (IMHO). I've not played with C in almost 15 years and trying to start again for this...
|
Forum: Software Design and Algorithms
Mar 6th, 2008, 10:24 AM
|
|
Replies: 1
Views: 139
Re: Help with countinig principle
Any good links to websites explaining the counting principle? Because I'm not sure I understand it from your explination. Is it simply that you can match ever item in a cell, with every item in every...
|
Forum: Community Introductions
Feb 28th, 2008, 3:14 PM
|
|
Replies: 5
Views: 217
|
Forum: Coder's Corner Lounge
Feb 25th, 2008, 7:40 PM
|
|
Replies: 45
Views: 1,351
|
Forum: Coder's Corner Lounge
Feb 25th, 2008, 12:48 AM
|
|
Replies: 45
Views: 1,351
Re: What music do you listen to when programming?
If I really need to think about a problem, nothing.
Otherwise, a number of things, mostly either techno or goth. I often use Pandora (www.pandora.com) to listen to various things because you can...
|
Forum: Coder's Corner Lounge
Feb 22nd, 2008, 11:38 PM
|
|
Replies: 38
Views: 1,105
Re: Mac Descrimination
Not being pissy, but you need to learn to read.
I never said that Macs were less competent at business related work, I said and I quote "In the business world, Mac's aren't exactly used much, unless...
|
Forum: Coder's Corner Lounge
Feb 20th, 2008, 3:04 PM
|
|
Replies: 38
Views: 1,105
Re: Mac Descrimination
In the business world, Mac's aren't exactly used much, unless you work in Advertising.
However, it sounds um, interesting. Be prepared for many companies not letting you use your own laptop for work...
|
Forum: C#
Feb 18th, 2008, 10:17 AM
|
|
Replies: 5
Views: 252
Re: Saving Text Files
Without giving you the entire answer, and you said it only saves one file, so I assume (you know what they say about assumptions) what you really want to do is see what the "last" file out there is,...
|
Forum: C#
Feb 18th, 2008, 12:51 AM
|
|
Replies: 5
Views: 252
Re: Saving Text Files
I think I see what your asking (I assume it saves multiple files and you want to increment?, either that or you want to increment each time they save).
Either way nominally you can do it just by...
|
Forum: Community Introductions
Feb 9th, 2008, 11:53 PM
|
|
Replies: 10
Views: 358
Re: Programming *GASP*
This brings up so many questions I don't even know where to begin.
Why are you trying to learn programming, what do you hope to get out of it, define wasting your time, in relation to doing what?
|
Forum: C
Feb 6th, 2008, 11:22 AM
|
|
Replies: 20
Views: 742
Re: Can someone get me started on this program?
Yes, but overall it's really best to assign a starting value yourself anyway, that way you can be sure it really did get initialized.
The number of problems I've seen with either poor initialization...
|
Forum: Coder's Corner Lounge
Feb 6th, 2008, 11:17 AM
|
|
Replies: 49
Views: 1,521
Re: when did you start programming?
Without reference to the age of people responding it's impossible to derive anything from it.
Myself, at least, it was either program in basic, or don't program, C didn't exist, IBM PC's were far...
|
Forum: Community Introductions
Feb 4th, 2008, 3:18 PM
|
|
Replies: 15
Views: 406
Re: 14 years! Start programming?
ZX Spectrum... that's the way to go!
No kidding, any type of basic with normal structure is fine, as for when to start, I started writing programs when i was 7, still doing so 24 years later.
|