json

extract object of responseJSON

I solved a synchronous problem with ajax that way to use deferred function. I get as an response now big object with statusResponse etc etc inside.

My JSONP Objects are also successfully stored in responseJSON Object. How Can I extract it or save it in another variable ?

 

var web = new webService();
web.init(app.info);

and here the class

function webService() {

this.init = function(app) {

    var d = this.connect(app).done(function(){});

    console.log(d);

}

this.connect = function(app) {
    console.log(app);

    return $.ajax({
        url: 'working url',
        dataType: 'jsonp',
        jsonp: 'jsoncallback',
        timeout: 5000
    });
}

}

Credit :stackoverflow.com
Visit Author
war android and IOS

WAR between android and IOS

When it comes regarding war in mobile OS , the line between Android and iOS is starting to clear quickly. Choosing a smartphone or tablet platform should be a thoughtful decision because changing iOS to Android or vice versa will require you to buy new applications on Google Play Store (or Apple application ) . Android is now the world’s most communications smartphone platform only uses and is used by many phone manufacturers . iOS only used on Apple devices , the iPhone zoals

Interface:

Both use iOS and Android touch interfaces thathave a lot in common – swiping , tapping and pinch- and -zoom . Both operating systems for a boot screen, which is similar to a desktop computer . While an iOS home screen contains only rows of icons of applications , Android allows the use of widgets , all the information that is displayed auto – zoals update time and email. The user interface of iOS has a pier where users can deposit your most frequently used applications .

A status bar runs on top on both iOS and Android , which provides information such time, Wi -Fi or cellular signal , and battery life in the Android status bar shows the number of emails or Useful newly received messages .

The video features of Android Jelly Bean and iOS 6.x compared to the Samsung Galaxy S3 and iPhone 5 respectively

Applications available on Android vs iOS

Gets Android apps from Google Play, Hort All that has 600,000 apps available , most whichwill run on tablets. However, some Android devices, Kindle Fire zoals utilize separate applications stores thathave a smaller selection of apps available . Most originally iOS – only applications are already available for Android, including Instagram and Pinterest, and shop more open means of Google applications other unique applications are also available , including Adobe Flash Player and BitTorrent . Android provides access to votes based on Google , YouTube and Google Docs zoals applications.

The Apple App Store offers 700,000 applications hört 250,000 or All are available for the iPad . Most developers prefer to develop games for iOS before developing for Android. Since a recent update , the application of Youtube has become available on iOS, but iOS still offers some applications, including the popular exclusive game Infinity Blade and Twitter client Tweetbot .

The conclusion by comparing Google and Apple app stores is that the most popular applications are available for both platforms. But for tablets , there are more applications designed specifically for the iPad, while Android tablets often versions of Android smartphone applications will expand . Often , developers of new companies focus on one platform ( iOS usually ) when you first launch your application for smartphones Because they do not have the resources to serve multiple platforms from the start. For example, the popular Instagram application started with iOS and Android application came much later .

Device Selection :

A wide variety of Android devices are available in many different price points , sizes and hardware capabilities .

iOS is only available on Apple devices : iPhone as a phone, a tablet like the iPad and the iPod Touch as an MP3 player . These tend to be more expensive than the equivalent hardware that uses Android.

Web Browsing :

Android uses Google Chrome as your web browser while using iOS Safari . Both Internet browsers are similar in quality and capabilities and Google Chrome is also available for iOS . Safari is not available for Android.

security:

Android applications are isolated from the rest of system resources , unless a user specifically grants application access to other features. This makes the system less vulnerable to errors , but revealing confusion means that many applications request unnecessary permissions. The most widespread malware on Android is one where the text messages are sent to additional numbers without user awareness charging and sending personal information to unauthorized third parties . As the operating system is the most popular smartphone , it is more likely to be the focus of attacks.

Malware writers are less likely to write applications for iOS, because Apple reviewing all applications and verification of identity or publishers of applications. However, if an iOS device is jailbroken and installed from outside the Apple store applications , it may be vulnerable to attacks and malware.

iOS pros and cons:

Massive ecosystem of applications : clear advantage for tablet apps on smartphones while the popular applications are available for both platforms generally
Improved integration with Facebook and Twitter is easier to publish and share updates on social networks using iOS Android Due to the depth of synthesis platforms are integrated with iOS .
iOS only apps like Passbook , FaceTime and Square mobile payment application (available in iOS 3GS , 4,4 S , 5 and up , useful only for a limited number of Android phones )
Interface is locked: limited customization options for your home screens , only rows of application icons are allowed. There are no third-party applications are pre – installed by the wireless service provider . Users can only install apps from the App Store
Software updates : Apple offers software updates for all hardware thathave able to handle the new software devices.

Pros and cons of Android:

Massive Selection of hardware : A large number of Android devices are available at different prices with different hardware capabilities , screen sizes and features.
Highly customizable user experience : The home screen can be personalized with not only the application icons , but the widgets allow users to stay connected That or informed . Other examples include SwiftKey , All the keyboard of your Android smart phone and applications that emulate old games consoles modified. Google Apple has fewer restrictions on what type of reproduction allows applications store. For more , you can choose to install Android apps from different places to shop Google Play.

 ANDROID  IOS
gets Yes No, except in NotificationCenter
Company/Developer Google Apple Inc.
OS family Linux OS X, UNIX
Customizability A lot. Can change almost anything. Limited unless jailbroken
Initial release September 23, 2008 July 29, 2007
Programmed in C, C++, java C, C++, Objective-C
Dependent on a PC or a Mac No No
Easy media transfer depends on model with desktop application
Source model Open source Closed, with open source components.
Open source Kernel, UI, and some standard apps The iOS kernel is not open source but is based on the open-source Darwin OS.
Call features supported Auto-respond Auto-respond, call-back reminder, do not disturb mode
Internet browsing Google Chrome (or Android Browser on older versions; other browsers are available) Mobile Safari (Other browsers are available)
Available on Many phones and tablets, including Kindle Fire(modified android), LG, HTC, Samsung, and others. iPod Touch, iPhone, iPad, Apple TV (2nd and 3rd generation)
Interface Touch screen Touch screen
Messaging Google Hangouts iMessage
Voice commands Google Now (on newer versions) Siri
Maps Google Maps Apple Maps
Video chat Google Hangouts Facetime
App store Google Play – 1,000,000+ Apps. Other app stores like Amazon and Getjar also distribute Android apps. Apple app store – 1,000,000+ Apps
Market share 75% of smartphones, 3.7% of tablets in North America (as of Jan’13) and 44.4% of tablets in Japan (as of Jan’13). In the United States in Q1 2013 – 52.3% phones, 47.7% tablets. 14.9% of smartphones, 87% of tablets in North America (as of Jan’13) and 40.1% of tablets in Japan (as of Jan’13)
Available language(s) 32 Languages 34 Languages
Latest stable release Android 4.4 Kitkat (October, 2013) 7.0.4 (November 14, 2013)
Device manufacturer Google, LG, Samsung, HTC, Sony, ASUS, and many more Apple Inc
Upcoming releases/Release dates Unknown Unknown
Working state Current Current
eye  glass from google

new google eye glass

Many of us glued to our smartphones spend a significant part of our day , or other devices . Reading the time , check out the media or otherwise immerse in the large amount of data at our disposal , including it’s hard to do something that will usually attention.With us much new information about Google Glass , we fully support this ” we must consume to know “function – has been renewed.

Google Glass we stop able to do other things while the Internet is used outboard brains , giving a way , this would provide a solution. Glass ” there when you need it and when you’re not out of the way . ” Because, according to Google is made

The first units of glass for the total consumption in April and Google to tune the device using the period of semi – public testing and getting used to the world after (they had to enroll in the lottery for the privilege WHO) , the early adopters Wearables Have Been together for consideration

samsung galaxy grand 2  - coming soon

Samsung Galaxy Grand 2 coming

Samsung launched the Galaxy 2 large in India, with an output in the first week of January. So far, the company has given a price range, and not a price of Galaxy Grand 2, saying it will be available between Rs 22900 and Rs 24900.

samsung-galaxy-grand-2-front-635
Features:

The Samsung Galaxy Tab 2 runs Android 4.3 large Jelly Bean out-of-the-box. The Grand Galaxy 2 is a dual-SIM device with support GSM + GSM. It has a HD TFT screen of 5.2 inches with a resolution of 720×1280 pixels.

Measures smartphones 146.8×75.3×8.9mm and weighs about 163 grams. Galaxy 2 large packs a 2600mAh battery that can provide up to 17 hours of talk time, although no detailed latency.

The Samsung Galaxy Grand-2 will be available in black, pink and white variants in some areas.

xperia-z1

Top 5 best android india phone – 2014

xperia-Z1-hero-white

Sony Xperia Z1:

Better Android smartphone in general to buy today. Own it for 800 Snapdragon processor, a 20MP camera great, best of all Android phones in India today. 1080p display crisp and vivid.

google_nexus_5
Google Nexus 5:

The most Android phone if you want the pure Android experience, no skin, no custom launchers and not the time of unbearable waiting for the next update of Android.

LG G2
LG G2

Blazing faster performance, best smart display all Android handsets in India, compact form factor and a long service life of the battery, the camera shutter placement innovative, to 32GB of storage device.

htc-one-black-and-white
HTC One:

Best Android smartphone in the market research. Excellent building and designing, fast performer with Blinkfeed interface to aggregate content.

The-Wonder-Tent

New Gadget – Wonder Tent

New inventions and gadgets are regularly published by curiosity and a desire to improve their lifestyle and their easier and more enjoyable population activities. I recommend some cool inventions I loved and I think you’ll like it too , and maybe even buy if you are a fan of gadget !
Wonder Tent  A New Gadget
The camp is an opportunity to leave the cosmopolitan world , and a relaxing quality without any form of technology, in a natural environment with products of Mother Nature. So basically , camping is a kind of leakage of the technological world , but ( there is a but ) Orange has a sun awning , this may be the exception in your camping trips developed . It seems to be the “tent of the future” , and it ensures that all electronic devices that you take, including equipment , will work . Together with some consultant American product design , kaleidoscope, creating these modern tent that converts solar energy into electrical energy for our gadgets, used by a bag of wireless charging . This ” Miracle tent ” also has an integrated GPS technology which is very useful in situations where campers lose tent. You can send a text message to his tent and tell him , glowing more , so it is always visible and easy to find . It also has a control panel that indicates the amount of energy produced and the amount consumed. the great feature of this tent is that it is a heater starts to work after the temperature inside the tent under a previously established level . this invention brings camping to a new level , which seems to be the future of this “natural” activity.

Nokia BH-121

Nokia BH-121

Nokia Guru bluetooth headset gets official as the BH-121, own Live Tile in tow

Nokia BH-121 NOKIA

Nokia BH-121 NOKIA

Nokia’s BH-121 Bluetooth stereo headset is now official. The Nokia Stereo Headset BH-121 Bluetooth published a recommended retail price of € 39, which is around Rs 3300, and will be available from December. However, Nokia did not reveal country / where Nokia BH-121 Bluetooth stereo headset available specific regions. The highlight of the Nokia BH-121 Stereo Bluetooth NFC support. Stereo headset can be paired with your smartphone via NFC and a stereo headset comes with several curiously points connect more than one device. In addition, the Nokia Bluetooth Stereo Headset BH-121 also supports Bluetooth pairing for no NFC smartphones.

Nokia BH-121

The Nokia BH-121 measured 39x39x12mm and can be fixed to the clothing by using the locking clip. It will be available in Black, cyan, red, and yellow. The BH-121 LED notification indicator for battery status also sports.

Should i build my own CSS Framework or need to create my own customized one ?

We do not need to create custom CSS grid, framework or whatever you like to call it. There are already so many professional frameworks are availabe. We dont need to waste time on those which is already available in marketing with remove all those bugs which may occur in our custom css framework.

How ever there are advantages and disadvantages to use third party css framework. Before use it, think that is it required to use it for small task or not. Suppose your site is simple and you can create your website in responsive with few links of code, then i suggest dont use css framework, because generally css framworks have large files. In this case, instead of get benefit from css framework, it may overload on your page even if it is simple. So before use it you just think yourself. I am not telling that css framework is bad. It is already good to use it, but it depends on situation and your website design layout. In market there are so many css framework like  Twitter Bootstrap Grid module, Zurb Fundation, 960.gs, The 1140px Grid, and more.

I suggest to create you own css framework and use it if possible in your small scale website design. You website will load very very fast if your css will be in small size. You can measure it when you will use both css framework and your custom css. Finally, its your own choise what you want to use.

how to use and save php array in cookie using serialize and unserialize

Hello friends,

As an php developer , many times you may need to store php array in cookies. Am i right ?

If you are creating any shopping cart, then you may have requirement to store billing and shipping address in cookies.  To minimize code we like to store billling and shipping address in array. But you may have face problem about how to store php array in cookies. I had also felt same problem. After spend some times, i have founded a very easy steps. Perhaps you may like it.  Many of you had already tried serialize and unserialize php array  in cookies, but may be failure to get perfect results.

How to store php array in cookies :

$phparray=array(“name”=>”alex”,”phone”=>”123456789″);
setcookie(‘mycookiename’, serialize($array) ); 

Just convert php array into serialize as above to store in cookie

To get back php array from cookie, just use given below code

$data = $_COOKIE['mycookiename'];
$data= html_entity_decode($data);    // Important
$myarray= unserialize($data);

Output of $myarray and $phparray will be same. You dont require jsonencode or decode. 

Is it not easy solutions ? !!

 

 

css-shadow

How to create shadow using pure css property

Hello Friends,

Now html5 and css3 are more important in web design. There are some browser where it does not fully support html5 and css3 like internet explorer. However microsoft trying to support fully html5 and css3 tags like firefox and chrome.   At present i am not comparing any browser, because our aim to  create shadow in div box using pure css property. So now lets see our main goal.

Following is a simple css scripts.

div
{
box-shadow: 10px 10px 5px #888888;
}

This will add shadow in each div box.   but suppose you want to shadow in any specific div then you can do as under

<style>#mydiv { box-shadow: 10px 10px 5px #888888; }</style>

<div id=”mydiv”> this is content of div </div>
supports

Primary syntax :

box-shadow: h-shadow v-shadow blur spread color inset;

The box-shadow property attaches one or more drop-shadows to the box. The property is a comma-separated list of shadows, each specified by 2-4 length values, an optional color, and an optional inset keyword.  The box-shadow property allows designers to easily implement multiple drop shadows (outer or inner) on box elements, specifying values for color, size, blur and offset.

With many other ‘experimental’ CSS3 properties, you’ll need to use the following prefixes to support Mozilla and Webkit:

#example1 {
-moz-box-shadow: 10px 10px 5px #888;
-webkit-box-shadow: 10px 10px 5px #888;
box-shadow: 10px 10px 5px #888;
}

Understanding shadow property with dia gram :

shadow css property

Live example :

#testdiv{

    box-shadow: 0 0 5px 5px #888888;
    float: left;
    height: 65px;
    padding:7px;

text-align: center;

    width: 160px;
    display :block;

background-color: #EEEEEE;
}

 

 

this is test this is test this is test

Useful CSS Properties, Techniques and more