background preloader

Tips

Facebook Twitter

Fix the “App can’t be opened because it is from an unidentified developer” Error in Mac OS X. Mac OS X defaults to preventing applications from unidentified developers or sources from being launched.

Fix the “App can’t be opened because it is from an unidentified developer” Error in Mac OS X

You’ll discover the message in OS X when you try to launch a Mac app that didn’t come from a verified source or from the Mac App Store, and you’ll get an alert dialog that says “[App name] can’t be opened because it is from an unidentified developer”. This new security feature is called GateKeeper, and it doesn’t mean you can’t run those unverified apps on the Mac, you just have to either temporarily skirt the security blanket of GateKeeper, or turn off the app limitations entirely.

Temporarily Get Around “App Can’t Be Opened” Gatekeeper Alert Message This is probably the best option for most users, since it maintains some security: Right-click (or control-click) the application in question and choose “Open”Click the “Open” button at the next dialog warning to launch the app anyway. Speed Tips: Turn On Compression. Apache 2 uses mod_deflate to quickly and easily compress your static.css and .js files before you send them to a client.

Speed Tips: Turn On Compression

How to create an HTML button that acts like a link? Using Google Translate in PHP. Caching Tutorial for Web Authors and Webmasters. For Web Authors and Webmasters This is an informational document. Although technical in nature, it attempts to make the concepts involved understandable and applicable in real-world situations. Because of this, some aspects of the material are simplified or omitted, for the sake of clarity. If you are interested in the minutia of the subject, please explore the References and Further Information at the end. What’s a Web Cache? How to take a screenshot. UI Design: Applying CSS Based on Screen Orientation. With the introduction of CSS3 Media Queries, we are able to shift and apply CSS between different viewport or device screen sizes.

UI Design: Applying CSS Based on Screen Orientation

We can detect the viewport width threshold, which we want the style rules to be applied to, with the min-width or max-width declaration within the Media Queries, as we have shown in our Responsive Design Series. View Demo Device Orientation. HTTP Error 503 Service unavailable Explained. HTTP Error 503 - Service unavailable Introduction The Web server (running the Web site) is currently unable to handle the HTTP request due to a temporary overloading or maintenance of the server.

HTTP Error 503 Service unavailable Explained

The implication is that this is a temporary condition which will be alleviated after some delay. Some servers in this state may also simply refuse the socket connection, in which case a different error may be generated because the socket creation timed out. How to Detect Mobile Devices Hitting Your Web Pages. Once you have spent the time learning how to design web pages for mobile phones you probably want to make sure that your readers on mobile phones see those designs.

How to Detect Mobile Devices Hitting Your Web Pages

There are many ways you can do this, some work better than others. Here are some of the methods I've tried and how you can implement them on your websites. Do Nothing to Detect Mobile Browsers This is, by far, the easiest method to handle cell phone users. JQuery Drag and Drop File Upload. Truncating Text & HTML with PHP. Truncating Text & HTML with PHP A common occurrence in programming are problems that seem simple on the surface but become increasingly complicated the longer you look at them.

Truncating Text & HTML with PHP

While working on the latest version of the Recent Posts Plus WordPress plugin I stumbled upon a variety of issues with text/html truncation which I hope to outline in this post. So lets start with text truncation... Truncating Text There are two ways in which I needed to truncate text; by the number of characters, and by the number of words. .live() Description: Attach an event handler for all elements which match the current selector, now and in the future.

.live()

As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Refresh image with a new one at the same url.

Testing

The ide. Yii. Understanding Autoloading, Helper Classes and Helper Functions. Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

Understanding Autoloading, Helper Classes and Helper Functions

Creating helper classes ¶ You might wish to create helper classes for several reasons: Auto-translate. How to really defer loading javascript. None of the above are solutions to the problem of actually allowing a webpage to fully load and then (and only then) loading external JS.

How to really defer loading javascript

Nor will any of the above always get you past that "Defer loading of javascript" warning you are getting from the Google page speed tool. This solution will and is the recommended solution from the Google help pages. How to defer loading of javascript.

Migration and deployment

jQuery with CoffeeScript. I don't always write CoffeeScript, but when I do, I'm probably using jQuery too; I always forget the syntax for stuff.

jQuery with CoffeeScript

So I'm going to write it all down here so I can reference it until I memorize it. Note that the compiled example doesn't include the automatic closure around everything you get in CoffeeScript. Safe jQuery Closure So you can use the $ safely (common in WordPress): (($) -> ) jQuery. Blog - Security with a CDN. Author: Marcel Esser We recently consulted with a client who was planning the implementation of a high-profile web property. The site architecture was information dense, and it acted as a portal for distributing long-form content to interested parties. The two primary design goals were a high through-put capability, and a high level of security for the integrity of the content.

We decided that these goals are mutually inclusive. Blog - Deployments Done Right. Author: Marcel Esser I've been gluing together a lot of deployment infrastructure lately. I figured it would be a good time to jot down some notes on that topic. These are in no particular order. Staging. PHPSimpl – An Introduction. PHPSimpl is a a PHP framework for rapidly creating classes that mirror MySQL tables. The framework comes with the basic functions to list, display and edit records from the database. With this framework a simple manager and front of a site can be created within a few minutes. An example database, manager and front end are included with the framework.

Since this is a very new framework an introduction is in order. Getting Started with Fuel CMS, Part 1. How To Optimize Your Site With GZIP Compression. The Web Robots Pages. Custom error pages, the easy way. How to enable keep-alive for faster page speed. Joomla Performance Tutorial - How to Improve Joomla Speed. Php - Getting Codeigniter CSRF token without a form. Mod expires - Website image caching with Apache. CodeIgniter – No input file specified error – .htaccess – PHP5 – Apache 2. Optimize browser rendering - Make the Web Faster.

CSS Image Sprites. How to do single sign-on with PHP. JavaScript: Correct way to define global variables. Jquery - JqueryUI tooltip on button click instead of hover to appear elsewhere. Adding items · jQuery Masonry. After adding items to a Masonry-ed container, you can properly lay them out using methods. appended will layout new items to the end of the layout. reload will layout all the item elements in the container, which is useful for prepending or inserting. Sit amet mi ullamcorper vehicula Phasellus pede arcu, dapibus eu, fermentum et, dapibus sed, urna.

Ut condimentum mi vel tellus. Suspendisse laoreet. Fusce ut est sed dolor gravida convallis. Vestibulum volutpat, lacus a ultrices sagittis, Fusce accumsan mollis eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec nec justo eget felis facilisis fermentum.