Alexa points to the wrong domain name - how to fix

July 4, 2012 at 2:18 AMWebsite Sorcery

I checked one of my domain names on Alexa.com and found it brought up information on an entirely different domain, not in any way affiliated with my one. I tried to claim the site as my own, copying over the validation file, but received the following error:

Your home page is redirecting to an URL on another domain. 
Please either remove this redirect or claim the site that is being redirected to instead.  (____.com)

Obviously this is not that useful, as the domain it points to I have no control over. Interestingly, I know the rank and keywords are for my domain, it's just the domain name. My domain is listed as a sub-domain.

This is how to fix:

Go to the following URL:

http://www.alexa.com/faqs/?p=7821

Click on the Dealias Tool button. In the Your Site text box enter your domain (the www prefix is not necessary). 

It takes Alexa about a week to separate the domain names. Once this has happened you can pop back and update the details.

Posted in:

Tags: ,

How to convert a JavaScript String to lower case.

June 27, 2012 at 9:29 PMWebsite Sorcery

If you're lazy and can't be bothered to read the API, here you go:

"Hello World".toLowerCase();

Posted in:

Tags:

How to add Google News RSS to your Wordpress Website Page or Post

June 14, 2012 at 5:36 AMWebsite Sorcery

There are a number of RSS readers available but you'll likely spend time trying to find one that works for you. The best I've come across is the WP Simple RSS Feed Reader which currently has a 5 star rating. Download this plug-in and activate it.

Visit news.google.com and enter your desired search keywords, such as "Good Drugs". Scroll to the bottom of the results and click on the RSS icon. Copy the URL which you will use in your short code. 

Use the following shortcode to create your RSS feed in either a Page or a Post:

[simple-rss feed="{feed url}" limit={feed count}]

For example:

[simple-rss feed="https://news.google.com/news/feeds?hl=en&gl=us&q=georgie+thompson&um=1&ie=UTF-8&output=rss" limit=10]

That's it, you're done!

Oh, hold on...

I wasn't keen on the hyperlink and hr before the news feed. I removed this fairly easily by going to the Plugins page and clicking the Edit link for WP Simple RSS Feed Reader. Navigate to the wp_simple_rss_feed_reader function and remove the following line of code:

$return = "<a href=\"".$xml->channel->link."\" class=\"wp-simple-rss-feed-url\" target=\"_blank\">".$xml->channel->link."</a><hr />";

Save the plugin code.

Your code will look roughly like this:

function wp_simple_rss_feed_reader($url,$limit=50){
	$url = html_entity_decode($url);
    $xml = simplexml_load_file($url); 
    
    $return .= "<ul  class=\"wp-simple-rss-list\">";
    $i=0;
    ... etc ...

Posted in: WordPress

Tags: , , ,

How to add the Visio Drawing Control (axDrawingControl) to a Windows Forms application

June 13, 2012 at 3:59 AMWebsite Sorcery

If you are trying to create a Visio Drawing Control in your Windows Forms application (VB.NET, C#, etc) then you need to perform the following steps:

  • Install Microsoft Office Visio. This is required and will put the assemblies in the GAC.
  • Right-click the Toolbox and select Choose Items...
  • Select the COM Components tab.
  • Scroll down to find Microsoft Office Visio 14.0 Drawing Control and check the box.
  • Click OK.
You will now have a Microsoft Office Visio 14.0 Drawing Control in your toolbox, likely at the bottom.
 
These instructions are for Visual Studio 10 with Microsoft Office Visio 2010 installed.
 
There's older information on Microsoft's website with a beginners how-to guide:
 
 
 
 
 

Posted in: .NET Development

Tags: , , , ,

How to find High Pagerank Domains on Go Daddy Auctions

May 17, 2012 at 4:05 AMWebsite Sorcery

Most people buy new, un-established website domains that take months to start generating traffic. Some smarter people buy already established domains with a higher Google Pagerank which already receive an influx of traffic. Sounds like a great idea right?

Wrong!

Buying domains at auction websites such as Go Daddy Auctions is a minefield! Most of the higher page rank domains are fake!

How are domain page ranks faked you may ask? The answer is simple - redirection. If I were to purchase a domain, such as ballbags.com, and redirect it to a high pr site (such as wikipedia.com), then the next time Google run a pagerank update you will find ballbags.com is suddenly appearing to be a very high page rank indeed.

What I can do now with ballbags.com is to list it on Go Daddy Auctions. Innocent buyers may then be duped into entering ludicrous bids to buy a domain they believe is PR9, but in reality is a lowly PR0. They win the auction, pay for the domain, and find they don't receive the traffic they were expecting. Come the next Google Pagerank update the website PR will be adjusted back to the real PR of zilch. Bummer.

So what do you do?

Firstly you need to scour through thousands of domain auctions on Go Daddy and check each one, firstly to find the pagerank, and secondly to determine if the pagerank is valid. There are countless domain auctions every day, so you can imagine how long this process would take. If you're OCD enough to check domain PRs from morning to night then be my guest, but fortunately there are less time-consuming methods.

Right, I'm going to let you in to a little secret. I don't receive much traffic on this website so if you're reading this then you're one of the privileged few. I've come to use a website called Valid Domain Auctions. This website publishes a list of valid, high page rank domains, on a daily basis. As you can imagine, this will save you heaps of time. What Valid Domain Auctions (or VDA) does, is sift through the thousands of domains and do away with all the ones with a fake PR. Unfortunately the service isn't completely free, but with that it ensures the higher PR auctions aren't public knowledge. At the moment they're charging $0.49 a day to see the higher PR auctions (PR4 and above). From the top of each post there's a count of each PR rating, so you can gauge how many higher PR domains you'll get for your money. Think about it - if you pay $0.49 each day then it will still cost less than $15 a month for inside information to stop you forking out $$$s for fake domains.

Valid Domain Auctions

www.ValidDomainAuctions.com

A word of warning though. The amount of traffic a website gets depends on a number of factors. If you find a domain on ValidDomainAuctions.com which you want to buy, make sure you triple check the pagerank, and more than that do some background research on the website.

I hope this information has been useful.

Posted in: Tools & Applications

Tags: , , , , , , ,

How to Enable PDF Hit Highlighting in Adobe Reader 9

April 27, 2012 at 2:53 AMWebsite Sorcery

I've been using dtSearch to create an index of documents for a website, when I noticed the search text wasn't being highlighted in Adobe Reader like it used to with prior versions. I investigated further, and it appears Adobe decided to disable Hit Highlighting by default when it released Abobe Reader 9. This isn't ideal for me, as would mean all the users of the website would need to enable this feature in Adobe Reader.

I'm currently looking for a better solution, but for now this is how you enable hit highlighting in Adobe Reader 9:

  • Go to Edit -> Preferences.
  • Select Search in the Categories section.
  • Check the box to Enable search highlights from external highlight server.
  • Click OK.
If you're using Adobe Reader X then things are different once again. For this you need to download a plugin from the dtSearch website.

Posted in:

Tags: ,

Remove "Proudly powered by WordPress" from Twenty Eleven theme.

April 24, 2012 at 2:14 AMWebsite Sorcery

For those of you using the Twenty Eleven theme for WordPress and wish to remove the "Proudly powered by WordPress" link in the footer, then this is how:

  • In the admin panel, select Appearance -> Editor.
  • Select footer.php from the Templates column.
  • Search for the div with the class id site-generator (<div id="site-generator">) and remove the following code:
<?php do_action( 'twentyeleven_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
  •  Click the Update File button.
Job done!
 
If this has helped you, please take the time to like/share this page. Thanks.

Posted in: WordPress

Tags: ,

Installing Windows Indexing Service on Windows 7

March 24, 2012 at 1:47 AMWebsite Sorcery

Indexing Service is not installed by default on Windows 7 as it has been replaced by Windows Search, but it is still available if required. To install Indexing Service on a Windows 7 home system carry out the following steps:

* Open Control Panel from the Start Menu.

* Select Programs and Features.

* Select Turn Windows features on or off.

Installing Indexing Service on Windows 7

* Check the option for Indexing Service and press OK.

Installing Indexing Service on Windows 7

Indexing Service will now be installed on your Windows 7 system. If you want to run the Indexing Service Console then Start -> Run -> Ciadv.msc.

If this information has helped you, then please take the time to click a like/share button. Thank you.

Posted in: Windows 7

Tags:

CheckBox Issue with MVC 3 WebGrid Paging & Sorting

March 19, 2012 at 8:52 PMWebsite Sorcery

I've encountered an issue with a CheckBox on a page along with the MVC 3 Web Grid. The issue occurs while paging and sorting, giving the following error:

The parameter conversion from type 'System.String' to type 'System.Boolean' failed. See the inner exception for more information.

Investigating the error further it seems the InnerException is:

{"true,false is not a valid value for Boolean."}

It took me a while to find a workable solution and I spent far too long searching on Google for any help on the matter. Fortunately I managed to get it working, and later on in this post I'll give you the answer. Firstly I'll discuss why it occurs.

An Html CheckBox will only post back a value when it is checked, and is ignored when false. This functionality is by design, for good or bad. To compensate for this, a hidden field is created with the same name, and this will post back either true or false. This will give the resulting QueryString:

Unchecked = false.

Checked = true,false.

Slightly odd, but that's the way it is. Let's look at some code.

View Code (cshtml):

@Html.CheckBox("MyBoolValue", @Model.MyBoolValue)

Controller Code:

bool myBoolValue = true;

if (Request.QueryString["MyBoolValue"] != null)
{
     myBoolValue = Request.QueryString["MyBoolValue"].Contains("true");
}

What this means is that a value of true,false will be set to true, or otherwise false.

I'd like to state a few more things in case the above doesn't work for you, and in reality my code was slightly different. I separated the name of the CheckBox completely from the value of the model, so my @Model.MyBoolValue was bound to a CheckBox called BoolValue which is what I read back from the query string. In my Controller method I do not use MVC binding, instead using the QueryString to read the value. The issue occurs with the MVC binding which is why I opted to sidestep it completely.

Another option is to create the CheckBox without the Html.CheckBox helper, coding it like so:

<input type="CheckBox" name="MyBoolValue" value="@Model.MyBoolValue"/>

Or you could go a step further and use Custom Model Binding.

Posted in: .NET Development | ASP.NET MVC | Razor

Tags: ,

ASP.NET MVC WebGrid - Problems Sorting Columns Bound to Dictionary / Enumeration Values

March 16, 2012 at 5:29 AMWebsite Sorcery

I have a WebGrid bound to a List of Dictionary values, with which I dynamically create columns for each Key/Value attribute. I set a default sort (defaultSort) to the first attribute in the Dictionary, and find this sorts perfectly within the WebGrid with ASC/DESC appearing correctly in the query string. The problem I seemed to have was none of the other columns sorted correctly, retaining the sort order of Ascending (ASC).

I did some research and found this is also an issue when binding to Enumeration (enum) values, and imagine it to be the case when binding to other collections too.

I found a fairly tidy way of fixing the issue, and that was to set the Grid.SortColumn on the WebGrid to the last sorted column in the query string. This can be done with little modifications to the Controller and the View.

Controller code:

ViewBag.LastSortedColumn = Request["sort"];

View (cshtml) code:

var grid = new WebGrid();

/* Create & Bind the WebGrid */

grid.SortColumn = (string)ViewBag.LastSortedColumn

What this code does it retain knowledge of the last sorted column, which is necessary as the WebGrid loses track of the last sorted column when it's not bound to a definitive property.

If this has helped you, then please take the time to click the Google+ and Share buttons. Thank you.

Posted in: .NET Development | ASP.NET MVC | Razor

Tags: