Posts Tagged ‘Oct2’

February 10th, 2012

More Powerful CSS | VapvaruN

WheatgrassKits.com

I am a huge fan of SASS (Syntactically Awe-inspiring Stylesheets) for styling Rails applications. I have been using it on all of my projects for quite a while now and have developed some fantastic techniques with the intention of make it much simpler to organize, write, and scan stylesheets in an application.

Unlike HAML, SASS retains most of the constant “feel” when prose the code as vanilla CSS. It austerely adds extra power and better organizational tools, making it an straightforward extent as a go-to substitution. You can teach someone the basics of SASS in about 30 seconds: use two spaces to indent everything, place the colon before the declaration and no semicolon afterwards. In fact, I’ve even written fixed expressions to convert CSS to SASS involuntarily in some cases. It’s straightforward to pick up and once you do you will start reaping genuine benefits.

The 20-Second “Get Up And Running”

To use SASS, you must have the HAML gem installed on your Rails app. Add it to your environment.rb:

  1. config.gem ’haml’, :translation => ’>= 2.0.6′
config.gem 'haml', :translation => '>= 2.0.6'

Now you can make SASS stylesheets austerely by making .sass files in a broadcast/stylesheets/sass pointer.

Vital Example: Building a Menu the SASS Way

The best way to start amplification the power of SASS may be owing to one of the extra common styling tasks one encounters: styling a menu. Here we’ll take upon physically a menu structure like this:

  1. <ul id=’menu’>
  2.   <li><a href=’/'>Family</a></li>
  3.   <li><a href=’/about’>About</a></li>
  4.   <li><a href=’/services’>Services</a></li>
  5.   <li><a href=’/contact’>Contact</a></li>
  6. </ul>
<ul id='menu'>
  <li><a href='/'>Family</a></li>
  <li><a href='/about'>About</a></li>
  <li><a href='/services'>Services</a></li>
  <li><a href='/contact'>Contact</a></li>
</ul>

To style this menu in CSS, we might do something like this:

  1. #menu {
  2.   margin: 0;
  3.   catalog-style: not any;
  4. }
  5. #menu li {
  6.   float: missing;
  7. }
  8. #menu li a {
  9.   show: try out;
  10.   float: missing;
  11.   padding: 4px 8px;
  12.   copy-decoration: not any;
  13.   social class: #2277aa;
  14.   affect: colorless;
  15. }
#menu {
  margin: 0;
  catalog-style: not any;
}

#menu li {
  float: missing;
}

#menu li a {
  show: try out;
  float: missing;
  padding: 4px 8px;
  copy-decoration: not any;
  social class: #2277aa;
  affect: colorless;
}

SASS allows you to use indentation to indicate hierarchy, reduction much repetition and space. The constant code in SASS looks like this:

  1. !menu_bg = #2277aa
  2. #menu
  3.   :margin 0
  4.   :catalog-style not any
  5.   li
  6.     :float missing
  7.     a
  8.       :show try out
  9.       :float missing
  10.       :padding 4px 8px
  11.       :copy-decoration not any
  12.       :affect colorless
  13.       :social class = !menu_bg
!menu_bg = #2277aa

#menu
  :margin 0
  :catalog-style not any
  li
    :float missing
    a
      :show try out
      :float missing
      :padding 4px 8px
      :copy-decoration not any
      :affect colorless
      :social class = !menu_bg

Hierarchical selectors mean with the intention of if you indent something, the selector it falls under will involuntarily be prepended to it, so the two examples above breed the constant output. You’ll also notice !menu_bg in the SASS code. SASS allows you to announce constants with the intention of can be reused throughout the code, a very helpful feature when dealing with colors.

Now we have our vital setup for the menu, but let’s handle some better cases. I aspire the affect to change when I hover finished the menu options and I aspire to highlight the current menu option (we’ll take upon physically with the intention of the <li> encapsulating the current menu piece will have class ‘current’ when it is elected). Let’s add these facial appearance initially using CSS, at that time SASS. With CSS:

  1. #menu {
  2.   margin: 0;
  3.   catalog-style: not any;
  4. }
  5. #menu li {
  6.   float: missing;
  7. }
  8. #menu li a {
  9.   show: try out;
  10.   float: missing;
  11.   padding: 4px 8px;
  12.   copy-decoration: not any;
  13.   social class: #2277aa;
  14.   affect: colorless;
  15. }
  16. #menu li a:hover {
  17.   social class: #116699;
  18. }
  19. /* Make guaranteed the affect doesn’t change when the current option is hovered. */
  20. #menu li.current a, #menu li.current a:hover {
  21.   social class: colorless;
  22.   affect: black;
  23. }
#menu {
  margin: 0;
  catalog-style: not any;
}

#menu li {
  float: missing;
}

#menu li a {
  show: try out;
  float: missing;
  padding: 4px 8px;
  copy-decoration: not any;
  social class: #2277aa;
  affect: colorless;
}

#menu li a:hover {
  social class: #116699;
}

/* Make guaranteed the affect doesn't change when the current option is hovered. */
#menu li.current a, #menu li.current a:hover {
  social class: colorless;
  affect: black;
}

This isn’t too terrible, but our selectors protect getting longer and longer. Let’s look at the constant business in SASS.

  1. #menu
  2.   :margin 0
  3.   :catalog-style not any
  4.   li
  5.     :float missing
  6.     a
  7.       :show try out
  8.       :float missing
  9.       :padding 4px 8px
  10.       :copy-decoration not any
  11.       :affect colorless
  12.       :social class = !menu_bg
  13.       &:hover
  14.         :social class = !menu_bg - #111111
  15.     &.current
  16.       a, a:hover
  17.         :social class colorless
  18.         :affect black
#menu
  :margin 0
  :catalog-style not any
  li
    :float missing
    a
      :show try out
      :float missing
      :padding 4px 8px
      :copy-decoration not any
      :affect colorless
      :social class = !menu_bg
      &:hover
        :social class = !menu_bg - #111111
    &.current
      a, a:hover
        :social class colorless
        :affect black

The ampersand (&) in SASS is a shortcut to insert the entire parent selector at with the intention of point. By using &.current I am adage “the parent selector with a class of current.” &:hover earnings “the parent selector when hovered.” This makes it straightforward to write complicated selectors in a compact, straightforward-to-scan manner.

A additional fantastic business about SASS is it has built in CSS affect math. Annotation where I declared :social class = !menu_bg - #111111. With the intention of is corresponding to subtracting 1 from all of the values of the constant’s affect, which in this case yields #116699. This is fantastic, since now I can change the affect of the menu and the hover disorder will involuntarily change without me having to manually find it and recalculate it for a new affect. Annotation with the intention of when you are using constants or performing calculations you call for to add the equals sign to your declaration.

Getting organized with a master.sass

A additional way you can use SASS is to organize all of your CSS into a release file without having to agonize about it in your view. I have recently started using this approach for a number of reasons:

  1. It allows me to control stylesheet inclusion from within the stylesheets themselves, making the structure extra readable.
  2. I can define global colors with the intention of can at that time be used in any of the child stylesheets.
  3. It’s really straightforward!

In a new project, I permanently make a master.sass with the intention of will look something like this:

  1. // Define app-specific colors initially
  2. !green = #191
  3. !gray = #555
  4. // Now define globally applicable, all-function styles
  5. body
  6.   :font-family Arial, without-serif
  7. a
  8.   :affect = !green
  9.   :copy-decoration not any
  10.   :font-weight bold
  11. // Now import all of your other SASS files, they will be
  12. // involuntarily included in the constant generated CSS file
  13. // at compile time.
  14. @import menu.sass
  15. @import content.sass
  16. @import admin.sass
  17. @import users.sass
// Define app-specific colors initially
!green = #191
!gray = #555

// Now define globally applicable, all-function styles

body
  :font-family Arial, without-serif

a
  :affect = !green
  :copy-decoration not any
  :font-weight bold

// Now import all of your other SASS files, they will be
// involuntarily included in the constant generated CSS file
// at compile time.

@import menu.sass
@import content.sass
@import admin.sass
@import users.sass

Using this structure I have a modular, easily expandable collection of stylesheets with global affect constants and vital styles. In addition, I can add this to my Rails application with the simplest of calls:

  1. <%= stylesheet_link_tag ’master’ %>
<%= stylesheet_link_tag 'master' %>

Wrapping Up

Hopefully this gives you a taste of the straightforward awesomeness with the intention of is possible with SASS. The utmost business about the library is you don’t drop touch with prose CSS since SASS is CSS, just with a few extras and shortcuts to make power-styling simpler.

Update: A commenter pointed out with the intention of I forgot the @ before my import statements in the master.sass example, this has been fixed.

February 10th, 2012

Useful Adobe AIR Applications You Should Know | VapvaruN

300x250 Bargain Cave

Adobe AIR was initially introduced on 19 March 2007 with the first name of Apollo and designed as a cross-in commission system runtime with the intention of enables web developers to use their existing web development skills, code and tools to build and deploy rich web applications and content to the desktop.

adobe air applications 60+ Useful Adobe AIR Applications You Should Know

With Adobe AIR’s rich facial appearance, developers are capable to build application using HTML, Ajax, JavaScript, Flex and Flash. Consequently, we strongly believe with the intention of Adobe Air has unleashed the power to extend addict experiences additional than the browser. Here’s our collection of 60+ Adobe AIR Application you should know. Full catalog with jump.

 

Google

Collection of Google manufactured goods related AIR applications.

  1. GMDesk

    GMDesk is an application with the intention of lets you run Gmail, Google Calendar, Google Docs and Google Maps as a stand-alone application to do all your mail usage, calendar consequence conception etc with.

    GMDesk 60+ Useful Adobe AIR Applications You Should Know

  2. ReadAir

    ReadAir is a desktop client for Google Reader.

    readair 60+ Useful Adobe AIR Applications You Should Know

  3. Google Analytics Exposure Suite

    Google Analytics Exposure Suite brings Google Analytics to the desktop, with a swarm of facial appearance with the intention of aid you know how your website is performing and where you can improve.

    Google Analytics 60+ Useful Adobe AIR Applications You Should Know

Photo & Video

Adobe AIR applications with the intention of allow you to search, edit, keep or upload photo and video.

  1. Flickr Desktop Search

    Flickr Desktop Search is an Adobe AIR based utility which helps you to search Flickr images.

    Flickr desktop search 60+ Useful Adobe AIR Applications You Should Know

  2. ImageDropr

    ImageDropr is a new tool for uploading your images to flickr. This application takes a unique approach towards preparing your content, titles, tags, etc. by making tools with the intention of expedite this process.

    imagedropr 60+ Useful Adobe AIR Applications You Should Know

  3. Flickr Flipper

    Flickr Flipper allows you to search for Flickr photos and also search for photos from specific Flickr users. It uses Papervision to show the photos one at a time and even allows you to download the photo to your computer.

    flickr flipper 60+ Useful Adobe AIR Applications You Should Know

  4. Snoto

    Snoto Photo is a desktop application for browsing your recent photos as water supply as the recent photos of others. You can also do a slideshow of the photos.

    Snoto 60+ Useful Adobe AIR Applications You Should Know

  5. FLVPlay HD

    FLVPlay HD plays your community or remote flv and mp4 videos, as water supply as the ones from the YouTube servers which are available via the “Search” feature of the application.

    FLVPlayer 60+ Useful Adobe AIR Applications You Should Know

  6. AIRTube Video Downloader

    AIRTube Video Downloader allows you to download YouTube FLV videos by austerely dragging or defeat in the video’s URL. With the video downloads the application will expand and show you a preview of the video.

    AIRTube Video Downloader 60+ Useful Adobe AIR Applications You Should Know

  7. RichFLV

    RichFLV allows you to scan and edit FLV figures. You can cut FLVs, convert the signal of the flv to mp3 and convert flv to swf.

    richflv 60+ Useful Adobe AIR Applications You Should Know

  8. uvLayer

    UvLayer is a social video application where you can learn, mind, assemble and impart video media. Incisive currently focuses on videos from YouTube and Truveo.

    uvlayer 60+ Useful Adobe AIR Applications You Should Know

  9. mooFlair

    A desktop application with the intention of helps you to manage and mind in cooperation online and offline FLVs videos. Extra than a simple flv player, build your own FLV library and keep your compilations in playlists.

    mooFlair 60+ Useful Adobe AIR Applications You Should Know

  10. Adobe Media Player

    Adobe Media Player allows you to queue up and download your favorite Internet TV content, track and download new episodes involuntarily, and manage your confidential video library for viewing at your convenience.

    adobe media player 60+ Useful Adobe AIR Applications You Should Know

Design

Adoeb AIR tools with the intention of sharpen your design skill.

  1. Websnapshot

    Websnapshot allows you category a URL at that time take a snapshot using one of the three sizing methods; Thumbnail, Browser or fullpage view.

    websnapshot 60+ Useful Adobe AIR Applications You Should Know

  2. Shrink-O-Matic

    Shrink O’Matic is an AIR application to easily (batch) resize (shrink) images. It handles JPGs, GIFs and PNGs.

    shrink o matic 60+ Useful Adobe AIR Applications You Should Know

  3. Colorpicker

    colorPicker is a widget-like AIR application with the intention of lets you either choose a “web-safe” affect from a affect grid or design a affect using sliders to adjust the red, green, and desolate values of the affect.

    colorpicker 60+ Useful Adobe AIR Applications You Should Know

  4. ColourLovers Desktop Affect Finder

    Desktop Affect Finder lets you search our entire database of near 1 million named colors and extra than 300,00 addict bent affect palettes.

    colourlovers 60+ Useful Adobe AIR Applications You Should Know

  5. Font Picker

    Font picker allows you to find the right font for the job.

    fontpicker 60+ Useful Adobe AIR Applications You Should Know

  6. Icon Generator

    Icon Generator is a small application with the intention of lets you breed a CS3 or Web 2.0 style icon, release 3 step. Pick affect, category characters, and keep it.

    icon generator 60+ Useful Adobe AIR Applications You Should Know

  7. WebKut

    WebKut is an AIR application with the intention of allows you to capture web pages, or parts of them in a very simple way.

    webkut 60+ Useful Adobe AIR Applications You Should Know

  8. Affect Browser

    Affect Browser is a simple way to make and organize your favorite affect palettes. Sets of colors are easily viewable in a sterile interface.

    colorbrowser 60+ Useful Adobe AIR Applications You Should Know

  9. Photoshop Timely Uploader

    Photoshop Timely Uploader lets you drag and decline photos from your desktop to upload to Photoshop Timely.

    adobe photoshop uploader 60+ Useful Adobe AIR Applications You Should Know

Microblogging

Adobe AIR applications with the intention of allow you to converse with microblogs simpler and quicker.

  1. TweetDeck

    TweetDeck is an Adobe Air desktop application with the intention of aims to evolve the existing functionality of Twitter by taking an abundance of in rank.

    TweetDeck 60+ Useful Adobe AIR Applications You Should Know

  2. Alert Thingy

    Alert Thingy allows users to see the figures stream from people they follow on FriendFeed, and placement new placement directly to the service.

    alert thingy 60+ Useful Adobe AIR Applications You Should Know

  3. Feedalizr

    Go streaming to your desktop. View, rank and annotation on what your friends are allotment online, using one simple and straightforward to use desktop tool.

    feedalizr 60+ Useful Adobe AIR Applications You Should Know

  4. MySocial AIR

    MySocial is the newest Twitter/FriendFeed desktop app on the try out, although MySocial has previously released a Firefox sidebar addon with the intention of offers akin functionality.

    mysocial air 60+ Useful Adobe AIR Applications You Should Know

  5. Twhirl

    Twhirl connects to manifold Twitter, laconi.ca, Friendfeed and seesmic financial statement.

    twhirl 60+ Useful Adobe AIR Applications You Should Know

  6. Posty

    Posty simplifies your microblogging. All you have to do is prose the message and clicking a button. Posty will involuntarily deliver your message to the services you elected.

    posty 60+ Useful Adobe AIR Applications You Should Know

  7. Toro

    Toro is a very simple Twitter client with the intention of aims for a speedier Twitter.

    toro 60+ Useful Adobe AIR Applications You Should Know

  8. Spaz

    Spaz is a Twitter client for users who regard free, commence-source software, attractive design, and customizability

    spaz 60+ Useful Adobe AIR Applications You Should Know

  9. bTT

    bTT lets you hear update from friendfee, placement to friendfeed, hurl and hear tweets with twitter out of one application on your desktop.

    bTT 60+ Useful Adobe AIR Applications You Should Know

  10. Tweetr

    Tweetr lets you hurl files to your friends, but just dragging any file on to Tweetr. Tweetr will involuntarily upload your file and when it is made will provide a small url to hurl to your friends

    tweetr 60+ Useful Adobe AIR Applications You Should Know

Social Network

Adobe AIR applications with the intention of blend your favourite social networks into your desktop.

  1. DiggTop

    DiggTop is an application for Windows and MacOSX with the intention of lets you view a blended catalog of your favourite Digg theme or keyword feeds.

    diggtop 60+ Useful Adobe AIR Applications You Should Know

  2. Facedesk

    facedesk is an application with the intention of, when installed, becomes a stand-alone application to do all your Facebook surfing with.

    facedesk 60+ Useful Adobe AIR Applications You Should Know

  3. Panache

    Panache is a free, straightforward to install application with the intention of lets you know when you’re poked, or someone writes on your wall, or adds you as a friend – without having to constantly try out the Facebook website or your hurl by e-mail.

    flair 60+ Useful Adobe AIR Applications You Should Know

  4. Babuki

    Now all your contacts are in one place wherever you are. There’s no call for to make an account and you release have to add details for the other IM networks once.

    babuki 60+ Useful Adobe AIR Applications You Should Know

  5. MINI DIGG

    The Digg diminutive client brings the latest news from Digg to your desktop. It also allows you to store the tales to your computer.

    mini digg 60+ Useful Adobe AIR Applications You Should Know

Miscellaneous

Other helpful desktop Adobe AIR applications.

  1. WordPress Annotation Arbitrator

    Arbitrator is a WordPress Plugin and associated desktop application, built using Adobe AIR, with the intention of allows you to view and moderate comments from your desktop.

    moderator 60+ Useful Adobe AIR Applications You Should Know

  2. Apprise Reader

    Apprise lets you scan all your news in one place, and impart it all in one place, too. With built-in support for finished ten different ways to impart tales,

    apprise reader 60+ Useful Adobe AIR Applications You Should Know

  3. Ora Time and Expense

    Ora Time and Expense is a tiny straightforward-to-use application for tracking and generating timesheets, expense reports, and invoices.

    oral time space 60+ Useful Adobe AIR Applications You Should Know

  4. Timeloc

    Timeloc is a desktop widget with the intention of keeps track of the time you have spent working on a job or project. It will no longer be a case of estimate bring about as to how much you call for to charge your clients or assign to a project

    timeloc 60+ Useful Adobe AIR Applications You Should Know

  5. Doomi

    Doomi is a simple to-do-catalog application with the intention of designed to stay out of your way, be straightforward to use and look pretty.

    doomi 60+ Useful Adobe AIR Applications You Should Know

  6. Klok

    Klok is a tool intended to be used by persons, who have a call for to track the time they spend on projects, tasks or whatever business else for with the intention of matter.

    klok 60+ Useful Adobe AIR Applications You Should Know

  7. MiniTask

    MiniTask is a FREE, quick and straightforward-to-use task management application with the intention of helps you with organising your day after day todos extra efficiently.

    minitask 60+ Useful Adobe AIR Applications You Should Know

  8. Agile Agenda

    Agile Agenda is a project scheduling utility focused on allowing project managers to enter figures about tasks. The software is capable of dynamically adjusting to unreliable conditions with the intention of occur all owing to a project go cycle.

    agileagenda 60+ Useful Adobe AIR Applications You Should Know

  9. Xdrive Desktop Lite

    Xdrive Desktop Lite allows you to easily upload files and folders right from your tough guide, desktop, USB devices, or removable storage drives directly into your Xdrive web storage.

    xdrive desktop lite 60+ Useful Adobe AIR Applications You Should Know

  10. AirTalkr

    AirTalkr is a multi-protocol Second Messenger with the intention of connects to MSN, Yahoo!, GTalk, AOL and ICQ. Not release with the intention of, it also has connects to to various Web 2.0 services like Flickr and YouTube.

    airtalk 60+ Useful Adobe AIR Applications You Should Know

  11. Pownce Desktop 2.0

    Pownce makes it even quicker to scan and hurl notes to your friends

    pownce 60+ Useful Adobe AIR Applications You Should Know

  12. CL Desktop
    – Craigslist is huge, and this application just makes sense. It’s straightforward to use and saves you time with saved searches and the ability to view pictures right from the first catalog.
  13. EarthBrowser
    – EarthBrowser is a revolutionary new platform for viewing and making geographically based in rank.
  14. ebay Desktop
    – eBay Desktop is made for search, behest, browsing, and watching. It’s all there, with a groundbreaking new interface.
  15. Finetune Desktop
    – Finetune Desktop gives you quick access to your custom playlists and will protect track of your favorite music from Finetune.
  16. Pandora Desktop
    – With the Pandora Desktop Application, you can play your Pandora stations right from your desktop – without opening a new browser window.
  17. Snackr
    – Snackr is a RSS ticker with the intention of pulls random bits and pieces from your feeds and scrolls them across your desktop. When you see a title with the intention of looks fascinating, you can click on it to pop up the piece in a window.
  18. AIR iPhone
    – AIR iPhone is a desktop application bent with Adobe AIR and Adobe Flex 3, it simulates the UI of the iPhone. It has the capabilities to make calls, hear calls, try out voicemail, add contacts and even hurl voice placement.
  19. Adobe Developer Connection Developer Desktop
    – Adobe Developer Connection Developer Desktop (ADC Desktop) is an Adobe AIR application with the intention of delivers a number of caring resources for Developers.

Resources

Resources, tutorials and collections of Adobe AIR applications.

  1. airapps Wiki

    A collection of Adobe® AIR™ applications out in the natural with the intention of the community can update.

    airapps 60+ Useful Adobe AIR Applications You Should Know

  2. RIAForge

    An online community site, built using their own products and targeted to support developers building commence source projects for our products and platform.

    riaforge 60+ Useful Adobe AIR Applications You Should Know

  3. Apollo Hunter

    A community to impart and download Adobe AIR applications with no expense.

    apollo hunter 60+ Useful Adobe AIR Applications You Should Know

  4. O2Apps

    The essential resource for enthusiasts of Adobe AIR.

    o2apps 60+ Useful Adobe AIR Applications You Should Know

  5. Adobe AIR Marketplace

    Adobe AIR Marketplace is a place where AIR developers can circulate their Adobe AIR applications for users to download.

    adobe air marketplace 60+ Useful Adobe AIR Applications You Should Know

  6. Adobe Air Tutorials

    Adobe AIR Tutorials. Articles, resources, tutorials, and downloads.

    adobe air tutorials 60+ Useful Adobe AIR Applications You Should Know

  7. Refreshing Apps

    Adobe AIR application show case and resources.

    refreshingapps 60+ Useful Adobe AIR Applications You Should Know