Jump to content
xisto Community

miCRoSCoPiC^eaRthLinG

Members
  • Content Count

    2,482
  • Joined

  • Last visited

Everything posted by miCRoSCoPiC^eaRthLinG

  1. See MySQL responds to some cool SQL syntax and is able to fetch exactly this set of information for you. Say your table contains a couple of fields namely, a. TopicID b. TopicTitle c. Message d. PostDateTime When you insert a new topic, TopicID gets increased by 1 (or whatever increment scheme you follow) and the Time+Date of posting gets inserted into the last column. When you want to display the last 10 topics, you can use a simple statement: SELECT TopicTitle FROM MyTable LIMIT 10 ORDER BY PostDateTime The LIMIT 10 will select the only 10 Topic titles from the TopicTitle column which is ORDER BY PostDateTime - i.e. ordered by date and time of post. If the order is set to descending - this will effectively pull out you last 10 entries. Try it and let me know.
  2. Hehe.. both of you great tips - both simple but almost 100% effective against keyloggers. They can log keys really well - but can't discern a damned thing from mouse positions - unless it's logging snapshots of your screen too. Then, my friend, you're in serious trouble. Ghost keylogger is quite capable of doing that - and so are another 10-15 of them in the same bandwagon. A Funny Fact: My Antivirus (Bitdefender Pro 8) detects Ghost Keylogger Installer .msi as a trojan.. lol.. and thus has put it in quarantine - barring me from playing pranks on my friends Btw, these keyloggers produce some amazing results, huh ? When I joined my university, I got the account logins of almost all the students (school accounts, hotmail, yahoo etc.) - all of them within 3 days flat. Flip-side: I'd to sit through and repeatedly search for the phrases "Login" & "Pass" in over a GB of combined log files.. urgggh !!
  3. Yup - you're right - I wasn't clear enough in my explanation - what I demonstrated was the exact same thing - but designed by yourself - I mean when you inherit from stl:exception, the sub-class becomes a kind of exception too - and thus it is throwable. As for the message part - you can use the stl's what() method or define your own - as I showed in the code. what() is probably limited to text messages, whereas, this way if you define your own error message system - you can have a lot more fun spitting out funky messages Nothing else needed - as in no other functions to override or implement. Just these are enough to get you going. P.S. - I didn't know about the what() class either - lol.. so I provided my own way here.. My C++ OOP syntax isn't that strong - it's way better in Java.. But gimme something to code in procedural C/C++ and I'll rock
  4. Haha.. dont worry about that .. I wasn't giving out my bank account anyway - but the my curiosity was majorly piqued and I wanted to know how the hell do these people operate... jipman@Xisto found out a damned good ebook on this. I'm quoting his post here.. You guys should check it out: THEY MUST BURN :D edit : I found a novel about those money scams too (it's about a guy who tries to find out the root of the email scam by replying to the mails and following the instructions) : http://forums.xisto.com/no_longer_exists/ It's free for download Source: http://forums.xisto.com/topic/83419-internet-frauds-modus-operandi-reasons-behind/
  5. I think it was some server ooutage that reported you missing mysql. Have you checked recently ? I logged into my cPanel account - and all my databases and data were just fine. I could access all of them. Lets see what the other users say about this. I haven't received any panic messages so far.
  6. Yup .. no rules whatsoever It's a wild wild jungle out there - just nature and a couple of hundred thousand crazy humans partying for 3-4 days at a stretch.. Sheer definition of "Hardcore Rave"
  7. Yup - that's the way to go. To define your own type of exceptions to handle custom exception events, you should always derive from the stl::exception. But since you're inheriting the class, and not implementing any kind of interface, you don't really need to redefine any of the method bodies in superclass exception. What you should include though, is a default message, that can be printed out of this class + the ability to pass and store a custom error message to this class. Let me give you an example ( I might not be correct with the syntax - am coverting an idea I got from one of my Java courses into C++) using namespace std;...........class interpreter_exception : public stl::exception {private: // Var to hold error message string message;public: // Constructor interpreter_exception ( string m ) { // If no message was passed to the constructor, use the default message if ( m.length == 0 ) { message = "Interpreter Exception Detected."; } else { message = m; } // end if-else }; // end constructor // Method to print out the error message public void Message () { cout << message; }; // end Message}; // end interpreter_exception class// This is main program body where you throw the exceptiontry { // Do Something (In Java you can use the "new" keyword to call the constructor // and pass a custom message to the exception class. I'm kinda confused, // in C++ you probably don't need to use the "new" - or maybe optionally used. throw new interpreter_exception ( "Some error occured" ); // OR throw interpreter_exception; } catch( interpreter_exception e ){ // Print out the error message e.Message();} // end try-catch Hope this will guide you to creating custom exception handlers in future... the concept is extremely easy, although I'd be able to illustrate it better with Java. P.S. What you've shown, would do too - except that it won't show the message "interpreter exception detected" or whatever message you pass it to. It will try print out some standard error message that the exception class has.
  8. Hi, Yesterday someone had made a post at Xisto ( http://forums.xisto.com/topic/83374-earn-lot-of-money-searching-002-x-search-no-need-to-click-results/ ) about this referral + search site name netbux.org that pays you $0.02 for every search you made through their page. Out of curiousity I dropped by and opened an account there. First of all - it isn't even a search site - it simply redirects your search to another popular engine, which you get to pick from a dropdown box along with your search string. Ever since then, I've faced quite a few problems with them: 1. Not all searches get counted properly - this might be a flaw of their script. They do say that repeated searches won't be counted - each search has to be unique. But their script is SO BAD, that it ignores searches even if they contain ONE common keyword. Say, I searched for "VB.NET Aqua Button" and then searched for "VB.NET Custom Dispose Method" - goddamned thing ignored the second search completely - I ask you, What's common to both, other than the fact I searched for something to do with vb.net but for completely unrelated types of code ? 2. Second problem - today morning - it completely disregarded 3-4 of my searches - never credited them to my account. My account balance stands at what it was due to 5 searches yesterday. 3. And now, it's gone for a complete toss. Everytime I do a search I simply land up with this message: Paid searches must be conducted from the Netbux homepage. I reloaded their page and tried - thinking it was a problem with session cookies. DIDN'T WORK. I tried at least 20 different (completely unique) search strings with NO COMMON WORDS. DIDN'T WORK. I tried logging out of my account and logged back in again. Searched. DIDN'T WORK. I've been trying ever since - STILL DOESN'T WORK. Always gives me that same message. What the hell is going on ? Do they seriously intend to carry forward this so called paid search business - or is it just another internet scam to draw a lot of hits to their page ?? I think it's more of the latter. Tell me about your experiences. A very very angry & pissed m^e P.S. Still if anyone wishes to signup for this service, I'd be obliged if you use my referral link: http://forums.xisto.com/no_longer_exists/ I want to see what comes out of it.
  9. Hi guys, ????[/tab]I'm pasting a mail that came in one of my hotmail boxes a couple of days back. Read it first. ????Now my question is - what might be the motive behind this guy sending out mails like this. This isn't a push marketing thing, nor it is an advertisement for any product. I've received similar mails many times before (with a slight change in language) - and I'm sure almost all of you've received copies of this. What baffles me is what this guy/guys are trying to achieve in here ... ????Is it to somehow catch hold of a scapegoat (coz there would definitely be a lot of shiny eyed people reading about that $12 mill.) - and somehow get him over to their country and into trouble ? Or get him involved in some sort of a money laundering nexus ? Or is it some micheavellian plot to blackmail a oh-so-willing scapegoat out of his/her life's savings ? ????These are surely fradulent cases, coz the content of the mails are almost always the same - with marginal difference in language and names. Anybody ever figured out whats the reason behind all this - or know anyone who's succumbed to offers like this ? What's your idea - what would they do, if supposing they managed to lure someone into the trap ? The aftermath .... ? [tab]Awaiting your feedback... m^e
  10. Hi guys, I'm pasting a mail that came in one of my hotmail boxes a couple of days back. Read it first. Now my question is - what might be the motive behind this guy sending out mails like this. This isn't a push marketing thing, nor it is an advertisement for any product. I've received similar mails many times before (with a slight change in language) - and I'm sure almost all of you've received copies of this. What baffles me is what this guy/guys are trying to achieve in here ... Is it to somehow catch hold of a scapegoat (coz there would definitely be a lot of shiny eyed people reading about that $12 mill.) - and somehow get him over to their country and into trouble ? Or get him involved in some sort of a money laundering nexus ? Or is it some micheavellian plot to blackmail a oh-so-willing scapegoat out of his/her life's savings ? These are surely fradulent cases, coz the content of the mails are almost always the same - with marginal difference in language and names. Anybody ever figured out whats the reason behind all this - or know anyone who's succumbed to offers like this ? What's your idea - what would they do, if supposing they managed to lure someone into the trap ? The aftermath .... ? Awaiting your feedback... m^e
  11. Hi, Yesterday someone had made a post about this referral + search site name netbux.org that pays you $0.02 for every search you made through their page. Out of curiousity I dropped by and opened an account there. First of all - it isn't even a search site - it simply redirects your search to another popular engine, which you get to pick from a dropdown box along with your search string. Ever since then, I've faced quite a few problems with them: 1. Not all searches get counted properly - this might be a flaw of their script. They do say that repeated searches won't be counted - each search has to be unique. But their script is SO BAD, that it ignores searches even if they contain ONE common keyword. Say, I searched for "VB.NET Aqua Button" and then searched for "VB.NET Custom Dispose Method" - goddamned thing ignored the second search completely - I ask you, What's common to both, other than the fact I searched for something to do with vb.net but for completely unrelated types of code ? 2. Second problem - today morning - it completely disregarded 3-4 of my searches - never credited them to my account. My account balance stands at what it was due to 5 searches yesterday. 3. And now, it's gone for a complete toss. Everytime I do a search I simply land up with this message: Paid searches must be conducted from the Netbux homepage. I reloaded their page and tried - thinking it was a problem with session cookies. DIDN'T WORK. I tried at least 20 different (completely unique) search strings with NO COMMON WORDS. DIDN'T WORK. I tried logging out of my account and logged back in again. Searched. DIDN'T WORK. I've been trying ever since - STILL DOESN'T WORK. Always gives me that same message. What the hell is going on ? Do they seriously intend to carry forward this so called paid search business - or is it just another internet scam to draw a lot of hits to their page ?? I think it's more of the latter. Tell me about your experiences. A very very angry & pissed m^e
  12. Nope. Seems like we are experiencing a server outage. Everyone's complaining about site-downs and not being able to log into cPanel. But this is only temporary. Such a stage never lasts for more than a couple of hours and is corrected as soon as the server techs. are informed. Nils has already mailed them - should be up anytime soon.Please bear with us till then
  13. I'd done the same in my school - but a potential problem here. While I don't think there's a restriction on the number of users, XP creates gigantic Profiles for each of these users - that include his/her desktop settings+saved files on desktop, custom registry entries, cache space, application data etc. By the time you hit 20-30 users, these profiles bloat up enough to kill even 60-80GB hard drives. If you do so, make sure you run the file, gpedit.msc and turn off both Local and Remote Profiles. Or else you're calling for trouble. Once the Group Policy Editor runs, check under Local Computer Policy > Computer Configuration > Administrative Templates > System > Logon. Under this you'll find plenty of options to turn off all kinds of profiles. Read through them and select the combination that meets your requirements the best. Cheers P.S. According to someone I know, the "theoretical limit" of local Win XP users is about 4 million or in other words, unlimited. But as I said, it's ONLY THEORETICAL.
  14. Not really - those compiling before run days have long gone - and most of the linux appz nowadays come with both pre-compiled binaries as well as RPM packages (which you can in a way call the Linux version of Windows Installers) - so your graphical appz are likely to be installed on their own and appropriate shortcuts created, when you double-click a RPM file using one of the X-windows File Explorers. Also for most applications that you have to compile yourself - gcc (The GNU C Compiler for Linux) is sufficient to see you through. Most of the better linux distros contain gcc version 3.x - which is how it should be. Also the need-to-be-compiled packaged come with 2-3 pre-configured scripts & make files. In a well done app, you can compile and install in 3 short steps. Supposing you download the source files in a gzipped tarball file (identified by the extension, .tar.gz) - lets take an example of mysql. Here are the steps needed to compile and install it: CONSOLE shell> tar zxvf mysql-4.x.tar.gz ..... ..... this is where the file is unzipped into a directory like mysql-4.x ..... shell> cd mysql-4.x shell> ./configure ....... ......... this is where various pre-compile options are set up. configure is a script that accompanies most well-designed packages ...... shell> make ..... ........ this step fires off GCC and compiles the program. Takes a while. ..... shell> make install ..... ......... this step actually installs it into a directory specified by you. For information on how to specify destination directories, refer to the README/TODO/INSTALL files that accompany most packages. .... That's it - that'll all you need. Don't think it looks complicated at all, eh ?
  15. First of all, Excel files come in a very proprietary format which means you would need to create extremely excel-specific functions. A better method is to save the sheet as comma-separated text (CSV) files, then find common csv import/export functions. However, if you still want to go ahead and do it, try using these PHP-Excel parsers: 1. http://www.hotscripts.com/category/scripts/php/scripts-programs/database-tools/, 2. http://www.sitepoint.com/forums/showthread.php?250772-reading-from-an-xls(excel)-file
  16. MySQL from version 5 onwards does support Stored Procedures. (Its already out as a developer version - but not a stable release yet)...
  17. Whatever they do - I hope they'll keep up with the Dreamweaver, Flash & Fireworks Suite - Adobe products are really good, but so are the ones by Macromedia. I wouldn't want to see either being taken off the market - you can get amazing results by combined usage of these tools. And as for Site-Creator, I wouldn't think of anything else but Dreamweaver - nothing to beat it.
  18. You can freely edit the HTML at the end of the code - this HTML gives shape to your Thank You page.. so you can change it to whatever you like.. The $post_page="/" --> This variable contains the link, that is loaded AFTER the Thank You page. If you want a different page to load after Thank You, ONLY then you should include the link here. If you leave it to simply "/" - as you can see from this code <a href="<?php print "$post_page"; ?>">Click here to continue</a>// This gets parsed as:<a href="/">Click here to continue</a>which means, you're being taken back to the top-level or index page of your site. Hope this will clear it up. P.S. Also when quoting some sort of code in your posts, use the CODE tag to enclose it - that makes easier reading. Am modifying your post to demonstrate it.
  19. Check out this other post of mine: http://forums.xisto.com/topic/82772-topic/?findpost=1064295426 - this illustrates exactly what you intend to do. There's a php code in this post that you can save as a file, and then, instead of redirecting your action="mailto:" you set it to action="filename.php" - all your form's contents will be sent to this script - which then parses and break it up into appropriate lines and mails it to you using the commandline mailer named mail. There are ample comments in the code - so I guess understanding it won't be a big problem. All the best
  20. Okay.. sorry to say but NONE of the above codes worked. I tried them all out today, tried tweaking around with the ideas too - but couldn't get them to work at all.
  21. That I've long forgotten - but I used to experiment around with different values and find a hatch to my liking. Infact when I used this function regularly, I'd built up a reference table of patterns & their hex values - but don't have a copy anymore. Try putting it in a for loop - I mean fill up the screen with horizontal lines with different hex values using a for loop and you'll get an idea.
  22. Yaah - try experimenting with both BF & B - BF would draw Filled Boxes - here I'm drawing a simple non-filled rectangle for each point. You could also experiment with hatch patterns by adding in hex values after the B/BF... Like: LINE (10 + x * 2, 50 + y * 2)-(12 + x * 2, 52 + y * 2), 2, BF, &HF3E
  23. Lets start this thread and find out more about our coding roadmap! The first code I ever wrote was on a BBC Micro Computer that came with its on embedded ROM-OS and ROM-BASIC - this was when I was in my 5th grade (1990-91). It was pretty powerful for those times, offering decent 16-color graphics and a powerful sound engine behind it (using normal computer speakers) - that PCs never achieved. In about an year or so, I shifted over to PCs coz the lack of applications for the BBC Micro was getting to me (all appz for it had to be either written in Assembly or that ROM Basic). Then came GW-BASIC 2.0 on DOS 4.0. That was fun - big fun. It any of you still have the old basic interpreters (GW/QB) try out this code - this was one of my very first experiments with CGA graphics. It struck me so amazing at that time that I was able to magnify screen text and add touches of color through a few simple lines of coding. CLSSCREEN 1PRINT "Text:";INPUT text$FOR x = 48 TO 48 + 10 * LEN(text$) FOR y = 0 TO 8 IF POINT(x, y) <> 0 THEN LINE (10 + x * 2, 50 + y * 2)-(12 + x * 2, 52 + y * 2), 2, B LINE (12 + x * 2, 52 + y * 2)-(14 + x * 2, 54 + y * 2), 1, B END IF NEXTNEXT Next came QuickBASIC, and then Pascal... finally leading to C & Assembly - in such quick succession that I lost count. Now I'm armed with Java, JScript & PHP a little bit, quite solid on the C++, C# & VB.NET Front. That would be 15 years now God, can't imagine so much time has passed by in between.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.