more css

bron: https://css-tricks.com/examples/ShapesOfCSS/

Please not some of these do not work because of the default stylesheet ‘box-sizing’:
html { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
*, *:before, *:after { -webkit-box-sizing: inherit; -moz-box-sizing: inherit; box-sizing: inherit; }

TheShapes of CSS

All of the below use only a single HTML element. Any kind of CSS goes, as long as it’s supported in at least one browser.

Square

Rectangle

Circle

Continue reading more css

center

Centering things in CSS is the poster child of CSS complaining. Why does it have to be so hard? They jeer. I think the issue isn’t that it’s difficult to do, but in that there so many different ways of doing it, depending on the situation, it’s hard to know which to reach for.

So let’s make it a decision tree and hopefully make it easier. Continue reading center

301-redirect

Ja, http://blog.mybrain.nl/ is verhuisd naar https://markohoven.com/
Hoe doe je dit nu op een correcte manier?
Binnen IIS kan dit met web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
  <httpRedirect enabled="true" destination="https://markohoven.com" httpResponseStatus="Permanent" />
  <defaultDocument enabled="true">
   <files>
    <clear />
     <add value="index.php" />
     <add value="index.htm" />
     <add value="index.html" />
     <add value="default.asp" />
     <add value="default.aspx" />
     <add value="default.htm" />
     <add value="default.html" />
    </files>
   </defaultDocument>
   <httpErrors errorMode="Custom">
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" />
   </httpErrors>
  </system.webServer>
</configuration>

Een andere mogelijkheid is in code… Continue reading 301-redirect

Thunderbird

The Internet is an increasingly complex place, not just in terms of services but also from a technical standpoint, especially with the advent of mobile devices over the past few years.

Everything that happens on the web, from browsing, streaming and messaging to file sharing, downloads and, more recently, backups, is based on protocols that have long started to show their age.

Efforts from Internet giants like Google and Microsoft are aimed at improving the situation, but given the slow rate of standardization and adoption of new protocols (or even extensions to existing protocols), it looks like the process will take a long time.

Email is one of the oldest Internet-based conveniences, just like most of the protocols used to make it all happen: SMTP, POP3 and IMAP. Today we’ll deal with IMAP, which is currently at version 4 revision 1, as standardized by the 12-year-old RFC 3501. Continue reading Thunderbird

419 HTTP status code

… does not exist
https://nl.wikipedia.org/wiki/Lijst_van_HTTP-statuscodes

However it did take some of my time to figure this one out as the response code was really in my webserver logfiles and as usual… I was not the first to run into this problem, see: https://stackoverflow.com/questions/46266553/why-laravel-api-return-419-status-code-on-post-and-put-method

You get a 419 status code, if an (external) script tries to post to your Laravel application, without the o-so-needed CSRF token.

First option is to change in App\Http\Middleware\VerifyCsrfToken:
protected $except = [ ‘/*’, ];
(or maybe something more specific and a little more safe, like ‘/myapiurl/*’,)

Second option is to put the route in api.php instead of web.php, but that implies prefixing all your routes with /api/

… your choice!