When using Bootstrap you might want some page elements to react on the viewport. The best method will still be using the fluid grid system, so try to setup your page using the grid system. But in some cases you want to use a CSS class and/or Javascript to tweak your layout. Continue reading
Scripts
Xcode 7 iOS Simulator shortcut in Applications
Sometimes you want to open Xcode’s iOS Simulator without opening Xcode. Run the following command in Terminal to create a shortcut link in your Applications folder. Note that it is for Xcode 7.
ln -s /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app "/Applications/iOS Simulator.app"
Xcode 6 iOS Simulator shortcut in Applications
Sometimes you want to open Xcode’s iOS Simulator without opening Xcode. Run the following command in Terminal to create a shortcut link in your Applications folder. Note that it is for Xcode 6.
ln -s /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app /Applications/iOS\ Simulator.app
Form captcha
Form can generate spam if they’re not well programmed. A method to block spam is by adding a captcha field. This will generate a (image) code and add it to the session. Every page load the code will be renewed. Visitors must enter the code inside an input field and the submit php code must check the user’s input with the session value. Continue reading