
CoffeeScript CoffeeScript is a little language that compiles into JavaScript. Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way. The golden rule of CoffeeScript is: "It's just JavaScript". The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). Latest Version: 1.7.1 sudo npm install -g coffee-script Overview CoffeeScript on the left, compiled JavaScript output on the right. number = 42 opposite = true number = -42 if opposite square = (x) -> x * x list = [1, 2, 3, 4, 5] math = root: Math.sqrt square: square cube: (x) -> x * square x race = (winner, runners...) -> print winner, runners alert "I knew it!" run: cubes Installation The CoffeeScript compiler is itself written in CoffeeScript, using the Jison parser generator. npm install -g coffee-script Usage load run
A faster image search Webmaster level: all People looking for images on Google often want to browse through many images, looking both at the images and their metadata (detailed information about the images). Based on feedback from both users and webmasters, we redesigned Google Images to provide a better search experience. Here’s what it means for webmasters: We now display detailed information about the image (the metadata) right underneath the image in the search results, instead of redirecting users to a separate landing page.We’re featuring some key information much more prominently next to the image: the title of the page hosting the image, the domain name it comes from, and the image size.The domain name is now clickable, and we also added a new button to visit the page the image is hosted on.
Guide to CSS support in email Version history 14 November 2017 Outlook.com and the Outlook iOS app added support for CSS background images and some related properties, as well as certain Flexbox and Grid properties. Also added iOS 11 Mail to the guide, with no noticeable differences from iOS 10. 22 September 2017 Microsoft updated the Outlook apps for iOS and Android with more consistent CSS support, including media queries. 13 September 2017 A complete rewrite and redesign of the guide, testing 278 different CSS properties and features across 35 email clients. To accommodate the huge increase in content, we’ve added search functionality and the ability to link directly to individual the email clients and properties for easy sharing.Discuss this on our blog. 2 May 2014 Removed support for various selector options (E) in Gmail and added support for direction, vertical-align and list-style-type in Outlook ’07/’10/’13. 19 September 2013 30 January 2013 1 February 2012 background-image is now supported in Gmail. 10 December 2010
Update Galaxy Ace S5830 with Official Gingerbread 2.3.6 Value Pack XWKTM Even though the Samsung Galaxy Ace is not a high end smartphone there are many Android users who own this handset, the affordable price tag and its decent specs, making the Ace one of the most popular Samsung phone. So, its users should be interested in installing the latest OS updates available not only for receiving the latest Android features but also to power up the performances of their devices. As you know there are many ICS and Jelly Bean custom ROMs suitable for your Galaxy Ace, though not all the upgrades are being stable ones. The best part related with an official update, like the present value pack XWKTM, is that the warranty can be restored in case it was previously voided. As we are dealing with an official release of the Gingerbread platform, for applying the same on your Samsung Galaxy Ace S5830 you will not have to previously root your smartphone. Even though you don’t have to root your device, a backup must still be completed first.
The True Problem With PHP There's been a lot of traffic lately about what's wrong with PHP, and counter posts about how good it is. I've even fallen into the fray in an earlier article trying to step up and defend the language. The problem with almost all of these posts is that they focus on the language itself and what's wrong (or right) with it. This is not one of those posts. The True Problem The true problem with PHP lies in the community. The simple fact that a site like w3schools still exists as a top result from a Google search is proof enough of that point. Why Is It A Problem? This is something I've struggled with. Even if we just look at tutorials talking about accessing data from a database, we get loads of bad information. What Can We Do About It? Part of the problem there is that there hasn't been a good, authoritative tutorial repository for PHP. I'm not really a huge fan of the idea that the php.net documentation should contain tutorials and non-language related content. What Do You Think?
kuler 7 Chrome Tips Developers & Designers May Not Know I'm not sure about you, but Google Chrome has been my primary browser for quite some time. At first the simplicity and speed of Chrome initially drew me in. I do admit I went back to Firefox every so often for Firebug's rich set of debugging tools. However, over the past year or so the amount of tooling for developers and designers in Chrome has grown immensely. Here are some fairly recent features of Google Chrome that you may not be aware of... 1. How many times have you been tinkering around JavaScript and wished you could tweak it out temporarily just to test something out? Usages for this could be as simple as adding a console.log or modifying a piece of code that you think is broken. 2. Sometimes I'm trying to figure out a bug and unfortunately the JavaScript that was included has been minified. Thankfully Chrome has a Pretty Print feature that will take a minified JavaScript file and format it property. 3. 4. 5. Well, you can now with the Google Chrome. 6. 7.
Playing With Fonts Playing With Fonts Fonts Represent Your Content There's no doubt that your words, your posts, are the meat and potatoes of your blog or website. Fonts come in a wide variety of types and styles, but unfortunately, unless the user actually has that font installed on their machine, they will see something that is only "close", such as a generic serif or sans-serif, to what you wanted to present. In your Theme's style sheet (style.css usually) you can control the font-family (the list of fonts to display), the color, the size, and other aspects of your font. As you can see, you've set more than one font in the font-family. Font families tend to be single words, but on occasion you will find a phrase to represent a font such as Lucida Console. #menu {font-family: Verdana, Arial, Helvetica, "Lucida Console", sans-serif;..... Fonts in WordPress WordPress Themes use fonts in many different ways, and not always consistently. content post entry post-entry Which Font Font Surveys Font Face Font Sizes
Google Docs API: Client Login with PHP and Curl A few days ago I started looking deeper into the Google Code APIs and threw a few experiments using the Google Documents List Data API. Unfortunately, the only library they have for the third version of their protocol is written in Java. There is a PHP wrapper for the first version of the protocol, but it totally depends on the Zend Framework. Here’s a little code snippet for logging into a Google Docs account (writely) using ClientLogin with Curl and PHP. The Auth string is stored into the $auth variable for later use. ClientLogin assumes you login once and use the auth string for all on-going requests (more info: ClientLogin – Google Code). It seems though that Google Docs is purely for documents (spreadsheets and presentations) but not for actual files, as a JPEG I uploaded turned into a text/html type. I came across a cool website which I believe the Googlers have made – Data Liberation: Users should be able to control the data they store in any of Google’s products.
Hum | 4 out of 5 dentists recommend this WordPress.com site Keynotopia: User Interface Design Libraries for Keynote, PowerPoint and OpenOffice HTML5 video issues on the iPad and how to solve them I’ve been delaying this post since I wrote a rant about the iPad. The delay is mainly because I never found time to create sample files or record screencasts showing the bugs so I decided to publish it without any working examples since I don’t think I will have enough time or patience to isolate the problems and document it anytime soon, so you will have to believe that what I’m saying “is true” and that the bugs exist… Think of it as a reference in case you have any of those issues and not as a definitive way of making those things work, some bugs are only present on older versions of iOS and may not be easy to replicate. I’m sure I will leave a lot of important stuff behind but at least I’ll try to cover some bugs and how I solved them. I will try to be brief. Bugs and Hacks Preload video Here is an example of the code required to preload a video after user interaction on iOS 3.2+: As you can see on the code comments it requires a series of hacks to make it work properly. Conclusion