Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
File exchange downloads per author - an odd distribution

Subject: File exchange downloads per author - an odd distribution

From: Oliver Woodford

Date: 2 Jan, 2009 14:13:02

Message: 1 of 8

This code plots the distribution of number of downloads* per author for the top 100 authors**, as given by the stats on the FEX:

s = urlread('http://www.mathworks.com/matlabcentral/fileexchange/authors');
s = regexp(s, '\d*(?=</td>[\n\c] *<td>\d*</td>[\n\c] *<td>\d* \w* \d*</td>[\n\c] *<td class="number">[\n\c] *<ul class="star-rating">)', 'match');
s = str2double(s);
hist(s, 100);

The distribution seems very unnatural. In particular, there are a few authors with over 20,000 downloads, but none with 10,000 to 20,000 downloads. A bug, or coincidence?

*Over the last 30 days
**In terms of number of downloads over the last 30 days

Subject: File exchange downloads per author - an odd distribution

From: Husam Aldahiyat

Date: 2 Jan, 2009 14:43:02

Message: 2 of 8

"Oliver Woodford" <o.j.woodford.98@cantab.net> wrote in message <gjl7dd$n0j$1@fred.mathworks.com>...
> This code plots the distribution of number of downloads* per author for the top 100 authors**, as given by the stats on the FEX:
>
> s = urlread('http://www.mathworks.com/matlabcentral/fileexchange/authors');
> s = regexp(s, '\d*(?=</td>[\n\c] *<td>\d*</td>[\n\c] *<td>\d* \w* \d*</td>[\n\c] *<td class="number">[\n\c] *<ul class="star-rating">)', 'match');
> s = str2double(s);
> hist(s, 100);
>
> The distribution seems very unnatural. In particular, there are a few authors with over 20,000 downloads, but none with 10,000 to 20,000 downloads. A bug, or coincidence?
>
> *Over the last 30 days
> **In terms of number of downloads over the last 30 days

Coincidence.

Subject: File exchange downloads per author - an odd distribution

From: Kenneth Eaton

Date: 2 Jan, 2009 15:23:02

Message: 3 of 8

"Husam Aldahiyat" <numandina@gmail.com> wrote in message <gjl95l$3hp$1@fred.mathworks.com>...
> "Oliver Woodford" <o.j.woodford.98@cantab.net> wrote in message <gjl7dd$n0j$1@fred.mathworks.com>...
> > This code plots the distribution of number of downloads* per author for the top 100 authors**, as given by the stats on the FEX:
> >
> > s = urlread('http://www.mathworks.com/matlabcentral/fileexchange/authors');
> > s = regexp(s, '\d*(?=</td>[\n\c] *<td>\d*</td>[\n\c] *<td>\d* \w* \d*</td>[\n\c] *<td class="number">[\n\c] *<ul class="star-rating">)', 'match');
> > s = str2double(s);
> > hist(s, 100);
> >
> > The distribution seems very unnatural. In particular, there are a few authors with over 20,000 downloads, but none with 10,000 to 20,000 downloads. A bug, or coincidence?
> >
> > *Over the last 30 days
> > **In terms of number of downloads over the last 30 days
>
> Coincidence.

Actually, it was some people just screwing around. First, someone chose to play a joke on the infamous Marco by artificially inflating his downloads until he was #1. Then either those same individuals or others starting inflating the downloads of other high-ranked people to put them back ahead of Marco, dropping him to #8 (as of this post).

Maybe some of them wanted to make the point that the ranking can be easily fooled with since it is based on downloads?... or maybe they were just having fun.

Ken

Subject: File exchange downloads per author - an odd distribution

From: Oliver Woodford

Date: 2 Jan, 2009 15:59:01

Message: 4 of 8

"Kenneth Eaton" <Kenneth.dot.Eaton@cchmc.dot.org> wrote:
> Actually, it was some people just screwing around.

Aha! I hadn't thought of that option: contrived. :)

Subject: File exchange downloads per author - an odd distribution

From: Image Analyst

Date: 2 Jan, 2009 21:26:02

Message: 5 of 8

When I try to run Oliver's code, I get:

>> s = urlread('http://www.mathworks.com/matlabcentral/fileexchange/authors');
??? Error using ==> urlread at 108
Error downloading URL.

Any idea why I get this error? When I paste the URL into the Address field of Internet Explorer, it works fine (the page comes up in IE6).

I also get the same error for any URL, such as
s = urlread('http://www.google.com');

I have Proventia Desktop (IBM's software firewall) plus I am going through a Linksys router. Could it be some kind of firewall issue where MATLAB can't get through the firewalls but other programs can?

I'm running MATLAB R2008b on Windows XP, and according to the Java control panel, I have the latest Java software.

Subject: File exchange downloads per author - an odd distribution

From: Oliver Woodford

Date: 3 Jan, 2009 09:02:02

Message: 6 of 8

"Image Analyst" <imageanalyst@mailinator.com> wrote in message <gjm0pa$qem$1@fred.mathworks.com>...
> When I try to run Oliver's code, I get:
>
> >> s = urlread('http://www.mathworks.com/matlabcentral/fileexchange/authors');
> ??? Error using ==> urlread at 108
> Error downloading URL.
>
> Any idea why I get this error? When I paste the URL into the Address field of Internet Explorer, it works fine (the page comes up in IE6).
>
> I also get the same error for any URL, such as
> s = urlread('http://www.google.com');
>
> I have Proventia Desktop (IBM's software firewall) plus I am going through a Linksys router. Could it be some kind of firewall issue where MATLAB can't get through the firewalls but other programs can?
>
> I'm running MATLAB R2008b on Windows XP, and according to the Java control panel, I have the latest Java software.

I'm going through a Netgear router and it works fine for me. Try doing it after turning off your software firewall (and check the Windows XP firewall is off too). If it works then you should be able to put Matlab on some special list of safe software in the firewall software, and re-enable it.

Subject: File exchange downloads per author - an odd distribution

From: kainat ali

Date: 31 Jan, 2013 05:47:59

Message: 7 of 8

On Saturday, January 3, 2009 2:02:02 PM UTC+5, Oliver Woodford wrote:
> "Image Analyst" <imageanalyst@mailinator.com> wrote in message <gjm0pa$qem$1@fred.mathworks.com>...
> > When I try to run Oliver's code, I get:
> >
> > >> s = urlread('http://www.mathworks.com/matlabcentral/fileexchange/authors');
> > ??? Error using ==> urlread at 108
> > Error downloading URL.
> >
> > Any idea why I get this error? When I paste the URL into the Address field of Internet Explorer, it works fine (the page comes up in IE6).
> >
> > I also get the same error for any URL, such as
> > s = urlread('http://www.google.com');
> >
> > I have Proventia Desktop (IBM's software firewall) plus I am going through a Linksys router. Could it be some kind of firewall issue where MATLAB can't get through the firewalls but other programs can?
> >
> > I'm running MATLAB R2008b on Windows XP, and according to the Java control panel, I have the latest Java software.
>
> I'm going through a Netgear router and it works fine for me. Try doing it after turning off your software firewall (and check the Windows XP firewall is off too). If it works then you should be able to put Matlab on some special list of safe software in the firewall software, and re-enable it.

I tried to disable the firewall and then use urlread but still gives me error 108. I enable Matlab in inbound and outbound rules but still doesn't run.

Subject: File exchange downloads per author - an odd distribution

From: Oliver Woodford

Date: 31 Jan, 2013 11:44:08

Message: 8 of 8

Kainat Ali wrote:
> I tried to disable the firewall and then use urlread but still gives me error 108. I enable Matlab in inbound and outbound rules but still doesn't run.

This is a question about using urlread, rather than the real topic of this thread (which is no longer relevant anyway). I suggest you start a new thread with a better subject line, or even ask a question about your problem on MATLAB Answers. It will attract more help.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us