turbopowerdmaxsteel
Members-
Content Count
460 -
Joined
-
Last visited
Everything posted by turbopowerdmaxsteel
-
Full Disk Usage Warning In Cpanel
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in Web Hosting Support
My website statistic database is rather large. MySQL Disk usage is quoted at 36.48 MB. Still more than 100 MBs are missing. -
A few minutes ago I received an automated mail notifying me about 109.68% (548.38 Megs) of disk space used by my hosting account. It was extremely surprising because I have not uploaded anything in a while. Nevertheless, I went back to CPanel and looked into the Disk Usage Viewer. It could only account for ~295 MBs. While, I can free up quite a bit of space from the Trash directory, I am wondering what's causing the disk space to be misreported. Edit: I have emptied the Trash folder which managed to free ~75 MBs. Although, this has brought down the disk usage within the limits, I am still at a loss for the missing free space.
-
Can't Select Database =? It works on my home PC
turbopowerdmaxsteel replied to Feelay's topic in Web Hosting Support
Have you granted appropriate permissions to the MySQL username feelay_myname on the database? If not, you can do this via the CPanel. -
It is not that hard to work with YMSG protocol. The initial learning phase is the most important one. Any changes they make are easy to adapt to. All you have got to do is use Ethereal or similar software to monitor the conversations between Yahoo! Messenger and the server.
-
How Long Have You Been Programming ?
turbopowerdmaxsteel replied to miCRoSCoPiC^eaRthLinG's topic in Programming
(For me) Basically, there are two flavors of Programming languages - one accounting to the classic C/C++ types and the other resembling BASIC. I began with the latter (which includes the likes of VB/VB .NET/ASP/ASP .NET) back in schooling days. Even though, I have learnt a great deal of the former category namely, C/C++, Java/Javascript, C# & PHP, I prefer BASIC style coding. Its much closer to english and is kind of easy going on the eyes too. At first, I disliked C++ which came in as an optional subject in senior secondary. However my stand didn't last long, especially on realizing the immensely greater power that it provided (compared to GW-Basic which is what I really knew at that point of time). I was also trying my hands on VB6 back then. Even though I didn't have access to the Internet, I managed to get quite comfortable in it, thanks to the MSDN documentation. Object Oriented Programming brought about by C++ just seemed like another one of those hocus-focus features of programming languages. It wasn't until I got into NIIT and realized the true motives of the methodology. Ever since, I have been awed by the benefits it provides. I would have switched my focus to C/C++ type languages but then I came across the (then) recently released VB .NET 2005 Express Edition IDE. It was such a major advancement to VB that I fell in love with it. With the addition of full Object Oriented support, VB could finally go head to head with other languages. I remember m^e telling me to go for C# because it was said to be more powerful than VB .NET but I never really went for it. That was until the language was included in our curriculum. Learning it wasn't that hard considering the prior experience with both C++ and VB .NET. There were certain differences in building GUI applications (like the need to manually instantiate the forms in C#), lack of the immensely helpful My object, etc. But it was still pretty easy. Then JAVA was due in our second semester. It was another one of those things that I didn't want to learn (infact it still is), but had to learn. I like certain aspects of JAVA but still .NET is my prefered platform. I learned PHP from w3c.org and ever since have become quite good at it. I haven't been a big fan of SQL but again NIIT forced us to learn it. It came really handy when I started using MySQL database for my website. I have been improving in Javascript ever since m^e introduced me to AJAX. As of now, Internet Programming has become my main focus. Even most of my Desktop applications are either Internet based or Internet enabled. Coming back to the two categories of programming languages, here are somethings I like/dislike about them:- C/C++ + {s and }s for marking code blocks. Its much better than the Begin and End we have in VB. + The ; has almost become synonymous with this type of languages. Initially annoying as it was, I now find the language incomplete if we had to use VB style CrLfs for seperating lines. - Double Equal Tos for comparing, even though I don't get confused with = and == anymore. VB/VB .NET + Closer to English. (Having to use the Is and IsNot operator for objects, OrElse, AndAlso operators are all much more realizable) + MOD operator in place of %. Again, one of those things much closer to real life. You should try VB .NET, even if for the sake of the greater lot who are masters in it. -
Mysql Query Question MySQL Select query problem
turbopowerdmaxsteel replied to manuraj.dhanda's topic in Programming
Use the following code to create the Table structure. It is better to create the Status field as bit which can have only two values/states 0 and 1. CREATE TABLE mytable(IssueId INT AUTO_INCREMENT PRIMARY KEY,ToolName VARCHAR(15) NOT NULL,Status BIT) For inserting values use queries similar to:- INSERT INTO mytable VALUES('', 'Tool1', 1);INSERT INTO mytable VALUES('', 'Tool1', 0);INSERT INTO mytable VALUES('', 'Tool2', 0);INSERT INTO mytable VALUES('', 'Tool3', 1); 0 is equivalent to Closed and 1 to Open To retrieve your result use the following query:- SELECT DISTINCT ToolName, (SELECT COUNT(Status) FROM mytable t2 WHERE Status = '1' AND t1.ToolName = t2.ToolName), (SELECT COUNT(Status) FROM mytable t2 WHERE Status = '0' AND t1.ToolName = t2.ToolName) FROM mytable t1 It contains two subqueries to do the job. Given below are codes for implementing the Status as a normal VARCHAR but I would recommend using the BIT data type. Table Structure CREATE TABLE mytable(IssueId INT AUTO_INCREMENT PRIMARY KEY,ToolName VARCHAR(15) NOT NULL,Status VARCHAR(6)) Data Insertion INSERT INTO mytable VALUES('', 'Tool1', 'Open');INSERT INTO mytable VALUES('', 'Tool1', 'Closed');INSERT INTO mytable VALUES('', 'Tool2', 'Closed');INSERT INTO mytable VALUES('', 'Tool3', 'Open'); Data Output SELECT DISTINCT ToolName, (SELECT COUNT(Status) FROM mytable t2 WHERE Status = 'Open' AND t1.ToolName = t2.ToolName), (SELECT COUNT(Status) FROM mytable t2 WHERE Status = 'Closed' AND t1.ToolName = t2.ToolName) FROM mytable t1 -
I completely agree with wutske. Its not Limewire's fault if users use them to download copyrighted stuff. Same could be said about Ares or the clients of the Bit-Torent protocol. There are many stuffs that can be legally distributed or shared using Peer-to-Peer technology. Just because many people use it the wrong way doesn't mean that such softwares are illegal. You can't label file sharing sites such as Rapidshare illegal even though 90% of files happen to be so. They take steps by deleting reported files but still its become more of a pirated software repository.You do however make the valid point, if everybody gets the files for free, how is the industry going to last? At the moment, I am studying software engineering and when I get a job and start working for a company, I would want the company's softwares to be purchased and not pirated by using cracks or serials. How am I going to get my paycheck otherwise? But, you can't expect everyone to buy originals. Many people justify their doings by saying that the costs of the softwares are way too exorbitant for them to afford and to quite an extent its true as well. Having said that, this is no excuse to go ahead with piracy. The sheer number of people involved in any form of piracy is un-settling and I can't say that I am perfectly clean either. I do have a resolution to abstain from all forms of it when I start earning cash by myself.Its a tricky situation really. Who do you blame, the hackers who are hell bent on cracking the shareware softwares, or the ellusive user who wants every software for free? Probably both, but you should certainly not blame the likes of Ares or Limewire.
-
You must have manually inserted the 211 ID. If you can afford to empty the table and re-enter the values the problem can be solved. In your insert query, leave the value for the AUTO_INCREMENT field to blank. For example, say you have a table with two fields ID (the auto number) and name (a varchar). Use the following query to insert a record with IDs starting from 1. INSERT INTO MyTable VALUES('', "Partho") You can set the initial number to a greater number but you can't get it back down (or so I think) unless you empty/re-create the table. Use the following query to start the numbers from 200. INSERT INTO MyTable VALUES('200', "Partho") From the next time, you can just use the previous query to continue with numbers 201, 202 and so on.
-
I suppose there are. tansqrx here is an expert at Yahoo! exploits and vulnerabilities. Although his motives are constructive and are aimed at finding exploits and bringing them to the notice of Yahoo. You can drop by his site http://www.ycoderscookbook.com/ to find out more.
-
Who Has The Best Site Here?
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in General Discussion
Page Rank for Maxotek has increased to 3 and as an immediate effect, the unique visitor count per day has almost doubled. -
Win XP x64 is fully backward compatible to 32 bit softwares using the built in WOW32 technology. Although, 16 bit application support have been discontinued because Microsoft can't go on carrying them forever. So, what you actually need is a 16 bit Emulator. DOSBox is one of the popular ones. You can find more by googling.Many softwares can't get past the Installation point in Win XP x64. This is because the setup validation fails for the Operating System. Many such applications can be run by Copy-Pasting the files and (if required) importing the registry settings. Although, complex applications such as Antivruses designed for 32 bit environments are not likely to run. Perhaps because they need to install drivers or something like that.
-
We can only generate Random numbers within a specified range. However, this number can be used as the index for an array so that we can select a random element from the array, be it an array of Strings, Images, or whatever. What I mean to say is that the process to selecting random picture is the same as that of selecting random strings. Another thing that I must mention is that this whole stuff we have seen above is not generating a random string, rather selecting a random string. Generating random strings would generate something like zxjhtsjbdjgasd or asdxcbjdkhasd. You can however, select a dictionary word from a list or an array. But, it wouldn't be generating either. Back to the first question:- I am assuming you have a collection of wrong answers and a correct answer for each question. (You don't want to make the correct one obvious by filling the wrong ones with those randomly generated strings we just saw, do you?) You need to shuffle the correct answer's position (1, 2, 3 or 4) each time and you need to select 3 wrong answers from the wrong answer collection. I'll be using the function created by ViRuaL. STEP 1: First we generate the random position of the correct answer and store it in our variable: Dim CorrectCh As Integer = RandomNumber(1, 4) STEP 2: Set the correct answer as the text for the appropriate Radio Button: Options(CorrectCh - 1).Text = CorrectAnswer (Assuming Options to be a zero based array of Radio Buttons) STEP 3: For each of the remaining positions, generate a random number. Using this number we select a random answer from the list/array of wrong answers and set the text of the Radio Buttons accordingly. For I As Integer = 1 To 4 If I = CorrectCh Continue For Dim Ch As Integer = RandomNumber(0, WrongAnswers.Length - 1) Dim WrongAnswer As String = WrongAnswers(Ch) Options(I).Text = WrongAnswerNext I Although this code is still not bug free. There's a pretty good chance that the same wrong answer will be repeated. This is because generating a Random Number makes no guarantee that it won't be repeated in the next iteration. To resolve this you can follow either of the ways:- Method 1 Store the selected answers or their IDs in another array. Whenever a new choice is generated, make sure that this number has not been already generated. If it has been then repeat the process again. Dim SelectedWrongAnswers As New List(Of Integer)For I As Integer = 1 To 4 If I = CorrectCh Continue ForRetry: Dim Ch As Integer = RandomNumber(0, WrongAnswers.Length - 1) For J as Integer = 0 To SelectedWrongAnswers.Length - 1 If SelectedWrongAnswers(J) = Ch Then Goto Retry End If Next J SelectedWrongAnswers.Add(Ch) Dim WrongAnswer As String = WrongAnswers(Ch) Options(I).Text = WrongAnswerNext I The inner loop can be eliminated by using a HashTable as follows:- Dim SelectedWrongAnswers As New HashTableFor I As Integer = 1 To 4 If I = CorrectCh Continue ForRetry: Dim Ch As Integer = RandomNumber(0, WrongAnswers.Length - 1) If SelectedWrongAnswers(Ch) <> Nothing Then Goto Retry End If Dim WrongAnswer As String = WrongAnswers(Ch) SelectedWrongAnswers.Add(Ch, WrongAnswer) Options(I).Text = WrongAnswerNext I Method 2 This Method is not quite efficient, because the Retry operation may take many iterations if an already generated random number is being generated again. So a better approach is to use a class that generates a non random number. You can find the VB .NET and C# . NET implementation of such a class at http://forums.xisto.com/no_longer_exists/ The following code uses the RandomNumber class declared at http://forums.xisto.com/no_longer_exists/ Dim WrongAnswerGenerator As New RandomNunber(0, WrongAnswers.Length - 1)For I As Integer = 1 To 4 If I = CorrectCh Continue For Dim Ch As Integer = WrongAnswerGenerator.GetRandomNumber() Dim WrongAnswer As String = WrongAnswers(Ch) Options(I).Text = WrongAnswerNext I
-
You are trying to remove some fixed portion of the text read from the remote file, correct? There's no use for a regular expression over there. Besides, the pattern you are specifying as the first parameter for the preg_replace function is not much of a regular expression either. Just use substr_replace function, that would do the job. P.S. I was unsure if a remote file with query in the URL could be read using fopen but none of the documentation pages depict that. You should post the code inside the [ code ] [ /code ] tags. Codes are not meant to fetch you Credits. Better make this change yourself. You'll loose a lot more points as penalty, if a moderator changes it.
-
Constraints Don't Work In Mysql?
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in Programming
Yes, I am using XAMPP. The "SHOW ENGINES;" statement shows InnoDB as disabled. Perhaps enabling it requires some INI file configuration? Edit: Found the way to enable InnoDB in https://www.mydigitallife.info/2006/10/21/ep-installation/ It all works out nicely now. Thanx for your help. -
Constraints Don't Work In Mysql?
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in Programming
I did try creating the Tables first, but it didn't work. You have hit the correct cause, though. The engine gets reset to MyISAM. When I tried to create a table with phpMyAdmin's interface, I don't see INNODB in the list. These are the storage engines available: MyISAM, Memory, Archive, Mrg_MyISAM.I wonder why? -
Constraints Don't Work In Mysql?
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in Programming
Amazingly it runs without any error for me. What could the issue be? My MySQL Version is 5.0.33 and I tried running the query on phpMyAdmin - 2.9.2. -
Constraints Don't Work In Mysql?
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in Programming
I tried that using the following code:- CREATE TABLE parent (id INT PRIMARY KEY NOT NULL)Engine=InnoDB;CREATE TABLE CHILD(id INT NOT NULL,FOREIGN KEY (id) REFERENCES parent(id))Engine=InnoDB;INSERT INTO parent VALUES (1);INSERT INTO child VALUES (2); But, it got executed nice and well too. -
Constraints Don't Work In Mysql?
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in Programming
Thanks for the information, altimit and welcome to Xisto. Infact I had assumed that this was the desired behavior of MySQL (Constraints being only phony). I thougth it was similar to variables with no types as we have in Javascript, PHP, etc for performance reasons. I had entrusted the validation part to Javascripts and PHP. But, its always better to have them at the lowest level. I have only done a rapid e-learning on MySQL from random pages on the Net. Good ol' google mostly helps out when I am stuck. All these engine stuff where like hocus-focus, so I skipped them altogether. My localhost is running on MySQL 5.0.33, so I tried using the InnoDB engine and ran the following query:- CREATE TABLE parent (id INT PRIMARY KEY)Engine=InnoDB;CREATE TABLE CHILD(id INT,FOREIGN KEY (id) REFERENCES parent(id))Engine=InnoDB;INSERT INTO parent VALUES (1);INSERT INTO child VALUES (2); The query, however, executed successfully even though its still breaking the foreign key constraint. Am I still doing something wrong? -
I must agree that this topic has been really informative, although sometimes a bit naive due to usage of religion. I believe science and only science should be answerable to this.As so many others have questioned, how could such a big universe have life only on one random planet (OK maybe not so random, considering its well suitable for sustaining life)? But, then again, it might just be one of those gigantic Free Roaming Worlds being used in quite a few of the new games. Maybe it is huge just so we could spend centuries roaming through it (first we need to find faster transports).On a serious note, I think we are progressing quite well in terms of improving our existing and innovating new technologies. It might not be in this century or even the next, but some-days, mankind will surely locate their (inter) galactic neighbors.I have some weird queries, though. What if something doesn't require planets to live? What if the vacuum is not so empty? What if other life forms are not composed of DNAs and be like spatial rocks or some form that our machines cannot detect?
-
Ie8 Passes Acid 2 Test
turbopowerdmaxsteel replied to xboxrulz1405241485's topic in Websites and Web Designing
That is very good news for the Web designers. I myself have had to make some IE6 specific optimizations on my site. I am using a low quality version of Maxotek's logo for IE6. Since PNG transparency is not supported by IE6, I had to switch to transparent GIF.My site, which has been around since July 24, has had a decent number of visitors, 5344 to be precise. 52% of which have been from Internet Explorer browsers, 31% Firefox, 4% Opera & 13% belong to the rest.I always thought that IE7 was the most widely used one. But on careful verification, I found out that 54% of the Internet Explorer users were still sticking with IE6, 43% used IE7 and the rest used version 5 or less. -
Unofficial Astahosted Members Directory
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in Programming
Here are the latest additions:- > Added new attrbiutes: Member Since, Posts and an average value of Posts per day. > Some code optimizations towards an object oriented approach. I am also thinking about adding something like a summary which at the ends lists members like:- Member with the highest page rank site. The oldest hosted member. The newest hosted member. The most active hosted member (calculated via the Posts/Day attribute). The least active hosted member. I also wanted to ask if all the members listed in the hosted group are actually hosted. illusion for instance, seems to have joined the forum way back in 2004, but has only 96 posts. Similar cases exist with abhay & polarysekt. One more thing, I would like to request everybody to keep their site link updated in their profile, the script overrides the previous entries (those found from hosting requests) with this value, if found. -
Who Has The Best Site Here?
turbopowerdmaxsteel replied to turbopowerdmaxsteel's topic in General Discussion
Only 15 votes have been casted! Subtractung the self votes from them (including mine), the number of genuine votes would be down to.. half??? I guess no credits for this topic has made an effect. Come on people, use your voting power! -
I have an application that is ready for a beta release at Maxotek. Actually its the third version of Pika Bot. This time though, I am hoping to make some bucks out of it as it won't be completely free. A 30 days evaluation version can be upgraded to the full version at anytime. The trouble I am facing right now is that Pika Bot is rather complex for the beginners to understand or so it seems from the feedbacks I have got from the previous versions. Adding to it is the limitation of my ability to make others understand. So, I am looking for partners who would help me in making the help system for the application. In return I intend to payout in terms of Paypal balance, but that is only possible after the software hits some sale. The existing online help for the older version of the software can be found at http://forums.xisto.com/no_longer_exists/ I also have a few other products under development, most notably Download Warper, a download manager. If someone intends to become a full time partner at Maxotek, I would be extremely glad. Again, earnings would be shared. Just to show the quality of existing products, here's the link to the released softwares, all of which are freewares. Edit: I must add that, I am looking for programmers, help writers and graphics designers.
-
Brute Forcers - I'm Interested What? Where?
turbopowerdmaxsteel replied to ninjamunky's topic in Security issues & Exploits
I can attempt to answer your first query. But, I have no clue about BYOND games.Brute forcing means repeatedly trying to login to a system by trying all the possible password combinations. This can apply to any panel that is password protected. Say, your friend's cell has phone lock enabled and you need to get through it. The cell takes passwords of upto 3 digits. That equates to 1000 total number of possible passwords (0-999). To hack into the system, you can keep trying all these passwords (0, 1, 2, 3 and so on till 999) until you hit the correct one and the lock opens. As simple as it is, this process is known as brute forcing.Using the power of automated systems (password crackers to be more appropriate), one can greatly enhance the speed of this process. I remember making a Password Breaker application that could do just that, on a global basis i.e it could attempt to brute force into any application. That was a long time ago, though and it did have a few defects - like it couldn't determine as to when the correct password had actually been entered.