Jump to content

Fmdpa

Members
  • Content Count

    1,035
  • Joined

  • Last visited

Everything posted by Fmdpa

  1. Fmdpa

    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. Fmdpa

    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. Fmdpa

    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. 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. 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. 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. Fmdpa

    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. Fmdpa

    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. Fmdpa

    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. Fmdpa

    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. Fmdpa

    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. Fmdpa

    JSON trouble

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

    JSON trouble

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

    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. Fmdpa

    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?
  16. Fmdpa

    JSON trouble

    Maybe the problem I'm having with parsing this file is that it has several unquoted regular expressions. Is it permissible to have unquoted values in a JSON object?
  17. Fmdpa

    JSON trouble

    I'm working on a project that involves fetching a JSON file from Github. I make an AJAX GET request to that page and store the responseText data in localStorage. Later, I need to retrieve the stringified JSON object from localStorage, parse it, and scan it. My trouble right now is the parsing, though. Whenever I use JSON.parse, I get some sort of error...unexpected this, unescaped that. I just can't successfully parse the JSON object. What do I need to know about the JSON syntax so that I can write a parseable JSON file? I don't want my project continually messing up because of these parsing issues.
  18. Javascript is an invaluable language to know. I'm glad you are taking this step. I started by doing the W3Schools tutorials. However, I find the document.write() they teach at the beginning pretty useless. You never actually use it in real JS programming. Oh well. It's one of those "hello world" exercises they always make you do. JS is a sweet language. Its syntax has lots of tricks and is very flexible and powerful. It takes a good while of learning to get a good all-around grasp of it. I'm sure it will help, however, knowing PHP. Nonetheless, JS still differs in many ways from PHP so there will be new concepts (many of which you probably will wish PHP had!). Once you get a decent grasp of JS and DOM manipulation, you probably will find that the jQuery library simplifies programming significantly. However, just be careful how you use it. It's easy to get carried away without considering the speed tax on the user's browser. That's still a good way in the future though. Just keep it in the back of your mind for when you get more familiar with JS.
  19. Fmdpa

    Critiques Wanted!

    OK, I wasn't sure if I wanted to keep the URL ghosted until hovered over, or keep it visible. I guess I'll darken it significantly. Yeah, the client hasn't edited the about page yet. I've finished the part that's up to me, though!
  20. Fmdpa

    Critiques Wanted!

    Thanks Dink and Krewe! I darkened the text as you suggested, Krewe. The changes are not online yet, however. By the way the site has been launched at alaskavoicesforfreedom.com. That is where the changes will be uploaded henceforth.
  21. Yeah, I thought it was referring my account too. I'm glad to see everything resolved now, though.
  22. Fmdpa

    $_FILES array empty

    BTW, thank you Ingolme! I was so overcome with "I can't believe that stumped me that long" that I forgot to express my gratitude.
  23. Fmdpa

    $_FILES array empty

    DUH! One face for each hour I spent trying to figure out this problem...and all for that one missing letter. I can't believe it.... :fool: :fool: :fool: :fool:
  24. Fmdpa

    $_FILES array empty

    The further I go into web development, the stranger the problems I encounter get. My latest brain twister involves an empty $_FILES array. I have never encountered this problem before. When I submit the form, no matter how I do it, the $_FILES array returns empty. Here's my form: <form action="" enctype="multipart/fom-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="700000" /> <input type="file" name="avatar_file" required="required" /> <input type="submit" value="Upload & Stamp!" /></form> I've done a clean install of PHP and Apache, yet the problem persists. My $_POST array looks like this: Array ( [MAX_FILE_SIZE] => 700000 [avatar_file] => cyberstream-avatar.png ) I'm confused because most problems with an empty $_FILES array are because the form enctype is incorrectly set (or not set at all). This problem just started randomly (It could have been when I was modifying an httpd.conf or php.ini file, but then the clean installation should have fixed it). It hasn't stopped since.
  25. Fmdpa

    Critiques Wanted!

    It is in the process of being launched right now.
×
×
  • Create New...