Jump to content

Fmdpa

Members
  • Content count

    1,035
  • Joined

  • Last visited

Community Reputation

9 Neutral

About Fmdpa

  • Rank
    Dedicated Member

Contact Methods

  • Website URL
    http://www.cyberstream.us
  • ICQ
    0

Profile Information

  • Gender
  • Location
    United States

Previous Fields

  • Languages
    HTML, CSS, PHP, SQL, JS
  1. SSL Certificates

    Thanks for posting your observations, Don. I wonder if it would be possible to link to resources using the URL syntax that Google CDN uses: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>I'm assuming that would automatically prepend the current protocol. Of course, this wouldn't work if certain resources could only be served over HTTP. I may get a totally free certificate from StartCom. So far, it seems to be the best free option I have found. I think this site uses it, and the HTTPS aspect of the site has functioned just fine for me.
  2. SSL Certificates

    That's something that concerned me. I don't want to make the website difficult for users to utilize; I want to avoid unnecessary annoyances like that. So a certificate from a CA is probably the best way for me to go. Thanks for mentioning that, Don!
  3. SSL Certificates

    No, I am just using a shared server. I couldn't think of a better forum on which to post it. Thanks for your input; I'm looking forward to hearing if you learn anything!
  4. SSL Certificates

    In my current website project, I would like to design a secure area for members. I have built basic login systems before, but I want to build something more secure this time. One of the things I would like to do it route requests using the HTTPS protocol. In my research on how to do this, I have been starting to learn about SSL certificates. As I understand it, in order to create an SSL encrypted connection that users can be confident in, I must purchase a certificate from a certificate authority (CA). I am questioning whether I really need to do this, though. Neither money nor information that is extremely sensitive would be handled in the secure area. The purpose of the website is of a nature that membership would be restricted to those personally acquainted with me, so it's not like they would be using a website with some vague "entity" operating it. They could trust me. Would that make it safe for me to use a self-signed SSL certificate? My only suspicion is that a hijacker could potentially inject a new SSL certificate (not sure if this is possible...) and trick users since neither his nor mine would be signed by a trusted CA. I could just get a cheap certificate, but I would like to avoid spending money on this if I don't have to. Maybe a free certificate would be okay? I'm not sure. What do you think is the best course of action for my situation?
  5. Firefox Not Drawing Gradient

    Are you talking about the main background gradient, or the active tab gradients? This is what it has looked like for me: http://prntscr.com/dgpd3 Taken in FF 14, but it's been like that since I created the website months ago. FF doesn't seem to like the % values for the gradient positioning. Shouldn't it work? Am I doing something wrong?
  6. Firefox Not Drawing Gradient

    I have a "pushed down" effect applied to active tabs in a navigation bar I made. It works in Opera, Safari, and Chrome. However, Firefox doesn't do the gradients for me. Is this Firefox's problem, or a syntactical error? Relevant code: #header .active { background-color: #eee; background-image: -moz-radial-gradient(-2% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -moz-radial-gradient(102% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -moz-linear-gradient(bottom, rgb(238, 238, 238), rgb(193, 193, 193) 35%, rgb(238, 238, 238)); background-image: -o-radial-gradient(-2% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -o-radial-gradient(102% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -o-linear-gradient(bottom, rgb(238, 238, 238), rgb(193, 193, 193) 35%, rgb(238, 238, 238)); background-image: -webkit-radial-gradient(-2% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -webkit-radial-gradient(102% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -webkit-linear-gradient(bottom, rgb(238, 238, 238), rgb(193, 193, 193) 35%, rgb(238, 238, 238)); background-image: -ms-radial-gradient(-2% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -ms-radial-gradient(102% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), -ms-linear-gradient(bottom, rgb(238, 238, 238), rgb(193, 193, 193) 35%, rgb(238, 238, 238)); background-image: radial-gradient(-2% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), radial-gradient(102% 68%, 6% 47%, rgba(0, 0, 0, 0.5059), rgba(0, 0, 0, 0)), linear-gradient(bottom, rgb(238, 238, 238), rgb(193, 193, 193) 35%, rgb(238, 238, 238));} Site: http://www.alaskavoicesforfreedom.com/about
  7. JSON trouble

    Done. I wonder if I should file bug reports for the different browsers that stringify an object in such a way that it is unparseable.
  8. JSON trouble

    Absolutely; it makes no logical sense that the results of stringify would be unparseable, or, that the results of running an object through stringify and parse would create an object having contents different than the original object.
  9. JSON trouble

    Hmm, very strange. This inconsistency seems serious. Dragonfly parses this as you described: JSON.parse('["(site\\\\.com)"]') => ["(site.com)"] But the Firefox console does something still different. If you run this command: JSON.parse('["(site\\\\.com)"]') You will get an bad escaped char error. ...I just checked, and it doesn't do this anymore in Firefox Aurora. It will parse it as this now: ["(site\\.com)"]
  10. JSON trouble

    Wait a minute...now it is parsing this file successfully! https://raw.github.com/cyberstream/Fix-the-Web-CSS-Patches/master/patches.json Thanks everyone for your help!
  11. JSON trouble

    Good, I didn't realize that it actually came out parsed with a single slash escaping the period. I know that the RegExp is in string form right now, but I'm trying to figure out how to parse the JSON file fetched from Github so that the string is ready to be used to create a regular expression. Here's the problem. Try running this in your Javascript console: JSON.parse('["(site\\.com)"]') I get this error: Unhandled Error: JSON.parse: Invalid escape char: "(site\ This, however, works: var stringifiedObj = JSON.stringify(["(site\\.com)"]), r = JSON.parse(stringifiedObj); Once again, however, since the JSON file is returned in the responseText string in XMLHttpRequest object, I can't stringify it. I need to write the file as if it were already run through JSON.stringify (which escapes everything that needs to be escaped, etc.).
  12. JSON trouble

    I need to find some way to escape metacharacters in the regular expression and in JSON.
  13. JSON trouble

    JSON will stringify this: ['/site\\.com/'] As this: "["/site\\.com/"]" That's a literal backslash in regex.
  14. JSON trouble

    Yes, I modified the JSON last night after I found some the jsonlint validation tool. But if you look at the regular expressions, you'll see that one of the things I had to do to make it validate was unescape the periods. Consequently, they are no longer literal periods. They are metacharacters now. I don't want them to be the "." metacharacter, though. Is there any way to work around this?
  15. JSON trouble

    OK, thanks. Here's the problem I'm having. When I fetch the file from Github with AJAX, it automatically returns the contents of the JSON file in the responseText property....as a string. The problem is, when JSON objects are converted to a string with a method such as JSON.stringify(), it is not merely "stringified". Certain characters are escaped so that it will be parseable. Unfortunately, the reponse text is already a string and since it was not encoded with JSON.stringify, it is likely not parseable. Is there a solution to this predicament?
×