Forum: Website Reviews May 25th, 2008 |
| Replies: 2 Views: 691 |
Forum: Website Reviews May 24th, 2008 |
| Replies: 3 Views: 354 whosN2 - The sane alternative to MySpace http://whosn2.com
A friend of mine and I were ranting on MySpace and figured we could do better. Here's our attempt: tell us how you like it.
(Feels good to be back on DW again. Haven't posted in... |
Forum: PHP Apr 27th, 2007 |
| Replies: 8 Views: 1,606 Re: unable to connect PHP with Mysql Are you sure the server is running? (check the obvious first :-)
Also check the order of the arguments to mysql_connect - it's server, user, password. (I somehow manage to forget that every single... |
Forum: PHP Apr 27th, 2007 |
| Replies: 1 Views: 1,868 |
Forum: Existing Scripts Feb 2nd, 2007 |
| Replies: 0 Views: 2,035 Displaying SVN stats in a DokuWiki page I have a DokuWiki page that I'd like to display some SVN info on. We're currently doing this by manually updating the page contents whenever we commit. But I'd like to do this dynamically so we don't... |
Forum: C Aug 26th, 2006 |
| Replies: 7 Views: 1,409 |
Forum: C Aug 26th, 2006 |
| Replies: 7 Views: 1,409 Re: String splitter No, I'm using GCC for now. But the point is it doesn't matter what's *supposed* to be readonly, because nothing enforces that once it's running :) |
Forum: C Aug 26th, 2006 |
| Replies: 7 Views: 1,409 Re: String splitter Got it!
For anyone googling for this, here's the code I used:
char tmpbuf[1024];
char retval[256];
char *strsplit(const char *str, char splitchar, int token_num)
{
strcpy(str, tmpbuf); |
Forum: C Aug 26th, 2006 |
| Replies: 6 Views: 1,499 |
Forum: C Aug 26th, 2006 |
| Replies: 7 Views: 1,409 Re: String splitter Actually, all memory is marked writable, mainly because I was too lazy to look up the bits to set for read-only memory :-) Keep in mind:
Sorry, forgot to include that part.
char line[1024];
(EDIT:... |
Forum: C Aug 26th, 2006 |
| Replies: 7 Views: 1,409 String splitter I tried writing a string splitter for my little operating system based on http://www.daniweb.com/code/snippet318.html but it didn't quite work. Here's my code:
// BTW, this will eventually return a... |
Forum: C Jun 8th, 2006 |
| Replies: 6 Views: 9,181 |
Forum: C Jun 8th, 2006 |
| Replies: 6 Views: 9,181 Re: FIFO queues in C cscgal:
#include <stdlib.h> // malloc()
Um, I don't have a malloc :P Thanks anyway.
OK, I dug up an old thread about doing it with 2 stacks. Here's what I came up with from that:
// *** fifo.c... |
Forum: C Jun 8th, 2006 |
| Replies: 6 Views: 9,181 Re: FIFO queues in C Really? I didn't know :P (jk)
Hmm, googling for a filename. I need to remember that one ;) |
Forum: C Jun 7th, 2006 |
| Replies: 6 Views: 9,181 FIFO queues in C Any idea how to implement a FIFO queue of chars in C? It doesn't need to be too fancy, just a fixed size (say 256 chars) and can't use any library functions (this is for a hobby OS kernel I'm... |
Forum: C May 28th, 2006 |
| Replies: 2 Views: 2,046 Re: Reading from hard disk OK, just got that working. Turns out I was reading into the buffer wrong. Now I have another problem. This *should* be 512 bytes, I added it up myself. But sizeof() gives me 516, and I get some... |
Forum: C May 28th, 2006 |
| Replies: 2 Views: 2,046 Reading from hard disk First let me point out that this is not homework, it's just something I'm doing because I'm bored ;-)
I'm trying to get my little hobby operating system to read from the hard disk. So far all I can... |
Forum: Getting Started and Choosing a Distro Dec 7th, 2005 |
| Replies: 2 Views: 2,082 The best ways to quench your boredom in Linux :) 1) cat random things into /dev/dsp
(edit: forgot to say turn on your speakers first)
Some of my favorites:
cat /boot/vmlinuz-VERSION >> /dev/dsp
cat /dev/urandom >> /dev/dsp
cat /lib/modules/* >>... |
Forum: Getting Started and Choosing a Distro Dec 7th, 2005 |
| Replies: 75 Views: 60,445 Re: Gentoo vs Ubuntu Gentoo is for experts and people who like to recompile the wheel and all its dependencies. However, it is faster. If you're not a novice with Linux I would recommend Gentoo. (although it compiles... |
Forum: Legacy and Other Languages Dec 6th, 2005 |
| Replies: 1 Views: 6,287 |
Forum: Windows NT / 2000 / XP / 2003 Dec 5th, 2005 |
| Replies: 3 Views: 3,311 Re: Windows won't boot, monitor wont show picture. A BIOS flash probably wouldn't help.
-Is your monitor plugged in tightly?
-Did your computer used to beep while it was booting? If so does it still do that? (some newer computers don't)
-Just read... |
Forum: Windows NT / 2000 / XP / 2003 Dec 5th, 2005 |
| Replies: 2 Views: 1,720 |
Forum: Java Dec 2nd, 2005 |
| Replies: 3 Views: 2,232 Re: convert pixel to rgb values Filter out the red, green, and blue and then put them together.
Oh, and you can't have 332 blue in a green pixel - not only would that be more blue than green, the numbers are only supposed to go up... |
Forum: Java Dec 2nd, 2005 |
| Replies: 2 Views: 6,359 Re: JFrame Resizing Try setMinimumSize().
As for the dots, you mean the thing that looks like this?
< Removed - My ascii art kind of sucks :P >
I think you'd have to draw that yourself though. |
Forum: Java Dec 2nd, 2005 |
| Replies: 2 Views: 1,561 Re: text processing? I'd recommend changing that to String record;. Once you create a String, even if it's null, you can't change it - they're immutable. String record; will tell the app that a String called record will... |
Forum: Shell Scripting Dec 1st, 2005 |
| Replies: 3 Views: 1,422 |
Forum: Getting Started and Choosing a Distro Nov 19th, 2005 |
| Replies: 4 Views: 2,097 Re: first time linux... The bin, boot, etc. directories are the filesystem. To get to, say, your windows hard drive, open up a terminal and type:
mkdir /mnt/windows
sudo mount -t auto -o rw,user /dev/hda1 /mnt/windows
Then... |
Forum: Growing an Online Community Oct 10th, 2005 |
| Replies: 14 Views: 8,460 |
Forum: C Oct 9th, 2005 |
| Replies: 1 Views: 1,246 |
Forum: Existing Scripts Oct 9th, 2005 |
| Replies: 35 Views: 61,661 |
Forum: C Oct 9th, 2005 |
| Replies: 1 Views: 1,246 C + Assembler = something I can't solve I've been trying to compile OSKit under Cygwin. It gave me a bunch of errors, most of which I fixed. I can't fix this one though:
/*
* Copyright (c) 1996-2000 University of Utah and the Flux... |
Forum: IT Careers and Business Oct 5th, 2005 |
| Replies: 3 Views: 2,145 |
Forum: Growing an Online Community Oct 5th, 2005 |
| Replies: 3 Views: 1,925 Re: Blogging? What's the hype? I believe Dani programmed that herself. If this is just a blog for you and not others, try http://fireblog.berlios.de. It's what I use on my site as a CMS :) |
Forum: Growing an Online Community Oct 5th, 2005 |
| Replies: 5 Views: 4,462 |
Forum: Growing an Online Community Oct 5th, 2005 |
| Replies: 9 Views: 10,985 |
Forum: DaniWeb Community Feedback Sep 30th, 2005 |
| Replies: 9 Views: 2,190 |
Forum: DaniWeb Community Feedback Sep 28th, 2005 |
| Replies: 9 Views: 2,190 Questions -Can I have my name changed to mmiikkee12 so it will be like all the other forums I use?
-Can I be a moderator? (probably not but worth a try :P ) |
Forum: DaniWeb Community Feedback Sep 28th, 2005 |
| Replies: 8 Views: 3,227 Re: Gmail swap forum 200+ here :)
I like to get people to do things (like sign up at some site so I have an extra referral) and tell them they get a "special prize" if they do. Then I ask for their email and send them... |
Forum: Assembly Sep 28th, 2005 |
| Replies: 6 Views: 6,315 |
Forum: Shell Scripting Sep 28th, 2005 |
| Replies: 1 Views: 6,135 |