Install mod_wsgi for apache2.
$ sudo apt-get install libapache2-mod-wsgiInstall pythons mysql connector.
| """ DB class """ | |
| """ | |
| A simple db class that let you create raw sql calls in a nicer way. | |
| The result is cached until reset() or select() is called. | |
| Eg. | |
| db.select('id', 'table AS t1').run() | |
| db.join('join_table AS t2', 't1.id = t2.t1_id').run() // Gives the same result as above (if it didn't return null) because reset() is never called | |
| db.select('id', 'table AS t1').join('join_table AS t2', 't1.id = t2.t1_id').run() // Gives the wanted result | |
| db.select('id', 'table AS t') |
| .holder { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| background: red; | |
| white-space: nowrap; | |
| -webkit-animation: frames 30s linear; | |
| } | |
| @-webkit-keyframes frames { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| -webkit-font-smoothing: antialiased; | |
| background-repeat:repeat; | |
| background-color: #26a9e0; | |
| background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHhtbG5zOnhsaW5rPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rJyB3aWR0aD0nNDkxLjk5OTk5OTk5OTk5OTk0JyBoZWlnaHQ9JzI1Mi4wMDAwMDAwMDAwMDAwMycgdmlld0JveD0nMCAwIDk4LjM5OTk5OTk5OTk5OTk5IDUwLjQwMDAwMDAwMDAwMDAwNic+Cgk8ZGVmcz4KCQk8cGF0aCBpZD0ncycgZmlsbD0nI2ZmZmZmZicgZD0nTTAsMGw4IDRsLTgsNHonLz4KCTwvZGVmcz4KCTxnIGlkPSdiJz4KCTx1c2UgeD0nLTgnIHk9Jy00JyB0cmFuc2Zvcm09J21hdHJpeCgtMSAwIDAgMSAwIDApJyBmaWxsLW9wYWNpdHk9JzAuMycgeGxpbms6aHJlZj0nI3MnIC8+Cgk8dXNlIHg9JzAnIHk9JzAuMicgZmlsbC1vcGFjaXR5PScwLjQ0OTk5OTk5OTk5OTk5OTk2JyB4bGluazpocmVmPScjcycgLz4KCTx1c2UgeD0nLTgnIHk9JzQuNCcgdHJhbnNmb3JtPSdtYXRyaXgoLTEgMCAwIDEgMCAwKScgZmlsbC1vcGFjaXR5PScwLjQ0OTk5OTk5OTk5OTk5OTk2JyB4bGluazpocmVmPScjcycgLz4KCTx1c2UgeD0nMCcgeT0nOC42JyBmaWxsLW9wYWNpdHk9JzAuNDQ5OTk5OTk5OTk5OTk5OTYnIHhsaW5rOmhyZWY |
| Open FF config page by typing "about:config" in the address bar | |
| Search for ‘network.http.use-cache’ and double click on the line. | |
| The value should now be false | |
| That was all folks |
| var NAME = { | |
| log: function(msg) { | |
| console.log(msg); | |
| }, | |
| error: function(msg) { | |
| console.error(msg); | |
| }, | |
| time: function() { | |
| return new Date().getTime(); | |
| }, |