Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by iwato

  1. BACKGROUND: The same code does to different things in two different environments neither of which is good. Another baffling phenomenon that is probably my doing, but I do not understand. On my iPhone: the scroll simply does not do its job. When the hidden <div> is opened the dynamic action is suppose to return the page to a designated position automatically. It appears, however, to move the page to the save relative position that it was in before the scroll, but now relative to the new <div>. On my computer: the automated scroll functions just as intended, but then a
  2. Thank you, Ingolme. Your observation appears to have been correct. I changed the code as follows and all is working as it should. section#middle #main #gctutor_div #heading #needhelp_flexbox { display: flex; display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between; flex-wrap: wrap; } .needhelp_left { text-align: right; margin: auto; } .needhelp_right { margin: auto; margin-top: 1.5em; } Roddy
  3. Thank you, Ingolme. That was helpful, but it did not solve the problem. The attribute/property is no longer suppressed, but the resulting condition is identical. When the screen is narrowed no wrapping takes place. Rather the image moves in front of the text, as the two <div>s appear to converge. I had hoped that the when the viewport shrunk the items within the flexbox would realign vertically. It were as if, the affected div does not understand that the viewport is shrinking. Roddy
  4. BACKGROUND: I am inserting a div tag into an HTML document via Javascript and for some reason an ultra-specified flexwrap attribute is being suppressed. Other flexbox attributes contained within the same specification appear. It is baffling. CODE: section#middle #main #gctutor_div #heading #needhelp_flexbox { display: flex; display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between; flexwrap: wrap; } .needhelp_left { width: 48%; text-align: right; } .needhelp_right { width: 48%; } THE EXPERIENCE: You may expe
  5. How are you using the term in this context?
  6. So, if I have understood correctly, there is no way to interact with one's site until the project is finished, whereupon one transfers the completed project to one's site with all of its modules as a completed package. Is that it? Roddy
  7. BACKGROUND: I recently install nodejs and npm and downloaded a library call xregexp.js Then, I discovered what I did not know. The applications nodejs (node) and npm are primarily designed for server-side Javascript. Now, I am confused. In PHP one can simply include or require PHP from another document file and employ it wherever you like that PHP can be used. When I try to do something similar with xregexp.js I inevitably fail and am told that the script cannot be found. Now, I have node and npm installed above my domain folders so that it can be used with all of my domains. Simpl
  8. Have you seen this? I have just started exploring it. https://github.com/bbc/unicode-bidirectional Roddy
  9. QUESTION: Is the following an accurate statement? If not, please clarify how a unicode string literal differs from say, an ASCII string literal. Roddy Untitled-1.html
  10. Understand that my database has been spammed. Examine carefully the count associated with each of the search terms. You will see that the same numbers are associated with different terms and that the count for each is quite large. Notice too, the accent aigue (´) in front of the phrases "person and happiness" and "person and number"; this is not an accident. targetList: 141,الدواعيمنفكرةقرامركابتِف,´person and happiness,157,person and happiness,314,´person and number,157,person,157,&quotperson and number&quot,471,subject-verb agreement,157,subject-verb pairs,157,subject-verb,1
  11. Yes and know. Please match the following results against the included code. RESULTS listItem: Array [ "subject-verb pairs", 157 ] listItem: Array [ "subject-verb agreement", 157 ] listItem: Array [ "&quotperson and number&quot", 471 ] listItem: Array [ "person", 157 ] listItem: Array [ "´person and number", 157 ] listItem: Array [ "person and happiness", 314 ] listItem: Array [ "´person and happiness", 157 ] listItem: Array [ 141, "الدواعيمنفكرةقرامركابتِف" ] The CODE $.each(jsonData, function(key, object) { var searchItem = {}; var strippedStr = '';
  12. Yes, the agex variable to which the .test() function is applied contains a regular expression. var agex = new RegExp( /[\u0600-\u06ff] |[\u0750-\u077f] |[\ufb50-\ufbc1] |[\ufbd3-\ufd3f] |[\ufd50-\ufd8f] |[\ufd92-\ufdc7] |[\ufe70-\ufefc] |[\uFDF0-\uFDFD]/g ); This expression is supposed to identify all characters written in Arabic script including numbers, punctuation, and various diacritical markings. I can do the same for double-byte Japanese as well (not shown below). This same procedure cannot be used for ASCII, however. Indeed, I am finding it difficult to remove HTML
  13. OK. I will try to make the problem easier to understand. In order to do so, please examine carefully the following code snippet. $.each(sourceObj, function(searchPhrase, searchCount) { listItem = [searchPhrase, searchCount]; if (agex.test(searchPhrase)) { listItem = listItem.reverse(); } list.push(listItem); }); The phrase agex.test(searchPhrase) tests whether the value of searchPhrase is in Arabic. The result appears something like what follows: listItem: Array [ "構成", 157 ] listItem: Array [ "逆転分析", 157 ] listItem: Array [ "langue sécondaire", 157 ]
  14. BACKGROUND: Not only has my website been spammed, but the spam appears to be of a special sort. It appears that someone has discovered a way to confuse Wordcloud2's interpretation of the input data. My reason for believing this is my ability to make Wordcloud2 work with data obtained from within different temporal ranges of the same data field. You can see clearly from the www.grammarcaptive.com mainpage under Visitor Profile/Word Clouds that under normal conditions Wordcloud2 works with all languages. When I open the temporal range to include the spam, however, WordCloud2 fails to render
  15. I am using it in this way: to visualize recorded frequencies for identical search terms, and for recorded frequencies for discovered matches for those terms. I could white list registered members, but even these could be abusive. I have also been thinking of implementing a no-robot captcha clicker. For this would require only a simple click before initiating a search. I have read, however, that even these will only constrain the number of abusers -- not eliminate them. Currently, Matomo collects everything. Whereupon I extract the data from specific fields, and store then in
  16. The term word cloud is very well defined, if you open to the suggested menu item, for there you can see the currently perverted result. More importantly, how does one go about validating terms that user's make up? Indeed, the whole purpose of the search engines and accompanying word clouds is to discover what my visitor's want and what they are able to find. For, in this way I can better serve them, and they can better serve themselves. Specifically, Visitor enter a keyword or phrase in the search box. A search is made for the keyword or phrase and all fields of a certain k
  17. BACKGROUND: Many months ago I created three custom search engines and two word clouds. These latter are used to track visitor search interest and Grammar Captive's ability to match it. Unfortunately, someone is now abusing my search engines and filling those fields of my database set aside to track search input. The result of this malicious effort is word clouds that no longer perform their task. While investigating the mess I have realized two important short-comings of my search engines that I must address: The Sanitization/Filtering of Search Input -- In order to produce meaningfu
  18. Thank you, JMRKER, for your input. The problem was finally resolved using the following .filter( ) function. var uniqVals = visitData.filter((obj, index, self) => index === self.findIndex((other) => ( other.visitorID === obj.visitorID && other.fullDate === obj.fullDate )) ); Roddy
  19. The Data var visitData = [ {'visitorID':'6b77f74d969f0254','fullDate':'2019/01/01'}, {'visitorID':'6b77f74d969f0254','fullDate':'2019/01/01'}, {'visitorID':'8305d1d7c98cfe07','fullDate':'2019/01/03'}, {'visitorID':'8305d1d7c98cfe07','fullDate':'2019/01/03'}, {'visitorID':'8305d1d7c98cfe07','fullDate':'2019/01/03'}, {'visitorID':'8305d1d7c98cfe07','fullDate':'2019/01/03'}, {'visitorID':'8305d1d7c98cfe07','fullDate':'2019/01/04'}, {'visitorID':'470b11ecb96f51a8','fullDate':'2019/01/04'}, {'visitorID':'470b11ecb96f51a8','fullDate':'2019/01/05'}, {'visitorID':'7783172ce39cd663','full
  20. Thank you, SVG, for your explanation of the one property-value pair reduction. My transformation of the one property-value pair reduction into a dual property-value pair reduction works for objects with three properties, but not two. Can you explain why? Roddy
  21. I have erred. What worked for objects with three properties does not work for objects with two properties. I had hoped that my modification would have rendered the following transformation, but it does not. Input Array Object { visitorID: "6b77f74d969f0254", fullDate: "2019/01/01" } Object { visitorID: "6b77f74d969f0254", fullDate: "2019/01/01" } Object { visitorID: "8305d1d7c98cfe07", fullDate: "2019/01/03" } Object { visitorID: "8305d1d7c98cfe07", fullDate: "2019/01/03" } Object { visitorID: "8305d1d7c98cfe07", fullDate: "2019/01/03" } Object { visitorID: "8305d1d7c98cfe07", fullDate:
  22. BACKGROUND: I recently discovered the following piece of code on StackOverflow,. Although it works for a single property comparison, I do not understand it well enough to expand it to cope with multiple properties. function getUnique(inputArr, comp) { const unique = inputArr.map(e => e[comp]).map((e, i, final) => final.indexOf(e) === i && i).filter(e => inputArr[e]).map(e => inputArr[e]); return unique; } I would like to create a function that would permit the comparison of multiple values on the order of function getUnique(inputArr, comp1 [, comp2[, comp3
  23. Dsonesuk! Have you given up? No new ideas? Roddy
  24. This produces the best, but not the desired, result. It is fully responsive on both my MacBook and iPhone, except for on the iPhone one must scroll after the page opens and after the position of the phone has changed. Upon scrolling the map fills its container as it should. If I do not resize the container the map over extends it, HTML <div id='wm_container'> ... OTHER STUFF ... <div id="vmap"></div> </div><!-- end div#wm_container --> CSS #worldmap_div #wm_container { background-color: #ffffff; margin-top: 3em; margin-bottom: 1em
  • Create New...