New business launched: See BG

It’s 2017 and the best way to roll it in is with a new business.

See BG is an aerial photography business specializing in drone photography. We take aerial photos of businesses, agricultural, construction and many other applications.

Visit See BG Drone Photography if you are interested in aerial shots.

 

PHP: Show Current Year & Copyright In Footer

Are you tired of having to change the copyright yearly date on your website every year? If your website is running on PHP, then there’s an easier way to manage that instead of manually typing the date every year.

&copy; <?php echo date("Y"); ?> Copyright.

This will output:

© 2016 Copyright.

How to clear DNS cache on macOS Sierra

If you are having trouble getting URLs or domains to resolve, they are likely cached locally. Network administrators and web developers using macOS Sierra are finding this problem very often, especially if moving websites from one server to another.

On a mac, to reset the DNS cache, you need to use the Terminal app. You can find Terminal in /Applications/Utilities or using Spotlight (Command + Space bar).

Copy and paste the following line into Terminal and hit Enter. You will be required to enter your computer password.

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder; say cache flushed

Now that your DNS cached is cleared, your domain should resolve to it’s new address.

Get A FREE Website Makeover

We are giving one local company in the Bowling Green-Warren County area a chance to get a free website makeover.

Here are the rules:

– No more than 5 pages will be redesigned.

– All content, images, media needed for the site are the responsibility of the client.

– Hosting must be paid for by the client either with Macklab Media or a webhost of your choice.

This contest applies to both companies that already have an existing website or who does not have a website.

To nominate your company or another local company, please fill out the form below.

How To Send Push Notification With Parse REST API and C#

Lately, I’ve been doing a lot of iOS app development. I’ve been messing around with Objective-C since around 2009, but never really got deep into it.

Objective-C is hard and I try to stay away from it. But to use other languages such as Swift or even C# with Xamarin, you should at least have a basic knowledge and understanding of Objective-C. We can save the Objective-C for another post. This is to show an example of how to call the Parse server using their REST API that sends a push notification to a device. You must install the RestSharp client for this to work.

// Output "BEGIN" to console
 Console.WriteLine("BEGIN");

// Build Request URL
 var client = new RestClient("https://api.parse.com");
 var request = new RestRequest("1/push", Method.POST);

// Build JSON string to send to server
 string json = "{\"where\": {\"deviceType\": \"ios\"}, \"data\": { \"alert\": \"Cubs Score: " + score + "\"}}";

// Output json to console
 Console.WriteLine(json);

// Build Parameters and Headers to send with request
 request.AddParameter("application/json", json, ParameterType.RequestBody);

// Enter your App ID and REST API Key from your Parse account. Login and go to Settings and Keys.
 request.AddHeader("X-Parse-Application-Id", "APP ID");
 request.AddHeader("X-Parse-REST-API-Key", "REST API KEY");

// Let the Parse server know you're sending JSON
 request.AddHeader("Content-Type", "application/json");

// Execute the Request
 IRestResponse response = client.Execute(request);

// Get the response back from server
 var content = response.Content;

// Output "END" to console
 Console.WriteLine("END");

Hopefully this helps get your push notifications to work. Please let me know if this works for your app.

10 Resources For Totally Awesome Free Photos

Sometimes I struggle when finding an image to use as the header of a new project. I’ll find one and use it as a placeholder and decide I don’t like it and then find another. Then find another. And the cycle goes on.

Here is a curated list of awesome free stock photography sites that you can use for images in your projects:

This list should help you in your projects and make you not waste time googling images for hours.

Take care!

What is SEO?

After you create a website, it needs promotion. It needs to be seen by the search engines like Google and Bing so that your customers are able to find it.

SEO is the practice of improving the visibility of a website in the search engines. This is done to increase traffic and grow your site. Without traffic to your site, it would be useless. There are many ways to get your site ranked in the search engine using white hat techniques such as Keywords analysis, H1, Title Tags, Backlinks and more. Sometimes SEO is just making sure your site is structured well for the search engines.

SEO is about making sure your site is people friendly too, not just search engines. Your site should be well designed and suited for the user. It needs to be easy to navigate.

For more information on what is seo, check out this Moz guide.

Google also has guidelines that provide webmasters with tips to make their sites easier to crawl for google bots.