Jump to content

fiveworlds

Senior Members
  • Posts

    1903
  • Joined

  • Last visited

Everything posted by fiveworlds

  1. Essays generally follow the structure beginning, middle and end. The end can use a buzz words like in "In conclusion" , "lastly", "to close" however you should really only be using one maximum or none at all. Not that I blame you people tend to follow bad online templates. Like this one. So what's wrong with it? Well for one people aren't stupid every heading is unnecessary. Why would you put Curriculum Vitae as the title? the employer knows it is a cv. name and surname? email? telephone number?? all unnecessary stuff people put in for no good reason. Most adults don't care about their IQ. They only care if their child is normal. IQ is just a measure of how well one can do IQ tests.
  2. Warning: Missing boundary in multipart/form-data POST data in Unknown on line 0 ------WebKitFormBoundaryvoBiVkolzq5ctA40 Content-Disposition: form-data; name="username" test ------WebKitFormBoundaryvoBiVkolzq5ctA40 Content-Disposition: form-data; name="password" qaz ------WebKitFormBoundaryvoBiVkolzq5ctA40 Content-Disposition: form-data; name="cpassword" qaz ------WebKitFormBoundaryvoBiVkolzq5ctA40 Content-Disposition: form-data; name="country" Anguilla ------WebKitFormBoundaryvoBiVkolzq5ctA40 Content-Disposition: form-data; name="state" Anguilla ------WebKitFormBoundaryvoBiVkolzq5ctA40 Content-Disposition: form-data; name="test"; filename="Untitled.png" Content-Type: image/png PNG IHDR This is what is recieved by my server when I print out formData. <?php $cookie_name = "username"; $cookie_value = "John Doe"; setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/", "127.0.0.1",true,true); echo $rawData = file_get_contents("php://input"); ?> <script> function sendform(data,action,method,enctype){ var xhr = new XMLHttpRequest(); xhr.open(method, action, true); xhr.setRequestHeader("Content-type", enctype); xhr.credentials = true; xhr.onreadystatechange = function() { if (this.readyState === 4 && this.status === 200) { document.getElementById("test").innerHTML = this.responseText; return false; } } xhr.send(data); } function setcookie(id) { form = document.getElementById(id); action = form.action; method = form.method; enctype = form.enctype; var formData = new FormData(form); console.log(formData); sendform(formData,action,method,enctype); return false; } function validatepassword(){ document.getElementById("test").innerHTML = document.getElementById("cpassword").value; if(document.getElementById("password").value===document.getElementById("cpassword").value){ document.getElementById("validatepassword").style.display = "none"; document.getElementById("password").style.border = "none"; document.getElementById("cpassword").style.border = "none"; }else if(document.getElementById("cpassword").value===""){ } else{ document.getElementById("validatepassword").style.display = "initial"; document.getElementById("password").style.border = "2px solid red"; document.getElementById("cpassword").style.border = "2px solid red"; } } </script> <script type="text/javascript" src="countries.js"></script> <div id="test"></div> <form method="post" enctype="multipart/form-data" action="cookie.php" id="login" onsubmit="return setcookie(this.id)"> Username:<input id="username" type="text" name="username" /><br/> Password:<input id="password" onblur="validatepassword()" type="password" name="password" /><br/> Confirm Password:<input id="cpassword" onblur="validatepassword()" type="password" name="cpassword" /><br/> <label id="validatepassword" style="display:none">The passwords don't match</label><br/> Select Country: <select onchange="print_state('state',this.selectedIndex);" id="country" name ="country"></select><br/> City/District/State: <select name ="state" id ="state"></select><br/> <input type="file" name="test"/><br/> <textarea name="comments" ></textarea> <button type="submit" >Submit</button> </form> <script language="javascript">print_country("country");</script> Okay I found the answer here http://stackoverflow.com/questions/12348216/uploading-a-file-with-xmlhttprequest-missing-boundary-in-multipart-form-data I needed to remove all headers because they are sent automatically by my form.
  3. Yeah I originally made it just to set secure httpOnly cookies on login without reloading the page. True but neither were causing problems at the moment.
  4. I am trying to write a function which will send data to my server, get a response and set secure cookies without having to reload the page. I'm not sure if I am using it correctly though. Everything is fine apart from trying to upload files to the server. I looked it up on stackoverflow http://stackoverflow.com/questions/6211145/upload-file-with-ajax-xmlhttprequest and one response mentioned I should use FormData https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData and parse it as raw data on the server http://php.net/manual/en/reserved.variables.httprawpostdata.php but I'm not sure how to do that properly. <script> function sendform(data,action,method,enctype){ var xhr = new XMLHttpRequest(); xhr.open(method, action, true); xhr.setRequestHeader("Content-type", enctype); xhr.credentials = true; xhr.send(data); xhr.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("test").innerHTML = this.responseText; return false; } } } function setcookie(id) { form = document.getElementById(id); action = form.action; method = form.method; enctype = form.enctype; var data = ""; for(var i=0, inputs = form.getElementsByTagName("input"); i<inputs.length; i=i+1) { if(!(inputs[i].type === "checkbox" && inputs[i].checked!="checked")||(inputs[i].type === "radio" && inputs[i].checked!="checked")){ data = data+inputs[i].name+"="+inputs[i].value +"&"; } } for(var i=0, inputs = form.getElementsByTagName("textarea"); i<inputs.length; i=i+1) { data = data+inputs[i].name+"="+inputs[i].value +"&"; } for(var i=0, inputs = form.getElementsByTagName("select"); i<inputs.length; i=i+1) { data = data+inputs[i].name+"="+inputs[i].options[inputs[i].selectedIndex].value +"&"; } sendform(data,action,method,enctype); return false; } function validatepassword(){ document.getElementById("test").innerHTML = document.getElementById("cpassword").value; if(document.getElementById("password").value===document.getElementById("cpassword").value){ document.getElementById("validatepassword").style.display = "none"; document.getElementById("password").style.border = "none"; document.getElementById("cpassword").style.border = "none"; }else if(document.getElementById("cpassword").value===""){ } else{ document.getElementById("validatepassword").style.display = "initial"; document.getElementById("password").style.border = "2px solid red"; document.getElementById("cpassword").style.border = "2px solid red"; } } </script> <script type="text/javascript" src="countries.js"></script> <div id="test"></div> <form method="post" enctype="application/x-www-form-urlencoded" action="cookie.php" id="login" onsubmit="return setcookie(this.id)"> Username:<input id="username" type="text" name="username" /><br/> Password:<input id="password" onblur="validatepassword()" type="password" name="password" /><br/> Confirm Password:<input id="cpassword" onblur="validatepassword()" type="password" name="cpassword" /><br/> <label id="validatepassword" style="display:none">The passwords don't match</label><br/> Select Country: <select onchange="print_state('state',this.selectedIndex);" id="country" name ="country"></select><br/> City/District/State: <select name ="state" id ="state"></select> <textarea name="comments" ></textarea> <button type="submit" >Submit</button> </form> <script language="javascript">print_country("country");</script> <?php $cookie_name = "username"; $cookie_value = "John Doe"; setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/", "127.0.0.1",true,true); echo $_POST["password"]; ?>​
  5. Right... underqualified adults don't help the situation. That's stupid you'll never keep up with your homework without the internet. So you report the bullies to your teacher.
  6. More like deliberately trying to get famous and make a fortune.
  7. Why would you want 5000 facebook friends?? I have 147 all people I know reasonably well.
  8. An anti-theft app. You can force install to a phone's imei number. It will then send location data, videos, pictures etc. Of course only the police can do that well unless you deliberately install it. https://www.cerberusapp.com/ Search engines can find photos. Stolen phones tend to be used for porn or sold for parts.
  9. ​ The police can trace photos. Catch him/her?? You have no idea what the police are capable of they can record video, copy the computer contents and track the location, keep copies of all emails, text messages and calls. Cerberus can trace you anywhere in Europe.
  10. Most English speaking countries have laws which will protect you regardless of whether you are a foreigner or not. Stalking is illegal both online and offline stop putting up with it and report it. Identity theft happens and is also illegal most of these people get caught eventually and the scripts to find them get better everyday.
  11. What a bunch of baloney. Why should you be scared of people online?? Ninety nine percent of the time they won't be in a position to hurt you anyway because they live far away. Sure they can spread rumors but then you can put them in jail for spreading those rumors and they are the ones that ruin their careers not you. Would you refuse to walk down the street because you might get robbed??
  12. I'll show the circuit. I'd love to make one but I don't have the parts at home I'd have to buy them.
  13. No it was an online job.
  14. The idea was this guy was a rally car driver and wanted to have buttons on the steering wheel to change gears. Yeah I was only doing the programming side of it. He was using 3 solenoids for the gears so I had to write the program to move them with the arduino. It isn't that difficult but it is a fun project. It also included programming a 7 segment display for the dash to display what gear the car was in.
  15. A fun recent completed project of mine I thought would be fun for people here. Convert a manual car to automatic using arduino or an alternative. A typical car runs on a 12volt battery. There will be either 4 buttons gear up, gear down, reverse and clutch alternatively you may leave out the clutch.
  16. But fake bank cards will not be in the bank's database. They will need to make a copy of a real active bank card. If you try to use a fake card 99.9% of the time it isn't going to work just like using a cancelled bank card. Also all french bank cards use the chip and pin system. You must know the pin in order to use the card. Failing to get the pin right a number of times will result in the card being cancelled and will most likely get reported to the police.
  17. The main problems with bitcoin are 1. Security 2. Black Market From a security standpoint it is possible to get a virus on your computer and therefore lose the bitcoin wallet. Bitcoin provides a fairly untraceable online currency for criminals to exchange goods.
  18. When Cherenkov Radiation was discovered Einstein revised GR and wrote SR which allows for the existence of Tachyons. Stating that if a particle exceeds c it will always travel faster than c unless an external force causes it to slow down.
  19. Found it. It comes from the e=1/root(1-(v^2/c^2))mc^2 where it is undefined for v=c. Not to be a ninny but all that says is that we can't accelerate to exactly c. I.E. we would break the light barrier since it is defined again for speeds greater than c.
  20. Where does it say that???
  21. I think the easiest would be work really hard and run for president. Or in absense of that assassination of targets with high politcal value and framing opposition parties.
  22. I don't think so. Eiso Kant is the ceo of sourced according to the site and that is also who sourced.ai is registered to. Also https://twitter.com/Worvast/status/702057898671742977
  23. If it was real it would have been great six months ago before I started college I don't intend on leaving college to pursue it anyway. This is the email I received.
  24. A guy called Petros Koklas from source{d} emailed me about how he had read my github page asking if I was willing to work in Paris in frontend development for a company called zen.ly and if I knew React or wheter I would be willing to learn React. Is source{d} a scam or not and if not do you think it is worthwhile learning React right now??
  25. Yet some small animals appear to have biological immortality in the right conditions.
×
×
  • 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.