Jump to content

thescientist

Moderator
  • Posts

    8,682
  • Joined

  • Last visited

Everything posted by thescientist

  1. doh, can't believe I missed that one
  2. what happens if you console log document.getElementById("suggested_query"); before you you use it?
  3. My work allowed me to pick any machine and I choose a MacBook Pro. I quite like it especially in that it is built of a unixy kernel (FreeBSD). I also have a personal one as well that is multipurpose for development, and music recording. A Lenovo re-formatted with a Linux distro is also not a bad choice, a couple other developers in my office opted to go down that route. They opted for Ubuntu. I have nothing against Linux to be clear, I like the MacBook. For my VPS though, I choose Linux, using CentOS.
  4. well now it's pretty clear. you have code before the opening <php tag; it's that entire <script> block. That is considered output.
  5. img { display: inline-block; width: XXXpx; height: XXXpx;} though you will probably want to narrow down by selector by giving your image an ID or class name since you might not want this to apply to all images.
  6. I am not familiar with the framework you are using. Have you tried with just CSS, by setting the image to display: inline-block and giving it a height and width?
  7. I find it much more practical to develop locally while knowing what the final production environments will run on. rsync-ing or FTPing just to see changes adds a lot of overhead to development cycle time. I would rather just know my environments and plan accordingly. Naturally, something always happens, no matter how well you think you know your environments. Might as well develop as efficiently as you can then.
  8. that sounds like autocomplete. It's a browser feature, but you can try and turn it off with the related HTML5 attribute. http://www.w3schools.com/tags/att_input_autocomplete.asp
  9. thescientist

    Script tags

    or you can get a specific description, by doing some research.
  10. thescientist

    Script tags

    I said there were also design practices / specs, like AMD. Maybe looks things up before you dismiss things you have no idea about. There is also the sandbox pattern and the module pattern.
  11. GIT is source control / version control tool. http://git-scm.com/ what's wrong with using command line utilities?
  12. Consider looking into the Bootstrap framework and / or just CSS media-queries to create a flexible and responsive website design http://getbootstrap.com/
  13. There's really no point in trying to secure things from the user in the client, that's what the server is for. Or use HTTPS is client / server communication is involved.
  14. thescientist

    Script tags

    there are also libraries and design practices for that as well. * RequireJS * Browserify * AMD * CommonJS
  15. my suggestion was an architectural one, it's not just use query xzy. You will need to plot it all out, write out the psuedo steps if you need, and then approach one piece at a time. First is the script that can connect to all your databases, gets the results from each one, then inserts into the master database. Getting it to run on a cron would come after that.
  16. Please don't make duplicate posts. Also, i'm not really sure what you're asking for. Are you asking how to license your software?
  17. thescientist

    % difference

    http://php.net/manual/en/language.operators.arithmetic.php
  18. One could subscribe to the theory that if you create a responsive website, you don't need to develop a mobile app.
  19. look at the documentation. you need to pass it an event, not a string of the event name. https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events
  20. One way could be to have a single database which has a cron job running on its server that pulls in all the data and stores it, so then the application only has to look in one place.
  21. bin stands for binary, or binaries. typically where executables are saved on a users machine.
  22. hmm, I must have misread, but I thought I saw it happening one of the posts.
  23. it still stands to ask why you are trying to json encode before all the data is assembled. it doesn't make sense to me.
×
×
  • Create New...