Posts

Showing posts from 2014

How to reset Password for Teletalk MiFI or ZTE MF65 Router

The default password is password or admin depending on your carrier.  If you have changed and forgotten  the password then you need to restore the device to factory defaults:  From the powered up state press and hold the power key and the WPS  key together for 8 seconds until the power LED goes off. The device will  reset. Source  

Google launches Google Fit app

Image
Google launches Google Fit app for Android, keeping all your fitness data in one place and that can be a great answer to Apple Health   Google Fit will track everything, while serving up stats of your week-to-week and day-to-day activities like Apple Health. You can integrate different apps like  Nike, HTC, LG, RunKeeper, Withings, Motorola, Noom, Runtastic and Polar. Suppose you o prefers to use the Runtastic Orbit fitness band when running and a Moto 360 smartwatch the rest of the time, you can centralize all their data within Google Fit. So have a look.

Do you know why your recorded voice sound is different to you?

We hear sound through two pathways.  The first is air conduction. In air conduction sound passes through the air and into the ear canal, where it vibrates the eardrum. These vibrations are transferred to a sensory organ – the cochlea – through a chain composed of three tiny bones: the malleus, incus and stapes. Secondly we also hear through bone conduction, – at least, we hear our own voices. When we speak, vibration of the vocal cords engenders a companion vibration in the bones of the skull, stimulating the cochlea. This pathway augments the air conduction pathway. But when we hear our own recorded voice the bone conduction pathways is eliminated and sound is different to you.

While loop VS for loop in PHP

For loop for (start value ; End value; Increment){ //do something } Example: for ($a = 10; $a <100 a="" br="" echo="">"; } While loop start value while (End value){ //do something Increment } Example: $a = 10; while ($a<100 a="" br="" echo="">"; $a = $a +10; }

Using Google Inbox - It's a combination of Gmail and Google Now

Image
Today, afternoon I got invitation from Google to use it's new wave "Inbox". Now emailing is more attractive and smarter. Inbox bundled you email in different category. Inbox Logo on Phone  Inbox -Home Page From Android                                Inbox -Home Page From Desktop  Bundled in the Inbox 

Google Inbox

Google Inbox Just awesome

Apple Special Event Summary. October 16, 2014

Image
iPad Air 2  1.Coming with Retina display, New iSight and FaceTime cameras, 2nd generation A8X processor and CPU is faster than 40% from currently available in market. 2. Graphic performance is 180% and it is slimmer than pencil.   3. Wifi speed is 866 Mbps. that means 2.8 percent faster than previous 4. Touch ID like iPhone -5 and iPhone -6 iPad Mini 3  Comes with every feature of   iPad Air 2 except display size OS X Yosemite  New operating  OS X Yosemite available to download from 16, October, 2014. It comes with new icon Apple Pay Apple claims that Apple Pay is "Your wallet. Without the wallet." And launching next Monday. Here is how Apple Pay Working Images source:Apple's Website  

Find Out Your Google Search History

Its amazing, Google saves every search term that you have ever search into their search boxes. They even keep a log of every Google ad that you have clicked on various websites. Moreover for Google Now users also can  see a log of all your audio search queries. Just Click here to see Google Search history  Your audio search query 

File Comparison in Windows with FC command

Image
There is a nice command "FC" in windows to compare or difference between two file. Step:1 According to the picture below press windows key and type "cmd" on search box and by clicking on "cmd" open it   Step:2 Go to the file directory (the location of your files to be compared). My files are in "check" folder on desktop  and file's name are file1.html and file2.html. So I typed cd desktop/check If your files are in another location, then you have to go there Finally type "FC file1.html file2.html" and press Enter. Windows will show you difference between two files.

Launching Sublime Text from command-line Windows

Lets see step by step Windows: 1. Download and Install Sublime Text and git 2.Find the directory where Sublime is installed.  If you do not change the directory during installation this should be here   C:/Program\ Files/Sublime\ Text\ 2/sublime_text.exe .  To confirm, that your directory is right, run this  ls C:/Program\ Files/Sublime\ Text\ 2  within Git Bash.  You should see  sublime_text.exe  listed.  If you get the error  No such file or directory , Sublime is installed somewhere else for you and you'll need to find it.  For example, in 64 bit PC it might be under C:/Program\ Files\ (x86) 3.Open Git Bash and run this   echo 'alias subl="C:/Program\ Files/Sublime\ Text\ 2/sublime_text.exe"' >> ~/.bashrc Finally Close and re-open Git Bash. Typing  subl  in Git Bash should now open Sublime.

How to Match with List in Python

months = ['January',           'February',           'March',           'April',           'May',           'June',           'July',           'August',           'September',           'October',           'November',           'December']           def valid_month(month):         if month in months:         return month     else:         return None

How to Find Leap Year with Python

Leap Year def how_to_find_leap_year(year): if (year%4==0 and (not year %100==0 or year%400==0)): return "Leap Year" return "Not Leap Year" print how_to_find_leap_year(1900)  Output  Not Leap Year

Find String in String with Python (sentence, word)

def find_your_word_from_sentence(sentence, word): n=0 while n check = sentence.find(word[n]) if check ==-1: return "Your Word is not found in given sentence." n=n+1 return word print find_your_word_from_sentence('This is city of technolgy, piano and violine also found here', 'techvolatile') Output: techvolatile

Facebook Shedule Status Update

Image
Recently Facebook added a new option Shedule Status Update for Facebook Page only. Hoping that Facebook Shedule Status Update option will come very soon for personal account. If you have any Facebook you can try it.

Find the Biggest Number Witth Python

Option 1: def biggest(a,b,c):     return max(a,b,c) print biggest (43,67,89) Option 2: def bigger (b,c):     if b>c:         return b     return c def biggest(a,b,c):         return bigger(a,bigger(b,c)) print biggest(48,60,17) Both is right

The Biggest Resume Mistakes According to Google's Head of HR

Google Head of HR Laszlo Bock reviewed more than 20,000 resumes in his carrier. He point-out five mistakes. Those are:   Typos      Length      Formatting      Confidential information      Lies According to him about Resume Length : " A good rule of thumb is one page of resume for every ten years of work experience. Hard to fit it all in, right? But a three or four or ten page resume simply won't get read closely. As Blaise Pascal wrote, "I would have written you a shorter letter, but I did not have the time." A crisp, focused resume demonstrates an ability to synthesize, prioritize, and convey the most important information about you. Think about it this way: the *sole* purpose of a resume is to get you an interview. That's it. It's not to convince a hiring manager to say "yes" to you (that's what the interview is for) or to tell your life's story (that's what a patient spouse is for). Your resume is a tool that gets

Make Xperia Album Default rather than Google Photo or other Apps

Image
Sometimes you unintentionally or intentionally make Google Photo or other apps your default Image viewer. Google Photo or other photo viewer Apps are not smooth as like phone's default Apps Album (in Xperia; maybe different name on other Android phone) Solution: Settings > Apps > All > Google+ > Clear defaults I think this solution maybe work for any Android Phone or you can change any Apps according your wish

Python while loop to find Factorials of Number

def factorial (n): m=1 while n>=1: m=m*n n=n-1 return m print factorial(53) Output:4274883284060025564298013753389399649690343788366813724672000000000000

While Loop with Python

While loop is pretty awesome in Python. Lets see an example: def print_numbers(j): #define a function print_numbers i = 0 while (i!=j): i = i+1 #increment print i print_numbers(6) #call the function Output: 1 2 3 4 5 6

Convert any float number to Round number with Python

Sometimes you need to convert float number into round figure. Python has several way to do this 1. With round x = 34354.65756 round(x)  Output:34355.0 You can also define how many number after point. So look this  round(x,4) Output: 34354.6576 round(x,2) Output:34354.66 Another hard way to round float number, this code is found from Udacity. This code provide you no point after the round number. So look this code and code is very interesting x=34354.65756 num=x+0.5 s= str(num) point = s.find('.') print s[:point] Output:34355

How to find String in String using Python

example   about_me= "I am very a sgoode boy" start_link = about_me.find('sgoode') start_quote= about_me.find('s',start_link) #print start_quote end_quote=about_me.find('e',start_quote+1) #print end_quote me = about_me[start_quote+1:end_quote] print me output:good

How to remove duplicates item from a list using Python

Python is very easy but you have to think just like python   def remove_dulicates(alist): elist =[] #define an empty for new list without duplicate item for i in alist: if i not in elist: elist.append(i) return elist print remove_dulicates([2,2,2,1,3,4,5]) output:[2, 1, 3, 4, 5]

Remove vowels from a string using Python or Anti- Vowel

Removing vowels from text is very easy using python. But through internet search I found very hard way to do this. Just look the following links http://stackoverflow.com/questions/23176001/remove-vowels-from-a-string http://stackoverflow.com/questions/17299581/loop-forgets-to-remove-some-items http://pythonfiddle.com/remove-the-vowels/ But removing vowel could be done very easy and clean way, Just have a look   def anti_vowel(text): for char in text: if char in "aeiouAEIOU": text= text.replace(char, "") # Here vowel will be replaced by "" return text

Super simple way to send Facebook Messages Without Downloading Messenger

Image
It is known to all that Facebook recently removed messaging option from its main app and insisting user to download Facebook Messenger Apps to continue messaging from mobile. Facebook user are pretty annoyed to download and use a separate apps for messaging only. But there is still a way to use Facebook messaging without download messenger apps. For this go to Facebook.com by using your mobile browser (Chrome, Firefox or any others ) and you'll be able to send and receive messages just like you would on a desktop.   To make easy log on Facebook from your mobile browser  you can create a short-cut for Facebook.com.To create short-cut & to add it on home screen Tab on"Add to homescreen". See the bellow picture.

How to run Python code from Sublime Text 2?

 To set up a complete Python IDE in Sublime Text 2. Go to Tools -> Build System -> (choose) Python then To Run your code:   Ctrl   +  B (For Windows) CMD + B (For OSX ) )     Enjoy Sublime Text 2         Update: You can use same rule to setup Sublime Text 3                                    

Microsoft gives away nearly 300 free ebooks and resource guides Grab it Now

FREE Microsoft eBooks! Who doesn’t love FREE Microsoft eBooks? Well, for the past few years, I’ve provided posts containing almost 150 FREE Microsoft eBooks and my readers, new and existing, have loved these posts so much that they downloaded over 3.5 Million free eBooks as of last June, including over 1,000,000 in a single week last year (and many, many more since then).    Given the amount my readers enjoy these posts and these free resources, I am sharing another post this year with over 130 more FREE eBooks, Step-By-Steps, Resource Guides, etc., for your enjoyment. Plus I’m also including links to the free eBooks I shared in the past so you have all of them here in one single post, making this my single largest collection EVER (Almost 300 total)! Please enjoy these FREE eBooks and resources, and be sure to pass this along to your friends, colleagues, peers, and others who you think would benefit from and enjoy them. After all, wouldn’t it be fun if we could sur

Literal notation vs Dot notation in Javascript

var myArray =[a:"book", b: "paper",c: "pen"]; myArray [a]; This is Literal Notation and gives us the value  "book". myArray.a; This is Literal Notation and gives us the value "book" Literal notation in object var student= { total: 0 }; Dot notation in object student.total = 0;

Class and Object in Javascript

Class function Cat(name, age) { this.name = name; this.age= age; } In above it is cat class Object var cat= new cat("remi", 4); In above it is cat object

How to Print Out All the property/propert value of Object in Javascript

First Define an Object with property and then use for /in loop with console to print out Example: Defining Object with property var fifa = { fullName: " International Federation of Association Football ", president: " Sepp Blatter", motto: " For the Game. For the World ", formation: " 21 May 1904 (110 years ago) " };  Now print out property  using for /in loop with console for (var property in fifa){ console.log(property); }  Now print out property value  using for /in loop with console for (var key in fifa){ console.log(fifa[key]); }

Function with Method in JavaScript

Example function Class (){ this . method = function (){ alert ( 'simple method' )}; }​​​​​​​​​ var object = new Class (); object . method ();​ Example with Method Speak and function person  function Person() { this.speak =function (){ console.log ("Hello!"); } } var user = new Person(); user.speak();   Here speak is a method of Person function