Javascript

Lightweight & Powerful Responsive Web Framework : IVORYIVORY is Simple, Flexible, & Powerful responsive web framework that makes your web development faster and easier. It can handle responsive layouts from 1200px on down to 320px w...
Lightweight & Powerful Responsive Web Framework : IVORYIVORY is Simple, Flexible, & Powerful responsive web framework that makes your web development faster and easier. It can handle responsive layouts from 1200px on down to 320px widths.The Framework is perfectly designed and developed in the lightweight manner. It is packed with Typography, Form controls, Buttons and many other UI components.Demo: http://weice.in/ivory/demo.html Download: http://weice.in/ivory/ License : GPL LicenseBlogupstairs - Open Source Resources & Tools for Web Developer
21 minutes ago
Like most content management systems, PyroCMS uses front-end themes. Though PyroCMS themes are built a bit differently than what you might be used to from other systems, they’re still quite easy to create. They’re so easy, in...
Like most content management systems, PyroCMS uses front-end themes. Though PyroCMS themes are built a bit differently than what you might be used to from other systems, they’re still quite easy to create. They’re so easy, in fact, that very little PHP experience is required to assemble them!The Folder StructurePyroCMS themes consist of HTML, images, CSS, and JavaScript, arranged into the following supported folders: css img js views views/layouts views/partials views/modulesWhile these folders will no doubt look familiar to you, the "views" folder makes the most sense within the context of MVC. When building a theme for PyroCMS, you are really building the views (including assets) of a MVC patterned application. These views consist of a master layout file and multiple partial files (i.e. a header.html or footer.html) that shares presentation logic between different layouts. We’ll discuss this more shortly.Getting StartedTo get started building your first PyroCMS theme, create the supported folder structure in one of the two places that themes may reside within an instance of PyroCMS:addons/shared_addons/themes (for themes available to all sites) Or: addons/[site-name]/themes (for themes available to only one specific site) Once you have the base theme folder containing the supported folder structure created, the first file that you'll want to add to your theme is theme.php.addons/shared_addons/themes/[my-theme-name]/theme.php This theme.php file contains all essential details for your theme, including its name, author, version, etc. In a way, this file is similar to the comment block found at the top of a WordPress theme's style.css file. Here’s a basic example of a theme.php file for your PyroCMS theme:Please take note that this file extends a PyroCMS class, called Theme. Also, because you are declaring a PHP class in this file, you'll need to make sure that the name of the folder containing your theme is used in the class declaration. So, if the folder housing your theme is called, "foo," the class created in your theme.php should be named, Theme_Foo (instead of Theme_Custom, as shown in the example within PyroCMS' documentation).Once you have created your theme.php file, you can login to your PyroCMS control panel and view your theme listed in the Themes module. LayoutsAll layouts files for a PyroCMS theme exist in one of two locations:addons/[site-ref]/themes/[my-theme-name]/views/layouts/ Or: addons/shared_addons/themes/[my-theme-name]/views/layouts/ Every theme should have a layout file, named "default.html" in one of the locations listed above. Additional layout files are optional; I'll show you how to add more layout files in a moment. First, it’s important to review the contents of a layout file.Layout files in PyroCMS are built using HTML and a tag parser, referred to as the Lex Tag Parser. This is what a very basic PyroCMS layout file looks like: {{ template:title }} {{ template:metadata }} {{ template:title }} {{ template:body }} The special tags you see in this bit of HTML are Lex parser tags. If you've ever used Smarty templates in PHP, these may look somewhat familiar. The primary benefit to using Lex parser tags in your layout files is that you don't have to put PHP directly in your views (remember, we're using MVC), which gives you the best chance of creating PyroCMS themes that follow the don’t repeat yourself pattern.The example that I've given above is simple, of course, but Lex parser tags are quite powerful. They can loop through data, work with attributes, and more. Learn more about the Lex Parser in the PyroCMS documentation.A more complex PyroCMS layout file looks like this: {{ template:title }} {{ template:metadata }} {{ theme:favicon file="favicon.png" }} {{ theme:css file="style.css" }} {{ theme:js file="site.js" }} {{ theme:im
about 11 hours ago
A while back I wrote a post about WordPress Shortcode creation.  Shortcodes are convenient and useful on so many levels and for so many levels of skilled WordPress users.  A basic user can quickly learn shortcodes, as can an expert-level...
A while back I wrote a post about WordPress Shortcode creation.  Shortcodes are convenient and useful on so many levels and for so many levels of skilled WordPress users.  A basic user can quickly learn shortcodes, as can an expert-level developer.  In short, shortcodes are an invaluable tool for all levels of WordPress user.  Mighty Deals is offering a WordPress plugin containing 5,000 WordPress shortcodes plus three bonus themes for less than $20.  Shortcodes include: Buttons Hate the same old buttons you have on your site? No worries. Choose from literally hundreds of CSS3 button variations to add to your page. You can even alter the icon, color and size of each one. Tooltips Want to convey a lot of crucial information without busying up your page? Tooltips let you do just that with a small layer that pops up when moused over. Choose from a large variety of CSS3 tooltips and customize the color, pick the direction, and even embed images and videos right in there. Image ShadowsYou can add a touch of oomph to all your photos by putting an extra 3D shadow on each image. Quick and easy to implement on any images within your blog. Content Info BoxesYou want boxes? You’ve got boxes! Choose from a huge selection of content info boxes that can include icons, pictures, links, and even a video. Pricing TablesLooking to show off prices for your product or service? The sleek pricing table will fit any blog design no matter if your site is a corporate or personal one. QuotesDisplay huge pull quotes easily to make important content truly stand out. Justify your text with left, right, and full alignments. HighlightsColorful highlights can display key words or phrases throughout your page. Customize each highlight with any color you can imagine. AccordionOrganize large blocks of text into smaller pieces of content with toggable sections that slide open to reveal text when users click on each section. Tabbed ContentGo ahead and add vertical or horizontal tabs to your content to further organize things for your users. Custom ListsChoose from a variety of fresh icons to spice up your unordered lists. ColumnsWant to break you content into columns for better flow? Choose from a variety of column options to suit your needs. If you run a WordPress-powered website, you may want to consider this package; it may contain dozens and dozens of shortcodes that make your job much easier! Get Shorcodes!Read the full article at: Mighty Deals: WordPress Shortcodes Plugin + 3 Premium WP Themes
about 15 hours ago
A Pretty JSON Inspector & Visualizer – JSONmateJSONmate is a JSON editor component for you web apps/pages that can beautifier JSON strings where these strings can be directly pasted or loaded from a remote URL. It can customiz...
A Pretty JSON Inspector & Visualizer – JSONmateJSONmate is a JSON editor component for you web apps/pages that can beautifier JSON strings where these strings can be directly pasted or loaded from a remote URL. It can customizing and a visualizer the data that provides with different view. With this app you’r not anymore hard too understand their hierarchy at the first look.HomePage & Demo : http://jsonmate.com/ Download : https://github.com/DavidDurman/FlexiJsonEditor License : MIT licenseBlogupstairs - Open Source Resources & Tools for Web Developer
1 day ago
Learning modern modular frameworks like Backbone.js and AngularJS involves mastering a large amount of terminology, even just to understand a Hello, World application. With that in mind, I wanted to take a break from higher-level librari...
Learning modern modular frameworks like Backbone.js and AngularJS involves mastering a large amount of terminology, even just to understand a Hello, World application. With that in mind, I wanted to take a break from higher-level libraries to answer the question: what is a module? The Background Story Client-side development has always been rife with techniques for patching missing behaviour in browsers. Even the humble tag has been cajoled and beaten into submission to give us alternative ways to load scripts. It all started with concatenation. Rather than loading many scripts on a page, they are instead joined together to form a single file, and perhaps minimised. One school of thought was that this is more efficient, because a long HTTP request will ultimately perform better than many smaller requests. That makes a lot of sense when loading libraries – things that you want to be globally available. However, when writing your own code it somehow feels wrong to place objects and functions at the top level (the global scope). If you’re working with jQuery, you might organise your own code like this: $(function() { function MyConstructor() { } MyConstructor.prototype = { myMethod: function() { } }; var instance = new MyConstructor(); }); That neatly tucks everything away while also only running the code when the DOM is ready. That’s great for a few weeks, until the file is bustling with dozens of objects and functions. That’s when it seems like this monolithic file would benefit from being split up into multiple files. To avoid the pitfalls caused by large files, we can split them up, then load them with tags. The scripts can be placed at the end of the document, causing them to be loaded after the majority of the document has been parsed. At this point we’re back to the original problem: we’re loading perhaps dozens of tags inefficiently. Also, scripts are unable to express dependencies between each other. If dependencies between scripts can be expressed, then they can be shared between projects and loaded on demand more intelligently. Loading, Optimising, and Dependencies The tag itself has an async attribute. This helps indicate which scripts can be loaded asynchronously, potentially decreasing the time the browser blocks when loading resources. If we’re going to use an API to somehow express dependencies between scripts and load them quickly, then it should load scripts asynchronously when possible. Five years ago this was surprisingly complicated, mainly due to legacy browsers. Then solutions like RequireJS appeared. Not only did RequireJS allow scripts to be loaded programmatically, but it also had an optimiser that could concatenate and minimise files. The lines between loading scripts, managing dependencies, and file optmisation are inherently blurred. AMD The problem with loading scripts is it’s asynchronous: there’s no way to say load('/script.js') and have code that uses script.js directly afterwards. The CommonJS Modules/AsynchronousDefinition, which became AMD (Asynchronous Module Definition), was designed to get around this. Rather than trying to create the illusion that scripts can be loaded synchronously, all scripts are wrapped in a function called define. This is a global function inserted by a suitable AMD implementation, like RequireJS. The define function can be used to safely namespace code, express dependencies, and give the module a name (id) so it can be registered and loaded. Module names are “resolved” to script names using a well-defined format. Although this means every module you write must be wrapped in a call to define, the authors of RequireJS realised it meant that build tools could easily interpret dependencies and generate optimised builds. So your development code can use RequireJS’s client-side library to load the necessary scripts
1 day ago
AudioPlayer.js – Responsive & Touchable HTML5 Audio PlayerAudioPlayer.js is a jQuery plugin for easily and quickly adding a HTML5-powered audio player to any web page. The player’s interface has a responsive layout and touchab...
AudioPlayer.js – Responsive & Touchable HTML5 Audio PlayerAudioPlayer.js is a jQuery plugin for easily and quickly adding a HTML5-powered audio player to any web page. The player’s interface has a responsive layout and touchable with Image-less The plugin is lightness, it is just 4KB. It has the major controls (play/pause, volume and duration). It works fine on the latest Safari, Chrome, Firefox, Opera both Mac and Windows versions. The player works well on Internet Explorer 9, 10 and gracefully degrades to mini mode on earlier versions. Website: http://osvaldas.info/audio-player-responsive… Demo: http://osvaldas.info/examples/audio-player-responsive… License : Other License Blogupstairs - Open Source Resources & Tools for Web Developer
2 days ago
There are several firewall applications for Linux, but what you may not realize is that, at the heart of all these programs is a single all-mighty application that is built right into the Linux Kernel: iptables. This is the Linux firewal...
There are several firewall applications for Linux, but what you may not realize is that, at the heart of all these programs is a single all-mighty application that is built right into the Linux Kernel: iptables. This is the Linux firewall. No matter which program you use to configure your firewall under Linux, it ultimately all comes down to iptables. All that these other programs do is configure it.So, here comes the question: if those programs simply configure iptables, why not simply configure it directly yourself? Doing so is easier than you might think!Networking BackgroundIf you’re familiar with networking terms, like connections, IP, TCP, and Port, then feel free to skip ahead to the next step. Otherwise, if you’re new to networking, read on to familiarize yourself with the terms that you will need to understand, in order to follow along with this tutorial.Please note that the terms and definitions below have been intentionally over-simplified. They’re meant for every-day users, not sysadmins. So if you are a seasoned sysadmin or you have a CCNA in you pocket, please excuse me for not entering into the details.TCP/IPTCP/IP is a protocol that allows computers to communicate with one another over Internet and Ethernet Networks. Failure is the last resort.Imagine an Ethernet Network as a small local network (LAN – local area network), like your home PC, laptop, and smart phone. It’s a small heterogeneous network that is isolated from the rest of the world. A network of such networks is what we all know as the Internet: a set of interconnected networks.TCP/IP is a combination of two protocols working at different levels in the hierarchy of the network communication chain. We won’t delve into details about that hierarchy. TCP stands for Transfer Control Protocol, and its core responsibility is to ensure that communication is successful. It controls the correctness of the data sent, and ensures its success. It has different algorithms to perform sophisticated checksums, autocorrect, and retry. Failure is the last resort. The name, IP comes from Internet Protocol. You can best associate it with the “phone-number” of your PC. Each machine capable of communicating over the Internet must have an IP address – a unique phone number – so that communication packets can find their destinations. A packet is a small piece of data inside a communication stream, which is self contained and can be checked for correctness. Essentially, we can say that our computers send TCP packets over the Internet using the IP protocol.Each network communication is bound to a specific port. Network ports range from 0 to 2^16 (65536). Each network connection has an outgoing port for the one who initiates it, and an inbound port for the one who is listening for other computers’ messages. There can be several connections between several computers over identical ports. A computer can, however, talk over several ports at once. So, basically, ports are good to identify services and define channels of communications, but they do not limit the amount of data or connections.Some computers can have similar IP addresses. You may have observed that both your computer at home and at work have IP addresses that takes the form of something along the lines of 192.168.something.something, or 10.0.something.something, or 172.16.something.something. These are the so-called private IP addresses that can be used only inside your LAN. You can’t go out to the Internet with IP addresses like this. They are akin to interior numbers for your company’s phone network.Gateway & BridgeA Bridge is what computers with real (public) IP addresses pass to the Internet. Essentially, these computers have the rights and capabilities to talk to one another on the Internet directly. But, since there are no direct connections between all the computers in the world (that would be quite hard to accomplish), bridges
3 days ago
This offer ends soon! Act now and don’t miss out on cash back when trying a monthly Tuts+ Premium subscription.At $19 a month, Tuts+ Premium is fantastic value. But it’s even better when we hand your first $19 right back to you!For...
This offer ends soon! Act now and don’t miss out on cash back when trying a monthly Tuts+ Premium subscription.At $19 a month, Tuts+ Premium is fantastic value. But it’s even better when we hand your first $19 right back to you!For a limited time we’re offering $19 cash back to new Tuts+ Premium monthly subscribers when signing up via PayPal. If you’ve been thinking about checking out our extensive library of courses, tutorials, eBooks and guides there’s never been a better time to join up and dive in.This offer ends at noon on the 20th of May AEST, so act fast.Become a Tuts+ Premium Member and take your creative & technical skills to a new level. What can you learn on Tuts+ Premium? Glad you asked! Currently, more than 15,000 members are sharpening their skills in a wide range of areas including web design, web development, Photoshop, vectors, video effects, and many more. With Tuts+ Premium you learn from expert instructors in every field, such as:Designer Justin Maller (Nike, Verizon, DC Shoe Co.)Illustrator Russell Tate (McDonald’s, Coca-Cola)Developer Burak Guzel (Software Engineer at Facebook)Join now and get instant access to your very own library of courses, tutorials, and eBooks, available whenever you need them. Become part of a community of over 15,000 members and start getting better at the skills you care about. Our dedicated team adds new content weekly so there’s always something fresh to sink your teeth into.Join Tuts+ Premium
3 days ago
getfirebug.com has Firebug 1.12 alpha 6 Firebug 1.12a6 fixes 11 issues Firebug 1.12a6 is compatible with Firefox 20-23 Couple of highlights from this release Use in Command Line (issue 6422) This feature allows referring various object...
getfirebug.com has Firebug 1.12 alpha 6 Firebug 1.12a6 fixes 11 issues Firebug 1.12a6 is compatible with Firefox 20-23 Couple of highlights from this release Use in Command Line (issue 6422) This feature allows referring various objects from the command line using new $p variable. See also detailed description of this feature. Precision for Console API %f log pattern (issue 6439) Floats can be rounded by using the %.xf pattern inside the first console.log() argument. Here x denotes the number of decimal places the number should be rounded to. console.log("amount: %.2f", 4.3852) will output amount: 4.39 Please post feedback in the newsgroup, thanks Jan ‘Honza’ Odvarko
4 days ago
Last October, Nodejitsu got together with our partners, Joyent, 10gen, Clock, and MongoLab, and brought you Nodestack. It was a one day online conference with the goal of examining the technology stack emerging around Node.js, and answer...
Last October, Nodejitsu got together with our partners, Joyent, 10gen, Clock, and MongoLab, and brought you Nodestack. It was a one day online conference with the goal of examining the technology stack emerging around Node.js, and answering critical industry questions about adopting and maintaining this technology in your own company. The conference was a great success so we're back, and we're bringing you a series of smaller webinars to delve deeper into more specific technical matters. Join us on Tuesday 9:00 AM - 10:30 AM PT for Nodestack: State of the Stack, where Charlie and Nuno will be holding it down with Isaac Schleuter and Aaron Heckman: # Charlie will be tag teaming with izs to discuss 0.10. Then Aaron from 10gen will be discussing Replica Sets & Text Search in MongoDB 2.4, and finally, Nuno will close out the session with a talk about running Production Node on SmartOS. There are still a few tickets left. See you there!
4 days ago