Web & Programming – [as] https://alexschreyer.net AEC CAD/BIM, SketchUp, Timber Engineering, Web Design and more... Tue, 15 Jan 2019 13:10:30 +0000 en-US hourly 1 https://i2.wp.com/alexschreyer.net/wp-content/uploads/2015/09/cropped-as-square.jpg?fit=32%2C32&ssl=1 Web & Programming – [as] https://alexschreyer.net 32 32 6702894 My [as] website is 10 years old today! https://alexschreyer.net/web-programming/website-10-years-old/ https://alexschreyer.net/web-programming/website-10-years-old/#respond Sat, 10 Dec 2016 05:00:25 +0000 http://alexschreyer.net/?p=6670 They grow up so fast, don’t they? As you may have noticed, I have completely redesigned my site. The older design – while nice – wasn’t a responsive design. It also wasn’t as flexible in terms of content placement as I would have liked it to be. So I completely overhauled it. The new design [...] Read more..

The post My [as] website is 10 years old today! appeared first on [as].

]]>

They grow up so fast, don’t they?

As you may have noticed, I have completely redesigned my site. The older design – while nice – wasn’t a responsive design. It also wasn’t as flexible in terms of content placement as I would have liked it to be. So I completely overhauled it. The new design is also based on the excellent (bare-bones) Underscores framework for WordPress. While it seemed to be a bit convoluted at first, I quickly noticed how well-written that code actually was and how fast I could get my new design up and running.

So – long story short – below (and all around this text) is the new design. I hope you like it.

2016-11-27_19-12-38
2016: I finally redesigned the site to be fully responsive and gave my images a better prominence.

While updating all the content on this site, I noticed that I started using WordPress exactly ten years ago. As you can see in the first post on this site (link is below), I switched to WordPress in 2006 and haven’t regretted it since. I believe it is – by far – the best web hosting platform out there. And it is getting better with each release and every new plugin that is being written for it.

New & Old Website

History

In case you are interested, the images below illustrate the development of this site:

2016-11-27_19-17-34
2007: Early beginnings with monthly changing header images and the core categories in place
2016-11-27_19-18-58
2010: The “tabbed notebook” design is in place and I am trying to highlight some posts. Also, see the Twitter integration (while it was OK to do it that way)
2016-11-27_19-22-42
2015: A bunch more social linkages are in place. Also, the header was a WebGL interactive element.

Want to know how it all started?

I actually ran a basic HTML-based site since my studies at UBC. Here is my first Geocities (remember that?) website from 2001:

2016-11-27_19-33-44
2001: A table-based HTML layout.

The post My [as] website is 10 years old today! appeared first on [as].

]]>
https://alexschreyer.net/web-programming/website-10-years-old/feed/ 0 6670
View UMass’ growth 1984-now in Google Earth’s Timelapse https://alexschreyer.net/web-programming/view-umass-growth-1984-now-google-earths-timelapse/ https://alexschreyer.net/web-programming/view-umass-growth-1984-now-google-earths-timelapse/#respond Thu, 01 Dec 2016 22:32:27 +0000 http://alexschreyer.net/?p=6711 Google just released a pretty amazing tool: Google Earth Engine Timelapse. This interactive tool (which is embedded below and can be reached via the link) lets you view global aerial photography from the past 32 years in an interactive timelapse video. Best of it, you can zoom into any region of the world and see what [...] Read more..

The post View UMass’ growth 1984-now in Google Earth’s Timelapse appeared first on [as].

]]>
2016-12-02_09-09-17

Google just released a pretty amazing tool: Google Earth Engine Timelapse. This interactive tool (which is embedded below and can be reached via the link) lets you view global aerial photography from the past 32 years in an interactive timelapse video. Best of it, you can zoom into any region of the world and see what changes have occurred over those years (e.g. sprawl in Las Vegas, glaciers receding). Also note how the quality of the imagery changes and especially over the past few years gained a much higher resolution. From Google’s description:

“Timelapse is a global, zoomable video that lets you see how the Earth has changed over the past 32 years. It is made from 33 cloud-free annual mosaics, one for each year from 1984 to 2016.”

This particular view zooms in on Amherst, MA and shows quite nicely (as good as one can make this out in the images) the building boom at UMass Amherst and the retail developments in Amherst/Hadley. Click on the play button get the video started.

Source: Timelapse – Google Earth Engine

The post View UMass’ growth 1984-now in Google Earth’s Timelapse appeared first on [as].

]]>
https://alexschreyer.net/web-programming/view-umass-growth-1984-now-google-earths-timelapse/feed/ 0 6711
Support Hillary with a Website Bumper Sticker https://alexschreyer.net/web-programming/support-hillary-website-bumper-sticker/ https://alexschreyer.net/web-programming/support-hillary-website-bumper-sticker/#respond Thu, 03 Nov 2016 11:04:51 +0000 http://alexschreyer.net/?p=6258 You have put a yard sign up, you have plastered your car with cool bumper stickers, you may even have bought the woman card. Now what? Well, if you have a blog or website then you should be able to show your support there, too. Introducing: The website bumper sticker! As my friends already know, [...] Read more..

The post Support Hillary with a Website Bumper Sticker appeared first on [as].

]]>
2016-11-03_10-22-43

You have put a yard sign up, you have plastered your car with cool bumper stickers, you may even have bought the woman card. Now what? Well, if you have a blog or website then you should be able to show your support there, too. Introducing: The website bumper sticker!

As my friends already know, I am strongly supporting Hillary Clinton for president of the USA! Especially with such a dangerous buffoon on the other side. As a sign of my support, you should be able to see (at least until the election) an “I’m With Her” logo in the top-right corner of this site. Click it and support her, too!

How can I use this, too?

If you would like to use this website bumper sticker for your blog, website etc., copy the code embedded below. Just add it to the html code for your site’s footer (e.g. footer.php in WordPress just before the closing BODY tag) or to any individual page you like (just paste it into the raw HTML) and it should show up automatically.

Of course, I am asking everyone to share this. The code snippet and image are completely free to use by anyone.

P.S.: If you are using Google’s Adsense, don’t forget to adjust its settings to your liking, too.

The post Support Hillary with a Website Bumper Sticker appeared first on [as].

]]>
https://alexschreyer.net/web-programming/support-hillary-website-bumper-sticker/feed/ 0 6258
Merry Christmas, Joyful Holidays, and a Happy New Year 2015! https://alexschreyer.net/misc/merry-christmas-joyful-holidays-and-a-happy-new-year-2015/ https://alexschreyer.net/misc/merry-christmas-joyful-holidays-and-a-happy-new-year-2015/#respond Wed, 10 Dec 2014 14:00:17 +0000 http://www.alexschreyer.net/?p=5471 As every year, let’s celebrate the season with a bit of digital “bling”! This time, it’s just a simple SketchUp model of a fractal tree that I enhanced a bit in Sketchfab’s editor. Yes, it is WebGL and you are allowed to play with it. Have fun! To you and your loved ones a peaceful [...] Read more..

The post Merry Christmas, Joyful Holidays, and a Happy New Year 2015! appeared first on [as].

]]>

As every year, let’s celebrate the season with a bit of digital “bling”! This time, it’s just a simple SketchUp model of a fractal tree that I enhanced a bit in Sketchfab’s editor. Yes, it is WebGL and you are allowed to play with it. Have fun!

To you and your loved ones a peaceful and joyful holiday season and a happy and successful new year 2015.

Cheers,
Alex

The post Merry Christmas, Joyful Holidays, and a Happy New Year 2015! appeared first on [as].

]]>
https://alexschreyer.net/misc/merry-christmas-joyful-holidays-and-a-happy-new-year-2015/feed/ 0 5471
Merry Christmas, Happy Holidays and a Happy New Year 2014! https://alexschreyer.net/misc/merry-christmas-happy-holidays-and-a-happy-new-year-2014/ https://alexschreyer.net/misc/merry-christmas-happy-holidays-and-a-happy-new-year-2014/#respond Thu, 19 Dec 2013 17:08:21 +0000 http://www.alexschreyer.net/?p=5058 While Santa is getting settled in his new abode (looks like there is still some construction to do), it is time for me to wish you all wonderful holidays, a relaxing time with your family and friends and all the best for the new year! I hope to meet you, see you, email you or [...] Read more..

The post Merry Christmas, Happy Holidays and a Happy New Year 2014! appeared first on [as].

]]>
Santa 2013

While Santa is getting settled in his new abode (looks like there is still some construction to do), it is time for me to wish you all wonderful holidays, a relaxing time with your family and friends and all the best for the new year! I hope to meet you, see you, email you or talk to you all again in 2014.

Cheers,
Alex

P.S. As always, SketchUp was heavily used in the making of this picture. Santa came from the 3D Warehouse and yes, those are CLT panels.

The post Merry Christmas, Happy Holidays and a Happy New Year 2014! appeared first on [as].

]]>
https://alexschreyer.net/misc/merry-christmas-happy-holidays-and-a-happy-new-year-2014/feed/ 0 5058
Favorite Places mapping web app is now open source https://alexschreyer.net/web-programming/favorite-places-mapping-web-app-is-now-open-source/ https://alexschreyer.net/web-programming/favorite-places-mapping-web-app-is-now-open-source/#respond Tue, 22 Oct 2013 15:11:50 +0000 http://www.alexschreyer.net/?p=5038 I decided to make my Favorite Places web app (that was the basis for the UMass Favorite Places site) open source. You can now find it on my GitHub page: https://github.com/alexschreyer/My-Favorite-Places In doing so, I made a bunch of improvements and squashed some bugs. Don’t forget to look at the readme.txt file. Please drop me [...] Read more..

The post Favorite Places mapping web app is now open source appeared first on [as].

]]>
Favorite Places Homepage

I decided to make my Favorite Places web app (that was the basis for the UMass Favorite Places site) open source. You can now find it on my GitHub page:

https://github.com/alexschreyer/My-Favorite-Places

In doing so, I made a bunch of improvements and squashed some bugs. Don’t forget to look at the readme.txt file. Please drop me a line in the comments if you use it for any of your projects. Also, please contribute any improvements that you make to it.

 

The post Favorite Places mapping web app is now open source appeared first on [as].

]]>
https://alexschreyer.net/web-programming/favorite-places-mapping-web-app-is-now-open-source/feed/ 0 5038
WebGL works again on Android 4.3! Yay! https://alexschreyer.net/cad-bim/webgl-works-again-on-android-4-3-yay/ https://alexschreyer.net/cad-bim/webgl-works-again-on-android-4-3-yay/#respond Thu, 01 Aug 2013 14:03:40 +0000 http://www.alexschreyer.net/?p=4976 In case you heard me complain on Google+ about the fact that I apparently am last in queue for Google’s mysteriously-timed Android updates: I finally got it (on my Nexus 4)! Yay! As you may know, one of the improvements in Android 4.3 is better WebGL support. So one of the first things I did [...] Read more..

The post WebGL works again on Android 4.3! Yay! appeared first on [as].

]]>
2013-07-31 23.18.15

In case you heard me complain on Google+ about the fact that I apparently am last in queue for Google’s mysteriously-timed Android updates: I finally got it (on my Nexus 4)! Yay!

As you may know, one of the improvements in Android 4.3 is better WebGL support. So one of the first things I did was check out my Sketchfab models. And as you can see in the attached image, this marvel of modern web-technology works smashingly well!

I tried models with reflections and environments and all of that seems to be working fine. What I especially like is the fact that I can now pinch to zoom and do the two-finger pan that I couldn’t do before. Not sure if that is an Android improvement or whether this was implemented by the Sketchfab folks, though.

So if you are reading this on a device that runs Android 4.3, click on the link below to get to a WebGL model of mine and try out the new functionality for yourself.

http://sketchfab.com/l4hf1c0ba

(If you read this on an Apple iOS device, go ahead and ask Apple to add WebGL support to Safari since it is not supported at this point)

By the way: If you are curious how I made this 3D model, check out my post on sketchupfordesign.com and don’t forget to download my Sketchfab uploader plugin for SketchUp from the Extensions Warehouse to get your own models to the web.

The post WebGL works again on Android 4.3! Yay! appeared first on [as].

]]>
https://alexschreyer.net/cad-bim/webgl-works-again-on-android-4-3-yay/feed/ 0 4976
Merry Christmas, Happy Holidays and a Happy New Year 2013! https://alexschreyer.net/design/merry-christmas-happy-holidays-and-a-happy-new-year-2013/ https://alexschreyer.net/design/merry-christmas-happy-holidays-and-a-happy-new-year-2013/#respond Sun, 16 Dec 2012 17:00:07 +0000 http://www.alexschreyer.net/?p=4649 I sincerely hope this post finds you all happy and healthy. Enjoy your holidays (whatever you celebrate and wherever you are) and any time off that you can spend with your family. I wish you all a successful new year and all the best for your future endeavors. It remains to be seen whether politicians [...] Read more..

The post Merry Christmas, Happy Holidays and a Happy New Year 2013! appeared first on [as].

]]>
Xmas 2013

I sincerely hope this post finds you all happy and healthy. Enjoy your holidays (whatever you celebrate and wherever you are) and any time off that you can spend with your family. I wish you all a successful new year and all the best for your future endeavors.

It remains to be seen whether politicians in the new year can finally put the goal of peace and public safety before any petty interests – I truly hope this will be the case! My thoughts are with the families in Newtown, Connecticut that lost loved ones. Enough is enough!

Cheers,
Alex

P.S.: “Why the water in the image?” you may ask. Well – it looks great and it renders fast. There are really no religious connotations here whatsoever. If you want to know how the image was made, check out this tutorial on SketchUcation for a how-to article.

The post Merry Christmas, Happy Holidays and a Happy New Year 2013! appeared first on [as].

]]>
https://alexschreyer.net/design/merry-christmas-happy-holidays-and-a-happy-new-year-2013/feed/ 0 4649
Support Barack Obama with a Website Bumper Sticker! https://alexschreyer.net/misc/support-barack-obama-with-a-website-bumper-sticker/ https://alexschreyer.net/misc/support-barack-obama-with-a-website-bumper-sticker/#respond Thu, 01 Nov 2012 14:06:10 +0000 http://www.alexschreyer.net/?p=4576 You may have noticed on this website that I am now sporting my political colors and am now officially endorsing Barack Obama for re-election as President of the United States. I support his policies and encourage every reader of this blog in the US to vote for him in the upcoming election. As you can [...] Read more..

The post Support Barack Obama with a Website Bumper Sticker! appeared first on [as].

]]>

You may have noticed on this website that I am now sporting my political colors and am now officially endorsing Barack Obama for re-election as President of the United States. I support his policies and encourage every reader of this blog in the US to vote for him in the upcoming election.

As you can see in the top-right corner of this website, I am showing my support with what I like to call “this website’s bumper sticker”.

If you are hosting websites of your own and would like to show your support as well, then simply copy the following lines of HTML to your pages (it will work anywhere after the BODY tag). Feel free to use my Dropbox-hosted images or download them to your server and use those. If you have a content-management system like WordPress, look for a header file in your template (the header.php file for WordPress, for example) and paste the code there so that it automatically shows up on your entire site.

<div style="margin:0;padding:0;position:fixed;top:0;right:0;background:none;z-index:1000;">
    <a href="http://www.barackobama.com" title="I support Barack Obama. You should, too!" style="margin:0;padding:0;background:none;">
        <img src="https://dl.dropbox.com/u/1129994/i-support-obama-170.png" width="170" height="170" style="margin:0;padding:0;border:0;background:none;" />
    </a>
</div>

Use “https://dl.dropbox.com/u/1129994/we-support-obama-170.png” if you would like the image to read ‘we’ instead.

Here are the images if you prefer to put them on your own server. Please don’t link to these on my server, though.

Dropbox: https://dl.dropbox.com/u/1129994/i-support-obama-170.png

Dropbox: https://dl.dropbox.com/u/1129994/we-support-obama-170.png

The post Support Barack Obama with a Website Bumper Sticker! appeared first on [as].

]]>
https://alexschreyer.net/misc/support-barack-obama-with-a-website-bumper-sticker/feed/ 0 4576
Limit BuddyPress registration by domain https://alexschreyer.net/web-programming/limit-buddypress-registration-by-domain/ https://alexschreyer.net/web-programming/limit-buddypress-registration-by-domain/#comments Tue, 09 Oct 2012 02:51:30 +0000 http://www.alexschreyer.net/?p=4477 I am currently running a few WordPress installations with the great BuddyPress plugin. If you don’t know this plugin yet: you can create your own social network using this plugin. For example, it is possible to add groups, forums, membership, and even “@” commenting and discussions (like Twitter). Pretty nifty, really. One thing that stumped me [...] Read more..

The post Limit BuddyPress registration by domain appeared first on [as].

]]>
I am currently running a few WordPress installations with the great BuddyPress plugin. If you don’t know this plugin yet: you can create your own social network using this plugin. For example, it is possible to add groups, forums, membership, and even “@” commenting and discussions (like Twitter). Pretty nifty, really.

One thing that stumped me for a while was how to limit registrations to a particular domain. In my case, I wanted to limit registration to users with EDU email addresses (because the network is affiliated with our Five College System).

As it turns out, the code is not too involved. I just had to disassemble a discontinued plugin to find it. In any case… it works well and can even be expanded to use a blacklist/whitelist approach. Below is the code that you need to put into your functions.php file in your template.

I am using this on a single-site installation with the default BuddyPress template, and the code below only checks for EDU, so your mileage might vary. Adapt the code as you see fit.

// Limit signup to EDU emails - could also be used for banning domains

// Function that checks and returns error
function bp_as_restrict_signup_domains( $result ) {

	// Send error if this test fails
	if ( bp_as_check_email_domains( $result['user_email'] ) ) {
		$result['errors']->add('user_email', __('You must use an EDU email to sign up!', 'bp-restrict-email-domains' ) );
	};
	return $result;

};

add_filter( 'bp_core_validate_user_signup', 'bp_as_restrict_signup_domains' );

// Helper function for the actual test
function bp_as_check_email_domains( $user_email ) {

	$email_domain = strtolower( substr( $user_email, 1 + strpos( $user_email, '@' ) ) );

	// Could check against array here too
	$is_edu = strpos( $email_domain , "edu" );

	if ($is_edu === false) {
		// Error will be raised
		return true;
	}
	else {
		return false;
	};

};

I just implemented a banning routine that is actually a bit cleaner than the one above. Here’s the code:

// ====================================
// Limit signup by banning domains
function bp_as_restrict_signup_domains( $result ) {

 $banned = array(
 'spam1.com', 
 'spam2.com'
 );
 $error = 'Your email domain has been the source of spam. Please use another email address.';

 $email = $result['user_email']; 
 $domain = array_pop(explode('@', $email));
if ( in_array($domain, $banned))
 {
 $result['errors']->add('user_email', __($error, 'bp-restrict-email-domains' ) );
 };
 return $result;
}
add_filter( 'bp_core_validate_user_signup', 'bp_as_restrict_signup_domains' );

Source:

The post Limit BuddyPress registration by domain appeared first on [as].

]]>
https://alexschreyer.net/web-programming/limit-buddypress-registration-by-domain/feed/ 11 4477