Visual Basic 6: Get last backslash

11 September 2009

Here is a function to find the last part of the string after the last backslash.

This is especially useful when dealing with filepaths and filenames.

Public Function GetLastBackSlash(Text As String) As String
    On Error GoTo TrapIt
    Dim i, pos As Integer
    Dim lastslash As Integer
    Text = Replace(Text, "/", "")
    For i = 1 To Len(Text)
        pos = InStr(i, Text, "", vbTextCompare)
        If pos <> 0 Then lastslash = pos
    Next i
    GetLastBackSlash = Right(Text, Len(Text) - lastslash)
TrapIt:
End Function

Permalink     Comments (0)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

Turn your computer monitor into a mood light

9 September 2009

Press F11 to make your web browser full screen and then watch the mood lamp fade from colour to colour.

The mood lamp runs off timers and first fades black to red and then through all the colours finally ending up again on black where it will start over.

Just a bit of fun really.

View the mood light

Permalink     Comments (1)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

Turn your computer monitor into a party light

8 September 2009

This party light is just running off random numbers and generating a colour according to the random number.

For best effects run this party light in a dark room.

And for better effects press F11 to make your web browser go full screen.

You run this party light at your own risk as some people are prone to attacks with fast flashing lights.

The party light will look best if you have a fast refresh rate on your monitor as then you won't see so much transition, however, I strongly recommend no changing your refresh rate just to be able to view the party light.

View the party light

Permalink     Comments (0)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

Turn your computer monitor into a strobe light

7 September 2009

So you're not actually turning your computer monitor into a strobe light - it won't be a powerful enough light.

But we are creating the same type effect.

As it's only a computer monitor or a laptop screen the best effects will take place in a dark room.

Also pressing F11 will make the light full screen within your browser for full effects.

Basically your monitor will flick between black, white and blue at a very fast pace and will result in a strobing effect.

The effect can only be as good as your monitor - so if you have a very slow refresh rate on your monitor then the effect may look quite poor.

Some people are prone to attacks when strobe lighting is viewed - please note that you will be opening the next page of your own accord and that this disclaimer has been here to warn you.

View the strobe light

Permalink     Comments (10)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

How did keywords used to work?

5 September 2009

When search engines first came around they relied purely on the website's keywords.

This soon changed when pages were being found and then the page content was nothing to do with that keyword.

People would stick anything in the keyword area just hoping that there website will get found, even if it was found for all the wrong reasons, just to generate more traffic.

Search engines cottoned onto this and so then decided to take keywords in context from the actual page content.

The keywords defined in the meta tag in the head area of the website are barely used now - but should still be added anyway, just in case.

The keywords defined should all reflect keywords found in your web page's actual text.

As the keywords aren't used as much now you need to make sure to remember that all your page content is keyword rich - that way search engines will stick pick up on these keywords.

Permalink     Comments (0)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

PageRank

3 September 2009

PageRank is determined by the links to your website.

BBC have a PageRank of 9/10.

This PageRank score is for the home page, and so as you navigate deeper into the site the PageRank goes down.

1 Link from BBC's home page will give us some of their "link juice" and so will benefit our PageRank score.

So really the aim with PageRank is to get as many big websites, and high traffic generating websites to link to your website.

Check your Page Rank - www.prchecker.info/check_page_rank.php

Permalink     Comments (0)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

Keyword Competition

2 September 2009

The more competition with a certain keyword, the harder it will be to get to the top of Google with that keyword.

Instead of thinking keywords, it's often better to think of widely searched keyphrases (2 or more keywords together).

The best keyword/keyphrase to optimise for are those that generate lots of searches, but with little competition - this will make it easier to get to the top for this keyword/keyphrase.

Check keyword competition and see some suggestions - https://adwords.google.com/select/KeywordToolExternal

Permalink     Comments (0)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

Inbound links

1 September 2009

Inbound links are one of the best ways of getting noticed by Google.

The better the website linking to you, the more it will impact your website in a good way.

Check your inbound links with Yahoo Site Explorer - siteexplorer.search.yahoo.com

Permalink     Comments (0)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

Optimising for a keyword

27 August 2009

Each page of your website should be optimised for something different.

Your home page would usually be optimised for your company/organisations name, then sub pages should be optimised for the purpose of that page.

Each page should have a different title and page description and these should be very relevant as the title is one of the best methods of optimising for search engines.

<h1>, <h2>, <h3> tags on every page - optimising for the correct terms.

<h1> should show the most important text, and therefore will be the biggest on the page.

<h2> is usually for sub headings down a page, and are very important, just not as much as the <h1> tag.

<h3> is more important the bold text, but not as important as the <h2> tag.

Meta keywords and meta description should both be in place, even if the meta kewords aren't so important to search engines these days.

Page text should be keyword/keyphrase rich (but not over doing it).

Permalink     Comments (2)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us

Page titles

22 August 2009

The page title is shown in your browser bar at the top, and also the heading that Google displays in their search results.

The title should tell what is on that page.

The title tag is also one of the most used forms of optimisation from Google.

Having multiple pages with the same page title to Google (at a quick glance) it looks like the same page.

If you don't have a unique page title, then maybe you don't actually need that page?

Permalink     Comments (0)     Trackbacks (0)

Share this on Facebook  Share on Twitter   Google  Yahoo  Technorati  Reddit  Digg  del.icio.us