Jump to content

joe92

Members
  • Posts

    304
  • Joined

  • Last visited

Everything posted by joe92

  1. Have you had any experience with node.js? Is it worth installing?
  2. Will every file end as .sql? And will every version number start as v? If so something like: /(v\d\.\d\.\d)(?=\.sql)/ The \d stands for any digit between 0 and 9. The second set of brackets is to make sure it ends with .sql.
  3. (I don't know whether this should be in this forum or an installation forum? Please move if required.) I am coming close to making my site go live and it has always been on the back of my mind to minimise and obfuscate the javascript code before I launched whiles keeping a raw copy in my sandbox site. I haven't yet come to trying the obfuscating of the code (and might not do as the minimisers already make it hard as hell to read plus to do some obfuscating already). I have found several reviews on all of the different minimisers and the two top ones that people talk about are the YUI compressor and Uglify, with the latter being better in terms of compression rate / speed but the former also compresses css code. However, I cannot find a single useful guide anywhere on how to install either these programs onto my server. For the Uglify version there is a handy online website that has it implemented for people to use, but I just don't feel comfortable sending my code to another persons server and back not knowing exactly what's going on (although I did test it on one of my smaller files and got 49% compression). The Uglify program does give an installation guide, but it uses commands such as 'git clone git://github.com/mishoo/UglifyJS.git'. I am using PuTTY as my ssh client and it does not recognise this. I tried changing it to 'wget https://github.com/mishoo/UglifyJS/zipball/master' and this did not work either. So my question is. Has anyone had any experience with either of these programs? If so, could you tell me how to install it to my server? Or is there a program I can download to my computer that can minimise the script without having to go through putty? I also tried the online javascriptcompressor.com (aka packer) but this just threw up error after error on the JSLint validator, even after I double checked to make sure there was a ';' at the end of every line, and the script would not work on my website. I would be better off just manually removing the white space than using that. Thank you for any help Joe
  4. I find this interesting: Not that Facebook really needs the money is it. [oops, quoted instead of modifying]
  5. Lol, this got me intrigued so I investigated further. Here is an actual list of companies that Microsoft owns or has merged with or has a stake in (no countries that I can see): http://en.wikipedia.org/wiki/List_of_mergers_and_acquisitions_by_Microsoft
  6. Hang on. All of these 'subsidiaries' are countries. Are you trying to say Microsoft owns countries like China, Russia, United Kingdom, United States, Germany etc.? Microsoft is an evil company yes (see my signature), but come on now. And I've noticed France is in that list, but they are the leading country in the open source fight and in fact got rid of all Microsoft products a few years ago.
  7. Ah, thanks for the tip Fenway.
  8. I wouldn't bother wasting any time on it if I were you. To many ways to very easily view the source in an alternative way. Plus you would also be disabling features such as copy and paste and bookmarking the page (and you would definitely want the latter!).
  9. What about Inspect Element / firebug? They can be launched without having to right click and show your source plus some. Disabling right click won't achieve much.
  10. Hi, thanks for the very fast response juddster. I should have read it before continuing I got a little bit ahead of myself and decided to delete the extra users. A warning to people in the future, DO NOT DELETE THE USER debian-sys-maint. Everything stopped working and I am now having to reinstall mysql, connect it back to the server and reinstall phpMyAdmin. An unnecessary waste of time. After a small amount of research it seems like debian-sys-maint is what lets the mysql database talk to the linux server (not entirely sure). So it may not be there if you have a windows server? Either way, just don't delete it.
  11. Just installed Ubuntu 11.04 along with LAMP and phpMyAdmin. Logged into phpMyAdmin with the root login details set during set-up of MySQL. I have 3 databases already there which I did not create. The standard one information_schema (28) and two others I am not used to seeing: mysql (23) and phpMyAdmin (9). mysql (23) - Looks like some sort of database setup with help data. Can I delete this one? phpMyAdmin (9) - It's completely empty with a load of 'pma_...' tables. Can I delete this one? Under priveleges on the phpMyAdmin homepage there came with default 5 usernames; see attached file (I added user johnJoe). In the similar fashion to denying root login on the server should I remove all these usernames and just leave johnJoe to increase security? And adding subsequent usernames when needed. Cheers, Joe. [attachment deleted by admin]
  12. var integer = parseInt(document.getElementById('id').value); if (integer > 4) { fail message } else { submit.form } You have to parse the string coming in so that javascript understands that it is just dealing with just numbers and then you can treat it as you wish using mathematics.
  13. Post the contents of that file on here between the [ code] tags, found by clicking the # image when writing a reply
  14. This is a fairly OK tutorial on GET and POST requests via ajax: http://www.javascriptkit.com/dhtmltutors/ajaxgetpost.shtml You would make the ajax call from your javascript to go to xyz.php script. In there you grab what you sent and then treat it like any other php script doing mysql querys, for loops etc.. At the end of the php echo what you need to return and that will be the responseText in the javascript. Using this responseText, manipulate the page using javascript to show what you need to show.
  15. The prices vary from £5 - £50 per 2 years for the same domain. What's the difference? Am I getting more rights when I pay more (BB-online costing £49 for example claimed to offer transfer protection), or is this just a case of big company's out pricing smaller companies? Cheers for any info. Joe
  16. Intel Core i5-2500 You'll be able to pick one up for around £150. Or if you have enough money go for the i7-2500. Will cost a further £100 roughly. Are you building your own computer?
  17. Haha. You all seem to think that I hate companies profiling its customers. No. I just don't like them profiling me after I have left the premises. I'd love to see any one of you accepting having someone walk along behind you with a clipboard making notes about what you do and where you go after you have left a shop. I think after about 5 minutes you would turn around and confront the person.
  18. But the security camera stays in Walmart. It doesn't then follow you out of the shop and into the pharmaceutical store next door to determine which drugs you are prescribed too. And then on into the furniture shop to determine whether you like lazy chairs over sofa's. And then on into JD sports to determine which sports you play. And then on into... you get my picture. All so it can display a poster dedicated to you in its window. No, it stays in Walmart and gathers as much information about you as it can from it's position in Walmart. I'm not some deluded or ignorant to companies profiling their customers. It's common business sense to know what your customer wants so you stock the right goods. The same applies to internet businesses. However, it doesn't give them the right to then continue profiling me after I have left the store or website. And I am very aware of server costs, what with having to pay them. But they don't need to profile every website I visit to determine what I like. There are already hundred's of 'pages' that a user on facebook can 'like', there are many many fields of information a user can fill in about themselves. Facebook has the right to look at that information and use it. And it can use it to advertise crap to me that I don't want but it thinks I wants. Not by following my browsing history.
  19. That isn't the point of the article. The article is pointing out that after you log out of facebook and close the tab, they are still monitoring what you are doing. So after you exit their site and completely cut off all ties to it (virtually) they are still there watching you when you don't want them too. Any site with a facebook widget (which is a lot) relays your information back to the server. It should be completely up to the user to say whether information about what they are doing on different websites when they aren't even logged into facebook can or cannot be relayed back.
  20. An article explaining how facebook logs what you do online even after you sign out: http://nikcub-cache.appspot.com/logging-out-of-facebook-is-not-enough A write up article on the above article aimed to simpify it: http://venturebeat.com/2011/09/25/facebook-tracking-logged-out/?utm_source=pulsenews&utm_medium=referral&utm_campaign=Feed%3A+Venturebeat+%28VentureBeat%29 Surely a breach of privacy laws? I added the ad blocker that the second article suggested. It prevents facebook chat (as well as many other functions like viewing a photo) from working after you add the new rules to it. But since I'm quite fond of my privacy I think I'm going to start blocking facebook through this ad blocker every time I sign out and only unblock them (which you can do quite easily, just press Ctrl+Shift+O to get the options up) when I want to sign back in again. I think there is already a group of 'hackers' called anonymous who are trying to take down facebook saying that it sells information to corrupt dictatorship countries like Syria? (That might be a bit too farfetched, who knows, but that is there incentive I think) Hopefully they will succeed, but then we will all be forced to use google+ which it wouldn't suprise me if they were doing something similar. Are large corporations are a greater threat to mankind than religion? I think so. Joe
  21. This is easy without having to use jQuery. Lingo5, if you have the CSS class of menulinks2 set already then you would just need to add the following function to your script (if not, then make a class ready of menulinks2). Function: function changeclass(change){ change.className = 'menulinks2'; } And alter the html <a> tags used to include an onclick event like so. Html: <a href="index.php" class="menulinks" onclick="changeclass(this);"> INICIO</a> That should sort it
×
×
  • 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.