No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
27 Posted Topics
Hi all, I've started to get acquinted with Perl's HTML::Parser, which does a really good job at parsing html (duh ;-) But for the life of me, I can't get it to return the actual text from subroutine! I keep getting references to it :\ :\ use HTML::Parser; package MyParser; … | |
Re: I also agree with rubberman. I like linux very much. As far as I am concerned, the only substantial reasons I use Windows are games and word-processing (sorry, but openoffice really just doesn't cut it). Also, there is the fact that ods file are not well supported outside openoffice so … | |
Hi Guys, I am writing a Perl script that needs to initiate various http (or https) requests. Before doing so, I would like first to verify that a given string is indeed a valid URL address. I would like to do so (preferably) **without** using regexp. Reason being, that URLs … | |
Hi guys What's the default pointer value in c++? Can I count on the compiler to set an uninitialized pointer to NULL? Is it compiler dependant? What's the "consensus"? Thanks! -FH | |
Hi all, I'm having a problem that in all likelihood some of you have already faced one time or another: the notorious inconsistency of a wireless network connection. I have one WinXP machine, that's connected to a wireless network via an access point. But sometimes, the access point loses the … | |
Hi all, I have a rather basic C/C++ question about the priority of the ++ operator in regard to pointers. Note the following code (joining two strings): #define LENGTH 255 void mystrcat (char *base, char *add) { while(*base) ++base; while( *(base++) = *(add++) ); } int main() { char name[LENGTH]="Feline"; … | |
Re: Note that the problem might be on the laptop side, and not on the router-side. Try and clear everything your laptop knows about your wireless connection. Pass, credentials, everything. Might be, that something's corrupt, so clearing it and reconnecting could solve the issue. Good luck, -FH | |
Re: Please give more details as to how you set up your extender. If I understand correctly, you intend to use the device as a repeater to an existsing wireless network. If that's the case I'd recommend: 1) Reading [this absolutely concise useful guide in Tom's-Guide](http://www.tomsguide.com/us/how-to-wds-bridge,review-253.html). This like helped me *a … | |
Re: A. Can you specify exactly what went wrong? Do you have compilation error? Does the program give the wrong answer? B. I think you forgot to define the variable Grade. Grade should be calculated according to section (3) in your assignment. C. Why do you use `cin << TestAverage + … | |
Re: Also, you'd probably want to send a warning or something when user tries division by zero (lines 23-24) | |
Re: Not an expert on C++, but I think C++ likes it when only the row has dimensions. Try sending something like: `h[3][]` -FH | |
Re: Also, if you are familiar with Perl you can use the WWW::Mehcanize or the Firefox::WWW::Mechanize library which is specifically suited to working with webpages. If a perl solution is acceptable I could give a few pointers. -FH | |
Re: Ah... How about using .doc format? Don't think notepad reads doc or docx files. I didn't even know it read pdf.. -FH | |
Re: Also, you may want to use the c++ code marker. Just follow the "Formatting Help" link just above the reply box (from the right). Makes the code all more readable. | |
Hi all, I am doing some c++ exercise about operator replacing. I have successfully replaced the + (plus) operator to work on a user-defined class. I understand these operators are order-sensitive: need to replace the operator for (class+int) and for (int+class). Thus, creating **two** replacements that do exactly the same. … | |
Hi guys, I'm learning C++ from a book and I have a question about defining unary operators: In the book I'm working with there's an example, where they define a class called point, and define ++ operator for point *as friend*. here's the example: ~~~ c class point { int … | |
Re: Your assignment seems correct. I'd suggest you check the values in $line, by using echo. Perhaps it is being prefixed by "/" or some special charater. Also - remember: The script assumes you are checking for directories found in the directory in which it was executed. If you enter/leave a … | |
Re: You can do it more simply but a clever use of bash scripting from within the perl script. This is not strictly perl, but when working in Linux I found these kind of solutions shorter and faster: my $linecounter=2; # insert the new text line after this line my $text2insert="foo"; … | |
Hi all, I encountered some weird act from the return(); function. I'm doing some book exercise in recursions: write a recursive function that makes a summation 1 + 1/2 + 1/3 + 1/4 + ... + 1/n. Rather basic. So I wrote this: float summation(int n) { if (n == … | |
Re: To enhance your system against bruteforce attacks you may want to use fail2ban, which blocks multiple SSH attempts. You may look at [http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/417280/configuring-iptables-to-block-multiple-ssh-attempts](this recently solved post). You can also read the [http://www.la-samhna.de/library/brutessh.html](excellent post by Rainer Wichmann) that discusses bruteforce attacks. Good luck! -FH | |
I am trying to get iptables to block multiple ssh attempts, and having only partial success (Ubuntu 10.4 LTS). I've been following recommendations from the [URL="http://www.la-samhna.de/library/brutessh.html"]excellent post by Rainer Wichmann[/URL] and decided the best strategy suited for my system is simply having iptables block multiple attempts at ssh. Thus I … | |
Hi all, I am attempting to install [URL="http://www.csc.liv.ac.uk/~greg/sshdfilter/"]sshdfilter[/URL] on my ubuntu 10.4 LTS machine. This package is supposed to block ssh-bruteforce attacks. It does that by adding blocking rules to iptables when multiple bad ssh logins are detected, and blocks the ip that initiated them. This package usually relies on … | |
Hi all, I am using Ubuntu 10.4 LTS and I need to get telnet server on my machine to work (connect) to localhost at port 4242. I tried: [ICODE] ~> telnet localhost 4242 Trying ::1... Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused [/ICODE] *telnet [B]does[/B] work … | |
Hi all, I want to know if there is a smart way in c++ to test if my variable (or pointer) was already initialized? For example, I have a linked list, and I want to add an item to that list. If would like to do some thing [CODE] if … | |
Re: You could try to make a separate initialization file, but then your main.cpp file will have to include a define the variables as extern. So it would look something like this: initialize.cpp [CODE] int blah=4; int bloo=5; float foo=2.4; [/CODE] and then main.cpp would be something like [CODE] int main() … | |
Hi all, I'm having some troubles practicing linked-lists: the problem calls to implement string as a linked-list of chars. So I created a new class - mystring and defined building function, show(), and also destructor. The build and show works correctly. I get the exact same string I sent as … | |
Hi everyone and good day! New around here so just a short introduction before I'll blabber unintelligibly in C++ :-) Here goes: Name: Shay Nickname: Ruslan (seriously. Some people "know" me only by that name) Hobbies: Music, computers, extreme sports Came across this nice friendly forum while looking for C++ … |
The End.