I have been writing a lot about Laravel lately and recently I was asked about database table seeding. Chances are you already use the awesome migrations feature, but probably don’t use database seeding. I have seen people using migrations to seed a table, but it’s messy and not exactly ideal. Using the seeding functionality in Laravel, you’ll discover how easy it actually is.
When should I use seeding? I personally use seeding in Laravel quite extensively during the development phase of a web application. Being able to add in mock user accounts, pages and other data for testing purposes is a lot easier than manually doing it every time.
As the web continues to evolve and front-end development continues to become even more complicated, the need to adapt and implement processes for workflow grows immensley.
Photoshop is dead We are well and truly living in the golden age of front-end web development. Photoshop is dying, designers and developers now design on the fly using HTML and CSS. This isn’t to say Photoshop is going away completely overnight, but the transition is well and truly in motion.
In Bootstrap 3, the buttons (well a lot of elements) have a border radius value giving them rounded corners. Now I don’t know about you, but I find rounded corners on buttons horrible.
If you are using the LESS version of Bootstrap, set the following variables:
@border-radius-base: 0px; @border-radius-small: 0px; @border-radius-large: 0px; If you are using Bootstrap SASS port, set the following variables:
$border-radius-base: 0px; $border-radius-small: 0px; $border-radius-large: 0px;
I was asked this question by a colleague recently when discussing SEO and modern front-end web development. I think most of us assume that using proper sectioning elements that HTML5 provides us would help with SEO a tiny bit, so I set out to find the answer and you might be surprised.
Understanding semantics In HTML5 we have tags that provide semantic meaning like; main, section, aside, figure, article, header, menu and footer (amongst many others). Using these tags in our page makes for better structure, it also means when Google comes along they don’t have to guess what content is what in your page.
If you’re using jQuery to AJAX post a form then you’re already more than familiar with the caveats of using jQuery to POST a forms contents. One thing I often see overlooked is the disabling of the form while the content is being submitted, there is nothing worse than receiving duplicate form submissions and knowing the fix was simple. Or worse yet, I’ve seen instances where a form has been used to attack a site by constantly submitting it quickly.
Recently I encountered one of Google’s latest search engine algorithm tweaks and saw a site that was getting roughly 500 visitors a day drop down to less than 70 visitors per day. It was shocking to say the least, but kind of expected.
I left the site, updated it occasionally and noticed the traffic remained low. This wasn’t a problem that was going to solve itself, I knew I had to try and fix it and return the site to its former glory.
If you are reading this there is a possibility you have run into this error message in your terminal window: sh: mysql: command not found
This error is being displayed because MAMP Pro stores MySQL in a location on your Mac that isn’t added to your main $PATH. MySQL is stored in the MAMP Pro bin folder here: /Applications/MAMP/Library/bin/mysql
Fortunately the fix is rather simple following the below steps:
In your home directory create or edit the file “.bash_profile” you can access your home directory by typing: cd ~/ Add this to the top of the file: export PATH=$PATH:/Applications/MAMP/Library/bin Save the file and then restart your Terminal In your newly restarted Terminal window type: mysql –version This will now map MySQL to your path and allow you to access it by just typing “mysql”
If you have used Airbnb before, then you would be familiar with the location field where you type your desired location and it gives you a dropdown of suggested places based on what you type.
I have seen sites that try and build their own location databases, but we all know it can be a difficult and sometimes expensive task to obtain up-to-date global location information for cities, landmarks, postal codes, regions and more. The Place Autocomplete API gives you the power of the Google Maps search dropdown without needing to buy the data.
Recently Variety posted an article titled Expendables 3 Flops: Is Piracy To Blame? in which a case is made whether or not the movie leaking onto torrent sites 3 weeks before its official release damaged it at the box office.
The movie fell short $10 million of its expected $26 million, debuting at $16.2 million in revenue which is atrocious when you compare that to other movies that debuted at the same time as it did like Teenage Mutant Ninja Turtles and Lets Be Cops.
The now massive and widely successful Australian music festival for rock, punk and metal genres is back in 2015 with a new two day festival format. This is due to complaints from prior years with timetable conflicts, disagreements with larger bands wanting headline spots and overrall the standard festival issues that arise.
Personally I am really excited about the rumoured bands for the festival. My ideal line-up would contain most of, some or best case scenario all of the following bands. Following the traditional Soundwave formular we can expect to see a lot of bands that made an appearance and didn’t piss AJ Maddah off making an appearance at Soundwave Festival 2015. Some of the bands on my wishlist played Soundwave Festival 2012, so there is a good chance some of these bands will be there.