Jump to content
xisto Community

miCRoSCoPiC^eaRthLinG

Members
  • Content Count

    2,482
  • Joined

  • Last visited

Everything posted by miCRoSCoPiC^eaRthLinG

  1. Isn't there any pre-defined class in Delphi that defines the CurrentLocale and CurrentCulture ?? If you have them - then surely the tools to switch language are built in too. In any case, you'd have to create a text file as Chesso pointed out - similar copy of the same file for each language you wish to include in your package. Thing is - if those classes are prebuilt - then you don't need to look for MyButton= manually.. rather the word MyButton in the textfile will act as a variable and the compiler will do the job of finding it in the text file for you. You simply call it as MyButton and the associated text will be returned. The same can be done in .NET - I'd written an article on this quite sometime back.. It can be found here: VB.NET: Switch Regional Language Automatically
  2. True - the more you think about it - the more ways of drawing progress-bars come out. I think the simplest approach would be to use just colored DIVs (as vujsa pointed out)... That'll cause minimal stress on the server and will be the fastest to load. However fancy graphics are the in-thing now... so I guess you'll have to pick one among the approaches mentioned above.
  3. This is your home server right ?? And the only page you're hosting is your own?? A simple tweak would be to place a blank index file in your /var/www/html with a single line of JavaScript Redirection code pointing to the index file in your /home/nigthfox This is the quick and dirty way out.. I understand what you want - but it's gotta do something with your local DNS too.. that's what redirects requests to specific accounts on the same server. Let me ask around and if I get a satisfactory reply from any of my associates, I'll post back rightaway.
  4. Infact you shouldn't need to break the images in so many parts. With a set of SIX images, you can achieve any desired percentage. Your image breaks should happen at these figures: 1 2 5 10 20 50 This comes from one of earliest physics lab principles - remember when you use the scale balance weighing system - your weight box comes with weights of the gradation 5:2:2:1. This is because with suitable combination of these figures - you can achieve any number from 1-10 or 10-100. For example - to get 80 = you use the graphics - 50 + 20 + 10. 90 = 50 + 20 + 20 65 = 50 + 10 + 5 78 = 50 + 20 + 5 + 2 + 1 .... You get the idea.. it's quite easy to come up with the routine to analyze your percentage and pick the correct graphical blocks.. Alternatively, I think you can even achieve this by nesting one DIV inside another, the child DIV being of SAME HEIGHT at the parent - but the WIDTH being your PERCENTAGE DONE figure of the parent. Next you can define a CSS tag that takes a tiny sliced graphics - say 1px wide - and does a background-repeat in the inner DIV. Thus your inner div will repeat this background upto the percentage done. This approach should be much easier than the above-mentioned one.
  5. I'm not at all experienced with GD - but your question number 1 should be fairly easy to answer. You need to fix the length of the progressbar though. Say for example, it's about 200 pixels wide. We have this stored in a variable called $length. I gather that t is your amount done and goal is the total value to be reached, right ? You'd can write a simple arithmatical calculation like, // Calculate percentage$percent_done = $_POST['t'] / $_POST['goal'] * 100;// Calculate length of the progress indicator$indicator_length = $length * $percent_done / 100; Alternatively, you can cut out a reduntant step here - which is multiplying and dividing the percentage decimal figure by 100. In effect, the following code would do the same as above. // Calculate percentage$percent_done = $_POST['t'] / $_POST['goal'];// Calculate length of the progress indicator$indicator_length = $length * $percent_done; Now supposing the screen co-ordinates of your progress bar is (X, Y). You need to draw the indicator upto the $indicator_length. I guess there's some GD command called DrawRectanlge ( X, Y, Width, Height ) - or something similar... Your indicator code would be: DrawRectangle ( X, Y, $indicator_length, Height ); In case the command accepts only starting and ending co-ordinates.. like, DrawRectangle, ( x1, y1, x2, y2 ) .. then it would be a minor modification of the above... DrawRectangle ( X, Y, X + $indicator_length, Y + Height ); Hope this will help it clear up a bit for you.. For the rest of those questions, you'd need someone who's way more experienced with GD. Regards, m^e
  6. Attach the documentation pdf file here (ZIP it up first). Let me read it and see if I can figure it out.Regards,m^e
  7. Hehe - I got around 395 Invites left spanning 4 of my Gmail accounts. Anyone wants one post back here
  8. You can find this option under Site Management Tools in cPanel - the first icon in the last row. It's simply named Backup and when you click it, it gives you an option of backing up your site in your home folder or on a remote FTP server. Usually you'd choose your home folder. What it does is, grab every single file in your site as well as you MySQL and PostGRE-SQL databases and packs all those files in a tar archive. Final step is gzipping this archive. Once done, you'll find a file named like backup-[date].tar.gz. Upon successful backup you should receive a mail somewhat on these lines: What you stated about backing up MySQL DB is done in this step too - except there you're backing up only your DBs - and this one works on every kind of file and data of your site. Regards, m^e
  9. Welcome back aborad dudeeee Good to see you around again
  10. Seems like this S9Y is a Weblogging system based on PHP and MySQL. Xisto provides you with both PHP and MySQL - so you shouldn't have any problem running that over here. We also allow you to have/modify your custom .htaccess file .. so it should work just fine.
  11. It's not possible to say without seeing the code. Post the code here - the part that you've written to connect to the database. Also tell me your database name and the username you've created to access it. P.S. Don't forget to remove the password when you're pasting the code here.
  12. There's something wrong with your MySQL Username.. When you create a new MySQL DB from cPanel, your database name and your db username are both prefixed with your cPanel username. For example, if your cPanel username is lbyrd, and you create a MySQL database called mydb then your actual database name (that you're supposed to use in scripts) will be lbyrd_mydb. Similarly, the username you create to access this db will be prefixed by lbyrd_ too.. for example if your username was mydbuser then the actual username to use in scripts will be lbyrd_mydbuser. If you notice that in your script your username appears only as lonebyrd_ - i.e. it contains only your cPanel username but not the actual db access username that should come after the "lonebyrd_".
  13. I posted the link to that MySQL Automated Backup Script - check it out guys.. it surely is helpful. I'll see if I can come up with some small shellscripts that'll mail out the backed-up data to you at pre-specified intervals..Any other bright suggestions about protecting your data, most welcome :(Regards,m^e
  14. True - that'd help a lot too. In any case it shouldn't be all that difficult. I think if you search around the Database forum I'd posted a script long time back - called autobackupsql or something on those lines.. that generates automated full-backups of your specified MySQL DBs at specified intervals. You can just add in another small script in your crontab to mail gzip this file and mail it out to you at regular (weekly) intervals. I found the script I'd posted earlier. It's called automysqlbackup and can be found at this thread: Auto-backup Your MySQL DBs Daily/weekly/monthly
  15. I haven't faced any problems with automated Firefox updates so far - except for occasional minor glitches, which get auto-fixed once you run Firefox is safe mode... Like for this recent update my browser.xul file somehow got corrupted and Firefox refused to start. Everytime I tried starting it, it gave me a XML Parsing error and halted. Once I started it in Safe Mode, I believe, FF rewrote the browser.xul file and from then on no problems at all. Anyway - in case you want to disable the Auto-Update feature, follow this route from the Menu bar on top: Tools > Options > Advanced > click on Updates Tab Once there it presents you with a bunch of options what type of updates (Firefox itself and/or extensions and themes) to check for automatically and in case such updates are found, what action to take (install automatically or ask for your approval) .. Mark the checkboxes according to your preference and best judgement. Regards, m^e
  16. For such a thing to happen you'd need ultra-high bandwidth links at every home-user end, prolly direct fibre-optic links. Else you'd wait forever for the net based app to download and execute. While this might very well be the case in future - I don't think its economically and infrastructure-wise feasible at this point.
  17. ????[/tab]This is to inform all our members that recently we've been facing a lot of hacking attempts from various upcoming groups - whose sole purpose seems to be defacing our members' sites. In most cases it's just a minor botheration though I've no clue what they're gaining out of it. ????Pertaining to this I'd like to mention that we don't employ a server-side backup mechanism anymore. Long time back we used to perform weekly backup of all our members' sites - but this service has been discontinued for a while now owing to some conflict with the quota system. ????Recently one of our members lost his site to a defacing attack. The hackers got in and completely trashed his site including his MySQL DBs. Unfortunately he didn't have any backups on his own part and neither did we.. hence the whole site was lost and he'd probably have to start from scratch again. Re-desgning pages are still ok - but what hurts most is all the lost posts/content in case you're running a Forum and/or CMS. ????Thus I'd like to stress on the necessity of maintaining regular backups of your site on your own - in case you come under such an attack. To facilitate your backing up job, the cPanel Site Backup option has been enabled to allow you to perform a single-click backup of your whole site. You should do this as often as possible - and at least once every week. Make this into a habit since it's a job that'll take up just a few minutes of your time once a week - but might save you a lot of tears in the long run. [tab]Moreover, most such hacking attempts are usually successful if you're using a weak dictionary based cPanel password - which can be easily cracked using some brute-force password generator/cracker. Thus I'd highly recommend you to keep changing your cPanel passwords from time to time apart from making them as cryptic as possible using combinations of both numerals and upper-case, lower-case letters and if possible punctuation marks. If you find it difficult to remember such passwords, there are plenty of Free and Good Password Managers available for download - where you can store such passwords sitewise for future reference. Best Regards, miCRoSCoPiC^eaRthLinG
  18. Yep - the INSERT and UPDATE syntax is almost same in any SQL Compliant Database... Chesso: UPDATE and ALTER have diametrically opposite functions - though both names suggest some sort of updating mechanism... UPDATE is used to modify the DATA stored inside a table, whereas ALTER is used to modify the STRUCTURE of the table itself. Your usual UPDATE syntax (for MySQL) would be: UPDATE tableName SET Field1 = 'newvalue1', Field2 = 'newvalue2', ...; ALTER, as shown by Hercco allows you to modify the Column names as well as their data types in a particular table... Say in the above table, Field1 was VARCHAR and Field2 was DOUBLE... I want to swap the data types and change the name of Field2 to Field3 ALTER TABLE tableName CHANGE Field1 Field1 DOUBLE; ALTER TABLE tableName CHANGE Field2 Field3 VARCHAR(x);
  19. I used to listen to techno quite sometime back - but now I've entirely shifted to hard Psychedelic Trance and Goa... which takes Techno and Electronica Genre to the extremes... I haven't found many takers for these genre around...
  20. Try Resource Hacker - that'll reveal all kinds of embedded resources in DLLs - icons, bitmaps, text, string tables etc. but I don't know of any that will reveal functions too all in one shot.. There are separate tools for them. Try these links: Resource Hacker: http://www.angusj.com/resourcehacker/ DLL Function Viewers: http://www.nirsoft.net/utils/dll_export_viewer.html A good one to scan dlls and build a heirarchical list of all dependencies and functions is Dependency Walker: http://www.dependencywalker.com/ I use most of these tools - particularly Resource Hacker and Dependency Walker and they help me along in every single step.. Simply couldn't do without those two. Besides, Resource Hacker not only shows you the embedded resources - but allows you to modify them too. Infact, one of the approaches to getting rid of the pissing-off Ads and Side-Tab in MSN Messenger is to use Resource Hacker and modify a part of it's layout CSS which is embedded inside Messenger.EXE Just google for "list function in dll" and you'll get plenty of other variations.
  21. Lol.. nice.. immigrate gators and provide illegal immigrants as food !! .. ROCKING
  22. I'd written a detailed article on creating a SAMBA based WorkGroup on Linux and make it act as a Windows Domain, allowing Windows machines to log onto that domain and share files... In effect you create users on the Linux server - and Windows users can remotely connect to your server by directly logging in onto their desktop using the username/password you used to create their Linux server accounts... If this approach is followed, their /home/username folder on the Linux server becomes directly accessible as an extra drive on their windows desktop and can be written/read only by the account-holder. Similarly, you can set a specific folder as open share - which becomes available to everyone... Read the article here: Howto: Setup Windows NT/2K Domain Using SAMBA If you've got any questions post back here or in the original thread and I'll try to reply to my best knowledge..
  23. Have you used DogPile (http://www.dogpile.com/) ?? It's quite similar to what you've described and is a meta-search engine too. And always accessible from all corners of the world... For those who haven't tried - you should give it a shot. It's almost as fast as Google itself... almost
×
×
  • 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.