Jump to content

dalecosp

Members
  • Content Count

    471
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by dalecosp

  1. Heh. Loading that page entails *55* separate requests. There are almost 10 XHR requests and at least one to a websocket ... I'd probably start there. Good luck.
  2. You could call the CLI version via system(), etc.
  3. What do you get if you dump $_REQUEST instead of $_POST?
  4. If the user has to be a "registered user", you do have checks in place for that? And for CSRF, etc?
  5. It can also be done without using mod_rewrite, instead configuring Apache to serve PHP via a FORCETYPE directive and parsing the URI request, but for most of these situations mod_rewrite is probably simpler and potentially safer.
  6. You can mark it as "answered" ... that should have a similar effect.
  7. Looks fixed now? Otherwise, what browser has this bug? My Chrome seems OK ...
  8. Again, nice work. I read some of the source for PSD.js at Github and had figured it was CMYK because that array had 5 elements, but the values in the CoffeeScript there were still all 8-bit based and I didn't have time to track down through the rest of the system to see how the math worked ...
  9. Nice catch! Was that off the top of your head, or did you read more of the code than I did?
  10. Well, go drink it in the "field", and leave the "field" outside ... ?
  11. Have you tried an inverse mapping? (255 minus value?)
  12. Thanks! That'll be my "Today I Learned" for the day
  13. The reason for testing with "ping 8.8.8.8" (or any public IP address that responds to ping) is to determine whether DNS is the issue. If you can "ping by number" but you cannot "ping by hostname" then the issue is DNS. If you can't do either, it's network/routes/firewalls/protocols, etc. That depends on whether your ISP (and perhaps your firewall in front of the LAN systems) allows traffic from other DNS servers (besides its own) on the network. I've not heard of MANY ISP's that do this, but it is fairly common for them to block some protocols (namely SMTP, to keep home users and compromised user machines from becoming spam-bots). "netstat -nr" output might be helpful. What does that yield?
  14. We use Apache's .htaccess to enforce SSL browsing: RewriteEngine on #enforce SSL RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]For images, scripts, etc, we use relative paths: <img src="//images.oursite.com/path/to/images/foo.jpg" alt='cat'> <script src="//code.jquery.com/jquery-1.9.1.min.js"></script>This ensures that we don't have mixed-content blocking going on in the browser, leading to missing images or JS functionality.
  15. Here's one of mine: $ttl 38400 example.com. IN SOA bsd.example.com. example.example.com. ( 2016040801 10800 3600 604800 38400 ) example.com. IN NS bsd.example.com. example.com. IN NS ns.someothersite.com. bsd.example.com. IN A 11.22.33.44 www.example.com. IN A 11.22.33.44 mail.example.com. IN A 11.22.33.44 example.com. IN A 11.22.33.44 example.com. IN MX 5 bsd.example.com. example.com. IN MX 10 mail.example.com. example.com. IN MX 20 dallas.someothersite.com. beal.example.com. IN A 11.22.33.44 ns2.example.com. IN A 44.33.22.11 example.com. IN TXT "v=spf1 mx -all"I've never seen nor used @IN before (and without a FQDN first) ... do you have a reference for that? (Your link seems to have disappeared if it was ever there).
  16. dalecosp

    Hi!

    Welcome to the Freakshow!
  17. Looks to me like the only element with a plugin-meta class attribute is a DIV, not an A. You might start there?
  18. If all the requests are to the same IP or IP range, I'd try adjusting the routing tables first (add a static route to the target). Of course, that might not work, because the problem itself is that your IP is dynamic, right? Of course, what about the real error, that it can't resolve the hostname? What DNS server are you using? Is it accessible from the machine in question when it's connected to ISP2? I'm guessing no ... In that case, I'd select a DNS source that's accessible from anywhere (like Google's public DNS) or run a local caching DNS box behind the firewall. What's your OS? Is "/etc/resolv.conf" a thing on your server? If so, what does it contain? And let's get even MORE basic ... if the server is on ISP2 ... can it connect to ANYTHING at all? For example, by IP address ... "ping 8.8.8.8" ...
  19. Well, the reason all the example are short ... you're not really likely to find someone who wants to code the equivalent of an entire app for the purposes of a job interview. What's wrong with them bringing code to you, providing Github links, etc.?
  20. Smartphone? You said: Here are some assumptions we have to make based firstly on your input, and secondly because this forum is about PHP: 1. You will have server software running on a machine with a network interface. 2. You will have database software running on that machine or on another machine on the same network. 3. You will have a web-based client running as your GUI on the machine used by the employee, which serves the business as its "cash register". If these things are not true, you're at the wrong forum. Furthermore, unless PHP is running on the server in #1, you're probably not at the right forum either. AJAX is being suggested in order to avoid re-load of a page on the client (cash register). Truth be told, a cash-register app in a web browser might be a bit of a programming challenge, much less the back-end database of customers. But it's not insurmountable. Can you show us your database schema? As some have noted, you need a unique identifier, and I would concur in suggesting that you use the customer's phone number, which someone else (namely the phone company) has already worked on to ensure uniqueness. If there is a customer perception issue surrounding this, you should suggest a statement to allay such fear, perhaps something like, "we collect your phone number to notify you if there are safety recalls on your product and provide a record of purchases in the event you must return your item for service or a refund." Hope this helps.
  21. Your posted code doesn't imply that, since that would be taken care of in JavaScript or some other system on the client-side. Your PHP side is much less robust and perhaps less feature-ful than SLIR, based on the observation here. Hmm ... other than initial outlay and its effect on gas mileage ....
  22. Why re-invent the wheel? https://github.com/lencioni/SLIR
  23. Off the top of my head (I'm not really a human JS engine, so check your error console ) ... 1. No opening bracket on first line "script" tag ... (being pedantic here ) 2. Name "map" is undeclared? To debug this, I'd put some console logging into the lambda/anonymous function inside the foreach, to make sure the data values are what they're supposed to be ... especially "feature.position". Hope this helps ...
×
×
  • 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.