Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 194
Search took 0.02 seconds.
Search: Posts Made By: ZenMasterJG
Forum: PHP Jul 2nd, 2008, 10:48 PM
Replies: 6
Views: 85
Posted By ZenMasterJG
Re: easy way to find the line number

There are a variety of free editors out there, and (arguably) every single one of them is better than notepad. Here are just a few I've used over the years, in no particular order:
Notepad++...
Forum: Coder's Corner Lounge Jun 26th, 2008, 11:58 PM
Replies: 7
Views: 127
Posted By ZenMasterJG
Re: Ubuntu 8.04 Questions.

Well, like the error says, at some point you probably interrupted an update. The message also helpfully tells you how to fix it, by running dpkg --configure -a. Do that, then try again.
Forum: Visual Basic .NET Jun 19th, 2008, 7:00 PM
Replies: 3
Views: 147
Posted By ZenMasterJG
Re: Packaging with a database

This is pretty much exactly what SQLite is designed for (http://www.sqlite.org/)
Forum: Other Programming Languages Jan 18th, 2008, 7:34 PM
Replies: 8
Views: 331
Posted By ZenMasterJG
Re: Detect number of monitors

Operating system? Programming language? Any details at all?
Forum: PHP Jan 17th, 2008, 11:07 AM
Replies: 5
Views: 222
Posted By ZenMasterJG
Re: Alter many files, all with same variable in them

If you're on *nix and you want to replace EVERY INSTANCE of user_id with id in EVERY FILE IN A DIRECTORY, do the following:
1) cd to the directory you want to do the global replace in.
2) execute...
Forum: PHP Jan 14th, 2008, 1:32 AM
Replies: 3
Views: 210
Posted By ZenMasterJG
Re: i am abeginner in php programming&need partener

kruptof: I'm physics! I'm the Doppler effect! :D
Forum: Coder's Corner Lounge Jan 1st, 2008, 10:09 PM
Replies: 28
Views: 608
Posted By ZenMasterJG
Re: How Geek Are You?

85%
I demand a recount, I'm not that geeky. I even saw the sun today!
Forum: HTML / XHTML / CSS Dec 22nd, 2007, 8:55 PM
Replies: 1
Views: 227
Posted By ZenMasterJG
Re: Firebug open Source download?

www.getfirebug.com
http://code.google.com/p/fbug/
Forum: Python Dec 5th, 2007, 10:20 AM
Replies: 6
Views: 452
Posted By ZenMasterJG
Re: Object-Oriented Habits

For now its mostly just style, though old-style classes will be gone in 3.0.
New style-classes are mostly useful for the descriptor protocol and some meta-class goodness, neither of which you need...
Forum: Python Dec 4th, 2007, 6:27 PM
Replies: 6
Views: 452
Posted By ZenMasterJG
Re: Object-Oriented Habits

Personally, I think it depends on the program. If the two inheriting classes would be implemented substantially differently, then definitely go with inheritance. If the differences are fairly small,...
Forum: Python Nov 27th, 2007, 4:38 AM
Replies: 2
Views: 189
Posted By ZenMasterJG
Re: Question Number 2 - printTwice

Because, presumably, you haven't defined printTwice in that script / interactive session. My guess is you're reading a bit too fast and missed something like:

def printTwice(arg):
print arg
...
Forum: Coder's Corner Lounge Nov 26th, 2007, 5:47 PM
Replies: 10
Views: 418
Posted By ZenMasterJG
Re: Think

If thats the case, its a solution to a problem that should not have existed in the first place. And if you did have to solve it, you could use a one line regex instead of some big ugly behemoth.
Forum: Coder's Corner Lounge Nov 25th, 2007, 5:03 AM
Replies: 10
Views: 418
Posted By ZenMasterJG
Re: Think

It was on The Daily WTF (http://worsethanfailure.com/Articles/Taking-a-Good-Thing-Too-Far.aspx) earlier this month. Great blog.

Edit: Oh, right, its called "Worse Than Failure" now. I liked the old...
Forum: Coder's Corner Lounge Nov 7th, 2007, 5:50 AM
Replies: 7
Views: 347
Posted By ZenMasterJG
Re: Entertaining read

Some quick googling reveals that computer in the story cost $47,000 in 1957 dollars (The equivalent of $341,819 today!)
It used 31 bit words, and the drum could store 4096 of them, for a grand total...
Forum: Perl Nov 6th, 2007, 11:30 PM
Replies: 5
Views: 626
Posted By ZenMasterJG
Re: 1 line if code blocks; easier to read

Huh... Apparently I've just revived a long, long dead thread. How in the world did I get here? I was just on the front page....

Weird.
Sorry, everybody! :icon_redface:
Forum: Perl Nov 6th, 2007, 11:26 PM
Replies: 5
Views: 626
Posted By ZenMasterJG
Re: 1 line if code blocks; easier to read

Lance: Its probably not a common pet peeve, but i *hate* those if statements, because they hide the condition. If you need to make a change to someone else's code and you're reading it quickly its...
Forum: Visual Basic Oct 29th, 2007, 8:40 PM
Replies: 1
Views: 228
Posted By ZenMasterJG
Re: How to dubug DLL?

A DLL is really just a dynamically loaded library of functions, they can't really be run alone. You'd probably have to write some code that loads the functions from the DLL and does whatever testing...
Forum: Existing Project Development Oct 29th, 2007, 8:38 PM
Replies: 1
Views: 317
Posted By ZenMasterJG
Re: Cheap TrackIr?

Well, if you're doing it yourself, I'd recommend you do it in Python. The VideoCapture module (http://videocapture.sourceforge.net/) makes capturing images from a webcam pretty darn easy (a bit slow...
Forum: Python Oct 11th, 2007, 12:38 PM
Replies: 8
Views: 1,067
Posted By ZenMasterJG
I took a quick stab at it. I'm not done, but...

I took a quick stab at it. I'm not done, but heres a strategy I was working on.
First, find the maximum value for x (by minimizing y) and then a max value for y (by minimizing x)

to find the max...
Forum: Coder's Corner Lounge Oct 3rd, 2007, 3:46 AM
Replies: 3
Views: 120
Posted By ZenMasterJG
BeOS was a fairly decent little operating system,...

BeOS was a fairly decent little operating system, but unfortunately Be's business plan was pretty much:
1) Build decent operating system.
2) Sell to Apple.
3) Profit!

The sell to apple part never...
Forum: C++ Oct 2nd, 2007, 9:09 PM
Replies: 6
Views: 312
Posted By ZenMasterJG
truBlu: I quite like the problems on...

truBlu:
I quite like the problems on projecteuler.net.
Many of them are trivial to brute-force, but writing efficient algorithms to solve some of them can be quite a challenge. Do some of them, and...
Forum: C Oct 1st, 2007, 12:10 AM
Replies: 12
Views: 430
Posted By ZenMasterJG
Sure you can. IMHO curses makes life...

Sure you can. IMHO curses makes life substantially easier, though. ;)
Forum: Assembly Sep 30th, 2007, 11:56 PM
Replies: 1
Views: 293
Posted By ZenMasterJG
EAX, EBX, ECX, EDX, EBP, ESP, ESI, and EDI are...

EAX, EBX, ECX, EDX, EBP, ESP, ESI, and EDI are all "general purpose" 32-bit registers. AX, BX, CX and DX are the lower 16 bits of EAX, EBX, etc, etc.
Just as AX is the lower 16 bits of EAX, AH is the...
Forum: Assembly Sep 30th, 2007, 11:50 PM
Replies: 17
Views: 933
Posted By ZenMasterJG
MASM is free. Its also not a compiler. If you're...

MASM is free. Its also not a compiler. If you're working on Windows, I'd go with MASM. On linux, definatly NASM, though GAS will do you just as well.
Forum: C Sep 30th, 2007, 11:44 PM
Replies: 12
Views: 430
Posted By ZenMasterJG
You could use conio.h, though thats a pretty...

You could use conio.h, though thats a pretty crufty old library.
The easiest way to do what you're talking about, though, is through something like curses, though you'll have to get over not using...
Forum: C Sep 28th, 2007, 2:33 AM
Replies: 4
Views: 197
Posted By ZenMasterJG
Thats not really a question. Maybe we can help if...

Thats not really a question. Maybe we can help if you show us the code you're working on and explaining the problems you're having.

Otherwise, how are we supposed to know whats wrong? I'm pretty...
Forum: Coder's Corner Lounge Sep 28th, 2007, 2:29 AM
Replies: 17
Views: 555
Posted By ZenMasterJG
I tend to keep major milestones on my calendar,...

I tend to keep major milestones on my calendar, with per-project TODO lists as well.

In code, I tend to throw together skeletons for stuff that needs to be done, and label it with a TODO: tag so i...
Forum: HTML / XHTML / CSS Sep 24th, 2007, 9:32 PM
Replies: 2
div
Views: 249
Posted By ZenMasterJG
In general, combining divs and tables can be...

In general, combining divs and tables can be pretty nasty. If you're using the table for layout purposes (and not to display tabular information, like tables were designed for) you should probably...
Forum: C++ Jul 25th, 2007, 4:29 PM
Replies: 4
Views: 164
Posted By ZenMasterJG
Why do you want to detect the speakers? Usually...

Why do you want to detect the speakers?
Usually its not something you'd worry about. Just play the audio and if the user wants audio (speakers attached, volume not muted.) they'll hear it.
Forum: Python Jul 11th, 2007, 2:11 AM
Replies: 12
Views: 419
Posted By ZenMasterJG
i like: print "Value\tSquare" for pair in [ (x,...

i like:

print "Value\tSquare"
for pair in [ (x, x*x for x in xrange(1, 6) ]:
print "%d\t%d"%(pair[0], [pair[1])
Forum: Project Ideas Mar 27th, 2007, 8:05 PM
Replies: 14
Views: 604
Posted By ZenMasterJG
Ooble OK, to replace iTunes, you need to: 1....

Ooble
OK, to replace iTunes, you need to:
1. make it easy to use. iTunes is in serious need of functionality, but the tiny amount of features it does have are very easy to get your head around and...
Forum: C Mar 26th, 2007, 7:39 PM
Replies: 21
Views: 586
Posted By ZenMasterJG
You can also pull true random numbers from...

You can also pull true random numbers from random.org's (http://www.random.org) via HTTP, SOAP, or CORBA, if you don't have a hardware random number generator. One of the things on my project list is...
Forum: Project Ideas Mar 26th, 2007, 7:33 PM
Replies: 14
Views: 604
Posted By ZenMasterJG
I'm actually working on a similar project right...

I'm actually working on a similar project right now, that includes an installer & configuration manager for the Rockbox open-source firmware.
Forum: Python Mar 21st, 2007, 3:41 PM
Replies: 19
Views: 717
Posted By ZenMasterJG
http://pythonide.blogspot.com/ is the main site,...

http://pythonide.blogspot.com/ is the main site, download links are on there somewhere.
Downloads are also available from Sourceforge:
http://sourceforge.net/projects/spe/


Thats one of the reasons...
Forum: Python Mar 20th, 2007, 2:29 PM
Replies: 19
Views: 717
Posted By ZenMasterJG
i've used Eclipse, IDLE, SPE, and emacs... and so...

i've used Eclipse, IDLE, SPE, and emacs... and so far my favorite is emacs. SPE is really good, though, if you're into the feature-bloated IDE thing. For minor editing, i use emacs, but the tools it...
Forum: Python Mar 19th, 2007, 7:58 AM
Replies: 21
Views: 497
Posted By ZenMasterJG
Sane: IMHO, you're optimizing prematurely. DaWei...

Sane:
IMHO, you're optimizing prematurely. DaWei is right. Find out how your algorithm does, and *then* optimize. If your RAM can't handle the number of objects your creating, trying to think of an...
Forum: Java Dec 12th, 2006, 4:53 PM
Replies: 6
Views: 157
Posted By ZenMasterJG
Ooh, I'll have to check it out later. Though,...

Ooh, I'll have to check it out later.

Though, one has to wonder when Java is going to reach critical bloat-mass, and collapse into a black hole.
Forum: Software Design and Algorithms Oct 1st, 2006, 12:04 AM
Replies: 36
Views: 2,771
Posted By ZenMasterJG
For your edu-tainment, I present,...

For your edu-tainment, I present, BOGOSORT!
(Implemented (badly) in Java for extra points!)

import java.util.Random;

public class Bogosort {
public static void main(String[] args) {
int[]...
Forum: Coder's Corner Lounge Jan 31st, 2006, 9:28 AM
Replies: 10
Views: 361
Posted By ZenMasterJG
The O'Reilly books are the best. Definatly get...

The O'Reilly books are the best.
Definatly get Apache: A definitive guide, and maybe the Apache Cookbook. You'll be all set.
Forum: Existing Project Development Jan 10th, 2006, 1:40 AM
Replies: 8
Views: 196
Posted By ZenMasterJG
A Minimax tree is the "classic" way to do...

A Minimax tree is the "classic" way to do tic-tac-toe AI. Check out:
http://ai-depot.com/LogicGames/MiniMax.html

ai-depot.com is pretty cool ;)
Showing results 1 to 40 of 194

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:12 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC