Software development, photography, jokes, ....

Sites by me

 
tas-logoTransportation Administration System
snoezelkussen-logo-kleinstSnoezelen Pillows for Dementia
ikzoekeenbegeleider-logoBegeleiders voor gehandicapten
Laat uw hond het jaarlijkse vuurwerk overwinnen
Betuweroute en Kunst
logo 50x50Hey Vos! Je eigen naam@vos.net emailadres?
Kunst in huis? Nicole Karrèr maakt echt bijzonder mooie dingen
nettylogo2Kunst in huis? Netty Franssen maakt ook bijzonder mooie dingen
Professionele opvang bij Gastouderbureau
Kind-Zijn
Salarisadministratie en belastingadvies bij
De Zaak Loont
Zutphense Bomenstichting

Hosting Favorites

 
ANU Internet Services
XelMedia .internet services
register.com
GoDaddy.com

Blogroll

 
Bomenstichting
MacFreak
Google Translate
PHP
MySQL
jQuery
jQuery UI
codecademy
YourHead Stacks API
Favicon Generator. For real.
Check HTTPS problems



Categories

Archives

Marc's Place


 

Powered by the Blogspot.stack

The Blogspot Stack for Stacks with RapidWeaver

 Permalink


As a replacement for the old RapidBlog from Loghound , I created a replacement, named Blogspot.

Although RapidBlog was a page-plugin for Realmac's RapidWeaver , my replacement is a stack, for use with YourHead's Stacks-plugin .

Read all about it here

The advantage now, is that:
  • You don't have to add new posts inside RapidWeaver. Blogger is much better for that purpose.
  • It's mobile-friendly
  • By using Stacks, you can place a Blogger-blog anywhere in the content-area of the page.
  • It's fast
  • No usernames and passwords required to login to Blogger.
  • Blogspot.stack displays any public accessible Blogspot-domain.

 Comments

Redirect your Google Blogger (Blogspot) blog to your own website

 Permalink
Here's a tip on how to redirect visitors of your blog on Google permanently to your own blog-page. Very handy when using my Blogspot.stack to display your Google Blogger blog on your own website.
When doing this, you don't have to worry a bit about the Blogger-theme ... no-one will ever see it.

Login to your Blogger-account and choose the blog you want to redirect.
Then, click on the 'Edit HTML' button:


When you see the source code of the theme, add a 'meta refresh' tag to the HEAD-section, as in the example in the screenshot:


Note: when you have saved this change, you won't be able to preview new blog posts from within Blogger... because the preview will redirect you immediately to your website.

Some things to consider:


When editing the source code or when you write a blog post, you might get the warning from Blogger that you are mixing http and https content. So ...
1) your own domain is HTTP and you load images or other things from a HTTPS domain, like from blogger.com : no problem
2) your own domain is HTTPS and you load images or other things from a HTTP domain : problem, needs to be avoided!
3) when your domain is reachable via both HTTP and HTTPS, always redirect HTTP to HTTPS. This can be done via editing the Apache VirtualHost file and add a permanentRedirect rule, or add rewriteCond rules to a .htaccess file in your root website folder : search Google for rewrite rules

So, now that you know a bit more, you can ignore the warnings from Google because you know why the warning pops up.
Furthermore, in the case of adding the META-tag, the warning is irrelevant, because you redirect any visitor immediately to your website.

Last but not least: if you load things form other domains than yours, install Privacy Badger (from EFF) and test your site with it. You’ll see what gets blocked and that’s what visitors, who also use a plugin like this, might experience too.
 Comments

Copy DOM content to the clipboard with pure Javascript

 Permalink
Of all the tips on the internet on how to copy data from a DOM element to the clipboard, I compiled my own function(s).

The examples below are to copy the 'href'-part of  a link to an RSS feed to the clipboard.

1. By class name, use the first found element
function copyToClipboardCN(element, attr) {
x = document.getElementsByClassName(element);
if(x !== undefined && x !== null && x[0] !== undefined) {
var textarea = document.createElement("textarea");
document.body.appendChild(textarea);
textarea.value = x[0][attr];
textarea.select();
var status = document.execCommand('copy');
textarea.remove();
}
}

2. By id
function copyToClipboardID(element, attr) {
x = document.getElementById(element);
if(x !== undefined && x !== null) {
var textarea = document.createElement("textarea");
document.body.appendChild(textarea);
textarea.value = x[attr];
textarea.select();
var status = document.execCommand('copy');
textarea.remove();
}
}

RSS feed link example with a class and an ID, using FontAwesome icons :

<a class="blog-rss-link" href="https://macvos.blogspot.com/feeds/posts/default" rel="alternate" target="_blank" title="RSS Feed" type="application/rss+xml"><i class="fa fa-rss"> RSS Feed <i class="fa fa-copy" onclick="copyToClipboardCN('blog-rss-link', 'href')" style="cursor: pointer;" title="Copy RSS link to clipboard">

<a id="blog-rss-link" href="https://macvos.blogspot.com/feeds/posts/default" rel="alternate" target="_blank" title="RSS Feed" type="application/rss+xml"><i class="fa fa-rss"> RSS Feed <i class="fa fa-copy" onclick="copyToClipboardID('blog-rss-link', 'href')" style="cursor: pointer;" title="Copy RSS link to clipboard">

I have thought about combining the two functions into one, but i find that dangerous. In case you don't, here it is:
function copyToClipboard(element, attr) {
var x = document.getElementById(element);
if(x === undefined || x === null) {
x = document.getElementsByClassName(element);
if(x !== undefined && x !== null && x[0] !== undefined) {
x = x[0];
}
else {
x = undefined;
}
}
if(x !== undefined) {
var textarea = document.createElement("textarea");
document.body.appendChild(textarea);
textarea.value = x[attr];
textarea.select();
var status = document.execCommand('copy');
textarea.remove();
}
}
 Comments

SetEXIFData 6.7

 Permalink
setexifdata
A new version of SetEXIFData , my GUI for exiftool by Phil Harvey , is now available:

v6.7
(09-february-2018)

Added:
  • Warning that on macOS 10.7 RAW image previews are not supported, unless macOS 10.7 supports them.
Fixed:
  • Crash when trying to display thumbnails of RAW images on macOS 10.11 or lower.
  • Replaced all floating modal dialogs with sheet-windows.
  • Multiple sheet-windows do not show over one another anymore, unless necessary.
  • Situation where the check for the presence of exiftool or dcraw would fail.
 Comments

SetEXIFData 6.6

 Permalink
setexifdata
A new version of SetEXIFData , my GUI for exiftool by Phil Harvey , is now available:

v6.6
(06-february-2018)

New:
- Added the use of the RAW image converter 'dcraw' (created by Dave Coffin) to enable the displaying of RAW image thumbnails in the preview window. You'll find an installer package on the DMG. This will instal 'dcraw' in '/usr/local/bin/', so you can use it yourself too, system wide. When you click on a line which has a RAW image, and SetEXIFData finds that it gets no data via Mac OS X, SetEXIFData will use 'dcraw' to extract the thumbnail. It will write a TIFF file in /tmp, which name begins with 'sed_', for example sed_myimage.arw.tiff and use that TIFF as a thumbnail in the preview window. On app exit, it will remove these files again.

Fixed:
- Crash when trying to display a thumbnail of RAW images, which are unsupported by your version of Mac OS X's Camera Raw extension.
 Comments

Stilleven van een leesmandje - Still Life of a Reading Basket

 Permalink
Stilleven van een leesmandje / Still life of a reading basket

Stilleven van een leesmandje / Still life of a reading basket


Experimenting with various Photoshop filters to convert a dull still-life into something weird.
 Comments

ICSviewer 3.3

 Permalink
icsviewer
The ical/ics calendar file viewer ICS Viewer is updated to version 3.3.

v3.3
What is new:

- New: Added Extra Database Fields to the MySQL export preferences and the MySQL export process.

What has changed:
- A bug preventing Unit to be exported to MySQL has been fixed.
 Comments

SetEXIFData 6.5

 Permalink
setexifdata
A new version of SetEXIFData , my GUI for exiftool by Phil Harvey , is now available:

v6.5
(30-december-2017)

Fixed:
- Added the -m option to suppress minor errors, which often occurs with 'maker notes'.
- All relevant screen fields are emptied and reset when 'Start over' is clicked.
 Comments

SetEXIFData 6.4

 Permalink
setexifdata
A new version of SetEXIFData , my GUI for exiftool by Phil Harvey , is now available:

v6.4
(08-december-2017)

Fixed:
- Getting the date/time from file name repeated the same date/time to all photos when no interval was used.
- Getting the sequence-number or subseconds from file name only picked 2 digits. This is now 4 digits.
 Comments

Keuken Stilleven - Kitchen Still Life

 Permalink
Keuken stilleven - Kitchen still life

Keuken stilleven - Kitchen still life

 Comments
© 1997- Marc Vos (and others)   -   Privacy Statement   -    Contact Me