Search found 318 matches

by Stu
Wed Aug 31, 2011 7:46 pm
Forum: Software Forum
Topic: I have a regular expression (regex) question...
Replies: 2
Views: 15317

I'm not sure about the C# part (I would imagine it would be done using Regex.Replace based on a quick googling), but one regex that would do the trick is this:

Code: Select all

\(#[^)]+\)
by Stu
Sat Aug 27, 2005 6:37 pm
Forum: Software Forum
Topic: Building Mozilla
Replies: 2
Views: 1123

I have, it's time consuming, so I switched over to using the binaries.
by Stu
Wed Jul 06, 2005 3:40 pm
Forum: Software Forum
Topic: Another c++ ? for stu
Replies: 6
Views: 4661

Well, the Standard Template Library stacks and queues aren't containers--they are container adapters. Which in the most basic of terms means that they are a wrapper around a container (they both default to using a deque internally--but you can use vectors or lists just the same) and provide a ...
by Stu
Sat May 07, 2005 3:56 am
Forum: Networks and Wireless Routers
Topic: Going to Linux (RedHat) with Router, Thomson SpeedTouch 510
Replies: 1
Views: 5119

This is an external device, why would you need a driver for it? Just plug the ethernet cable in and set up DHCP.
by Stu
Tue Jan 18, 2005 2:22 am
Forum: Software Forum
Topic: how to search your own site?
Replies: 27
Views: 4688

Another route to go, if this is hosted on a *nix machine, would be to use ht://Dig ( http://www.htdig.org/ ). It's been around about ten years, so it's fairly solid.
by Stu
Tue Oct 19, 2004 10:10 am
Forum: Software Forum
Topic: C++ Palindrome Help-(Less Technical Version)
Replies: 4
Views: 13375

I kinda figured it was written on the fly, but I figured it was for a student--so, the logic is just as important as the functionality (at least back when I was in college it was). Which is why I pointed out those things.

So, that's what that std::cin.get() line is for. I wasn't aware of that...I'm ...
by Stu
Tue Oct 19, 2004 5:25 am
Forum: Software Forum
Topic: C++ Palindrome Help-(Less Technical Version)
Replies: 4
Views: 13375

That could be cleaner. First, you don't really need to store the period or figure out what 'y' should be. Second, you check the string's front and back, then its back and front in the comparison loop. So, if the input is 'otto' you check:

pal[0] != pal[3]
pal[1] != pal[2]
pal[2] != pal[1]
pal[3 ...
by Stu
Fri Oct 15, 2004 4:35 am
Forum: Software Forum
Topic: ftp and router
Replies: 5
Views: 1627

FTP is a two port protocol. It uses a "control channel" (port 21) which deals with the commands that go back and forth, and a "data channel" (port 20) which actually sends and receives files. So, just forwarding one port isn't enough, you need to forward both.
by Stu
Thu Oct 14, 2004 4:09 am
Forum: Software Forum
Topic: Easy Question about SQL
Replies: 7
Views: 1487

For the most part I would agree with Skye on the general issue. Depending on the load that the current database places on the server and the hardware that you have to work with, it might or might not work. Even if you think they will work on the same machine, you will need to tune both of the ...
by Stu
Mon Oct 11, 2004 1:17 am
Forum: Software Forum
Topic: Datetime Substitutions
Replies: 1
Views: 2840

I'm not too sure about the specifics in foxpro, but most DBs that use SQL have a ifnull(), nullif(), or coalesce() function that lets you do this. Typically they return the first parameter that is not null. Something like this:



SELECT COALESCE(NULL, 15);



You'll have to check the foxpro ...
by Stu
Thu Jul 22, 2004 12:08 pm
Forum: General Discussion Board
Topic: Compiling kernel 2.6.7 question.
Replies: 7
Views: 1654

[quote="Paft"]This interests me. Got a link to a Linux-dev thread/site where I can find some verification?

Would love to move to a 2.6.x kernel, just don't seem to have the balls to do it yet. ]

Although it's a little old, you can read the post-halloween document ( http://www.linux.org.uk/~davej ...
by Stu
Thu Jul 22, 2004 10:22 am
Forum: General Discussion Board
Topic: Compiling kernel 2.6.7 question.
Replies: 7
Views: 1654

ALWAYS do a "make mrproper". Read this link:

http://lfs.osuosl.org/lfs/view/stable/chapter08/kernel.html

Wrong answer! That's the 2.4 way. They rebuilt the build system for the 2.6 kernel. You just need to do:

make menuconfig or xconfig or gconfig or config or oldconfig
make && make modules ...
by Stu
Wed May 26, 2004 4:09 am
Forum: Software Forum
Topic: Downloading CGI
Replies: 2
Views: 1018

Nope, not if the server is configured correctly.
by Stu
Fri Jan 09, 2004 3:15 pm
Forum: Broadband Tweaks Help
Topic: Any Linux tweaking......?
Replies: 4
Views: 1243

You want timestamps on, read RFC 1323 "TCP Extensions for High Performance". I put up a page on my site that goes over tweaking Linux on broadband ( http://www.santa-li.com/linuxonbb.html ) a while ago, and mentioned it in this forum several times (you should do a search before posting a question ...
by Stu
Mon Nov 24, 2003 2:04 am
Forum: Software Forum
Topic: SCO is even more pathetic....
Replies: 4
Views: 1250

I could see them going after Novell, but UCB owns the copyrights and IP on all the TCP/IP code, as well as a ton of other stuff, in SVR4. Also, UCB created a fork of SVR4/BSD4.4 (BSD 4.4-Lite), that was approved by AT&T, for the settlement agreement back in 1994--this was a version of BSD 4.4 with ...
by Stu
Thu Nov 13, 2003 1:54 am
Forum: Network Security
Topic: Opening a port for NTP
Replies: 3
Views: 1695

If you are just getting the time from a stratum server, then you don't need to set up anything on the router. If, on the other hand, you want to act as a server (so that others can get the time from your machine--in effect become a stratum 2 server), then you need to port forward both tcp and udp ...
by Stu
Sat Nov 08, 2003 7:28 am
Forum: Software Forum
Topic: Exit Redhat Enter Fedora
Replies: 9
Views: 1748

I'm happy enough to use Gentoo. They're working on a Gentoo BSD and Gentoo MacOS X as well ( http://www.gentoo.org/proj/en/gentoo-alt/ ), so by the time the SCO case gets finished court (it won't see the inside of a court room until like 2005, maybe it'll be done by the end of 2006) and if IBM loses ...
by Stu
Sun Nov 02, 2003 7:56 pm
Forum: Software Forum
Topic: SSL Certificate
Replies: 3
Views: 922

Certificates aren't tied to IP addresses. So, as long as the server you are adding has the same domain name (same DNS name--for instance http://www.someurl.com ), you only need one certificate. Therefore, if you keep the same domain name (you can do this with CNAME records in the DNS your site is ...
by Stu
Tue Oct 21, 2003 6:56 pm
Forum: General Broadband Forum
Topic: Tweaking mtu with Linux?
Replies: 10
Views: 2378

Re: oo

Originally posted by ChrisW
Any idea how to set the values back to the default? Cause i think that actually made it slower =\ damn linux needs a program like Cablenut for windows...

Remove the settings from /etc/sysctl.conf and reboot (you can manually reset them, but this is the least complex ...
by Stu
Tue Oct 21, 2003 4:04 am
Forum: General Broadband Forum
Topic: Tweaking mtu with Linux?
Replies: 10
Views: 2378

Originally posted by cyberskye
Nice article Stu!

Thanks! :) I wrote that several months ago. After posting leaner versions of it here and e-mailing it to my brother, my friends, my brother's friends, and my co-workers, I was getting sick of explaining it from the ground up over and over again ...
by Stu
Tue Oct 21, 2003 3:50 am
Forum: General Broadband Forum
Topic: Tweaking mtu with Linux?
Replies: 10
Views: 2378

Re: o0o

Originally posted by ChrisW
Man that looks difficult for a linux virgin.
Some how my MTU is 1492 and mss is 1452. I just got my linux machine to access internet through my win2kpro computer. Somehow doing that changed mtu and mss to normal settings.

Now i just need to get that Rwin up ...
by Stu
Fri Oct 17, 2003 8:36 pm
Forum: General Broadband Forum
Topic: Tweaking mtu with Linux?
Replies: 10
Views: 2378

by Stu
Thu Oct 09, 2003 2:24 pm
Forum: Software Forum
Topic: any XML freaks out here??
Replies: 7
Views: 1355

I assume when you say into a div, you mean in the div element (in between the opening and closing tags), not into an attribute in the div tag. If that is the case, and the information you got from the XML file is accessible to the script (I don't know how you went about getting it, which is why I'm ...
by Stu
Thu Oct 09, 2003 7:19 am
Forum: Software Forum
Topic: any XML freaks out here??
Replies: 7
Views: 1355

Originally posted by ub3r_n00b
I was just wondering how exactly XML is encorporated into XHTML

What i want to have happen is store text in XML...

I will create divs using DHTML, assign them a class name, and then dependant on the class name i want to assign text to it..

i hear that XML is the ...
by Stu
Tue Oct 07, 2003 9:00 am
Forum: Software Forum
Topic: any XML freaks out here??
Replies: 7
Views: 1355

I don't know if I'd classify myself as an "XML freak", but I know it well enough. What's the problem?
by Stu
Thu Sep 25, 2003 2:07 am
Forum: Network Security
Topic: stop a DDOS attack
Replies: 3
Views: 1157

If you are getting DDOSed your best bet is to contact your ISP so that they can block the traffic that's DDOSing you--or assign you a new IP address. As for your router blocking the traffic from getting into your LAN, it does, but the DDOS is eating up your bandwidth and your router has to make a ...
by Stu
Sat Aug 30, 2003 12:47 pm
Forum: Software Forum
Topic: Difficult Linux Install Question
Replies: 7
Views: 1001

I'm not sure, it could mean your NIC--if it does, according to the 8200's specs, you should use the 3c59x device driver (it's a 3COM 905C Tornado card). As for the CD thing, I'm at a loss--I'm a Gentoo user myself. I would suggest posting to the newsgroup linux.redhat.install as they would be able ...
by Stu
Fri Aug 29, 2003 3:16 am
Forum: Software Forum
Topic: Difficult Linux Install Question
Replies: 7
Views: 1001

Assuming the laptop has a floppy and a network card, then you are all set. Make a bootdisk then install via HTTP or FTP over the internet. Read the following sections of the Red Hat 9 Manual:

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/install-guide/s1-steps-install-cdrom.html#S2-STEPS ...
by Stu
Wed Aug 06, 2003 5:22 am
Forum: Networks and Wireless Routers
Topic: FTP and Security
Replies: 7
Views: 991

I'd dump the ftp server idea altogether, too many security issues--unless you already know how to deal with bounce attacks and crackers using ftp redirects. It's too much of a headache, in my opinion.

Instead, as mentioned earlier (kind of), you can run a SSH server on the "server" and download ...
by Stu
Wed Jul 23, 2003 1:52 am
Forum: Network Security
Topic: IT Security
Replies: 8
Views: 1304

You might also try the newsgroups, both ones on security and ones on bugs (like bugtraq). Also, if you can get to Pittsburg, PA for a week or two, Carnegie Mellon University (the folks who run CERT.org) offer security seminars at various times throughout the year--they cost money, but you can ...
by Stu
Sat Jul 19, 2003 4:40 am
Forum: Software Forum
Topic: RedHat 7.3 on system with 2000 Pro
Replies: 2
Views: 746

If it's grub that is coming up, then the answer is simple. Boot into Red Hat and edit /boot/grub/grub.conf. Assuming Red Hat is installed on the second partition and Windows 2000 is on the first, then add this:

title=Windows 2000
rootnoverify (hd0,0)
chainloader +1

Save that and reboot. That ...
by Stu
Tue Jul 15, 2003 4:05 am
Forum: Broadband Tweaks Help
Topic: Linux
Replies: 2
Views: 1145

This question gets asked once every other month or so, and unlike Windows, there aren't a dozen different gadgets that tweak your settings for you. Not to mention the fact that most of the information on tweaking Linux for broadband is really cryptic and no one site seems to have all the information ...
by Stu
Tue Jun 17, 2003 8:32 pm
Forum: Networks and Wireless Routers
Topic: Need a Packet Sniffer for Windows 3.11 or Dos.....
Replies: 7
Views: 2483

My vote is to get Ethereal. The TCP Stream stuff alone makes it worth the download.
by Stu
Fri Jun 13, 2003 7:56 pm
Forum: Networks and Wireless Routers
Topic: can connect to sites but cannot ping them?
Replies: 4
Views: 671

Some sites or all sites? If it's some sites, then those sites probably block ping/echo requests.
by Stu
Fri Jun 13, 2003 10:26 am
Forum: Software Forum
Topic: How to get your ip ..
Replies: 1
Views: 790

Depends on the operating system. But, in Linux something like this should do it:



#include <iostream> // cout
#include <cstring> // memset(), strncpy()

#ifdef __cplusplus
extern "C" {
#endif

#include <unistd.h> // close()
#include <sys/ioctl.h> // ioctl()
#include <linux/sockios.h ...
by Stu
Fri Jun 06, 2003 6:37 pm
Forum: Software Forum
Topic: Linux...
Replies: 6
Views: 1717

I disagree with using Red Hat, unless you are fond of filling out surveys once a month.

Red Hat has this up2date service, kinda like the windows update thing, and up until about 4 months ago you could sign-up for their "Basic" service account--which let you download updates when they are not ...
by Stu
Wed May 07, 2003 7:43 pm
Forum: Software Forum
Topic: Dual Boot Problem, Please Help.
Replies: 3
Views: 576

You didn't make a /boot partition? RedHat 7.3 used grub as its default boot loader--unless you changed that manually during the install.

Also, we need more info (unless you are looking for a generic answer--which I doubt). Please post the contents of /etc/fstab, the output of the command `ls -lR ...
by Stu
Sun Apr 27, 2003 9:56 pm
Forum: Broadband Tweaks Help
Topic: Linux looking for program to aid in tweaking cable connection!
Replies: 4
Views: 947

Actually, those settings help in Linux. The maximum window size is 64 KB without window scaling enabled, and many distros don't have window scaling enabled by default (and they have the maximum window size set to 65535).
by Stu
Sat Apr 26, 2003 8:49 pm
Forum: Broadband Tweaks Help
Topic: Linux looking for program to aid in tweaking cable connection!
Replies: 4
Views: 947

Okay, first you should try doing a search in this forum--because I know this has been asked and answered before.

That being said, the Linux kernel uses auto-tuning when transmitting and receiving data--which means it has a send and receive window that grows according to the capabilities of the ...
by Stu
Fri Apr 25, 2003 11:20 pm
Forum: Software Forum
Topic: Best Linux Distro or Project for NAT & Firewall?
Replies: 5
Views: 5916

Take a look at IPCop, Securepoint, and SmoothWall. I'm not sure about Securepoint, but I know the other two have web based administration tools.