- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Self Employed - Freelance Coder - Sys admin - Network admin
- Interests
- programming, unix operating systems, reading, skateboarding, wife, kids
- PC Specs
- 2400XP + 512mb 2700DDR + Windows XP, Suse 800 Duron + 256 133, Gentoo 500 PIII + 256 133 + OpenBSD 400…
54 Posted Topics
Hi I am attempting to pass a reference to an object from one function to another, is this even possible, if so what is the syntax this is an example of what I want: [code] class SomeClass { public: int a = 100; }; void second_function(SomeClass & ref_to_classobj) { std::cout … | |
Re: [QUOTE=paresh72]Hello Is it java(JSP, Javabean, Servlets), j2ee(EJB-3tier) & which best database is suited? If plan in advance than time is saved. [/QUOTE] Actually the best ecommerce software I have ever used (I have used dozens over the years) is Intershop, written in 90% perl (fast_cgi) 10% C, the database is … | |
Re: I would personally recommend gentoo, I know asking any question along the lines of which distro is best is almost like starting a religious discussion. The pros for using gentoo are: 1) If set up correctly it can be a little faster than any other distro out there 2) It … | |
Re: You can also use style sheets: [code] <html> <head> <style> body { background: colour name or hex value; } for tables: table { background: colour name; } </style> </head> [/code] You can also link to external style sheets. | |
Re: [QUOTE=FireNet]Dump the fox-whatever.There are alot of such stuff which have no future. Get rid of Bloodshed also.I have used it and some standards are not supported.Borland Command line complier (they give that for free) is much better. [/QUOTE] What don't you like about bloodshed? I have used it a bit … | |
Re: Within top try P or M to sort by cpu and memory respectively | |
Re: What shows when you type route -n after running your script? I have used the following before #!/bin/bash $IP="192.168.1.12" $ROUTE="192.168.1.1" ifconfig eth0 inet $IP netmask 255.255.255.0 route add default gw $ROUTE | |
Re: [QUOTE=FireNet]Use string.h [CODE] strcmp(str1,str2); [/CODE] returns 0 if they are equal[/QUOTE] Note this will only work with c strings, if you want to use this function with string you will need to treat them as c style strings ie: [CODE] if ((int a = strcmp(stringa.c_str(), stringb.c_str())) == 0) { cout … | |
Re: If you do decide you want to store the image in a database (there are circumstances) then use a blob datatype. | |
Does anyone know of a good way to sort an stl map? I have something like the following example: [code] #include <iostream> #include <map> #include <algorithm> int main() { map<int, float> map_to_sort; // Populate the map with between 20 - 2000 elements map_to_sort.sort(); } [/code] Obviously I am aware that … | |
Re: Hi there Perhaps this thread may give you pointers on what you are trying to do, it includes code examples for a similar question a few weeks ago: [URL=http://www.daniweb.com/techtalkforums/showthread.php?p=28366]Thread on bash searching[/URL] From what you have shown wouldn't the find command be more appropriate for you though? ie: [code] find … | |
Re: [QUOTE=dina]Also would you call MS Access and MySQL an application or a software[/QUOTE] What do you mean by application or software, all applications are software. Access isn't a database, it is a frontend for an external database server, and it deals with database type files, it isn't a true database … | |
Re: classic rock, alternative rock, modern rock, and pretty much anything else except pop, hip hop and harcore. collective soul the who matchbox twenty creed genesis eric clapton silverchair are some of my favourites. | |
Re: [QUOTE=far_lion]Can anybody help me... I was task to get version of the linux that we are using, but I dont know what command to use to show version of our linux...[/QUOTE] uname -a CSGAL: UNIX isn't always open source, there is still a few versions of true UNIX operating systems … | |
Re: Windows - Firefox Linux - Firefox FreeBSD - Firefox IE is too insecure, I recently installed firefox on wifeys computer too. Mozilla too much for what I need Opera too pretty and if I want mouse gestures I will download the XPI thank you very much. Firefox rocks for my … | |
Re: Well I am a perl programmer primarily, but I also really like ksh, both of which are pretty good with cgi | |
Re: [QUOTE=Specdro]I have been tring for a month now to figure out why I can't program my site to open field information from a link that looks like [url]http://www.blablabla.com/test.php3?ID=2[/url] I can't seem to figure out how to open just the field thats ID is = to 2. If anyone can help … | |
I am writing an application to interact with a Faircom c-tree database, there will be thousands of entries in the database I am trying to decide if I should impliment in perl or C++ Has anyone used Perl to interact with c-tree databases? What kind of perform have people got … | |
Hi All I am writing an application for work that will be distributed across about 200 servers, installing is going to be a big enough pain but what I am looking to do is ensure that after the application is installed it can doing a daily check against a master … | |
Re: wc -l <file> counts the number of lines in a file wc -w <file> counts the numbers of words in a file wc -c <file> counts the number of bytes in a file wc -m <file> counts the number of characters in file You can combine with other commands ie: … | |
Re: All these messages and no one mentioned old reliable xv :op | |
Hi everyone Out of interest what windows managers are people running and why? I use fvwm2 because it is so light and fast but with powerful configuration options that let me set my desktop up to look and act in a way that allows me to work faster and more … | |
Hi All I am hoping someone can help me out since this is driving me nuts. On my site I have 3 columns: [code] |sidebar| content |sidebar| [/code] What I want to do is have the height of the 2 sidebars controlled by the height of the content. So instead … | |
![]() | Re: [QUOTE=cscgal]blud, that's what I am confused about. Suppose one installs an old release. And then keeps up to date with all packages, including recompiling the kernel. What is the difference between that and upgrading to a newer release as a package?[/QUOTE] Some of the core software isn't up to date, … |
Re: Gentoo is a great distribution for a programmer, of course everyone will say that about their personal favourite distro, however, my "opinion" is that gentoo is put together in a way that appeals to the logic of a programmer, it is the easiest distro I have used because most of … | |
Re: I don't think C++ is a great language to begin with, I think most people should start with a procedural language and then move to object orientated. I begin with: pascal delphi c perl visual basic (ack) c++ Of course everyone thinks that their route to learning was the best … | |
Re: Reiserfs is fastest, ext3 is a little more safe, ext2 is fastest, different filesystems for different jobs, oh and UFS on solaris with logging on. / - ext3 /boot - ext3 /var - ext2 /home - reiserfs /tmp - ext2 /usr - reiserfs | |
Hi guys It has been quite a long time since my last post, but I am having some very weird behaviour on a program I am writing and I was hoping to get a little community feedback ;) I am writing a class that basically opens a pipe to ksh … | |
Re: [QUOTE=freesoft_2000]Hi everyone, why don't you have a look at my other response in the c++ section entitled c++ dying a slow death. On the most common languages i would recommend you to learn basic, C# and java(very good alternative to c++) Yours Sincerely Richard West[/QUOTE] I would disagree with this, … | |
Re: Another alternative is to take the source for Mozilla Firebird (open source) make a few customisations to the source (graphics logos) and compile it for internal use. I don't think there would be licensing issues since it is open sourced anyway. | |
Re: A couple of years ago I was writing a program to do just this, send out the monthly news letter for the ecommerce company I was working for. I wrote it in C and linked to libesmtp, it was a very easy task, perhaps you should look at doing something … | |
Re: Solaris is also a decent price last time I looked a month or so ago the full solaris media kit (books, install, oracle, extra software) cost $89, if you wanted to save money you can just download the ISO's for $20. Solaris is Unix, it is very powerful and fairly … | |
Re: It should display in a browser as: [code] <html>< head >< title > php test< /title > < /head > < body > hello world<P> < /body></html> [/code] You will need to save the file with a .php extention, and in order to correctly display output you will need php … | |
Re: [QUOTE=ndw2004]i saved my txt file as hey.php and i used a ftp on lycos to bring it up and it say hey.php.txt and it wont open whats wrong? :confused:[/QUOTE] First I don't know if lycos supports php but unless you have a paid account I doubt it and secondly, you … | |
Hi all, I am not sure how to explain exactly what I am hoping to do here, but I will do my best in the hopes that someone will understand. I am writing a program that uses a cache, this cache is used with a thread that is seperate from … | |
Re: Much more compatible with Linux/Firebird (before I couldn't use the search). | |
Re: [QUOTE=Martian]Hey, I just became a member. This is a nice website. So my question is what are the difference between OpenBSD and FreeBSD...They both seem to be about the same. Thanks for the help (if i get any).:)[/QUOTE] Since I have little experience with both I can only comment based … | |
Re: The best place to get any information on linux on laptops is: [URL=http://www.linux-laptop.net/]http://www.linux-laptop.net/[/URL] HTH Ben | |
Re: I believe in God 100% I completely disbelieve in religion, I do however believe it is required, all the bad things that happen in the world are supposed to happen just as much as the good, because we as a species are supposed to experience everything that can be experienced. … | |
Re: The following script shows show I would do it, this is with a script instead of the commandline, of course in reality I would use perl but this is a basic idea on how to use bash to do it. [code] #!/bin/bash directory=0 file=0 total=0 for a in `ls` do … | |
Hi I managed to get freebsd 5.2-Current up and running which is cool I managed to get project evil up and running, however, I can't assign and ipv4 address assigned to the card: ifconfig ndis0 inet 192.168.1.50 netmask 255.255.255.0 ssid default wepmode on wepkey 0x(key) when I do an ifconfig … | |
Hi I am not sure if anyone can help with this is it a pretty big problem. Basically I have just moved my home office to my garage, in order to link to the dsl router in the house I have upgraded the router to a linksys wireless router. I … | |
Re: My favorites in order: Gentoo 1.4 (but it is complicated and not for newbies) Suse 9.0 (Fast and very very easy) Debian (Easier than it used to be and very powerful) I always recommend Suse for newbies, I have been using it on and off since version 6.2 in 1998. | |
Re: [QUOTE=caperjack]C++ is computer language ,for creating windows programs[/QUOTE] Note not just windows programs visual c++ is aimed just at windows but C++ itself will work on any platform that a compiler has be written for or ported to. | |
Re: [QUOTE=kc0arf]Hi, C++ is a superset of C. I can only wonder WHY you would want to try to compile something that works with C only? That doesn't make sense. Christian[/QUOTE] I seemed to remember reading about some incompatibilities that were valid C and not C++ code after doing a few … | |
Hi I am needing to store some data for a project I am working on, I am trying to figure out the fastest method to access the stored data, the data takes the form: keyword (std::string) - list of ints ie: yellow - 2342 2312 8478 3827 9773 4837 2893 … | |
Re: Hi I think the following should work: [code] SET DOMAIN=mydomain.com FOR %%A IN (ServerA ServerB ServerC ServerD) DO xhost +%%A%.%DOMAIN% [/code] You may need to play with it a little to get it working exactly right but that is the basic syntax. HTH Ben | |
Re: [QUOTE=spikes] sub filter_begin () [/QUOTE] I can't find anywhere in your script where this is being called, therefore it wouldn't do anything. [CODE] # Subject check my($msgSubject); my($hfile) = "HEADERS"; while(<HEADERS>) { chomp; $line = $_; $idx = index($line, "Subject: "); if (idx == 0){ $msgSubject = substr($line, 9); } … | |
Re: Are you talking about Matt Wrights Formmail.pl ? If so I recommend [url]http://nms-cgi.sourceforge.net/[/url] not matts scripts, written by the London.pm perl mongers to be secure drop in replacements to Matt Wrights scripts. | |
Hi I am getting an error with some code, it compiles fine on linux but it is throwing an error on solaris, it is to do with strtok_r, the following is the error message: sku_cache.cpp:150: implicit declaration of function `int strtok_r(...)' sku_cache.cpp:150: assignment to `char *' from `int' lacks a … |
The End.