Showing posts with label for. Show all posts
Showing posts with label for. Show all posts

Thursday, March 12, 2015

Changes to minimum password length for Google Apps accounts

As part of our continuous efforts to help our users protect their information, we recently launched 2-step verification for all Google accounts. Starting March 14, we will also increase the minimum password length requirement for Google Apps accounts from 6 characters to 8.

This new policy aligns Google Apps accounts with consumer accounts that already require passwords to be at least 8 characters long.

Existing users can keep their current password even if it doesn’t match the new security requirements, but they will be required to comply when changing their password for the first time. Administrators will also need to comply when resetting passwords for users.

With this change, passwords set via the Google Apps Control Panel from March 14 will need to be at least 8 characters long. Calls to the Provisioning API that try to set a users password that is shorter than 8 characters will also fail with an InvalidPassword error message. For more information on how to programmatically manage user accounts, please check the Provisioning API Developer’s Guide.

Want to weigh in on this topic? Discuss on Buzz

Read more »

Google Apps Developer Blog for developers by developers

Welcome to the Google Apps Developer Blog. Today were excited to introduce the Google Apps Developer Blog, for developers interested in building applications that leverage Google Apps. In this blog well cover topics of interest to Google Apps developers building applications on top of Google Apps, integrating with them or utilizing the APIs. Examples of some of the topics well cover and resources well provide include:
  • code snippets and samples
  • reviews of customer integration and deployment cases
  • interviews with developers on best practices for developing in Apps
  • voting on most-requested developer extensions in Apps
  • discussion of OAuth roadmap
  • references to OpenID
  • smart ways to do logging (and analysis/reporting) in AppEngine, etc.
  • Storing JSON in AppEngine
Watch this blog and subscribe to our feed for announcements of developer events, DevFests, Google I/O updates, product announcements, links to other Google developer related content and case studies on actual integration, implementation and deployments.

Also, dont forget to register for Google I/O, which is May 19-20, 2010 in San Francisco. Google I/O will feature 80 sessions, more than 3,000 developers, and over 100 demonstrations from developers showcasing their technologies. Youll be able to talk shop with engineers building the next generation of web, mobile, and enterprise applications. Last years I/O sold out before the start of the conference, so we encourage you to sign up soon.

Well do our best to bring you the most relevant developer content right here on this blog, and you can also check out these excellent sources of information for Google developers:

Google Apps Discussion Forum
Google Apps Client Libraries and Sample Code
Google Apps API Overview
Google Apps API Help Forum
Google Enterprise Blog

Finally, we want your feedback! Ask questions, suggest topics, and even submit your own stories for possible inclusion in this blog. Contact me at GADBeditor at google if you have a story for submission, or story suggestion. Comments will be enabled on this blog, and we hope youll join the discussion.

Thanks,

Don Dodge
Developer Advocate
Developer Relations Team
Read more »

Tuesday, March 10, 2015

Introducing JavaScript Support for the Drive API

Did you know you can write a complete Google Drive App with JavaScript that runs completely in the web browser? You can! Your browser-based application, including Chrome extensions, can take advantage of our client library, or just use CORS requests to the API.

Your app can support all the functionality of the Drive API, including uploading files, downloading files, tracking changes, listing files and managing revisions. Also you can take advantage of our user interface components that make opening and sharing files easy.

We are really keen to offer first-class support to browser-based applications, so we have added JavaScript snippets to all our API reference documentation. Please let us know how we are doing by posting to Stack Overflow.

Want to try it out? Check out our Javascript Quickstart Guide, which helps you get your application up and running in five minutes or so.

Ali Afshar profile | twitter

Tech Lead, Google Drive Developer Relations. As an eternal open source advocate, he contributes to a number of open source applications, and is the author of the PIDA Python IDE. Once an intensive care physician, he has a special interest in all aspects of technology for healthcare

Read more »

Monday, March 9, 2015

Is agile suitable for all projects

At some point in your agile journey you begin to ask and/or hear this question: "Is agile suitable for all projects?"

Here are some of the responses Ive heard from both those who are still learning about agile and those who have a lot of agile experience:
  • Agile isnt necessary when you have a known problem and a known solution.
  • Agile doesnt work in regulated environments.
  • Agile doesnt work in government.
  • Agile cant work in a large enterprise.
  • etc.

In my opinion and experience all of these answers are borne out of legitimate concerns but none of these responses are valid. Let me explain why.

One of the significant differences between traditional projects and agile projects are the short feedback loops. These short feedback loops allow teams to validate assumptions sooner, identify and deal with risks and issues sooner, find and correct defects sooner, and deliver a solution sooner. Agile will be implemented differently based on the project types identified in the responses above, but I believe that all projects will benefit from agiles short feedback loops. To say otherwise assumes that we always get it right the first time - even in the uncommon situation where the solution is 100% known, we get everything right the first time about 0% of the time. Agile helps us discover that sooner so that we can correct our mistakes.

Additionally, any project can benefit from increased trust amongst team members, increased trust between teams and customers, increased trust between teams and management, and increased trust of project status.

In my opinion and experience, the only question you need to ask has nothing to do with the type of project, the type of problem, or the type of solution. Instead, here is the key question:
Does the team want to use agile and have the support to do it?
If the answer is yes, then it can work. If the answer is no, it is not likely to work.

P.S. Here are some examples of agile being used in projects and organizations where "agile wont work":

Agile in a regulated environment.
Abbot Labs experience report - Development of a nucleic acid purification platform and companion real-time analyzer
Agile in a Regulated Environment - Linkedin Group

Agile in government.
Public sector case study - Social Security domain, software to support change in legislation.
Manitoba Parks Reservation Service - Agile case study as told by Terry Bunio.

Agile in a large enterprise
The agile experience at John Deeres Intelligent Solutions Group.- presentation by Chad Holdorf at Much Ado About Agile VI - Vancouver 2011.
Plus an article talking about the John Deere agile experience. "I figure if John Deere can test working software every two weeks on a tractor in a field, then Agile will work anywhere."

Agile with a known solution and a known problem
I recently completed a project with a known solution and a known problem - converting a VB6 application to dotnet "as is". We used agile and the project was very successful.

Agile outside of software
Wikispeed - Joe Justice and his volunteer team designed a 100+ MPG car using agile techniques."We can swap out an engine in the time it takes to change tires".

Want to receive future blog posts in your inbox? Enter your email address here.
Read more »

Tuesday, February 17, 2015

C Program and Algorithm for Conversion of an Expression from Infix to Postfix

In infix notation or expression operators are written in between the operands while in postfix notation every operator follows all of its operands.

Example:
Infix Expression: 5+3*2
Postfix Expression: 5 3 2*+.

Algorithm for Conversion of an Expression from Infix to Postfix

Let Q be any infix expression and we have to convert it to postfix expression P. For this the following procedure will be followed.

1. Push left parenthesis onto STACK and add right parenthesis at the end of Q.

2. Scan Q from left to right and repeat step 3 to 6 for each element of Q until the STACK is empty.

3. If an operand is encountered add it to P.

4. If a left parenthesis is encountered push it onto the STACK.

5. If an operator is encountered, then
  • Repeatedly pop from STACK and add to P each operator which has same precedence as or higher precedence than the operator encountered.
  • Push the encountered operator onto the STACK.

6. If a right parenthesis is encountered, then
  • Repeatedly pop from the STACK and add to P each operator until a left parenthesis is encountered.
  • Remove the left parenthesis; do not add it to P.

7. Exit

Also Read: C Program and Algorithm for Evaluation of a Postfix Expression
Also Read: What is Quick Sort? Algorithm and C Program to Implement Quick Sort

An example of converting infix expression into postfix form, showing stack status after every step is given below. Here RPN stands for reverse polish notation (postfix notation).

An example of converting infix expression into postfix form, showing stack status after every step


C Program for Conversion of an Expression from Infix to Postfix

// Operator supported: +,-,*,/,%,^,(,)
// Operands supported: all single character operands

#include<stdio.h>
#include<conio.h>
#include<ctype.h>

#define MAX 50

typedef struct stack
{
    int data[MAX];
    int top;
}stack;

int precedence(char);
void init(stack *);
int empty(stack *);
int full(stack *);
int pop(stack *);
void push(stack *,int);
int top(stack *);   //value of the top element
void infix_to_postfix(char infix[],char postfix[]);

void main()
{
    char infix[30],postfix[30];
    printf("Enter an infix expression(eg: 5+2*4): ");
    gets(infix);
    infix_to_postfix(infix,postfix);
    printf("
Postfix expression: %s",postfix);
}

void infix_to_postfix(char infix[],char postfix[])
{
    stack s;
    char x,token;
    int i,j;    //i-index of infix,j-index of postfix
    init(&s);
    j=0;

    for(i=0;infix[i]!=
Read more »

The Top 4 Websites to Create Android Apps Online for Free


Hello friends, apart from c and c++ programming I thought that I should write something about android apps development. As we all know that nowadays android platform is getting a huge popularity due to its simplicity and great design.

In this article I am sharing the 4 best websites that allows the facility to create genuine android apps without any programming knowledge. You can create your own app online using your browser for absolutely free. There is no need of any android development tool.

Also Read: Top 5 Cheapest Android Tablets below Rs. 5000 in India in 2013
Also Read: 4 Best Tips to Clean Your Touch Screen Device

AppsGeyser

AppsGeyser comes at first in this list. It is free web platform that allows you to create android app in easy steps. There is no need to code or even know how it works.

The Top 4 Websites to Create Android Apps Online for Free

Andromo

With Andromo, anyone can make a professional android app. There is no programming required. Andromo generates 100% genuine android apps. They are faster, more efficient, better looking and more reliable than apps made with any other app development tool.

The Top 4 Websites to Create Android Apps Online for Free

App.Yet

Using App.Yet, you can easily create a professional Android app. It is simple, easy and reliable. It will only take few minutes to build your own app.

The Top 4 Websites to Create Android Apps Online for Free

Also Read: C4droid: Download Free C/C++ Compiler for Android Platform
Also Read: Top 8 Free Alternatives to Paid Softwares

App Maker

It allows you to create your own android apps for free with easy-to-use builder. You can create your own applications online with your web browser. No special android development SDK software is required.

The Top 4 Websites to Create Android Apps Online for Free

I have created this list on my own knowledge and by doing research on the internet. There are lots of other websites better then these. So try them, build your app and share your experience.

Source: http://www.shoutmeloud.com/5-sites-to-create-your-own-android-apps-for-free.html
Read more »

Sunday, February 15, 2015

Need for Speed Most Wanted 2005 full version for PC with highly compressed



Review:
The games career mode starts out with a hilarious bang. You take on the role of a nameless, faceless new racer attempting to hit the scene in the city of Rockport. An underground ranking known as the Blacklist governs who can race who, and when. You almost immediately run into a punk named Razor, whos definitely the sort of dude that lives his life a quarter-mile at a time. Hes at the bottom of the list, but a few races later, hes sabotaged your ride and has won it from you in a race. Meanwhile, youre carted off to jail. Left with nothing but some mysterious help from a stranger named Mia, your task is to get back in the race game to work your way to the top of the Blacklist, which is now topped by Razor, whos using your old car to wipe out the competition.

The game actually has a great story hook at the beginning that makes you want to see the career mode through to completion. The early story segments are told through some sort of unholy mixture of computer-generated cars and full-motion video actors. The acting in these early segments is awful...awful good, that is. Youll scratch your head and wonder if these segments are intentionally bad and meant to be played for laughs or if theyre just unintentionally funny. Either way, theyre great. Unfortunately, after a brief prologue, you stop seeing video sequences, and the story is conveyed via voicemails from various characters. Are you a cop? Will you get to utter the magic street racing words, "Mia, I am a cop"? Or is the plot twist even more painfully obvious than that? Youll have to see the story through to find out where everyones allegiances lie.

Working your way up the Blacklist is a multistep progress. Before you can challenge the next Blacklist racer, you have to satisfy a list of requirements. Youll have to win a set number of race events. And youll have to reach a set number of pursuit milestones and earn enough bounty by riling up the police. The cops hate street racers and will give chase when they see you rolling around the open city. You can also just jump right into a pursuit from a menu, too.


Running from the cops is the best action the game has to offer. Chases usually start with just one car on your tail. But as you resist, you might find 20 cars giving chase, in addition to a chopper flying overhead. Losing the cops gets tougher as your heat level rises. Level one heat results in the appearance of just your standard squad cars. But by the time you get up to level five, youll be dealing with roadblocks, spike strips, helicopters, and federal-driven Corvettes. A meter at the bottom of the screen indicates how close you are to losing the cops or getting busted. Stopping your car--or having it stopped for you by spike strips or getting completely boxed in by cops--is how youll get busted. To actually get away, youll need to get out of visual range...and stay there. The initial evasion changes the meter over to a cooldown meter. Youll have to lie low and wait for that meter to fill up to end the chase. This is probably the tensest part of the entire chase, since you never know when two cops might blow around the corner and spot you, starting the whole process over again. It all sort of works like some sort of strange, wonderful cross between Grand Theft Autos open city and Metal Gear Solids stealth mechanic. All the while, youll be acquiring heat on your car. This means that youll have to keep a couple of cars around, because acquiring heat on one car lowers the heat on your other ones. Also, getting busted too many times can result in your car getting impounded, though you can avoid that by resetting the system whenever you get caught (if thats more your speed).
Theres also a lot of racing in Most Wanteds career mode--almost too much, in fact. Youll engage in multilap circuit races, point-A-to-point-B sprint races, drag racing, checkpoint-driven tollbooth races, and speed trap, where the winner is the player that accumulates the most speed while passing by a handful of radar cameras spread throughout the track. The races are solid but not spectacular. The artificial intelligence doesnt really help things along, because most of the game is rubber-banded like crazy. We actually set our controller down for 20 seconds--then picked it back up and caught our opponents on the final lap. And though the AI will occasionally crash and come to a complete halt, itll catch up very, very quickly. Later on in the game, you get a voicemail message informing you that things are going to get tougher. At this point, the computer drivers magically start taking every single shortcut, and the rubber banding only seems to work against you. As a result, catching up after a mistake is much tougher. If this difficulty had gradually sloped up, it wouldnt be a big deal. But flipping the switch from "drive like crap" to "drive like a genius" is really annoying. Fortunately, the racing action itself is entertaining enough to keep you going, and of course, youll be dying to find out what happens next in the story. Read more

System requirements:
Windows 2000/XP
1.4GHz Processor
256MB RAM
8X CD-ROM Drive
3GB Hard Disk Space
32MB ATi Radeon 7500 or nVidia GeForce2 MX Class Video Card
DirectX compatible Sound Card
DirectX 9.0c
Keyboard
Mouse

Screen Shots: Click on the image to view large screen
pic namepic namepic name

How to Download
File Size: 
Need for Speed Most Wanted 2005 for PC
Part 1
Part 2
Password: 4hbest.blogspot.com
I hope you like it.....!
Read more »

Wednesday, February 4, 2015

Do you know what PowerPoint templates you need for your next presentation and why

Today, use of PowerPoint presentation (Keynote or any other presentation format) to present your idea is quite common. One starts interacting with presentations from school days and journey continues throughout your life. Sometimes you view presentations and sometimes you have to create them to be viewed by others.
 
Be it some conference, event, college seminar, meeting, workshop or a training session, nothing is complete without an outstanding presentation. A great presentation backed by great speaker leaves long lasting impact on audience. People spend hours & days to work out that great presentation which audience can wow.

One of the major elements of a presentation is the template you use. Its well known fact that an average idea presented well can outperform a great idea that is presented poorly. Can you afford to loose VC funding for your start-up just because you werent able to represent the information and business plan rightly through your presentation. Besides targeted content you need a right blend of theme, images, graphs and other placeholders collectively known as template. But the question is what type of presentation template you need. It might be easy for you to decide whether it would be a business, education or a medical template but do you ever think what sort of images, objects or maps your template should have so that you have that creative liberty to make a mark through your presentation. Here is what you need to take care while buying a template:

Do you need a template having vector images or one with bitmap images?
If you create presentations quite often, you must have faced the problem of distortion and loss of quality of images when you re-size them. Mostly this happens when you try to enlarge a small image. Problem is grave when picture enlarged has some text on it. However, you must have noticed same is not true for clip art images/icons you insert from gallery. You enlarge them, re-size them without any loss of quality. 

In order to understand this we need to understand the type of images. There are two type of images i) Bitmap (raster) ii) Vector graphics or images. Most common formats we use on daily basis like JPEG, PNG, GIF, TIF, PNG, BMP are all bitmap images. Bitmap is collection of tiny squares called pixels, which together form a pattern called image. Each pixel has its own color. When we try to enlarge a bitmap image beyond certain extant these small squares become visible and the edges become jagged or blurry. 

Bitmap image pixlated
Vector graphics are made up of lines, curves, rectangles and other shapes. Vector image is a file containing instructions for drawing it. Biggest advantage of vector graphics over bitmap is that a image can be enlarged or re-sized without any loss of quality. Some popular Vector file formats include WMF, EPS, AI, EMF, CDR
  • Color of the whole vector graphic or its part can be changed
  • Shape of vector image can be modified
  • Vector images can be transparent
  • Vector images can be shrunk or enlarged to any extend without any loss of quality
So when you look for a cool template for your next presentation, you should think for a while to decide if you need a template having bitmap images (JPG,PNG) or Vector images so that you can tweak them, re-size them, ungroup them to suit your presentation needs. Most of PowerPoint template providers gives you the option of downloading a template with either vector or bitmap images.
Read more »

Free Add ins for PowerPoint

Microsoft PowerPoint software is rich enough in features and functionally and fulfill almost all needs of PowerPoint users. However, there are few  use cases  which Microsoft has missed. Thankfully, there are few free or moderately priced Add-ins or Plug-ins available from Microsoft MVPs or independent software venders which will make your PowerPoint creation experience more enjoyable and hassle free.

Narration Timing Tweaker
PowerPoints narration tool offers an easy feature to record audio narration to go along with the slide show. However, if you need to fine tune any of the event times in the recorded show, you have to redo the whole slide again. Narration Timing Tweaker is a free add-in which eliminates that need altogether.

Fotolia Ribbon
With Fotolia PowerPoint add-in you can instantly add high-resolution photos, vectors, and illustrations using your free Fotolia account without leaving PowerPoint. You can Insert royalty free images in PowerPoint slides using Fotolias PowerPoint add-in.

Insert web pages in PowerPoint slides with PowerPoint Web Browser Assistant
PowerPoint Web Browser Assistant addin assists you in inserting live web pages on slides on your presentation. It uses Microsoft Internet Explorer to display the web pages.

PptPlex
Microsofts lab product pptPlex is the coolest PowerPoint add-in which lets you give presentations in a quite astonishing way.

Embed media
Microsoft Office PowerPoint does not provide a way to embed video and audio files (with a small exception that you can embed small .wav files). OfficeOne ProTools Embed Media works around that limitation and allows you to embed media files into the presentation. Since the media files are within the presentation, you no longer have to worry about breaking links to the external video files when you move or copy the presentation. PowerPoint will play your files as it would normally do. OfficeOne ProTools Embed Media is not required for playing the video and audio files.

Microsoft Producer
Microsoft Producer allows you to get an existing presentation file, capture and synchronize video and audio narration, add additional media content, and produce a unified set of content ready for viewing in a browser on your intranet , on the web or on a DVD.

Add progress bar with Thermometer
Adding a progress bar to your PowerPoint will let  your audience know at any given point that how much has been covered and how much still left. Thermometer for PowerPoint is a free add-in from Indezine that creates a thermometer style bar in the bottom area of the slide that shows how much of a presentation has progressed and how much more is remaining.

YouTube Video Wizard (YTV)
YTZ wizard lets you easily  insert YouTube videos into a PowerPoint slide. All you need to do is to provide the YouTube video URL that appears in the browser address bar, the rest is taken care of by the YTV Wizard.

Mouse Mischief
Mouse Mischief integrates into Microsoft PowerPoint 2010 and Microsoft Office PowerPoint 2007, letting you insert questions, polls, and drawing activity slides into your lessons.

Students can actively participate in these lessons by using their own mice to click, circle, cross out, or draw answers on the screen.

Flashback PowerPoint Add-in to rewind Flash movies in PowerPoint automatically
FlashBack will rewind the Flash movies inserted using the Shockwave Flash control automatically. Click here to read more and download.

authorSTREAM Desktop
authorSTREAM desktop lets you search and insert YouTube videos and images in your PowerPoint file from within PowerPoint.

authorPOINT Lite
authorPOINTTM Lite is a free PowerPoint to Flash Converter for converting PowerPoint files in Flash. authorPOINT Lite also lets you share your presentations online on the web through authorSTREAM.

iSpring
Similar to authorPOINT Lite, iSpring is a free PowerPoint to Flash converter which can handle animation effects, slide transitions, audio narrations, video and Flash objects in output.

Slide Finder
SlideFinder Add-in for PowerPoint 2007  lets you search the web for presentations and slides from within PowerPoint.

This is not the comprehensive list of free add-ins for PowerPoint. You can find more information about add-in and other PowerPoint resources at links below:


http://officeone.mvps.org/products.html
http://www.indezine.com/products/powerpoint/links.html#addin
Read more »

Monday, February 2, 2015

10 recipes for turning imperative Java code into functional Scala code

At LinkedIn, weve started to use the Play Framework, which supports not only Java, but also Scala. Many teams have opted to write their apps in Scala, so Ive spent a fair amount of time helping team members learn the language.


Most LinkedIn engineers are proficient in Java, so their early Scala code looks like a literal translation from Java to Scala: lots of for-loops, mutable variables, mutable collection classes, null values, and so on. While this code works, its not taking advantage of one of Scalas biggest strengths: strong support for functional programming.

In this post, I want to share 10 recipes for how to translate a few of the most common imperative Java patterns into functional Scala code.

Why functional programming?

Why would you want to make your code "functional"? This question has been asked and answered many times, so rather than recreating the answers myself, Ill point you to a couple good starting points:
  1. Why Functional Programming Matters by John Hughes
  2. Functional Programs Rarely Rot by Michael O. Church
Its worth mentioning that Scala is not a pure functional language, but it is still worth trying to make as much of your code as possible out of (a) small functions that (b) use only immutable state and (c) are side effect free. If you do that, I believe your code will generally be easier to read, reason about, and test.

Now, on to the cookbook!

Recipe 1: building a list

Lets start easy: we want to loop over a List of data, process each item in some way, and store the results in a new List. Here is the standard way to do this in Java:

Its possible to translate this verbatim into Scala by using a mutable.List and a for-loop, but there is no need to use mutable data here. In fact, there is very rarely a reason to use mutable variables in Scala; think of it as a code smell.

Instead, we can use the map method, which creates a new List by taking a function as a parameter and calling that function once for each item in the original List (see: map and flatMap in Scala for more info):


Recipe 2: aggregating a list

Lets make things a little more interesting: we again have a List of data to process, but now we need to calculate some stats on each item in the list and add them all up. Here is the normal Java approach:

Can this be done without a mutable variable? Yup. All you need to do is use  the foldLeft method (read more about it here). This method has two parameter lists (Scalas version of currying): the first takes an initial value and the second takes a function. foldLeft will iterate over the contents of your List and call the passed in function with two parameters: the accumulated value so far (which will be set to initial value on the first iteration) and the current item in the List.

Here is the exact same calculateTotalStats written as a pure Scala function with only immutable variables:


Recipe 3: aggregating multiple items

Ok, perhaps you can do some simple aggregation with only immutable variables, but what if you need to calculate multiple items from the List? And what if the calculations were conditional? Here is a typical Java solution:

Can this be done in an immutable way? Absolutely. We can use foldLeft again, combined with pattern matching and a case class (case classes give you lots of nice freebies) to create an elegant, safe, and easy to read solution:


Recipe 4: lazy search

Imagine you have a List of values and you need to transform each value and find the first one that matches some condition. The catch is that transforming the data is expensive, so you dont want to transform any more values than you have to. Here is the Java way of doing this:

The normal Scala pattern for doing this would be to use the map method to transform the elements of the list and then call the find method to find the first one that matches the condition. However, the map method would transform all the elements, which would be wasteful if one of the earlier ones is a match.

Fortunately, Scala supports Views, which are collections that lazily evaluate their contents. That is, none of the values or transformations you apply to a View actually take place until you try to access one of the values within the View. Therefore, we can convert our List to a View, call map on it with the transformation, and then call find. Only as the find method accesses each item of the View will the transformation actually occur, so this is exactly the kind of lazy search we want:


Note that we return an Option[SomeOtherObject] instead of null. Take a look at Recipe 7 for more info.

Recipe 5: lazy values

What do you do if you want a value to be initialized only when it is first accessed? For example, what if you have a singleton that is expensive to instantiate, so you only want to do it if someone actually uses it? One way to do this in Java is to use volatile and synchronized:

Scala has support for the lazy keyword, which will initialize the variable only when it is first accessed. Under the hood, it does something similar to synchronized and volatile, but the code written by the developer is easier to read:


Recipe 6: lazy parameters

If youve ever worked with a logging library like log4j, youve probably seen Java code like this:

The logging statement is wrapped with an isDebugEnabled check to ensure that we dont calculate the expensive diagnostics info if the debug logging is actually disabled.

In Scala, you can define lazy function parameters that are only evaluated when accessed. For example, the logger debug method could be defined as follows in Scala (note the => in the type signature of the message parameter):

This means the logging statements in my code no longer need to be wrapped in if-checks even if the data being logged is costly to calculate, since itll only be calculated if that logging level is actually enabled:


Recipe 7: null checks

A common pattern in Java is to check that a variable is not null before using it:

If youre working purely in Scala, and have a variable that might not have a value, you should not set it to null. In fact, think of nulls in Scala as a code smell.

The better way to handle this situation is to specify the type of the object as an Option. Option has two subclasses: Some, which contains a value, and None, which does not. This forces the programmer to explicitly acknowledge that the value could be None, instead of sometimes forgetting to check and stumbling on a NullPointerException.

You could use the isDefined or isEmpty methods with an Option class, but pattern matching is usually cleaner:


The Option class also supports methods like map, flatMap, and filter, so you can safely transform the value that may or may not be inside of an Option. Finally, there is a getOrElse method which returns the value inside the Option if the Option is a Some and returns the specified fallback value if the Option is a None:


Of course, you rarely live in a nice, walled off, pure-Scala garden - especially when working with Java libraries - so sometimes youll get a variable passed to you that isnt an Option but could still be null. Fortunately, its easy to wrap it in an Option and re-use the code above:


Recipe 8: multiple null checks

What if you have to walk an object tree and check for null or empty at each stage? In Java, this can get pretty messy:

With Scala, you can take advantage of a sequence comprehension and Option to accomplish the exact same checks with far less nesting:


Recipe 9: instanceof and casting

In Java, you sometimes need to figure out what kind of class youre dealing with. This involves some instanceof checks and casting:

We can use pattern matching and case classes in Scala to make this code more readable, even though it does the same instanceof checks and casting under the hood:


Recipe 10: regular expressions

Lets say we want to match a String and extract some data from it using one of a few regular expressions. Here is the Java code for it:

In Scala, we can take advantage of extractors, which are automatically created for regular expressions, and pattern matching using partial functions, to create a much more readable solution:

Got some recipes of your own?

I hope this post has been helpful. Its worth noting that the recipes above are only one of many ways to translate the code; for example, many of the List examples could have also been done with recursion.

If youve got suggestions on how to make the examples above even better or have some handy recipes of your own, leave a comment!

Read more »

Friday, January 30, 2015

3ds Max 2011 Video Tutorials for Beginners

3ds Max 2011 is a powerful, integrated 3D modeling, animation, rendering, and compositing tool. Its widely used in diverse industries such as architecture, industrial design, motion pictures, gaming, and virtual reality. If youre interested in learning how to use this powerful application, here are some 3ds Max 2011 video tutorials for beginners from 3ds Max 2011 Essential Training from Lynda.com. Topics covered in this course include creating motion graphics, shading objects with materials and maps, setting up camera and scene layout, lighting basic scenes, animating particle systems, and more.


3ds Max 2011
3ds Max 2011 Essential Training by

START LEARNING TODAY


3ds Max 2011 Essential Training - Welcome


Understanding dependencies - 3ds Max 2011 video tutorials for beginners


Applying a bevel modifier - 3ds Max 2011 video tutorials for beginners


Soft-selecting sub-objects with Volume Select - 3ds Max 2011 video tutorials for beginners


Shaping the model - 3ds Max 2011 video tutorials for beginners


Using SwitfLoop - 3ds Max 2011 video tutorials for beginners


Creating a U-loft surface - 3ds Max 2011 video tutorials for beginners


Using bitmaps - 3ds Max 2011 video tutorials for beginners


Using Camera Pan, Truck, and Dolly - 3ds Max 2011 video tutorials for beginners


Setting spotlight hotspot and falloff radius - 3ds Max 2011 video tutorials for beginners


Using Set Key mode - 3ds Max 2011 video tutorials for beginners


Linking objects - 3ds Max 2011 video tutorials for beginners


Assigning a link constraint - 3ds Max 2011 video tutorials for beginners


Adjusting particle parameters - 3ds Max 2011 video tutorials for beginners

START LEARNING TODAY!
or

Course Information

Training Provider: Lynda.com
Title: 3ds Max 2011 Essential Training
Author: Aaron F. Ross
Duration: 10hrs 4mins
Date of release: 26 May 2010

Chapter 1. Getting Started
Using the Custom UI and Defaults Switcher
Setting local file paths to relative
Using project folders

Chapter 2. The 3ds Max Interface
Getting familiar with the interface
Touring the command panels
Creating primitives
Navigating the viewports
Using hotkeys
Choosing shading modes
Configuring the viewports
Transforming objects
Using the toolbars
Using the Modify panel

Chapter 3. Modeling Basics
Surveying different modeling methods
Setting units
Setting home grid dimensions
Understanding the Level of Detail utility
Working with the Modifier Stack
Understanding dependencies
Collapsing the Modifier Stack
Working with sub-objects

Chapter 4. Modeling with Splines
Creating shapes
Creating lines
Converting a shape to an editable spline
Transforming editable spline sub-objects
Using different types of vertices

Chapter 5. Lofting
Lofting a vase
Setting loft parameters
Editing the path and shapes
Manipulating loft sub-objects
Adding a scale deformation
Adding a shell modifier
Smoothing polygon edges

Chapter 6. Modeling for Motion Graphics
Setting up the project and scene layout
Creating a backdrop profile line
Using Editable Spline Fillet
Extruding shapes
Creating text
Applying a bevel modifier
Choosing bevel parameters
Using Display All Triangle Edges
Adjusting spline interpolation
Deforming beveled objects
Exporting paths from Adobe Illustrator
Importing Illustrator paths to 3ds Max

Chapter 7. Polygon Modeling
Setting up the scene
Creating chamfer boxes
Smoothing edges
Using the Array tool
Grouping objects
Modeling lines
Using the Sweep Modifier
Soft-selecting sub-objects with Volume Select
Removing polygons with Delete Mesh
Clearing a sub-object selection with Mesh Select
Adding randomness with the Noise Modifier

Chapter 8. Subdivision Surface Modeling
Understanding subdivision surfaces
Creating a box and converting to editable poly format
Using the Symmetry Modifier
Working with TurboSmooth
Extruding polygons
Editing edge loops
Shaping the model
Baking subdivisions
Optimizing polygon Level of Detail

Chapter 9. Polygon Modeling with Graphite
Understanding the graphite tools within Editable Poly
Using the Graphite Ribbon interface
Using traditional editable poly tools within Graphite
Adjusting detail with Remove and Cut
Using SwitfLoop
Constraining sub-object transforms
Attaching polygon meshes to a single object
Bridging parts of a mesh

Chapter 10. NURBS Modeling
Understanding NURBS
Creating NURBS curves
Creating a U-loft surface
Editing curves and surfaces
Setting surface approximation

Chapter 11. Materials Basics
Using the Material Editor
Choosing a material type
Choosing a shader type
Adjusting specular parameters
Setting opacity
Understanding procedural Maps and bitmaps
Using bitmaps
Navigating shader trees
Tracking scene assets
Creating simple UVW mapping
Adding reflections with a Raytrace map
Creating an environment
Mapping a bump channel

Chapter 12. Camera Basics
Creating cameras
Understanding target and free cameras
Using Camera Pan, Truck, and Dolly
Adjusting the field of view
Understanding aspect ratio
Showing safe frames
Choosing render output size

Chapter 13. Lighting Basics
Understanding CG lighting
Understanding standard and photometric lights
Creating a target spotlight
Enabling viewport hardware shading
Previewing renderings with ActiveShade
Adjusting intensity and color
Controlling contrast and highlights
Setting spotlight hotspot and falloff radius
Choosing a shadow type
Optimizing shadow maps
Using area shadows
Creating omni lights

Chapter 14. Keyframe Animation
Understanding keyframes
Setting time configuration
Choosing set key filters
Using Set Key mode
Editing keyframes in the Timeline
Using Auto Key mode
Creating animation in passes
Animating modifier parameters
Working in the dope sheet
Editing function curves
Looping animation

Chapter 15. Hierarchies
Understanding hierarchies
Understanding reference coordinate systems
Editing pivot points
Linking objects
Using the Schematic view
Preventing problems with scale
Animating a hierarchy
Fine-tuning the animation

Chapter 16. Controllers and Constraints
Understanding controllers
Applying path constraints
Assigning a link constraint
Using the Motion panel
Animating constrained objects

Chapter 17. Special Effects
Understanding particle systems
Emitting particles from an object with PArray
Adjusting particle parameters
Binding particles to a gravitational force
Colliding particles with a POmniFlector
Creating a particle material
Mapping opacity with a gradient
Assigning a material ID G-Buffer channel
Creating a lens effect glow

Chapter 18. Scanline Rendering
Understanding image sequences
Setting render options
Compressing an image sequence to a movie
About Lynda.com

Lynda.com is an online video training provider with over 1000 courses covering a wide array of topics - 3D, video, business, the web, graphic design, programming, animation, photography, and more. They produce top quality video tutorials with the best industry experts as your instructors. With a subscription, you can log-in at any time, and learn at your own pace. New courses are added each week, and you will receive a certificate of completion for each course that you finish.

Start learning today!
If you enjoyed the sample videos above and want to access the entire 3ds Max 2011 Essential Training course, you can sign up for a lynda.com membership. Your membership will allow you to access not only this course, but also the entire lynda.com library for as low as $25 for 1-month. Their training library has over 1000 courses with 50,000+ video tutorials. No long-term commitment required. You can cancel your membership at any time.



Not yet convinced? Try a FREE 7-day trial.
As a special promotion, visitors of this site can get a FREE 7-day trial to lynda.com. This free trial gives you access to their entire training library of over 1000 courses.


To watch the complete set of these 3ds Max 2011 video tutorials for beginners, become a lynda.com member today. Your membership gives you access to this entire course as well as their entire library of over 1000 courses.

START LEARNING TODAY
Read more »

Wednesday, January 21, 2015

Tubemate Youtube Downloader for Android Smartphones Tablets

Tubemate 

Youtube Downloader for Android Smartphones & Tablets.

Download Android apps for free

download paid android apps for free

Tubemate is best android app available to download youtube videos. Tubemate apk allow you to download your favorite videos from YouTube . You can choose Video format ,Video size and result by your choice. You can download videos in ,3GP,MP4,FLV and other for formats . The most authentic app to download youtube videos for smartphones and android tablets. Tubemate apk give you freedom of quick access youtube videos,search,download and share your videos to Google buzz and twitter. Even more you can convert videos to mp3Tubemate allow you to download videos in background while watching your favorite songs or videos online. Download take place in background and does not disturb you. Tubemate android app grab direct video link,gives you resume option for broken links,fast download speed,multi videos downloading and much more. You can download paid android app for free. 

ScreenShots : 


download paid android apps for free

download paid android apps for free

download paid android apps for free



APK Size: 2.4 MB
Version : 2.2.0

DOWNLOAD ANDROID APP
Read more »

Monday, January 19, 2015

Android Secret Codes Secret Menu for Testing Smartphones

Android Secret Codes, Secret Menu  for Testing Smartphones 

Android secrete codes are used to display hidden menus in smartphones. You can check alot of hidden options inside phones with help of these code. 

*2767*3855#
Hard Reset . This will delete all user data.

*#*#4636#*#*
This code will show 5 hidden menu . 
Battery information
Phone information
Battery Usage
History
Wifi

*#06#
To Check the Imei Number.

*#1234#
With this code you can view SW version PDA CSC and  MODEM

*#*#34971539#*#*
Unlock Camera Detail . 

*#197328640#
To activate the Service Mode

*#0228#
For ADC Reading
*#0842#
Testing Vibrate Motor Test Mode

*#*#273283*255*663282*#*#*
This code will open back up file system. where you can copy your data 

*#0782#
Real Time Clock Test code 

*#9090#
To diagnostic configuration

*#7284#
USB I2C Mode Controller

*#0283#
Packet Loopback

*#9900#
Try System Dump Mode

*#7780#
For Factory Reset. Will remove download apps,OS,Google account setting.

*#7353#
Testing Quick Test Menu

*27674387264636#
Sellout SMS


For testing Bluetooth , GPS,Wifi try these codes. 


*#*#232338#*#*   
MAC address for WIFI

*#*#232331#*#* 
 Bluetooth testing 

*#*#232337#*#  
Bluetooth device address

*#*#232339#*#* OR *#*#526#*#* OR *#*#528#*#*  
WLAN testing. You can use menu button to start various tests. 

*#*#1472365#*#*  
GPS testing

Various and Important factory test with these codes. 


*#*#0673#*#* OR *#*#0289#*#* 
 Melody test

*#*#2664#*#* 
 Touch screen test

*#*#0588#*#* 
 Proximity sensor test

*#*#3264#*#* 
 RAM version

*#*#2663#*#* 
Touch screen version

*#*#0842#*#* 
 Device test (Vibration test and Back Light test)

*#*#0*#*#* 
 LCD test

*#331# 
 Outgoing International SMS status

*#43#  
Call waiting status

*#21# 
 Unconditional Call Forwarding status

*#30# 
 Incoming caller ID status

*#31#  
outgoing caller ID status

*#35#  
incoming SMS status

*#351# 
Incoming SMS If Roaming status.

*#33#  
Outgoing SMS status


Note :  All these codes are not tested . I have tested some of them. I do not take any responsibilities for any loss. 

Read more »

Saturday, January 17, 2015

Adobe Photoshop CS6 Video Tutorials for Beginners

Adobe has just recently released Creative Suite 6, and with it comes a new version of the highly popular Adobe Photoshop photo editing software. Adobe Photoshop CS6 comes with new improvements to Camera RAW, the layers panel, adjustment techniques, content-aware retouching, and more. If youre new to Photoshop, I recommend that you watch the free videos below. These are Adobe Photoshop CS6 video tutorials for beginners, and will most definitely help you get started on learning how to use this amazing application.

What is Adobe Bridge? - Adobe Photoshop CS6 Video Tutorials for Beginners


Viewing images in Full Screen Preview mode - Adobe Photoshop CS6 Video Tutorials for Beginners


Saving images in collections - Adobe Photoshop CS6 Video Tutorials for Beginners


Using smart collections - Adobe Photoshop CS6 Video Tutorials for Beginners


Comparing RAW and JPEG files - Adobe Photoshop CS6 Video Tutorials for Beginners


Fixing color casts with the White Balance tool - Adobe Photoshop CS6 Video Tutorials for Beginners


Retouching blemishes with the Spot Removal tool - Adobe Photoshop CS6 Video Tutorials for Beginners


Saving variations within a single file with the Snapshot command - Adobe Photoshop CS6 Video Tutorials for Beginners


Understanding Resize vs. Resample - Adobe Photoshop CS6 Video Tutorials for Beginners


Preserving important elements with Content-Aware Scale - Adobe Photoshop CS6 Video Tutorials for Beginners


Introducing adjustment layers - Adobe Photoshop CS6 Video Tutorials for Beginners


Body sculpting with Liquify - Adobe Photoshop CS6 Video Tutorials for Beginners


ARE YOU INTERESTED IN LEARNING MORE?
or

These videos are from a 10-hour video training series called Photoshop CS6 Essential Training, and is produced by lynda.com, one of the best software training providers on the web today. Photoshop CS6 Essential Training has 22 informative chapters that will help you get the most out of Photoshop as a beginner. You can learn more about the course by visiting the course details page. As a visitor of this site, you can also sign-up for a free 7-day trial pass to gain full access to the course, along with the ENTIRE lynda.com training library of over 1000 courses. If you want to keep learning after the trial, lynda.com offers an affordable subscription for $25/month. A subscription gives you access to the entire training library at any time so you can learn at your own pace. So sign-up for a lynda.com membership today to start watching this complete set of Adobe Photoshop CS6 video tutorials for beginners.

CHAPTER LIST
  1. It Begins in Bridge
  2. Whittling Down to Keepers
  3. Camera Raw Essentials
  4. Fixing Common Problems Using Camera Raw
  5. Retouching and Creative Techniques in Camera Raw
  6. Automating Camera Raw
  7. Photoshop Interface Essentials
  8. Documents and Navigation
  9. Digital Image Essentials
  10. Cropping and Transformations
  11. Working with Layers
  12. Selections and Layer Masks
  13. Tone and Color with Adjustment Layers
  14. Options for Tone and Color Correction
  15. Retouching Essentials
  16. Combining Multiple Images
  17. Essential Filters
  18. Essential Blend Modes
  19. Type Essentials
  20. Layer Effects and Styles
  21. Sharing Images
  22. Video in Photoshop
MORE PHOTOSHOP CS6 TRAINING
  • Photoshop CS6 One-on-One: Fundamentals
  • Photoshop CS6 for Photographers

START LEARNING TODAY!

OR

If you enjoyed these sample videos from Photoshop CS6 Essential Training, then sign up for a lynda.com membership or try a free 7-day trial pass first. This trial pass gives you access to all the Adobe Photoshop CS6 tutorials in this training course plus ALL of the training videos in the entire lynda.com library.

START LEARNING TODAY!
or
Read more »