Tag: Web Development
The amount of old repositories I’m deleting from my Github account is making me think how often I start new projects and never complete them. I really need to change that.
From Pages to Patterns: An Exercise for Everyone
Setting up samba share on my home network
Secure shell into file server.
Install samba if not already present:
sudo apt-get install samba
Create samba password with :
sudo smbpasswd -a YOUR_USERNAME
Configuring the share:
sudo nano /etc/samba/smb.conf
# /etc/samba/smb.conf
[media]
path = /home/YOUR_USERNAME/Share
available = yes
valid users = YOUR_USERNAME
read only = no
browsable = yes
public = yes
writable = yes
Restart samba:
sudo restart smbd
Bypassing Laravel’s CSRF Middleware on selected routes (from 5.1)
A handy way to have some of your routes skip the middleware for CSRF protection. Handy in some situations.
Laravel does a great job at protecting us from cross-site request forgeries – or C.S.R.F. for short.But sometimes you may not wish to have that layer present. Well with Laravel 5.1 you can very easily bypass this middleware, simply by populating an array in the following file:
app/Http/Middleware/VerifyCsrfToken.php
Within this class you can add a protected property — an array — called $except
, which will tell Laravel to use this middleware except for the ones you specify here.
A complete example could be:
protected $except = [
'ignore/this/url',
'this/one/too',
'and/this',
];
So for those three URLs, the CSRF middleware would be skipped.
Every time I do a “git add .”, I feel a little dirty inside.
How to stream live audio over the web using Icecast2 and Puredata
Trying to get SMS posting to my website working this late at night. What was I thinking. Nearly there though I think.
So planning and building an e-commerce CMS is harder than it seemed at first. Not that I thought it would be easy.
100 days 2015 – 10 days in
For the past ten days I have been doing the 100 day challenge.
I decided to have a go at building my own e-commerce CMS.
I don’t have a big passion for e-commerce. In fact most of the time I work with e-commerce it frustrates me. But then I always remember hearing the old saying:
“The best way of complaining about something is to try and build something better”.
I won’t say which e-commerce CMS has me often cursing. Those who know me will know by the curses and moaning directed at it.
It feels good to be 10 days in. It’s also the longest commit streak ever on my github account.
I think the biggest thing I am taking away from my 100 day project is the learning I’m doing along the way. The outcome is kind of irrelevant at this point in time — although it would be nice to have something to show for it at the end.
With each extra Laravel component I pull in to use, I increasing think – why not just use Laravel? I then have to remind myself that this whole thing I’m building is an experiment and a learning exercise, so it’s okay.
Successfully pulled in Laravel’s Ioc Container package for use with my project. I love it when things just work. BooYa!