Testimonials

Banner

Blog Tags

Lab Eleven Blogs

Web design & Programming tutorials

Custom Rack Shelves

Posted by: admin

Tagged in: Untagged 

A friend of mine who was building a recording studio lately was asking about rack mounted gear and the best way to go about installing it. I pointed him to the Middle Atlantic Rack Shelves as a great solution. They're sturdy, reliable and most of all, inexpensive.

Utah Criminal Defense Attorneys

Posted by: admin

Tagged in: Untagged 

When defending yourself against a criminal charge, hiring the lawyers at RBMN is a crucial step in making sure you are represented in the best way possible. The Utah Criminal Defense Attorneys at Richards Brandt Miller Nelson will be your first step in the right direction.

Oil Storage Tanks Customization

Posted by: admin

Tagged in: Untagged 

Any refinery, fuel station or company needing  oil storage tanks should first analyze their capacity needs.  Some require different grade thickness for the inner walls based on city, state or federal guidelines. Most however are fairly standard and no customization is necessary.

The Best Hotel Near or Around Salt Lake City

Posted by: admin

Tagged in: Untagged 

For a great all-around experience in lodging Salt Lake City you have to first decide what part of the valley you want to stay in. If it's downtown, there are great hotels, motels and other accommodations. However, most prefer to stay in resorts or hotels in or around the canyon areas.

Salt Lake City Divorce Attorney

Posted by: admin

Tagged in: Untagged 

If you're in need of advice on how to handle the end of your marriage, call a Salt Lake City Divorce Attorney at Richards Brandt Miller Nelson. They have experienced lawyers that have been through it all and can help guide your way to a successful resolution.

Will iPhone Apps Run On iPad?

Posted by: twmeier

Tagged in: SDK , iPhone , iPad

One big question that iPhone developers have about the iPad, is whether or not existing iPhone app will also work on the iPad. The answer to that question is YES. The iPad in many ways looks like a large iPhone, and in many ways it acts like one too.

The iPad can run all of Apple's iTunes App Store iPhone and iPod touchs apps. And, just like an iPhone, you can upload your existing apps, music, pictures, videos etc. to your iPad.

 When you run your apps in the iPad, you can choose to display them as their original iPhone size (320 x 480) or you can hit a 2x button on the screen and double the size. At 2x the original size, the app will not completely fill the screen. 


How to create a marquee text for an iPhone app

Posted by: twmeier

Tagged in: Programming , iPhone

In this blog, you will learn how to create a moving text field (also know as a marquee). Marquees are very convenient to show news, stock updates, sport scores etc..


In the .h file:
#import
@interface FirstViewController : UIViewController {

UIView *messageView;
UILabel *lblTime;
CGSize messageSize;
}
@end


In the .m file:

- (void)viewDidAppear:(BOOL)animated {    
NSString *theMessage = @"Hello, my name is Enigo Montoya. You killed my father, prepare to die";
messageSize = [theMessage sizeWithFont:[UIFont systemFontOfSize:14.0]];
messageView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, messageSize.width, 19)]; //x,y,width,height
[messageView setClipsToBounds:YES]; // With This you prevent the animation to be drawn outside the bounds.
[self.view addSubview:messageView];
lblTime = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, messageSize.width, 19)]; //x,y,width,height
[lblTime setBackgroundColor:[UIColor darkGrayColor]];
lblTime.font = [UIFont systemFontOfSize:14];
[lblTime setText:theMessage];
[lblTime setTextAlignment:UITextAlignmentLeft];
lblTime.frame = CGRectMake(0, 0, messageSize.width, 19); //x,y,width,height
[messageView addSubview:lblTime];
float duration = messageSize.width / 60; // This determines the speed of the moving text.
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:duration];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:messageView cache:YES];
lblTime.frame = CGRectMake(-messageSize.width, 0, messageSize.width, 19); //x,y,width,height
[UIView commitAnimations];
}

Thats all there is too it. Check out the comments in the code for further clues on how it works.


How to Submit Additional Images in Virtuemart

Posted by: twmeier

Tagged in: Joomla , Components

Adding a singe image to a product is easy. Adding additional images can be confusing.

To add additional images to a product, find your product in the Product list in the backend of your website.

 In the "Media" column, you will see a small icon. Click this icon. On the next page, you will be able to add more images to the product. You can also add other types of media such as a PDF.

That is all there is to it.


Using an Image as a Submit Button in HTML

Posted by: twmeier

Tagged in: Javascript , HTML

There are times when you want to use an image as a button to submit a form. One case is when you need to use JavaScript to check the html form was submitted correctly. Here is the code:

<script>
    function checkForm()
    {
        var msg = "Please correct the following: \n\n";
        var error = false;
       
        if(document.formName.elementName.value=="") {
            msg += "You must enter a date.\n";
            error = true;
        }
       
        if(error){
            alert(msg);           
        }else{
            if(confirm("Are you sure you want to submit this form?")){                                               
                document.formName.submit();       
            }                   
        }
    }
</script>

<form name="formName" action="/index.php?&task=something" method="post">
    <input type="text" name="elementName" id="elementId" value="">
    ....
</form>


<a href="#" onclick="checkForm(); return false;"><img src="/images/brown_submit.jpg" /></a>


The method above works in all browsers, and is easy to use. When you click the image, the JavaScript function is called. If there are no errors in the form, the function submits the form. Its that easy.


Joomla 1.5 Custom Breadcrumbs

Posted by: gbluma

Tagged in: Programming , PHP , Joomla , Components

Joomla seems to have everything figured out — Breadcrumb support is no exception.

Recently we were writing some custom component for a client and needed to handle the breadcrumbs in a special way that Joomla couldn't manage automatically.

As a simplified example, imagine we redirect a user to a component that isn't attached to a menu. We would expect the breadcrumbs to simply output "Home" and provide a link back to the index of the site.


<< Start < Prev 1 2 3 4 5 Next > End >>

Latest Blogs

Custom Rack Shelves
Aug 9th 2011 by: Administrator

Utah Criminal Defense Attorneys
Aug 8th 2011 by: Administrator

Oil Storage Tanks Customization
Aug 5th 2011 by: Administrator

The Best Hotel Near or Around Salt Lake City
Aug 1st 2011 by: Administrator

Salt Lake City Divorce Attorney
May 18th 2011 by: Administrator

Read all blogs