Jump to content
xisto Community

no9t9

Members
  • Content Count

    780
  • Joined

  • Last visited

Everything posted by no9t9

  1. This is how I envision the "afterlife" or "heaven"...Quite simply heaven is on earth... and so is hell. Everyone has a different life and for some, they are happy and have everything they want... they have a spiritually fulfilling life, a life full of love, etc. This person would be in "heaven". Then, there are other people on earth who are in "hell" because they have nothing. They are alone, they are sad and depressed, and more.Now, here is the tricky part. Who gets the good life and the crappy life? This depends on how you have lived your previous life. You live and do good deads, you die and get rewarded by reincarnating into a better life. IF you do bad deeds, you die and your next life will be a bad one.
  2. rsort should work. If you have copied your code directly out of your test page, it is not working because the variable you are using for the rsort function is missing the $.Try that. It should work.
  3. I'm not sure why you need to do it in ascending order because it doesn't matter. If you simply want to display the missing invoice numbers in the reverse order, simply change the echo statement that displays the missing invoice number to assign them into an array. Then manipulate the array anyway you like. As for the other question, I'm not sure what you are asking... What do you mean? Another thing, if you are just manipulating invoicenumbers, you don't need to SELECT * --- Just need to SELECT InvoiceNumber
  4. That's even easier than displaying all the numbers in between. I leave it up to the original poster to decide what they want.
  5. LIFE is made up of "general sweeping statements". That is how the world works. If the majority of cases are true, it is not just a "general sweeping statement", it because the NORM. Why would you argue with me on exceptions? There are always exceptions! If you want to be that way, you can't make ANY statements. When you are talking about a particular group (teen or adults or whatever), you MUST make "generalizations". How can you even talk about them if you don't? Do you know what the normal curve is? As for the OP... this guy is complaining about kids using "ur mom". Of all the things to complain about, this is definately not a "mature" topic to complain about. Seems, my "sweeping" statement will apply to the OP...
  6. that depends on how you define maturity. does maturity mean to you someone who is quiet and well behaved? I think that's what it means to you. Just because the kid never behaves badly doesn't make him mature. maturity means having the ability to make the right decisions. You can be mature and through water bombs at people. being mature doesn't mean you can't have fun. mature: throwing water bombs at people immature: throwing water bombs at people on the street from the 30th floor balcony mature: being loud and randy immature: being loud and randy at a funeral
  7. you have a funny way of defining scam. Like i said, just because YOU got paid doesn't mean the system isn't a scam! Just because they tell you that this isn't 100%, that is not enough to cover their **bottom**. In fact, this is really only said in the terms and conditions AND they play that fact down a lot. In contrast, all over the site, they advertise in big words 12% in 12 days or whatever the deal is... They DID promise something they couldn't deliver. They said that they would give you 12% or whatever... but they did NOT say that some of you will NOT recieve a dime FOR SURE. People have the REASONABLE expectation that they will get what they pay for. In this case, it is not a matter of IF 12dailypro will fold but WHEN. People were told that this system will be kept alive through advertising, blah, blah... People who bought into the system were NOT TOLD that this system WILL fold. In case you didn't know this type of scheme is ILLEGAL simply because it is simply a REDISTRIBUTION of money benefiting those who sign up early. There is nothing being sold, and there is no service offered. People are SCAMMED into thinking it is some kind of investment. Stormpay (or Scampay) as you call it, is NOT the one scamming you. The FBI ordered them to stop payments because it is ILLEGAL. ANYONE participating in this scam can be CHARGED. Now, keep in mind that the FBI only has jurisdiction in the USA... But, many countries have similar laws against these types of scams. Like i said in the previous thread, DO NOT reinvest if you've gotten paid. Use at your own risk. It is not Stormpay's fault that you are participating in illegal activities...
  8. The code simply compares each number to the next number. If it is not incrementing by 1, it determines how many are missing (by subtracting the two). The nested loop basically displays each one that is missing. first line: For (i=0,i<Count(Results)-1,i++) { the first line sets up a loop that will run through ALL the numbers in the Results array (minus 1). Why minus 1? You will see later... The Count(Results) part of the for loop basically determines how many elements are in the array. So in this example, the number of elements returned will be 4. That means the counter "i" will go from 0 to 2 because i used the < instead of <= second line: If ((Results[i+1]-Results[i])>1) { the second line compares the current number with the next number. If the difference is > 1, then you know it is not in sequence. third line: For (c=1,c<(Results[i+1]-Results[i]),c++) { Now that we now the numbers are out of sequence, the third line is a nested for loop which counts HOW MANY numbers are missing from the sequence. fourth line: echo Results[i]+c fourth line is part of the nested for loop and will basically display each number that is missing. example: Just use an example and follow it through. I will try to explain it but it is hard... you have invoice numbers as follows 1001, 1002, 1004, 1007 assume you pulled these out of your database, ordered them in ascending order, and assigned them into the array Results. so... Results[0]=1001 Results[1]=1002 Results[2]=1004 Results[3]=1007 For (i=0,i<Count(Results)-1,i++) { If ((Results[i+1]-Results[i])>1) { For (c=1,c<(Results[i+1]-Results[i]),c++) { echo Results[i]+c }}} first time through the for outside loop (i=0)- Results[0+1] - Results[0] = 1002 - 1001 = 1 ---- this is not > 1 so the if statement skips the nested for loop - the if statement skips the display of missing numbers because no number was missing between 1001 and 1002 second time through the outside loop (i=1) - Results[1+1] - Results[1] = 1004 - 1002 = 2 ---- this time, 2 > 1 so the code proceeds into the if statement. -----inside the if statement------ nested for loop first time through (c=1, i=1) - display missing number Result[1]+1 = 1002 + 1 = 1003 ---- 1003 is displayed on the screen which was the missing number between 1002 and 1004 nested for loop second time through (c=2, i=1) - in this case the for loop will exit because the condition "c<(Results[i+1]-Results)" fails. ---- the second time through c=2 and the condition is that c < 2 -----if statement done----- third time through the outside loop (i=2) - Results[2+1] - Results[2] = 1007 - 1004 = 3 ---- 3 > 1 so the code proceeds into the if statement. -----inside the if statement------ nested for loop first time through (c=1, i=2) - display missing number Result[2]+1 = 1004 + 1 = 1005 ---- 1005 is displayed on the screen nested for loop second time through (c=2, i=2) - display missing number Result[2]+2 = 1004 + 2 = 1006 ---- 1006 is displayed on the screen nested for loop third time through (c=3, i=2) - in this case the for loop will exit because the condition "c<(Results[i+1]-Results)" fails. ---- the third time through c=3 and the condition is that c < 3 -----if statement done----- fourth time through the outside loop (i=3) - in this case, the loop will exit because the condition fails "i<Count(Results)-1" i =3 and Count(Results) - 1 = 3 in the end 3 numbers were displayed on the screen 1003, 1005, and 1006
  9. I know what my code does. Unlike everyone else in this thread, I've actually tried to answer the original poster's quesiton. My code does exactly what was asked for. The requirements were spelled out and were very simple to understand. The original poster wanted a way to determine missing numbers from a sequence of numbers. I have solved the problem. The other stuff you don't understand doesn't help solve the original problem. You can discuss "best practices" that should be used all you want but you don't know what the original poster's constraints are. What if the company already has 100000 invoices that were on paper and now they are entering them into a new system? In this case, the invoice numbers have already been "generated". The user simply wants to know if there were any missed invoices during the data entry. If the original poster actually employed such systems (accounting, invoice number control), that you are so concerned about, you would have to spend a lot more time that a few minutes on this board to understand and make responsible suggestions for improvement. Chances are the original poster has the most knowledge of his system and he knows what he needs the most... not you. And "Trust me", I know about billing systems and many other systems. It is part of my job.
  10. I've discussed this topic before. Don't want to get into it, but I think it is WRONG. Homosexuality is a deviation from the "normal" which makes it wrong. Anything that is not acceptable to the majority of society is wrong. If you want to change the social norm, that's a different story. But, as it currently stands, being gay is definately wrong.
  11. i just bought a dual core laptop from Dell yesterday. It is pretty cheap. http://forums.xisto.com/no_longer_exists/ 999.99 canadian which is like 850 US . i am just going to get a canadian friend to bring it down for me. it has duo core, 512 ram, 100gb hd 5400rpm, 128 onboard video. it's pretty cheap laptop for dual core.
  12. they release screen shots from renders off a computer. Not straight from the box. They do it all the time.
  13. I'll bet some teachers do "it" after school (also before and during school). There are some young teachers and I KNOW it happens (not only for the young ones too).As long as it isn't with the students i guess... and as long as they don't get caught...
  14. it IS a scam. Just because someone gets paid doesn't make it "legit". Funny how you think Stormpay is the scam when they are actually a legitimate payment processor. 12dailypro must love people like you, because without people who believe 12dailypro is "for real", the thing would collapse even faster than it did. These programs ROB money from those who sign up late and shift that money to those who signed up earlier. This is a SCAM and is ILLEGAL to boot. See my comments in this thread regarding why this is a scam and how it works. http://forums.xisto.com/topic/30800-this-really-works-and-i-have-my-check-to-prove-it/=
  15. I don't think the others understand the application. I think they were confused when you mentioned auto-increment. The application here is that the InvoiceID field is DIFFERENT from the InvoiceNumber. This is a totally acceptable way to set up your database schema. The application here is that the user may not enter the invoice numbers in order (for various reasons such as pending order which was mentioned earlier). This means the InvoiceNumber field CANNOT be auto-incremented. The solution to your problem is pretty simple. All you have to do is compare each invoice number to the previous one. 1. Select the invoice numbers from the table and order by ascending (small to large). 2. Use a loop structure to compare EACH invoice number 3. Use another loop (nested) to display the missing invoice numbers Here is a some sample code for the loop/if structure to get you started. I am going to assume you know how to select the invoicenumber from the table and order it into ascending order. Also, I am going to assume that you place all the invoice numbers into the array: Results. Note: I am not bothering to put $ in the variable names and ; after lines... takes too long and I am lazy. For (i=0,i<Count(Results)-1,i++) { If ((Results[i+1]-Results[i])>1) { For (c=1,c<(Results[i+1]-Results[i]),c++) { echo Results[i]+c }}} That's it. The loop checks each number by subtracting the difference and then displays the invoice numbers for each instance that it is missing i didn't test it or anything, but the logic should work... just make sure the counters are all right Edit: Also someone mentioned duplicate invoice numbers. This will not check for duplicates. Checking for duplicates should be done at the point where you submit the data, not when it is already in the database. Checking for duplicates is even easier than the above. Let me know if you need help on that...
  16. teenagers always think the "other" teenagers are immature. It is so funny. I love how teenagers always talk about other teenagers being immature and acting like this or that... 99.999% of teenagers ARE immature no matter what they say or how they act. They simply cannot understand life with such brief life experience.
  17. There are no wireless mice that use infrared. I think you are talking about RF wireless mice. They are radio freqency mice. The reason why they are such short range is because they operate at low frequencies (and low power).
  18. This is definately not good news for Sony. By the time Sony is able to get the console out, microsoft xbox 360 will have already been out for 1 year. In that year xbox 360 will have a substantial library of games and the price of manufacturing will have come down a lot... meaning by next christmas, I would expect xbox 360 will have more games AND a price drop timed to the release of the PS3. Sony will either take huge losses on the first few systems or sell at a higher price. The higher price will mean fewer units sold.Sony should really not even bother releasing PS3 if it is going to be delayed another 6 - 12 months. If I were them, I would leap frog xbox 360. Come out with a far superior console that will justify a higher price. Skip this generation console. If that isn't possible, the next best move is to work with game developers in the coming year and produce some kick **bottom** games. Make more games for the release and some games that will be a "must buy".Sony is in serious *BLEEP*...
  19. i don't know what schools you people go to... but I don't see why your schools still require you to hand in reports that are hand written and on lined paper. Hand written reports... wow. All sudents use computers to do their projects and homework. The only time pen and paper are used is during class for note taking. And in university, even note taking is done on the computer.
  20. actually, I find realmedia's RM and RMVB is the best. a 700mb divx movie can be reduced to 350mb without any noticable reduction in quality. it is great. downloading is much easier when it is half the size. I can get a whole movie in 20mins rather than 40mins.Back on topic though, There are a bunch of programs that will convert to DivX. Just google it. A basic converter that is good for beginners is WinAVI. You can use it to rip a DVD to DivX or convert many other formats to divx
  21. if you are from th USA, you will be required to provide a tax ID. that is how thr IRS will know if you reported your income or not. also google will send you a statement at the end of tthe year (i forgot what the form code was). though they send you the statement, google does not "deduct" taxes for you. They simply send you a summary of earnings so you can report it yourself.
  22. trying to do what you want is not difficult but it is not a good way to code. It is better to use logic to get things done... also, Personally, I don't like switch statements, why not just keep it simple and use if statement for only 2 conditions. one other thing, assuming what you did works... you would have for(x>0,x=total,x++) and for(x=total,x>0,x--) ... that first for loop doesn't work... I am assuming you wanted for(x=0, x<total,x++). This is what you should do. if ($_GET['date'] == 'asc') { $i = 0; $j = $total }else if ($_GET['date'] == 'desc') {$i = -$total; $j = $0 }for ($x=$i;$x<$j;$x++) { do stuff } If you are actually using the count down counter for something just switch the sign (from neg to pos).
  23. i am assuming google is going to give out 2gb PER ACCOUNT. just like their regular gmail service for the public
  24. There is absolutely no way your "idea" complies with google adsense's terms of service. 1. No Adsense click "rings". 2. You cannot "input keywords" to bring up ads you want. 3. Your adsense code must be on pages that you control. To be honest, if I were you, quit while you are ahead. Google Adsense looks for patterns in clicking. They will eventually figure it out. If you stop your thing now, run with the money and Google won't find out. But if you continue, eventually Google will ban all accounts in your "ring". The only way to prolong your "ring" is to get fresh clickers. The more the better. IF you have a LOT of clickers from many different countries, etc... it will be harder for Google Adsense to figure out what you are doing. But in the end.. what you are doing is an immediate ban from google.
  25. google does not deduct taxes from your earnings! They are NOT your employer and that is why they do not deduct taxes. Google treats you as a contractor. And as for the bank taking the taxes when you cash the check, that is totally wrong. Banks will NEVER deduct taxes for you. It is up to you to declare your own taxes. As posted before, google adesense earnings are considered extra income, like renting out your house, or if you had your own business (non-incorporated). There is a minimum amount where if you make less than that amount, you do not have to declare taxes.I don't remember what that amount is, since I make much more than the minimum... though not from adsense... from my job...
×
×
  • 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.