linein designs

21 Jul, 2009

Wordpress iPhone App Review

Posted by: john In: web

wordpress_icon I’m just trying out this new app for the iPod Touch that allows some basic ways to manage a Wordpress blog. So far I can write a add/edit posts as well as pages. Can also manage any comments that come in. No way to create styles like bold or italic. (may be able to use HTML though)

Update: You can add HTML formatting but you have to do it by hand (no WYSIWYG) which is a real pain with the touch keyboard.

Just added a picture but I’m not sure how it is going to be placed into the post. (will update later)

Update: Adding pictures is as easy selecting the image and hitting next. But there is no way to add an image to a certain area. Like the image above I had to go back in and add later. The app sticks all the images at the bottom which is fine for basic editing.

That’s it for now. Will post link to app in iTunes tomorrow as well. (Download now from iTunes)

wordpress_01 main screen when you setup a blog. You can setup multiple blogs.

wordpress_02 Showing the posts that can be edited. You can even save a local draft to update later

Interface to add pictures to blog. If I had more pictures in this post at the time, they would all display here. (also very nice)

The actual interface to writing or editing a blog post.

19 Jun, 2009

There’s a Bug on My Nose!

Posted by: john In: funny| pictures

Earlier this week I had an interesting problem. I needed to have some javascript code run from within the page being called via AJAX. The javascript relied on the values being set in the page being called so it could not be setup on the page before hand. It had to be called afterward.

It basically came down to having to eval() the XMLHttpRequest data being sent. But thanks to developersnippets.com they wrote a very helpful article that fixes the issues I was having.

view demo | download files

Below is an explanation of the files included in the demo. We first need to make a generic page that has a single link that when clicked loads a separate page through an AJAX request.

// index.php

some content that is here when the page loads change div

Next we need to create the page that will be loaded via the AJAX request. Now the key here is that the page being loaded has Javascript that needs to be ran. So for our example we will launch a simple alert() commend that will show us a message along with a passed $_GET variable.

// load_page.php

Page has been succesfully changed []

change div

And that’s it for the very basic example of how you can use this. (not practical but should give you the concept) Please leave a comment below if you have any questions or need any help with this.

01 May, 2009

Swine Flu Tip: DON’T DO THIS!!

Posted by: john In: animals| funny| pictures

09 Apr, 2009

10 Tips to Live By

Posted by: john In: animals| funny| pictures

1) Do not get into trouble


Read the rest of this entry »

Tags:

07 Apr, 2009

Masters Practice Round 2009 Surprise

Posted by: john In: flickr| pictures

My brother bought us practice round tickets this year to the Masters golf tournament in Augusta GA. Only living 30 minutes away, it’s surprising this was my first time going. Any how the day was good, we’d seen the course and were about to head home when we notice a large group around the putting green so we walk over to check out what was going on.

Tiger Woods is what was going on! Very cool – got to see him in person only about 5 feet in front of where we were standing.

View all Masters practice rounds pictures

This one about drove me crazy all night trying to think of why this does not work and to be honest I still don’t understand why it doesn’t. But below is a solution to the problem.

The problem was I was trying to close a popup and force the parent page to load a URL using onload.

So within the popup, I saved the form changes to the database and if everything was saved fine it would return to the popup with the code below.

< body onload="window.opener.location = '/directory/?action=confirmation'; window.close();">

But for some reason this would cause IE7 (didn’t check any version below 7 and worked fine in Firefox & Chrome) to just load and load and load but never actually load the page it was sent to. The big blue “e” would just spin. The URL was correct and it wasn’t stuck in some endless loop. But like I said, I’m still not sure what caused it to do that, but below is the solution that seemed to have worked.

Rather than placing the close and redirect in the onload, I simply added them within a script tag and placed it above all the other scripts.


My only guess is that by putting the code in the onload was causing it to not fully run the redirect. Anyway, I hope this helps someone else out there.

Please let me know if you know the reason what caused this error.

26 Feb, 2009

PHP Font Preview Function (text to image)

Posted by: john In: php| programing

For work we needed a way to allow the customer to preview what their Bible imprint text would look like before they placed their order. I’m sure there are ways to do this with JavaScript, but we chose to do this with PHP to prevent the site from relying on Javascript (there was already enough on the page).

View Demo
Download files (32 KB)

function text2image($text,$text_type)
{
	$text = ereg_replace("[^A-Za-z0-9 -]", "", $text); // change to allow whatever characters you made images for
	$length = strlen($text); // finds number of characters
	for($b=0; $b<$length; $b++) // loops through each character to convert to image
	{
		$text_type_function = $text_type; // resets font type each time
		if($text_type_function == 'sc') // script font type
		{
			if(ctype_upper($text[$b])){$text_type_function = 'sc_u';} // changes text type to upper
			elseif(is_numeric($text[$b])){$text_type_function = 'sc';} // checks for number (not really used in this function yet)
			if($text[$b] == ' '){$word .= '  ';} // could change to be blank image, but text spaces seem easier
			else
			{
				$image_word .= '';
			}
		}
		else // else block type
		{
			if(ctype_upper($text[$b])){$text_type_function = 'bm_u';}
			elseif(is_numeric($text[$b])){$text_type_function = 'bm';}
			$text[$b] = strtolower($text[$b]);
			if($text[$b] == ' '){$word .= '  ';}
			else
			{
				$image_word .= '';
			}
		}
	}
	return $image_word;
}

// useage
$text = 'Preview this font please';
echo text2image($text,'sc');

The above function works for the two fonts included in the zip file, but to add more, just create an image of all the letters and add another elseif statement to the function.

If you have any questions or need any help with adding more fonts, please either use the contact form or leave a comment below.

Tags:

13 Feb, 2009

Never Argue with a Woman

Posted by: john In: funny

One morning, the husband returns the boat to their lakeside cottage after several hours of fishing and decides to take a nap. Although not familiar with the lake, the wife decides to take the boat out. She motors out a short distance, anchors, puts her feet up, and begins to read her book.
Read the rest of this entry »

Tags:

12 Feb, 2009

9 Words Women Use (and Men Need to Know)

Posted by: john In: funny

1) Fine

This is the word women use to end an argument when they are right and you need to shut up.

2) Five Minutes

If she is getting dressed, this means a half an hour. Five minutes is only five minutes if you have just been given five more minutes to watch the game before helping around the house.

Read the rest of this entry »

Tags:


Please Support Our Sponsors

A Payday advance can be a great way to get back on track.

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.