-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
Starting out with Php in the real world
JonnoTheDev replied to mise_me_fein's topic in Miscellaneous
One method I used was to take an existing script. Learn how it works. Pull it to pieces and try to modify the functionality. Years ago I installed the ecommerce script http://oscommerce.com (2.2). We had some clients running this who wanted custom functionality, so the only way was to learn and modify a test version. Try it yourself. Take the base system and try to add new things like multiple images, different shipping modules, change the layout, add a buy one get one free, add promotional codes that alter the price. The best way to learn is just to dive in at the deep end. Once you have the above sussed out, why not try to build your own version and improve on the areas you think need improving on. -
anyone built a content-based recommendation engine?
JonnoTheDev replied to ohdang888's topic in Miscellaneous
Yes. Related articles are best done with a token based query. When you submit an article write a script that finds word occurances and store the most common against that article. i.e If I write an article on golf then the words, 'golf', 'tee', 'fairway' are likely to have a high number of occurances. These are your tokens. If I submit another article on golf then that article will also realte to the same tokens if it has matching high word occurances. So your database: articles ===== articleId title body 1, Golf Article 1, This is the body containing the word golf. Golf is great. I love playing golf....... 1, Golf Article 2, Golf courses around the world. The best fairways. The fairways are very good on this golf course...... tokens ===== tokenId token 1, golf 2, fairways tokenToArticle ========== id tokenId articleId 1,1,1 2,1,2 3,2,2 So you can see that tokenId 1 (golf) is related to both articles. Use a full text engine such as sphinx to create an index from your database. This will perform very fast searches to pull out your related articles and also return search results from a text search box on the website. Using mysql to search text is very slow and returns poor results. -
lol
-
If you have php installed as an apache module then you will have issues. Compile as CGI. http://docs.joomla.org/Should_PHP_run_as_a_CGI_script_or_as_an_Apache_module%3F#What_is_the_difference_between_CGI_and_apache_Module_Mode.3F
-
I think they are annoying. I get calls weekly from companies offering video commentry for websites. It is expensive. http://www.mywebpresenters.com/
-
anyone built a content-based recommendation engine?
JonnoTheDev replied to ohdang888's topic in Miscellaneous
Absolutely not. If you want to use open source technology then have a look at Sphinx or Lucene. They are full text search indexes. Just Google or search the forum, i've posted the links up many times. -
Something along these lines http://shwups.ch/en/home/? I know its in German but it looks powerful
-
phpclasses.org
-
You require the AJAX Search API from google to integrate with the maps API. Take a look at the following. http://www.google.com/uds/solutions/mapsearch/index.html
-
You can fork processes. You could have a single cron job execute a script which executes 10 other scripts. http://www.phpfreaks.com/forums/index.php/topic,298489.msg1413457.html#msg1413457
-
<?php $object = new classname(); $object->dostuff(); unset($object); ?>
-
http://www.businessesforsale.com/
-
Discrepancy between my ClickCounter and target AWstats
JonnoTheDev replied to MarkHoward's topic in Miscellaneous
Its possible that a crawler / spider could record a click on your site, follow the link, see that it is a 301 redirect and then decide to terminate itself before landing on the target website. They all work differently, they may not always follow right through to the target site. Really, you should identify bots / spiders / crawlers on your website an not record their action. A simple start as daniel has stated is to add a nofollow parameter to the link i.e <a href="link.php" rel="noindex,nofollow">Link Text</a> This should cause search engines to ignore the link -
Any suggestions on how to piss off spam emailers?
JonnoTheDev replied to merylvingien's topic in Miscellaneous
Listen, dont bother. Most Internet professionals are spammers. SEO specialists are spammers. They litter the Internet with all kinds of crap to get links and boost their traffic. They send millions of emails to sell viagra or some kind of product. They make millions. Don't get frustrated as it is just the way it is. Spend your time improving security for future projects rather than on a childish prank. As soon as you get rid of 1 spammer another will appear. Just think yourself lucky that you are not dealing with DDOS attacks as I have had to in the past. A bit of spam email, join the club. -
Discrepancy between my ClickCounter and target AWstats
JonnoTheDev replied to MarkHoward's topic in Miscellaneous
Do not take AWSTATS figures as gospel. As Daniel stated there are all kinds of crawlers that can follow links. They may not always initiate your counter script, and weblog stats applications are each configured differently in the way they log traffic. OK, you say you have a counter that has 30 clicks and the target user has 10 logs of your website as a referer. Well lets say that 21 of those are a referer from the same search engine and only 9 are true human users, then the stats program may only log unique referers by IP, user-agent, etc so a total of 10 is displayed. Reading web server log files through stats programs like AWStats or Webalizer is about looking for trends to give you a rough idea of where your traffic comes from and the number of unique visitors you are getting. As I have said, each installation can be tweeked to ignore traffic from all kinds of sources, and display data differently. -
Any suggestions on how to piss off spam emailers?
JonnoTheDev replied to merylvingien's topic in Miscellaneous
Record the IP addresses of the user using the contact form. Increment the count of the number of messages going through each IP. If there are high numbers for a particular IP then block it through .htaccess -
To fork a process <?php exec("php /path/to/file.php > /dev/null &"); ?>
-
Ive fixed. Its OK.
-
Not really a wizz on Excel but need a bit of help manipulating some data. I have a custom formatted cell that contains a datetime i.e 2009-11-04 13:01:50 However, when I attempt to reference in a formula it converts the formatting i.e =""&A2&"" Comes out as 40121.5429398148 Does anyone know how to retain the formatting?
-
With remote desktop like vnc does you would see the remote user controlling the pc. Bit different from a twitcy mouse. Unplug the network cable from the pc or switch your router off. If the mouse pointer is still twitchy you know what the issue is. Simple.
-
Is it wireless? Ive had that before. Change the batteries or its knackered.
-
Sorry, but horrible! Black backgrounds especially with what looks like a windows desktop blackhole photoshop filter type graphic are a bad idea, especially for accessibility reasons, colourblindness, etc. Looks like a sci-fi template, not an obvious e-commerce site.
-
James Bond is sat on your monitor. Just run a scan with any Internet Security software, Kaspersky, etc. Install Windows Defender from Microsoft and keep it upto date.
-
I really want to punch Justin Bieber in the face!
JonnoTheDev replied to Orionsbelter's topic in Miscellaneous
Sounds like a pretty standard weekend. -
Yes. It is compared to what it used to be but not as bad as Denmark. It must have been about 6 years ago when I went on a training course in Copenhagen and I remember it being around £5 or more for a beer. God knows what its like now. It's the same in Norway. My parents have a place out in Spain and when I go all you see is Norwegians drunk because they can afford the beer.