linein designs

1. Add your subdomain
You can do this as a normal subdomain or as a standalone domain.

2. Add your certificate to Plesk
Use the Plesk control panel to add your certificate. Where the shortcoming comes into play is that Plesk will continue to use the default certificate.

3. Find your certificate
Head over to /usr/local/psa/var/certificates

Take note of the file name cert-xxxxxx that has today’s creation date. There may be two if you installed a CA certificate. You will need to determine which file is the normal certificate and which one is the CA one for the step 5.

4.Copy the include file
Go to /var/www/vhosts/sub.domain.com/conf and open the httpd.include file
Find where it has

ServerName sub.domain.com:443

Copy the entire VirtualHost block for JUST the SSL portion. (from <VirtualHost xx.xx.xx.xx:443> to </VirtualHost>)

5. Make your include file
Head over to /etc/httpd/conf.d and make a file. Call it something like z0-subdomain.conf. The file just needs to load after ssl.conf but before zz010_psa_httpd.conf. Paste what you copied from step 4 into the file and then set the certificate file names from step 3 into these following places.

SSLCertificateFile /usr/local/psa/var/certificates/cert-xxxxxx

If you have a CA certificate, you must also add this line just below:

SSLCACertificateFile /usr/local/psa/var/certificates/cert-xxxxxx

6. Restart Apache
service httpd restart

Most of these instructions were taking from this page, but they left the CA certificate step. This is very important since certain browsers do not trust all intermediate CA’s. (mostly Apple products and some cell phones)

Tags:

16 Jun, 2010

checks – Android Application

Posted by: john In: android|apps

Simple way to manage your uncleared checks. Add a check and then mark it cleared. Now with different currencies and the ability to sort and view all checks.

Please leave a comment below or use our feedback forum to report any bugs or suggest new features.

Screen Shots

Change Log:

1.8.1
- quick icon fix
1.8
- quick view and sort hack (will fix later)
- fixed couple of display issues
1.7
- added menu options to view all checks and sort checks
- add ability to delete checks
- increased settings font size
1.6
- added ability to choose currency symbol
- new icons and minor UI improvements
- other minor backend tweaks
1.5
- fixed save date bug
- added background images to "add checks" tab and table rows in "view checks" tab
1.12
- added day of week display preview (proper date picker coming soon)
1.11
- quick legacy fix
1.1
- major speed improvement
- 2.2 Froyo support
- new settings tab for future update

This is a more practical way to display an image or text while an AJAX request is loading.

DEMO | DOWNLOAD FILES

What we’re basically doing is forcing a DIV to have a starting image and then replacing it with the text return from the AJAX request.

function loadingAjax(div_id)
{
	$("#"+div_id).html(' saving...');
	$.ajax({
		type: "POST",
		url: "script.php",
		data: "name=John&id=28",
		success: function(msg){
			$("#"+div_id).html(msg);
		}
	});
}

Usage

save page

As always – if you’re looking for a sweet AJAX loading image, check out www.ajaxload.info..

If you have any questions or *gasp* improvements, please leave me a comment below.

After searching around for the better part of this morning, I finally figured out why my file upload script was not working correctly. When I setup the domain I did not even check to see if it was turned on since I did it relatively quickly, but right there in the “Hosting Settings” is an option to turn on PHP safe_mode.

I’m sure there’s a good reason to keep it on when using virtual hosting with multiple people using the same server, but for me it was just causing more problems then I could figure out. If anyone knows how to keep it on while still being able to copy/move files from an upload, please leave a comment below.

12 Apr, 2010

Baby Speaks First Word at 18 Days Old

Posted by: john In: baby|funny|pictures

Our new son speaks his first word at only 18 days old.

MOM!

This is an addition to the Find Time Between Two Dates in PHP post.

Here is a quick way to find the years and months between two dates using PHP. The dates are not exact since we’re assuming that each year and month has the same number of seconds.

function yearMonthDifference($start_date, $end_date)
{
	// 31556926 seconds in year
	$years = floor(($end_date - $start_date) / 31556926);
	// takes remaning seconds to find months  2629743.83 seconds each month
	$months = floor((($end_date - $start_date) % 31556926) / 2629743.83); 

	if($years > 0){
		if($years > 1){$year_s = 's';} // adds "s" if more than one year
		$years_display = $years.' year'.$year_s;
	}
	if($months > 0){
		if($months > 1){$month_s = 's';} // adds "s" if more than one month
		$months_display = $months.' month'.$month_s;
	}

	return trim($years_display.' '.$months_display);
}

// useage
$start_date = 'January 4, 2008';
$end_date = 'March 5, 2010';
echo yearMonthDifference($start_date,$end_date);

If you really want to get fancy, you may want to add a check to make sure the start date is less than the end date. Please post a comment below if you have any questions or suggestions.

I could not figure out why I kept on getting the following error being returned :

< ?xml version="1.0" encoding="utf-8"? >

	
		Error
		
			E00003
			The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:validationMode' element is invalid - The value '' is invalid according to its datatype 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:validationModeEnum' - The Enumeration constraint failed.
		
	

This error is caused by the field validationMode being empty.

Spent half a day trying to figure this out so hopefully this save someone else some time.

Tags:

17 Nov, 2009

Android WordPress App wpToGo Review

Posted by: john In: android|review

I just wanted to test out the Android app wpToGo on my new Android Droid phone. I gave a review on the iPhone app not too long ago so I only thought it would be fare to review this one as well.

First downside with Android itself is there’s no way to take a screenshot. On the iPhone you could just press two button to do this – very useful feature. So this review may be all text.

The editor comes with 4 preset formatting buttons – bold, italic, link, and blockquote. To apply for formatting, you just highlight the words you want to format first then press one of the format buttons. Basically it just wraps the text in a strong, em, anchor, or blockquote html tag.

Would have been nice to have a visual editor but oh well.

Adding picture is pretty straight forward. You just choose a picture from your phone and I’m assuming it’s going to automatically upload them and place them at the bottom of the page. (Update: nope – it places the FULL IMAGE at the top of the post! This needs to be fixed) Would have liked the ability to choose where the picture goes – like left align near the top paragraph or some control. Not a huge deal though.

Next you have you tags and category options. For tags you just enter each tag separated with a comma. The categories are done nicely though. It pulls in the already exisiting categories from the site into a drop down menu. It even allows you to choose multiple categories – very nice!

Finally you have the ability to publish now or I assume save as local draft. I’m going to test the draft feature since I want to know if it stores the draft on the site so I can go in and edit it later before it’s published.

All in all I think the app is great for a portable way to post to you blog. I would defiantly recommend checking it out. The app is free and can be found in the Android market place as wpToGo.

(All pictures taken from Motorola Droid)

17 Nov, 2009

Top Android Applications (updated regularly)

Posted by: john In: android

The name is bold is what to search by in Android Marketplace. Apps in orange are new since the last update – 6/18/2010.

Finding Apps

  • AppBrain App Market – while I don’t agree with having a seperate market, the app does allow you to search for top apps.
  • AndroidPITt – reviews for a new app each day along with a form and their website intergration
  • AppAware – see what apps are popular and being installed by other users. Good way to find new apps

Media (video, audio, pictures)

  • Zedge – download backgrounds and ringtones with a very nice UI
  • Twonky Server – allows you to stream your media to any UPnP & DLNA certified devices (PS3, Xbox 360 and some Blue-ray players) Very cool app!!
  • DoggCatcher – best audio and video podcast manger, costs $6.99 but it works great!
  • Backgrounds – very nice backgrounds that are updated everyday
  • Album Art Grabber – finds albums cover art for your music

Games

  • Pocket Empires Online – awesome MMO!
  • Crystallight Defense – nice tower defense game
  • Baseball Superstar 2009 – I can’t get enough of this game
  • The Wars – kinda like a simplified tower defense
  • LineUp – cool block game
  • Spades (free) – nice spades card game
  • WordUp! – just like Boggle
  • Solitare

GPS / Tracking

  • My Tracks – draws runs/walks via GPS and can save to Google Maps
  • runstar – tracks distance walk/run, set goals, built in music player, one of the best Android UI
  • My Maps Editor – save GPS locations to Google Maps (just go ahead and check out all the Google apps)

Utilities

  • Camera 360 – best camera replacement with very nice filters and options
  • EStrong File Explorer – best file manager and comes with good task killer
  • mAnalytics – Google Analytics
  • Speed Test – test the speed of your connection
  • FTPServerview tutorial on how to sync files with PC with this app
  • NetCounter – tracks how much data you’ve transferred over both wifi and cellular
  • Remote VNC – remote desktop client

Social / IM

  • Touiteur – twitter app with tons of features and very good UI
  • Meebo IM – AIM, Yahoo, MSN, Google Talk, Facebook, ICQ
  • AnyPost – ping.fm client to update your status to all the popular social networks

Widgets

  • Agenda Widget – best calendar widget out there IMHO, nice UI and functionality
  • AccuWeather.com – very simple UI with forcast toggle
  • Analytics Widget – display visitors or page views from Google Analytics, very basic but does a good job

Others

  • Google Voice – free visual voice mail plus a lot more
  • The Weather Channel
  • wpToGo – manage your WordPress blog (review)
  • PhoneFlicks – Netflix
  • Bible
  • DockRunner – turns on “media station” for Motorola Droids without media dock

Root Apps / ROMS

  • PicMe – take control of device as well screenshots right from web browser
  • Bugless Beast – custom ROM with tons of great feature, stable, and frequent updates
  • ROM Manager – easy way to download custom ROMs and backup your system FULLY!
  • SetCPU – overclock your phone; make a HUGE difference

Tags:

One of the biggest inconveniences about the Motorola Droid is the lack of ease when it comes to sync media. (videos, music – whatever) Now I could always plug in the phone via USB, mount the SD card and transfer files that way, but it just seems to take way to many steps.

What you’ll need:
Android 2.0 phone (may work on earlier version)
FTPServer (from Android Market Place)
SyncBack (Windows only)
Wifi Connection

Once you’ve downloaded FTPServer onto your phone, go in and enter in the FTP server information you will use to login.

User – username you will use to login via SyncBack
Pass – password you will use to login
Port – must be greater than 1023 (I used 2000)
Default dir – if you want to start off in a certain directory on the phone enter it here (you must know it though since you can not browse for it)

Next just check “Accept connections” under the wifi name and “Any Network”.

Press “Save and Restart Service” to start the FTP server on your phone. I usually takes around 5-15 seconds for the FTP service to fully start.

Below is how I like to have the files synced in SyncBack but please feel free to play around with the settings to best fit your needs. I use it to sync podcast that were downloaded through iTunes and I want what ever is in the directory on my PC to be what’s on the phone. So if I delete a file on the PC, I want it to remove it from the phone on the next sync.

Next you’ll need to install SyncBack. Once it’s installed open the program and create a new profile. You should be prompted with a “Profile type” menu. I chose “Backup:…” but this is really up to you how you want to sync your files.
droid_sync_01

Next go ahead and click on the “Expert” button at the bottom to give you the needed extra options. Then from the “Simple” tab choose “Backup the source directories files, including all it’s sub-directories”.

droid_sync_02

Then click over to the “Advanced tab and choose the following options:
droid_sync_03

Next click over to the FTP tab and click on the “The destination directory is on an FTP server” check box and enter in the FTP information you entered into the FTPServer app. (The phone’s IP should be at the top of the screen within FTPServer) Then go ahead and click on the “Test FTP settings” just to make sure everything is working ok. You should get a message saying “The FTP server was logged onto”. If you don’t go back and double check your login details and you may want to ever restart the app.

droid_sync_04

Next go up to the top of SyncBack and choose the source directory. (the directory you want to copy from your PC to the phone) Then do the same for the destination directory. This should ask you if you want to connect to the FTP server – choose yes and find the folder you want to drop the files into. (Your SD card is located at /sdcard – you can create new folders by right clicking) I created a “podcast” folder to dump all my podcast into.

droid_sync_05

Next you can either access the profile from within SyncBack or your can create a shortcut on your desktop by dragging the profile to your desktop. This will allow you to just click on the icon you start the file backup.

If you have any problems with connecting to the FTPServer app, try restarting the FTP service and if that does not fix it, force kill the app and reopen it.

Note: If you sync media (video or pictures), Android will not recognize them until you restart the device. Android has to read the contents of the SD card and for some reason it can not do it on the fly. Maybe it updates it’s media database only on demand.

Pros:
- very easy to use once setup
- no more cables required

Cons:
- can take a while over wifi if file are large
- requires restart when syncing media
- FTPServer app does not work 100% of the time (very minor gripe since it does a very good job most of the time)

Now if you want to really get geeky, you could install the DynDns app and sync files from anywhere in the world – useful if you have a laptop but no wifi connection. But that’s for another tutorial. :)

Tags:


Please Support Our Friends

Send emails with ease on this SMTP server by JangoSmtp.com.

Banner

About

My name is John Veldboom and have been in design and web programing for just over 8 years now. Started off as a hobby in high school but it has developed into a full time job now. I always tell people that if I wasn't doing this at work each day, I would be at home doing it for free. I love it!

Please visit the contact page to drop me a message.