Web development by PHP-Web-Host.com   Website Hosting by PHP-Web-Host.com
Web Hosting by PHP-Web-Host.com

SoftSmart Blogs!

SoftSmart Technical, Software and Web Related Blogs

Tel (Lon, UK): 020 8133 3460

 

 

Blogs

Archive for the ‘Open Source Software’ Category

Converting Links in a text file to anchor tags usable in your website

Saturday, January 9th, 2010

I recently answered a question about converting links in a text file, eg, www.softsmart.co.za to an anchor link that could be used in a website, eg, <a href=”http://www.softsmart.co.za”>http://www.softsmart.co.za</a>.

I decided that since I was such an open source evangelist, the best thing I could do was whip up a little application to do this:

Here is a brief synopsis of what it does (links at the bottom):
It takes a text file that has one link per line.

You can start the program in several ways (its a console program):
1) Just start it and it will ask you to type in the full path and name of the file (unless the file is in the same directory, then name alone should be fine)
2) You can start the program from a dos prompt followed by the name of the file in quotes, eg, c:\>UrlToAnchor.exe “C:\Folder 1\Folder 2\test.txt”
3) Easiest method is open the folder that has this exe, then in a different folder open the folder with your text file, then just drag the text file onto the program.

It will ask you 3 questions. These are related to what you want the resultant anchor text to look like:

1) Do you want a title tag? If ‘y’ then it will place the title=”eee” into the tag, using the domain name as the title
2) Do you want to use the title tag as the link text? If ‘y’ then the title tag is the link text, ie, what the user sees and clicks on
3) Do you want the links to open in a new window? If ‘y’ it adds the target=”_new”. This is nice if you are placing these links on your own site but you don’t want people to go out of your site.

I tested this on a very average machine (my laptop) with a file that had 200 000 dummy links. It ran that in just under 2 minutes.

Ok, here is the disclaimer…

1) I am giving this away for free, so there are no guarantees. However, if you need help or you want a feature added, mail me, I’d be more than happy to help. My time is very limited however so you may have to wait.

2) I know that its scary using free software from someone you don’t know, so I’ll make this opensource. You can download the program and run it, or you can download the source and check it out, modify it then compile it yourself. Although I haven’t tested this on Linux yet, I do try to stick to ANSI C++, so this should compile on both (Please post here if you want me to compile a Linux version).

What do I ask in return? If you want to make a comment on the blog, make it nice! If you do download the source and modify it (or post it on your own website), please respect 2 things:

1) Please post back to my blog to let us all benefit from the mods
2) Please keep my title info at the top of the source file (its only one file). You can add yours below!

Click here to download the exe for windows

Click here to download the source file

 


 

What is open source software?

Saturday, January 2nd, 2010

Free software???

Did I just say free software? Well, the operating system that this website, and most websites you will look at, runs on is free, open source software. Open source software has been a viable alternative to paid software for many years now, its just not that well known amoung non technical folks.

The most important difference between software created by the open source communities and commercial software sold by vendors is that open source software is published under licenses that ensure that the source code is available to everyone to inspect, change, download, and explore as they wish. This is the essential meaning of open source: the source code–the language in which the software is written and the key to understanding how the software works–can be obtained and improved by anyone with the right skills.

The choice comes from the huge amount of programs available. Some programs like Firefox (the smoking-hot browser from Mozilla.org) or OpenOffice.org (a suite of word processing, spreadsheet, and related programs) can be downloaded and used by just about anybody (Click here to get to their links). Other open source projects such as Babeldoc or Axkit are mostly useful for software developers.

None of this open source software costs money. Some programs charge subscriptions for support, updates, documentation, or premium versions, but most of those are usable without paying a fee.

The promise of open source is better quality, higher reliability, more flexibility, lower cost, and an end to predatory vendor lock-in.

Open Source Initiative

The Open Source Initiative (OSI) is a non-profit corporation formed to educate about and advocate for the benefits of open source and to build bridges among different constituencies in the open-source community.

Where to get it?

Firstly, check out our links to great open source products here

There are sites that promote just open source software. Personally, I use SourceForge all the time, it really has an amazing variety of open source software which is freely available.

What is SourceForge.net?


SourceForge.net is the world’s largest open source software development web site. They provide free services that helps people build cool stuff and share it with a global audience.

As of February, 2009, more than 230,000 software projects have been registered to use their services by more than 2 million registered users, making SourceForge.net the largest collection of open source tools and applications on the net.

For a concise look into open source software, Click here for an article in Wikipedia.org

For an indepth study of the merits of open source take a look here, but be warned, this is a research paper. ITS LONG, and not for the feint hearted.

I want to know more…

If you want to know more about open source software, or if you need software but not sure how to go about it, please email us at [email protected]. We will try to help as far as possible for free, but we do also provide a consultation service to help you get up and running. You really never (almost) need to pay for software again.

Sources:

http://www.opensource.org
http://www.sourceforge.net
http://onlamp.com/pub/a/onlamp/2005/09/15/what-is-opensource.html

Thumbnails powered by Thumbshots

 


 

Get Adobe Flash playerPlugin by wpburn.com wordpress themes

 

 

We accept PayPal

 

Web Hosting by PHP-Web-Host.com Website Hosting by PHP-Web-Host.com

[ Home ] | [ Software ] | [ Web Development ] | [ Resources ] | [ Contact ] | [ Privacy Policy ] | [ Acceptable Use Policy ] | [ Terms of Service ] | [ Sitemap ] | [ Clients ] | [ Affiliates ]

[ PHP Web Hosting ] | [ Linux Web Hosting ] | [ 500mb PHP Web Hosting ] | [ 1Gb PHP Web Hosting ] | [ 3Gb PHP Web Hosting ] | [ 6Gb PHP Web Hosting ] | [ 10Gb PHP Web Hosting ]

[ HTML Tutor ] | [ CSS Tutorial ] |