Jump to content

jscix

Members
  • Posts

    197
  • Joined

  • Last visited

    Never

Everything posted by jscix

  1. Seems to think it died in 2002. I have more up-to-date things to worry about than proposed legislation that went into limbo five years ago. Guess I was worked up over nothin then, well topic obviously solved. modify: I have to admit it irks me that legislation like this, is even considered though. And Sorry for posting old news.
  2. Additional Resources http://thomas.loc.gov/cgi-bin/bdquery/z?d107:s.02048: http://www.wired.com/politics/law/news/2002/03/51245 http://www.businessweek.com/bwdaily/dnflash/mar2002/nf20020327_2364.htm
  3. This post is about tcpa, which is basically going to be the end of open source software. Please repost this on your blogs/Social networking sites and social bookmarking sites.. we can't let this bill pass. http://www.againsttcpa.com/what-is-tcpa.html http://en.wikipedia.org/wiki/Trusted_Computing_Group What this essentially means is that if one were to buy a TPM computer, any software which did not have a license under the TCG would not be able to run. This, then, means that a 'lockout' of sorts would exist to small to mid-sized companies who perhaps would not be able to afford licenses. It would also mean that Open Source software, which is often run by unpaid individuals, would be locked out of the computer market due to the impracticality of such an organisation having a license. This has been seen in a less than favourable light by certain groups due to this apparent coup by Proprietary based companies, such as Microsoft [1] to gain back control of the software market.[2] In addition to this, there are plans to use TPM to remotely remove and censor certain things such as MP3s and Software. [3] In the USA there's a planed bill, the so called CBDPTA (Consumer Broadband and Digital Television Promotion Act). First it was callen SSSCA (Security Systems Standards and Certification Act). The new name reads much more harmless. Looks like the first name made it too easy to discover the purpose of this bill. This bill plans to legally force secure (TCPA-conform) systems. So in the USA it would then not be allowed to buy or sell systems that are not TCPA-conform. Passing this law would be punished with up to 5 years of prision and up to $500.000 fine. The same would apply for development of "open" software. Open means that it would work on systems that're not TCPA-conform.
  4. Okay, This code actually works.. but it is Ridiculously slow. (and I know, I know.... Don't use goto.. :/ ) well, For some reason the ListView control isn't enumerable(I've read somewhere you can add in functionality, but I'm still a noob.) Anyway.. I'm wondering if anyone has a better alternative for this, or can help me correct my code, to make it faster. DreamWords is the ListView object. int curind = 0; int cntdw = (DreamWords.Items.Count - 1); int innerind = 0; int Dup = 0; DreamWords.Focus(); while (curind <= cntdw) { cntdw = (DreamWords.Items.Count - 1); DreamWords.Items[curind].Selected = true; string curword1 = DreamWords.SelectedItems[0].Text; curind++; while (innerind <= cntdw) { restart: ; cntdw = (DreamWords.Items.Count - 1); if (innerind > cntdw) { innerind--; goto restart; } DreamWords.Items[innerind].Selected = true; string curword2 = DreamWords.SelectedItems[0].Text; if (curword2.Equals(curword1)) { Dup++; } if (Dup == 2) { DreamWords.SelectedItems[0].Remove(); curind = 0; } innerind++; } Dup = 0; innerind = 0; }
  5. Line 1. SELECT a,b,a+b INTO OUTFILE "/tmp/result.csv" ---> Selecting which data to process (Which Fields to collect information from) ---> Save collected data into result.csv (File) Line 2. FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' Line 3. LINES TERMINATED BY "\n" ---> I've never used these commands, But I assume they are for data parsing .. ---> Looks like it says: any text that may be enclosed in ' ', and seperated by , and \n signfying the end of a line. Line 4. FROM mytable ---> The Table which holds the feilds, you are collecting data from .. (See line1)
  6. <?PHP $target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['Filedata']['name']); if (move_uploaded_file($_FILES['Filedata']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['Filedata']['name']). " has been uploaded"; $contents = file_get_contents($target_path); print_l ($contents); } else { echo "Error Uploading File."; } ?>
  7. if it's your server, you would be able to chown under your OS, and would have no need to do it through php. if your trying to gain access to other peoples files, we arent going to help you.
  8. http://databases.about.com/od/sql/l/aajoins3.htm http://www.udel.edu/evelyn/SQL-Class2/SQLClass2_SQL.html http://www.devx.com/tips/Tip/13075 These should give you a good understanding,
  9. I'm not sure how your information is setup, but you may be able to make this a bit easier by fetching multiple requests at once, and printing them out together, you have a massive loop with multiple inbedded loops, this is bound to be confusing.. especially if you will need to go back at some point and modify your code. Generally the best answer is a simple one, try a new approach I think. http://www.samspublishing.com/articles/article.asp?p=377068&seqNum=9&rl=1
  10. You seem like you dont understand alot of the underlying mechanisms of programming .. html and so on. It would do you good to read up a bit on these.. it will help alot in your programming. Buy/checkout some books on HTML, CSS and PHP.
  11. It didnt have anything to do with the function you used to print the html. When you use: " Any Following "s must be escaped,( Escape is \ ||| So to escape " you would type \" ) until the closing "; If you dont want to escape every ", you can also use a single quote ' $variable = "this is my 'example' see?"; // this works .. It also works the other way: $variable = 'blah blah "example" ya'; nothing to do with print or echo..
  12. print the variable containing the html, with this function print (htmlspecialchars($variable));
  13. http://www.devwebpro.com/devwebpro-39-20010817Temporary-Tables-With-MySQL.html
  14. Setup a small table where you can store a timestamp and randomly picked image. then you'd just need to check check the timestamp of that table before calling your pick-a-random-image code.
  15. False, http://md5.rednoize.com/?q=a669c4570f99fab64c98225fc33601e6&b=MD5-Search or just do a google search.
  16. Eclipse with the php addon is good, but I prefer Notepad++
  17. what string is it outputting to the sql server? try: $tehstring = (myArray->options[0]); mysql_query("UPDATE OPTIONS SET bar='" . $tehstring . "' WHERE EVER ") or die("Error: " . mysql_error());
  18. do you mean auto-select a value in a drop down list-box? the html is: selected="list-item" I'm not positive with radio buttons.. you should be able to look that up on google easily though.
  19. You shouldn't have that loading time, usually mysql queries are relatively fast.. anyway.. assuming it's just the sql-server lagging.. depending on the kind of data you are retreiving.. grab all the data that your scripts will require on the first connection and set all the data into session variables.
  20. UPDATE "table_name" SET column_1 = [value1], column_2 = [value2] WHERE {condition}
  21. we'd need way more information that that. What is the script? Does it end with an specific error?
  22. http://en.wikipedia.org/wiki/Chown
  23. if you've got access to the server, check the user permissions on the folder for your account. perhaps you/php doesnt have access to the directory.
  24. jscix

    id

    mysql internally keeps record of auto-incrementing values.. i'm sure you could look it up.. I personally haven't dealt w/ it before.. is there any specific reason you want to start it over? It doesnt really effect anything.
×
×
  • Create New...

Important Information

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.