Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 06/19/2018 in Posts

  1. 1 point
    If you have a problem with your car, would you show the mechanics only a picture of the car or bring them the car so they can inspect it and identify the problem.
  2. 1 point
    Those are diff files. They describe changes to a file. The + and - describe lines that have been added or removed.
  3. 1 point
    The folder contains a readme file, did you read it? It tells you how to compile it. There's also a FAQ, and there's an index file which describes the other files. If you're talking about files in a directory like contrib, did you read the readme.contrib file? Inside the pascal folder in the contrib folder, did you read the readme.txt file? What if you're writing a program in Pascal and want to use zlib? I can name a file anything I want, it doesn't mean that it's whatever a website says a certain file extension is for, and it doesn't mean that Windows will open the correct program if I just double-click on it. If I rename a picture file with a .adb extension, does that mean that picture is now a database? If you open one of those adb files in a text editor, do you see a database?
  4. 1 point
    You look for a value that you previously set. If it's not there, set it. The actual value is arbitrary.
  5. 1 point
    Right. You can only substitute variables in strings, PHP will not recognize an expression inside a string.
  6. 1 point
    Print $url to see what you're actually setting it to, it does not look like your example output. You should probably also encode those square brackets, they are defined as reserved characters which may be used as delimiters.
  7. 1 point
    In general, you compile it the same way you compile anything else. You need the source code, any dependencies, and a compiler for whatever language was used to write it.
  8. 1 point
    You need a script tag for the scrollspy plugin in addition to the jQuery one.
  9. 1 point
    https://www.nudge.online/_utilities/php/matomo/index.php?module=API&action=index&method=Events.getCategory&url=www.grammarcaptive.com&idSite=1&period=year&date=today&segment=&expanded=&secondaryDimension=&format=json&token_auth=363130ebb19736863e42030f91269e40
  10. 1 point
    Every value in a URL or form is a string, so an empty string makes sense if there's no value. If an empty string is a valid value and you need another one, then pick another value that you want to use to represent that or maybe just remove those items from the URL altogether. It's not common to have single quotes in a URL at all though.
  11. 1 point
    It may be a compatibility issue in using document.getElementById("preview").style = "multiple style properties" to set multiple properties. IT IS advised to use this to set a singular property only, while by using document.getElementById("preview").style.cssText = "multiple style properties" OR document.getElementById("preview").setAttribute('style', 'multiple style properties') is another option.
  12. 1 point
    <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" id="viewport" content="target-densitydpi=high-dpi,initial-scale=1.0"> <title>Document Title</title> <style> #wrap {width: 20%; margin: 0 auto;} /* form {border:3px solid #ccc; padding: 15px; margin: 10px;}*/ form > table {width: 100%;} .single-count{} .text-right{text-align: right;} .vert-middle {vertical-align: middle; text-align: center;} </style> </head> <body> <div id="wrap"> <form name="myForm" action="#"> <table border="1" cellpadding="2" cellspacing="2"> <tr> <td style="width:80%;">(YB)Go/Walk-To/From</td> <td style="width:10%;"><input class="single-count" type="checkbox" name="chkboxGrp0[]" value="1" /></td> <td class="vert-middle" style="width:10%;">0</td> </tr> <tr> <td>(YB)Bring-Stack-Comic</td> <td><input class="single-count" type="checkbox" name="chkboxGrp1[]" value="1" /></td> <td class="vert-middle">0</td> </tr> <tr> <td colspan="3">(YB)Pick-up</td> </tr> <tr> <td class="text-right">TV-Remote</td> <td><input class="single-count" type="checkbox" name="chkboxGrp2[]" value="1" /></td> <td class="vert-middle" rowspan="4">0</td> </tr> <tr> <td class="text-right">Cup & Cookies</td> <td><input class="single-count" type="checkbox" name="chkboxGrp2[]" value="1" /></td> </tr> <tr> <td class="text-right">Comic</td> <td><input class="single-count" type="checkbox" name="chkboxGrp2[]" value="1" /></td> </tr> <tr> <td class="text-right">Video-Controller</td> <td><input class="single-count" type="checkbox" name="chkboxGrp2[]" value="1" /></td> </tr> <tr> <td>(YB)Hold-Milk-Carton</td> <td><input class="single-count" type="checkbox" name="chkboxGrp3[]" value="1" /></td> <td class="vert-middle">0</td> </tr> <tr> <td>(YB)Pour-Cup</td> <td><input class="single-count" type="checkbox" name="chkboxGrp4[]" value="1" /></td> <td class="vert-middle">0</td> </tr> <tr> <td colspan="3">(YB)Carry-X</td> </tr> <tr> <td class="text-right">Cup & Cookies</td> <td><input class="single-count" type="checkbox" name="chkboxGrp5[]" value="1" /></td> <td class="vert-middle" rowspan="3">0</td> </tr> <tr> <td class="text-right">Comic</td> <td><input class="single-count" type="checkbox" name="chkboxGrp5[]" value="1" /></td> </tr> <tr> <td class="text-right">Video-Controller</td> <td><input class="single-count" type="checkbox" name="chkboxGrp5[]" value="1" /></td> </tr> <tr> <td colspan="3">(YB)Hold-X</td> </tr> <tr> <td class="text-right">TV-Remote</td> <td><input class="single-count" type="checkbox" name="chkboxGrp6[]" value="1" /></td> <td class="vert-middle" rowspan="3">0</td> </tr> <tr> <td class="text-right">Cup & Cookies</td> <td><input class="single-count" type="checkbox" name="chkboxGrp6[]" value="1" /></td> </tr> <tr> <td class="text-right">Video-Controller</td> <td><input class="single-count" type="checkbox" name="chkboxGrp6[]" value="1" /></td> </tr> <tr> <td colspan="2" style="font-weight: bolder;" class="text-right">Total Group Selected</td> <td style="text-align: center; font-weight: bolder;" class="text-right"><span id="chkboxGroupCount">0</span></td> </tr> </table> </form> <div>Selected: <span id="chkboxSelected">None!</span></div> </div> <script> var chkbox = document.getElementsByClassName('single-count'); var chkboxTotal = document.getElementsByClassName('vert-middle'); for (var i = 0; i < chkbox.length; i++) { chkbox[i].checked = false; chkbox[i].addEventListener('click', chkboxGrpCount); } function chkboxGrpCount() { for (var i = 0; i < chkboxTotal.length; i++) { chkboxTotal[i].innerHTML = "0"; } var inputNameArray = []; for (var i = 0; i < chkbox.length; i++) { var chkBoxNameStripSqrBraces = chkbox[i].name.replace('[]', ''); if (inputNameArray.indexOf(chkBoxNameStripSqrBraces) === -1 && chkbox[i].checked === true) { chkboxTotal[parseInt(chkBoxNameStripSqrBraces.replace('chkboxGrp', ''))].innerHTML = "1"; inputNameArray.push(chkBoxNameStripSqrBraces); } } document.getElementById('chkboxGroupCount').innerHTML = inputNameArray.length; if (inputNameArray.length === 0) { document.getElementById('chkboxSelected').innerHTML = "None!"; document.getElementById('chkboxSelected').style.color = "black"; } else { document.getElementById('chkboxSelected').innerHTML = inputNameArray.toString(); } if (inputNameArray.length !== chkboxTotal.length) { document.getElementById('chkboxSelected').style.color = "red"; } else { document.getElementById('chkboxSelected').innerHTML = "ALL Selected"; } } </script> </body> </html>
  13. 1 point
    Sure, why not? <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title> HTML5 page </title> <!-- link rel="stylesheet" href="common.css" media="screen" --> <style> fieldset { width: 10em; } </style> </head> <body> <fieldset id="GC"> <legend>Group Count</legend> <input type="checkbox" value="4"> 2<sup>2</sup> <input type="checkbox" value="2"> 2<sup>1</sup> <input type="checkbox" value="1"> 2<sup>0</sup> </fieldset> <input type="button" value="Submit Group Count" id="submit"> <script> function summate() { var sel = document.getElementById('GC').querySelectorAll('input'), sum = 0; for (var i=0; i<sel.length; i++) { if (sel[i].checked) { sum += Number(sel[i].value); } } // return sum; alert('Sum: '+sum); } function init() { document.getElementById('submit').addEventListener('click',summate); } init(); </script> </body> </html>
  14. 1 point
    Every meaningful sequence of symbols comes from a source that should have documentation that describes how to interpret the symbols in the sequence. If you have a meaningless sequence of symbols, no meaningful information can come from it.
  15. 1 point
    Leading zeros do not change the value of the number. If you have 789 things, is 0000000000789 a different number? No, it's not, the zeros do not change the number. The hex value would be 0010 0011 0101, those are the three bytes, but if you put those together then you don't need the leading zeros. Also, this only matters if you are treating this as an actual number. Maybe those 2 leading zeros are part of the binary data, which means you would not remove them. If you're going to convert it to a number though, then you don't need leading zeros.
  16. 1 point
    Well, think about that question. All you have is a sequence of hex digits, right? Is there any other information there? Is there anything other than the actual hex digits? Because if there's not additional information about how to split that up or which digits go with each other, then is there a way to get any other information at all about the hex digits? I mean, take hex out of the equation if you want to. Here, base-10 digits: 513857634343546894648435486743543634 Now, if I tell you that the above is 3 numbers that are concatenated, how do you know what those 3 are? Is there any information in the above series of numbers which is telling you how many numbers there are or where they are separated or anything? What about letters: nauehdncifoendkdusydngkshcufwnwiiaksdhgk Now, that's 3 passwords concatenated. Is there any information there to tell you how to separate those? Why do you think hex is magically different? Why do you think a series of arbitrary hex characters contains some additional information that you're not seeing that would tell you which characters are part of groups?
  17. 1 point
    I'm not sitting there watching you, but when you are encrypting and decrypting data you are not dealing with "characters", you're dealing with binary data. If you open it in a text editor, the text editor will try to convert it to characters and show those, but it is not character data, it is binary data. You need to understand that, I've been trying to make the point that you are dealing with binary data, not text. If you copy and paste that binary data around you might be losing information depending on how you're copying it, because you're probably copying it from a program that is trying to display it as text. It is not text. It is binary data. Do not treat it like text. When you encrypt data, it does not change each character to a different character, it transforms the entire binary stream. It does not look at the data as a series of characters, it looks at the data as a series of bits. That is how you need to look at it. You keep looking at it like it's text. The encrypted data might not even be the same length as the original data. So, I'm not sure what the purpose of pasting this into a website to count the characters is, and there's no reason to try and paste it here. It's just binary data. The reason you are seeing different characters in different situations is, again, because you are treating it like it's text and it's not. Different programs might display binary data differently, especially if they're treating it like text. The only way to view binary data is in either binary or hex format, which are 2 different representations of the same data. With that text you pasted above, that contains Unicode characters. So, whatever you're using is treating it like Unicode text. Like I said, Unicode is a multi-byte character set. So, some programs might group the bytes into Unicode characters, and others might try to treat it as ASCII and show each byte as a character. That means they will have different lengths. Again, this is because you are treating the data like text when it is not. All of your confusion is due to the fact that you think you are looking at text. You are not. You are looking at a text editor trying to show you binary data, which it was not designed to do. Why would that ever happen? Why would encrypting or decrypting data result in characters that you should ignore? That seems like an awful quality in an encryption algorithm.
  18. 1 point
    That is how numbers are formatted, leading 0s will always be removed, unless you convert to text string.
  19. 1 point
    Because it omitted the leading zeros.
  20. 1 point
    You already said that, but I don't know what you're looking for. What are you searching for? You want a depth-first search, great, what exactly are you searching for? And why do you need recursion? I don't see a recursive structure in your database design, so why do you think you need recursion generally, and depth-first specifically? Is this a homework assignment?
  21. 1 point
    That looks fine, so what are you having problems doing? This doesn't look like an issue with recursion, but I don't know what you're trying to do that you're not able to.
  22. 1 point
    That's in a database, right? How do you have the database structured?
  23. 1 point
    Oops, you are so right. Everything working perfectly now. Thank you!!
  24. 1 point
    I have no idea what that diagram is supposed to show, but if you're talking about recursion then depth-first means that you recurse before searching instead of after.
  25. 1 point
    Gosh, I must be old.Anyone ever here of 'vi' ???Now-a-days I use 'vim' and 'cream'.Vim is a nicer more powerful version of vi. and Cream is the same thing with windoze type menus and a cleaner integration with windows.Jefkin
×