2009 Software & Hardware goal: Auto Car

April 6th, 2009

For a while now I have been looking into writing some form of software as a basis for some form of car automation.
For a few months, I did not have anyway to start as I was unsure about how I would dynamically get information from the car, such as current speed, fuel available, etc etc etc. But then I found out about a port on every car (After 1996), thats called an OBD port. What it is designed to do is allow for mechanics to get information from the car during run time to test for problems. (If you ever noticed a laptop sitting near where you car gets serviced, thats why..).

So, this is the basis for my first project (Nothing fancy yet haha).
I bought a OBD to USB converter from ebay for about $50 AUD. What im planning to do is write some software (Using Java), that gets the information from the car, shows it using Google Maps (Using some form of GPS), figures out Petrol stops (Using car fuel available), and If i can get this info even show if your speeding.

Only $50 AUD delivered!

Only $50 AUD delivered!

 

 

Once I get the OBD converter I will be sure to post more updates on my software (Including source code etc).
Hope u guys find that as interesting as me..

Angus McDowell Uncategorized

Site launch

April 5th, 2009

Introducing my new site, WebTelegraph. Allows writers to write about news near them, and earn some cash. Tell me what you think:

www.webtelegraph.com

Angus McDowell Uncategorized

Make your apps SMS smart

March 26th, 2009

Wow, well done, you’ve just completed a new feature which is absolutely awesome, has taken a few weeks and tops a thousand lines of code.
Now, let’s tell your users.

Mmm, problems with old email address’, Spam boxes (ARARRGGH) & the simple fact, people don’t want to read emails that they dont have to.

Solution? Sure is, SMS.
Obviously, its not the most practical form of communication, but for some things, it can be extremely effective.  It’s also cheaper sending online then through your phone, about 10c per message cheaper. 

Gets better, You can see who’s messages weren’t delivered because there number isn’t correct (And prompt that user to update next time they sign on), see when the person receives the text to their phone, or even if they’re phones out of range or off.

So, sounds cool. But how hard is it to integrate.
Well, its super hard *not. You could do it in 1 line of code if you tried.
 
<?
fopen(”http://yourSMScarrier.com.au/sendsms/?to=04########&from=YourSite&pass=YourPassword&user=YourUser”, r);
?>

Thats the PHP way to integrate, as you can see we use the fopen() method to load the page, and simply send information using the GET method (Content in the address), to pass information to the site. Too easy.

There are some great sites for SMS, just go and Google “SMS Gateway” and you’ll find some great sites.
But, don’t use any sites that make your SMS’ expire, are more then 10c each & make sure they can send to most countries, otherwise your wasting your money.

Let’s get SMS smart.

Angus McDowell Uncategorized

Its not 1994, It’s ‘09 and the web needs to grow up.

March 25th, 2009

 

User’s subscribe, subscribe & guess what? Subscribe.
We want media, content & features to keep us informed with anything from world news to what our friends ate for breakfast. The time where we were happy to pay a fee, monthly, yearly or even once off is passing, very quickly. 

Web masters need to reduce, or illuminate any costs on their site, and make their websites available to all, to maximise traffic and to actually keep running. During this economy crisis, we’re not willing to spend any online for some text to be delivered, webmasters will need to find another avenue to make money, even if it is the low costs earn’t from web advertising.

It gets worse, the willingness of users to even contribute to online committees is also suffering. I realised this when I launched a online news site, and users did not want to post, and why would you? Why would you want to spend valuable time for nothing in return. To make it more interesting, I created a new feature, that distributes 90% of daily profits based on the hits that person gets for the day. Although the amount they we’re earning was low, it influenced them quite a bit to post, and they could track their articles progress on their admin portal, if you wanna check it out the site is www.webTelegraph.com . Any idea’s or comments would be greatly appreciated by the way.

The web community needs to change, and quick. 
Googles leading the way, and we should follow in their example. 

Angus McDowell Uncategorized

Start your own Google

December 17th, 2008

This article is going to be a working progress, while parts be added and updated over time.

Be your own Google. Starting your own search engine is a cool and weirdly fun way to spend some time. Your reasons for starting a search engine could be for a company, school or group search portal, or maybe you wanna take on Google. Either way, I’ll show you how to build you own search engine, which will work in a similar way to Google. Obviously, you won’t get the same results as google because Google has its own techniques of searching.

Some points to concider:

  • Do you have somewhere to store this data?
  • How much bandwidth do you have available?
  • Should you host at home?

As your crawler (The thing going around the web adding sites to your database) gathers information, more and more disk space will be needed to store this information. The crawler will be collecting the site name, site contents, size and some other peices of information about the websites it access’, but each site will only come in to around 1K as we’re not storing images, stylesheets or any big pieces of data.

I recommend, only because it is fun, setting up and running your server from home. The reason of this, is because i doubt your willing to spend much money into dedicated servers with Hosting providers at this stage. It also allows you to add more storage as you need it and you can configure your own server farm as it becomes required.

Bandwidth, the bitch that makes things sad, is going to be a problem. Some ISP’s offer unlimited downloads, but of course they mostly have policies on running your own webservers and some even block required ports for this happening. If bandwidth is going to be your problem, I will show in this tutorial further on how to cap your crawlers monthly bandwidth downloads so you don’t get any nasty bills down the road.

Getting started : Setting up your server.
Your fresh online business is getting ready, and at this point in time much computing power isn’t really required. If you have a spare old computer with a bit of space (10GB is okay, but obviously if you have a 500GB drive thats better). If you must, you can use your normal computer, but for security purposes having a dedicated PC is better.

So, turn it on. I don’t recommend having Vista on any machine, so strip that off and plob on a copy of Win XP. Only because it isn’t a huge disk user, actually WORKS and isn’t going to bum around asking you for your credentials all the time… Download a copy of XAMPP. XAMPP is a program which quite easily turns your machine into a webserver, adds PHP & allows databases to be created.

Now, you’ll need to setup your router to route port 80 requests to that machine. On your dedicated machine, give your computer a IP address which will stay the same (A dedicated IP), something like 192.168.1.5 or 1.0.0.5 depending on what your current setup is. Thats something for you to Google.

Once you have your machine setup so it’ll get the same IP from your router every time it turns on its time to setup your router so it will route web requests to this computer. Login to your routers admin, and based on different routers you’ll have to add an outbound rule. So, thats generally something like Port : 80 and IP : whatever you got your ded. machine to always get. I’ll try and make this part clearer if anyone doesn’t get it, leave a comment.

To test everything is working (Make sure XAMPP is running). Go to www.whatsmyipaddress.com this will give you an IP of your data connection. Now go onto a proxy server, such as www.proxem.info and type in your IP. If a XAMPP page comes up. Yoursetup. If not, you’ll have to go back and recheck. BTW: You had to use a proxy because you were in the same location as the server, but anyone else out of your data connection could just type your IP into the address bar.

Setting up : Homepage
Now were going to start setting up your homepage. As this page at this stage will only be used to testing the basic search functionality were not going to bother adding pages like “Add a link”, “Advanced Search” etc etc. Let’s not get ahead of ourselves. We’re going to have a basic frontpage like Google at this stage, if you want, you can design your own Logo and plop it in aswell.

<html>
<head>
<title>Your search engines name</title>
</head>
<body>
<form method="post" action="search.php">
<table align="center">
<tr><td><input type="text" name="query"></td><td><input type="submit" name="go" value="Search"></td></tr>
</table>
</form>
</body>
</html>

Now, if your not familiar with HTML, I seriously recommend you visiting www.w3schools.com/html in the near future. But, basically i’ll run you through what each line of the code does.
Line 1 : Telling the browser its HTML (Hypertext Markup Language).
Line 2: Head, the section where some general info is kept (Not the page contents)
Line 3: What the top says, for example the top of this page is “Hid3 -”
Line 4: Closing the head section
Line 5: Opening the body section, where content is.
Line 6: Telling the browser were writing a form (Input) and what to do when the “Search” button is pressed. Which is go to the search page.
Line 7: Make a table
Line 8: Show the input & submit button
Line 9, 10, 11 & 12: Closing off some stuff.

From now on, I won’t be explaining HTML code in this tutorial, so reading a HTML tutorial will really benefit you. Try changing your homepage :)

Thanks for reading. More on its way
Btw, I’d LOVE to see some of these fresh homepages, so send them as comments and yeah !

Angus McDowell PHP, Webdev

Did they open that email? Or not? (Part 1)

December 17th, 2008

Did they ignore you? Have they received it?
Stop being paranoid; this tutorial will show you how to see when your emails have been opened by the recipient.

(Warning: this could not always be 100% accurate if the recipients email client does not open images)

So, how does this work?
When the recipient opens an email, a small image that is attached loads. instead of the images address being
www.hid3.info/image.gif      the image is actually     www.hid3.info/load.php?email=myemail@email.com&id=456

Whats the difference? Well, for starters the second address loads a script, which can preform some tasks for us before we send back the image. It still is an image. So, in that address you see two pieces of information, an e-mail address and a number, 456.

So, this tells our script who the email recipient is, and also what email it is to tell has been opened. If your confused, don’t give up yet! It gets easier and more easy to understand soon.

For our little gadget to work, we need 4 things. Webhosting, A database, 2 scripts & a small 1×1 pixel image.
If you don’t have webhosting there are many great FREE providers out there. But, check they offer MySQL databases and also PHP support.

Let’s get started:
First, we’re going to setup our database. Log in to whatever you manage your databases with (Most common being Cpanel.). Add a new user call it something like    emailTracker       then create a database with the name      emailStatus       You may have to add the user to the database, as per your web hosters documentation.

Then add the following SQL code which will setup our database.

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `emailStatus`
-- --------------------------------------------------------
--
-- Table structure for table `emailStatus`
CREATE TABLE IF NOT EXISTS `emailStatus` (
  `ID` text NOT NULL,
  `recipient` text NOT NULL,
  `timeOpened` text NOT NULL,
  `status` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `emailStatus`

Enter that as a piece of SQL into your database and your ready to go onto part 2.
Part 2 is coming soon. Please subscribe to our RSS feed to have changes like Part 2 send directly to your inbox!

Angus McDowell PHP

Welcome everyone!

December 16th, 2008

This is my new blog.

I’m planning to have a range of different things here based on my various interests.

Cheers!

Angus McDowell Uncategorized