Jump to content
xisto Community

miCRoSCoPiC^eaRthLinG

Members
  • Content Count

    2,482
  • Joined

  • Last visited

Everything posted by miCRoSCoPiC^eaRthLinG

  1. Hahaha.. right said saxsux I so wish that the Firefox group sues them for it If only they could...Szupie - it wouldn't take much to place the toolbars in the right place - a simple drag & drop should suffice. Also I think that midget tab is a placeholder for any new tab that you might open. Some sort of a BLANK tab with no page title.
  2. No problem at all - that's why I told you, that I'll give you a basic working code - just modify it to suit your needs. Also good explanation of the IOException, evought. Couldn't have done it better myself. Dhanesh - it's like speaking in english terms, Exceptions are thrown, when something exceptional occurs - i.e. something out of the ordinary, an event that isn't supposed to happen during the normal flow of your code. To handle such scenarios we use the exception catchers in the form of a try..catch.. block. Exception itself is a base class, sort of a mother of all exception classes, which is thrown when some error occurs. When you write code to deal with a particular type of exception, you usually inherit the exception class and modify it to suit your needs. When it comes to your void main() - it is already pre-taught to throw the IOException. That is why, it is not really necessary to add the code to it - although it doesn't do any harm. If it was for some other sub-routine, then yeah, of course, you'd have to add it, to inform the subroutine that it is to throw a particular type of exception when a problem occurs. If you face any more tough java nuts to crack, post 'em all here. Haven't touched Java in a long while - would be fun again brushing up my skills Regards, m^e
  3. Yep you can do it - but you'll need to have a dns server running at your end 24/7, as also you'll need a STATIC IP associated with this dns server.Secondly you'll need, what is known as a "SOA" or Start Of Authority. Usually this can be purchased for a small one-time fee and this allows you to be a DNS Authority and run your own DNS Server. Without SOA, your own DNS wouldn't function properly, as it won't be linked properly with the root nameservers.
  4. My method is ok for forum posting - but as for your own webpage you might want to consider the method that Retaining has mentioned. That will still allow you to display your email as a clickable link on your page - but will fool the bots, as each character of the email string is encoded using escape codes. So when the bot goes through the HTML code of your page, it won't find anything remotely close to an email address. When you open up your HTML file, an encoded email address will look like this: Here's a site which gives you your corresponding encoded email: http://wbwip.com/wbw/emailencoder.html Have fun playing around with it Regards, m^e
  5. ????[/tab]Finally, the long awaited and much debated MySQL 5.0 (after long months of continuous minor upgrades and bug testing) has been released, as of 24th October, 2005. With the new release comes some really cool and exciting features that had priorly been missing from MySQL. Some of them are: ????With this new release MySQL has become a true contender in the high-end SQL Server segment. The new list of impressive features places it very close on the heels of the industry giants Oracle and its likes. Not to mention its still FREE and opensource as ever. [tab]I believe a great many cheers and thanks are in order to this dedicated team of coders, who are always tirelessly striving to make our beloved opensource RDBMS better than the best... Party Time................. Read the full article at: http://www.mysql.com/news-and-events/ '> http://www.mysql.com/news-and-events/
  6. ????[/tab]HI all - a word of warning or rather, an advise. A good many of you post your email addresses in various posts for different reasons. Most of you might be unaware that posting emails in this way on public message boards opens up the gateway to SPAM mails directly. [tab]Most SPAM Harvester Bots behave like search engine crawlers - crawling through each and every post of the public boards. Posting emails like this makes their job very very easy. If they arrive upon these posts, they'd simply rip your addresses off and add them to their database and thats the end of it. My recommendation is, try to avoid posting emails for your own safety - but in case you absolutely need to, try to adhere to the following format, or come up with a format of your own - a format which is humanly cognizable but can fool the bots. Example: myemail@mydomain.com ==> myemail_AT_mydomain_DOT_com If the bots can't find the "@" and "." signs in a string of characters, they don't treat the string as an email and discard it. On the other hand, presence of these two characters in it, is a sureshot way of voluntarily donating your address to the harvesters. All the best m^e
  7. Guys - a word of warning. Don't post your emails straight away like this on public message boards. It makes the work of SPAM Harvester Bots very easy. If they arrive upon this post, they'd simply rip your addresses off and add them to it's database and thats the end of it I've changed them to a suitable format for you - but in future when you post emails try to do them in the following format: myemail@mydomain.com ==> myemail_AT_mydomain_DOT_com If the bots can't find the @ and . signs, they don't treat a string as email and discard it. On the other hand, presence of these two characters in a string, is a sureshot way of voluntarily donating your address to the harvesters. All the best m^e
  8. Yup !! The ending "/" doesn't really matter. There's practically no difference between /painter and /painter/ - as your browser will anyway try to parse the name at the end as a directory, if no extension was specified. And even if there was an extension, it would try to load that file and if it found a directory with that name and extension it would look for an index.html under that dir. So it's not about the ending "/" but as abhiram pointed out - the www at the beginning, which should be taken out. If you want to know WHY some sites do not require that www, and most others do, then refer to this article I'd posted quite sometime back about dns and address resolution: https://8'>https://8 https://8'>https://8'>What Is www1? - hopefully this should help you in grasping the concept adequately.
  9. You got to apply for a SSH Shell Account in the Account Request Forum (not the New Account Request/Upgrade Request forums) - but in the other misc. request forum that is there along with them. Shell access is not enabled by default when you get your hosting - but given out anyway upon filing a separate request.
  10. Yeah. No doubt about that - for some reason he reminds me of Escher (probably because both of these artists have a mathematical basis behind their art), whose sketches not only were completely unique, but have this hidden underlying concept of self-reference & infinitives, which form the basis an integral part of theoretical computing & mathematics. If you guys ever happen to come across this book titled, Godel, Escher, Bach: The Eternal Golden Braid - don't hesitate.. Just grab it straight from the rack and devour it. It puts forth mindblowing concepts with examples as to how the works of the mathematician Kurt Godel, the artist M. C. Escher and the reverred musician Bach - all deal with infinity and the concepts of self-reference - which has had far reaching influence on formal logic as well as computing. Especially worth mentioning: The concept of Arithmoquine.
  11. hehe.. come right over to the tropical climate and claim all that.. to us, the sky's never been blue-er
  12. [tab][/tab]Guys - a friend just informed me about this site which contains photographs of the Anamorphic Art drawn by Julian Beever, an English artist who displays his art on the pavements of Europe. Anamorpic Art or Anamorphosis (I just came to know today) is the act of rendering your art in such a way that it gives them the third dimension when viewed from the correct angle. Here's the opening paragraph from this site: You need to check these out right NOW --> seeing is believing. I was nothing short of awestruck by some of those pictures. Visit: Rense.Com Have fun m^e
  13. Yup. It's the very same button. While the cache should actually speed up your browsing it does sometimes cause problems as your browser tries to load parts of the page from the cache to reduce the load time. With pages with static content - this definitely improves the speed, but more often you'd find the load time increasing for dynamic pages. Most likely this arises out of the discrepancy in the old cached data and the freshly generated pages in such cases. Clearing the cache always worked for me to load gmail properly - everytime without fail. Keep in mind that In firefox you have two different buttons for clearing your Cookies & your Cache.
  14. Hehe.. life's really unfair sometimes buddy You just gotta live with it. I felt the same during my beginning days here - but as of now even with all my hosting needs covered I stand at about 750 credits - none of which was awarded by anyone else... believe me it doesn't take much to build up all those credits. Just a couple of nice long posts would get you enough to keep going for months at a stretch. All you need then is to drop by even at gaps of weeks at a time and make another nice post to give it a further boost. If it helps in anyway - I wasn't quite accustomed to the credit reduction methods - so I'd quickly piled up about 130credits after my starter package - all of which went down the drain once I got the upgrade.. but here I am
  15. Yeah - moreover there's one more fact to consider. Some of the very best programming brains in the world are from India, not to mention the millions of good and average coders. If english wasn't our strong forte, what language do we use for coding ? Hindi ?? :)
  16. Guys - take it from an experienced AMD user - I'd brought this up earlier on too but simply got flamed... Whatever people say, AMD Processors generate an immense amount of heat - way more than it's intel counterparts. At one point of time I was a die-hard AMD fan, but after 6 burnt cores down the line I switched over to Intel and have lived happily ever after. This doesn't mean AMD's are bad in any way - just suffers from an extremely hot head All my intel boards have a cool temperature (3 system zones - CPU, near Fan 1 and near Fan 2) + fan speed monitoring utility - where you can set autoshutdown thresholds to prevent core burns. I keep checking the temperature there quite frequently. Even in the extreme tropical summers of thailand - with just a pedestal fan running in the room, the core temperature never exceeds 52C - which I consider amazing. Now that the temperature has gone down with approaching winter, my core temp never goes beyond 45-48max. As for the other Zones - 1 & 2 - the temps are happily kept below 35C. Also one factor which I always stress on - if you are into heavy usage and want your system to serve you for long stretches as well as have a long life, go for big bulky tower cabinets with plenty of room inside and the boards/devided all well spread out. This helps a tonne in dissipating the heat - as against the compact and fancy cabinets. Also increase the number of fans, if you MB/Cabinet supports it. My present system has 3 fans, excluding the one on the CPU. At least can't say my baby's hot headed
  17. Forgot to mention - (if you're familiar with the various MySQL Storage Engines) - the LOCK TABLES/UNLOCK etc. work the best with InnoDB storage engine - which offers Transactional capabilities. In other words you can send in a block of instructions as an atomic transaction - where either the whole block gets successfully executed, or in case there occurs some error midway, the whole series of statements is rolled back and all updates are wiped out till the beginning of the transaction. This offers a tremendous advantage in say for example, cases where you're updating 5 different tables (in some banking transaction - updating accounts of some person).. and midway there's an error. With non-transactional tables, like MyISAM, half of the statements will be executed and the other half aborted. This can lead to severe discrepancy in the accounts. On the other hand, if you use InnoDB and face an error midway - nothing to worry about. You simply rollback to the beginning point, analyze the cause of the error + fix it and then try updating all the same again. As for the drug store thingy - I think there might be a solution in the to-be-released MySQL 5.0 - something known as Triggers. Triggers are procedures/events that you associate with tables/rows that trigger an event when this table is modified. What the trigger function will do is entirely on you - but in this case, the trigger might be effectively used to somehow update the drugstore db's as soon as the items are marked sold in the central server.
  18. Cube Domain, man, how on earth did you get that idea that spelling mistakes are synonymous with people from India. In 99% of the cases I've personally seen (having studied in an american univ. myself) Indians speak & write grammartically far better constructed sentences than any given american - not to mention their extensive vocabulary. This happens to be a hard fact, my friend and this very fact never failed to elicit copious amounts of praise from all our american professors. Don't forget the fact that we learn to read and write english from DAY 1 of our Kindergarten School... Every single subject in our whole schooling career except, of course, our native languages, are taught in English. I wonder why the univs still consider english as our second language. Heh. Anyway.. funny to hear comments arising out of such misconceptions. I feel lucky that you didn't bring up the Snake charmers and elephants as yet So far I'd give you the benefit of doubt, as you might not be aware of our education system - but now that you are informed, I hope you won't make the same mistake again No hard feelings and No flaming please. Regards, m^e P.S. This comes as a response to a thread which was junked coz it had been started by a spammer.
  19. Good point And MySQL does indeed provide a very easy way of doing this. All you need to do, before you start writing out your data is issue a command like: LOCK TABLES mytablename WRITE and once you are done issue another command: UNLOCK TABLES. This see's to your need that the same record/table is not being modified by two different connections at the same time. While the lock is in order, another connection cannot access that table. But even for the realtime updates, a single centralized server will do. You don't need to create replications as such. Anyway, when you check up the data for a single item, the data transfer can be reduced to as minimal as possible with good planning of data normalization. Hence, even over the internet it'll produce a lag of at the most a couple of milliseconds - hardly noticeable to the end-users. But for the data to be instantly upgraded in your applications interface is another thing altogether. There's no concrete way of announcing that a certain data has changed. Thus your client application needs to constantly monitor those fields at regular intervals - by maintaining what is known as a Persistent Connection in mysql terms, where the client app connects once and always stays connected. Some event that is fired at the client's end at regular intervals polls the required databases and updates the user's screen accordingly. That's the only way of doing it I guess. Any further questions - feel free to ask. Regards, m^e
  20. Also I forgot to mention last time, hh:mm:ss tt gives you the output in 12hour format, where hh = hour mm = minutes ss = seconds tt = AM/PM whereas, HH:mm:ss gives you output in 24hour format. So the difference lies in CAPITAL "HH " and SMALL "hh"
  21. Why do you need to replicate ?? Have one Central Server that can be accessed by all these drugstores. Put all of them into a Virtual private network (VPN) over the internet - and all of them would behave as if they're part of a big LAN, with the data being transmitted in a secure encrypted manner over the internet. And in case you still want to replicate the same data all over - setup individual replication servers at the drugstore ends and have one central mysql server, which handles the feedbacks and changes from all the stores. This server should have binary logging enabled - allowing it to disperse the changes to all the replication servers allowed to connect to it. The actual steps are quite simple and can be found out throug a simple google on MySQL Replication Server. But the fact still remains, that when some data needs to be modified, it has to be done on the Primary server, in order for the change to be reflected to all the drugstores - which in effect, is the same as having just one central server. The only reason you might want to have such a setup, is that having the replicators will allow you to prefetch all changes thus accelerating local access speeds..
  22. Not really - first on all, this command isn't restricted to Linux ONLY. mysqldump is available for Windows MySQL too and the usage syntax is the exact same as that of it's Linux counterpart. Secondly - you don't need root access to carry this out. As long as you have SHELL access to your Xisto account (obtainable through separate request alongwith the reasons why you need it), you can back up your own databases using this command without a hitch. As far as I know there's a slight mistake in the syntax stated here. You either add the suffix --all-databases to the command or specify individual databases using --databases suffix. Also the command doesn't start with a capitalized "M" (not that it would matter on windows, but on Linux, it surely will) An ideal command would be: CONSOLE shell> mysqldump -u YourUsername -pYourPassword --all-databases > myfile.sql OR shell> mysqldump -u YourUsername -pYourPassword --databases mydb1 mydb2 > myfile.sql NOTE: There's a SPACE between the option -u] and YourUsername but NONE between -p and YourPassword. In case you seek to back up ONLY YOUR TABLE STRUCTURE AND NOT THE DATA, CONSOLE shell> mysqldump -u YourUsername -pYourPassword --no-data --databases mydb1 mydb2 > myfile.sql Hope thid helps Regards, m^e
  23. You were on the right track but not quite. First of all you really don't need the package statement, unless you want to classify your code in a separate namespace. But anyway, no harm with that. Besides if you're using Visual Studio.NET, this will be added automatically. Also you don't need to import java.awt - that's the Abstract Windowing Toolkit - which you need only when you are designing Windows based Appz with a GUI. package smallchar;import java.io.*;import java.awt.*; This part is fine... although you might consider naming your class something meaningful, instead of simply Class1 /** * Summary description for Class1. */public class Class1{ public Class1() { // // TODO: Add Constructor Logic here // } You don't really need to add that throws IOException to your main - it will do so in any case. /** @attribute System.STAThread() */ public static void main(String[] args) throws IOException { The part below this is really messed up. You can use DataInputStream to read in your line, but I'd advise you to use a subroutine that I use to fetch lines for me.. works like a charm.Here it goes: public String readLine( ) { char nextChar; String result = ""; boolean done = false; while (!done) { nextChar = readChar( ); if (nextChar == '\n') done = true; else if (nextChar == '\r') { //Do nothing. //Next loop iteration will detect '\n'. } else result = result + nextChar; } return result; } ============================================= String ch; String a; char small; int p; System.out.println("Enter The String After Entering The Number Of Characters"); ch=n.readLine(); int i; a=ch.substring(0,1); p=Integer.parseInt(a); small=ch.charAt(1); for (i=2;i<p;i++)[/code] ============================================= As for this messed up part... I wouldn't go into rectifying it - but rather am providing you with a full sample program that would do what you're trying to do. Full Sample package LowestChar;import java.io.*;import java.util.*;/** * Summary description for Class1. */public class LowestChar{ public LowestChar() { // // TODO: Add Constructor Logic here // } /** @attribute System.STAThread() */ public static void main(String[] args) { // Variables String line; int Lowest = 128, Ascii = -1; // To keep the compiler happy // Prompt System.out.println ("Enter a line of text: "); // Read Line line = readLine (); // Loop through each character of the string and find which is the lowest for ( int Count = 0; Count < line.length(); Count ++ ) { // This is the step that gets you the lowest value // Every time Count increment, a new character is taken into consideration // String.charAt (Position) gives you the particular character at that position of the string // Type casting it to 'int', by: (int) character - gives you the Ascii value of that character // You store that in Ascii and compare to lowest. If it is lower than the lowest value, make Lowest // equal to that character and loop again. Ascii = (int) line.charAt(Count); if ( Ascii < Lowest ) Lowest = Ascii; } // Print out the lowest char by type casting the integer value back to char System.out.println ( "Lowest Character: " + (char) Lowest ); } // Method to read in a line of text public static String readLine( ) { char nextChar; String result = ""; boolean done = false; // Loop till enter/newline character is met while (!done) { nextChar = readChar( ); if (nextChar == '\n') done = true; else if (nextChar == '\r') { //Do nothing. //Next loop iteration will detect '\n'. } else result = result + nextChar; } // Return the string return result; } // end readLine // Method to read a Character public static char readChar( ) { int charAsInt = -1; // Keep the compiler happy try { // Read the character as integer charAsInt = System.in.read( ); } catch(IOException e) { System.out.println(e.getMessage( )); System.out.println("Fatal error. Ending program."); System.exit(0); } // Return the character return (char)charAsInt; } // end readChar} // end class NOTE: Keep in mind that this wouldn't return the lowest char as you've shown. The lowest char is actually the character with the lowest ASCII value. The lowest values will be that of Numbers followed by CAPITAL Alphabet and then small Alphabet. This should help you out in what you are trying to achieve. Feel free to modify the code to suit your needs.
  24. Errrr.. you'd rather not name it a "HOLE" .. lol.. I ain't the overly religious kind, but there are plenty of people in India who'd be after you with a battle-axe if you called that cave a hole. Dude, you should be at that hole in person to realize how BIG a hole it is.. it's just not possible to estimate it's immensity from those snaps. It's by far the largest and mindboggling-est hole.. err... cave I've ever seen in my life so far. Standing right at the edge of it (accompanied by that never-ending swarm of billions of people pouring out of it) will make you feel utterly insignificant in the grander scheme of things... You feel awestruck and stragely helpless all under the same breath.. hehe.. you gotta be there in person to realize what I'm trying to say.
×
×
  • 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.