• Skip to main content
  • Skip to primary sidebar

Ravi Shankar

Tweaking Apps

  • About
  • Portfolio
  • Privacy Policy

Archives for June 2014

How to change system locale in Windows 8 and Windows 7

June 27, 2014 By Ravi Shankar 2 Comments

Windows 8.1 and Windows 7 system locale can be changed using the Change System Locale options available under Control Panel.

Change system locale in Windows 8.1

Launch Control Panel on Windows 8.1 and Select Clock, Language and Region option.

Clock, Language and Region in Windows8.1

Click Change location under link under Region section

Change location in Windows 8.1

In the Region dialog, click the Change system locale button under Language for non-Unicode programs.

Change system locale on Windows 8.1

Now you can change the system locale using Current system locale dropdown list.

Current system locale on Windows 8.1

Change system locale in Windows 7

Navigate to Control Panel -> Region and Language 

Region and Language on Windows 7

Clicking on the Region and Language link, would display the Region and Language dialog as shown below.

Change system locale on Windows 7

Change System locale option will be available under the Administrative tab and on clicking the button, the following locale selection dialog box would be displayed

using which the required locale can be selected.

Region and Language Settings on Windows 7

Filed Under: Windows 7, Windows 8 Tagged With: Change Location, Change system locale, Regional Settings, system locale

Binary search

June 26, 2014 By Ravi Shankar Leave a Comment

After a simple bubble sort algorithm (not the most efficient sorting algorithm), let us try to implement Binary search in Swift Programming Language. Binary search algorithm can be applied only on sorted arrays. So let us first generate random numbers and store them in an array. Then call the bubble sort function to sort the numbers by passing the array to the function.

import Cocoa


func swapNumbers(index1 :Int,index2: Int) {

let temp = inputArr[index1]

inputArr[index1] = inputArr[index2]

inputArr[index2] = temp

}


func bubbleSort(inputArray :Int[]) {

for var index: Int = inputArr.count-1; index > 1; --index {

for var jIndex: Int = 0; jIndex < index; ++jIndex {

if inputArr[jIndex] > inputArr[jIndex + 1] {

swapNumbers(jIndex, jIndex+1)

}

}

}

}


var inputArr = Int[]()


// generate random numbers

for rIndex in 0..10 {

inputArr.append(((Int(arc4random()) % 100)))

}


//call bubblesort function to sort the numbers in array

bubbleSort(inputArr)


inputArr

Steps for Binary search algorithm

  • Set lower index to 0 and upper index to total count of elements
  • Set the current index to the median of lower and upper index
  • Repeat these checks in a infinite while loop.
  • Check if passed number is equal to number returned by current index. If it matches then return the current index.
  • If the lower index is greater than upper index, it means the search item does not exist in the array. Hence return the array’s total elements.
  • If current index is greater than the search item then decrease the upper index
  • if current index is less than the search item then increase the lower index.

func findItem(searchItem :Int) -> Int{

var lowerIndex = 0;

var upperIndex = inputArr.count - 1


while (true) {

var currentIndex = (lowerIndex + upperIndex)/2

if(inputArr[currentIndex] == searchItem) {

return currentIndex

} else if (lowerIndex > upperIndex) {

return inputArr.count

} else {

if (inputArr[currentIndex] > searchItem) {

upperIndex = currentIndex - 1

} else {

lowerIndex = currentIndex + 1

}

}

}

}


findItem(78)

Filed Under: Apple, Develop, ios, Programming, Xcode Tagged With: Apple, binary search, bubble sort, Swift, Xcode

Tamil Nadu electricity board user registration and online bill payment

June 25, 2014 By Ravi Shankar

Listed below are the steps for registering for Tamil Nadu electricity board and doing online bill payment.

Tamil Nadu electricity board registration of new user

Step 1: For new users registration, Click on the New User.

Register New TNEB user

Step 2: Click Select button (next to Region) under New User Registration.

Select region in New User Registration

Step 3: Select the region based on your location.

Select region based on location

Step 4: Now enter the Consumer no without region code and click Check detail button.

Enter Consumer No in TNEB Website

This should display the following screen with details about Username, Address and Service Status. You can find the Consumer no from your EB card (xxx-xxx-xxxx).

Confirm TNEB Consumer No

Step 4: Click the Confirm button if the details about the EB connection are correct.

Step 5: Enter user profile information and click Submit button.

Enter Profile information of TNEB user

Step 6: After registration, a mail would be send to the e-mail address provided during the registration. The email would request you for the confirmation of registration.

Online payment of TNEB bill

Once you are a registered user of TNEB web portal, you should be able to login with your user credentials.

Login to TNEB website for Online biil payment

After successful login, you will be presented with the following screen with the registered consumer no. Online bill payment can be done by clicking Pay bill option for the corresponding consumer no.

Select Pay Bill Payment

TNEB users can also pay their EB bill using the Quick Pay option just by providing region and Consumer No as shown in the below screenshot

Quick Pay - TNEB bill payment

Using the online account, TNEB registered users also have access to e-Receipt, Account Summary, Bill Calculator, Manage multiple EB connections, Past payment history and Pay Advance amount.

Also See: LIC Online Payment

Filed Under: Web Tagged With: Online bill payment, Register New User, Tamil Nadu Electricity board, TNEB

Bubble Sort

June 25, 2014 By Ravi Shankar 2 Comments

The best way to practice a new language is to write more programs using that language. Here is a Bubble Sort program written in Swift Programming language.

Data to be sorted = {12, 56, 32, 23, 67, 87, 45, 23,10, 11}

Bubble Sort

Bubble Sort is performed by comparing two number starting from the left and swapping the greater number to the right. And then moves one position to right until end.

Bubble Sort in Swift

This has a function named swapNumbers for swapping the values of array for the given two indexes. Then the for loop that compares the two numbers starting from left to right and uses swapNumbers function to swap the values if the left is greater than right.

var inputArr = [12,56,32,23,67,87,45,23,10,11]

func swapNumbers(index1 :Int,index2: Int) {

let temp = inputArr[index1]

inputArr[index1] = inputArr[index2]

inputArr[index2] = temp

}

for var index: Int = inputArr.count–1; index > 1; –index {

for var jIndex: Int = 0; jIndex < index; ++jIndex {

if inputArr[jIndex] > inputArr[jIndex + 1] {

swapNumbers(jIndex, jIndex+1)

}

}

}

inputArr

Here is the Swift code tested in Playground, you can see the sorted results in the sidebar

Bubble Sort in Swift Programming language

Filed Under: Apple, Programming, Xcode Tagged With: Apple, Swift, Untitled, Xcode

Microsoft Outlook Web Access (OWA) keyboard shortcuts

June 21, 2014 By Ravi Shankar 21 Comments

These are some of the useful outlook web access shortcut keys

Del – Delete a message

Enter – Open any outlook item (Message, Appointments, Notes etc.)

Ctrl+N – Create a new outlook item (Message, Appointments, Notes etc.)

Ctrl+R – ‘Reply to’ a message

Ctrl+Shift+R – ‘Reply to all’ message

Ctrl+Shift+F – Forward  a message

Alt+S – Send mail

Esc – Close a window

Ctrl+K – Resolve recipient name using address book

F7 – Spell Check

Ctrl+Q – Mark the message as read

Ctrl+U – Mark the message as unread

Ctrl+r – To Refresh

Filed Under: Technical Tagged With: Outlook Web Access, OWA, Shortcut Keys

How to hide windows updates on Windows 8.1

June 21, 2014 By Ravi Shankar Leave a Comment

In this short tutorial, we are going cover the steps required to hide and restore windows updates on Windows 8.1.

Why do you want to hide windows updates?

It is recommended to install all the major updates or patches released for Operating Systems. But if there are any Important or Optional updates for some built-in application which your are using then you hide those updates. For example, you are using Google Chrome instead of Internet Explorer then you can skip all the updates delivered for Internet Explorer. When you hide those updates, Windows will keep you prompting about the available updates.

Listed below are the steps to hide Windows Updates on Windows 8.1

Step 1: Right click on Windows icon and select Control Panel from the list.

Launch Control Panel in Windows 8.1

Step 2: In the Control Panel window, select System and Security option.

System and Securiy on Windows 8.1

Step 3: In the System and Security window, click Windows Update link

Windows Update option on Windows 8.1
Step 4: Select the updates listed under Windows Update screen.

Install updates screen on Windows 8.1

Let us say you want to hide all the optional updates, Click Optional updates under the listed updates.

Step 5: In the “Select the updates you want to install” screen, select the updates that you want hide (not the check box selection) then right click and choose Hide updates.

Hide Windows updates

This should disable all the checkboxes and prevent users from selecting those updates.

How to unhide or restore hidden updates on Windows 8.1

If you later decide to change your mind and want to install the hidden updates then you can restore using the “Restore hidden updates” option under Windows Update screen.
Restore hidden windows updates on Windows 8.1

 

In the Restore Updates screen, select the updates and click the Restore button available at the bottom of the screen. This should make the updates available for installing on your Windows 8.1.

Also See: Checking whether your Windows 8 PC is up to date?

Filed Under: Windows, Windows 8 Tagged With: Hide Updates, Restore Hidden Updates, Windows Upates

Basic overview of Xcode

June 21, 2014 By Ravi Shankar Leave a Comment

Xcode is the primary tool used for the development of Mac and iOS applications. This is a free tool which can be downloaded from developer.apple.com website. You can use Xcode for Writing code, Building, Testing (Unit test) and for Distribution (Submitting to App Store).

Xcode Window

Different Panes in Xcode

Navigator

 

This is available at the left hand side of Xcode window. Provides option to navigate through the project files, Issues, Debug Session, Breakpoints etc.

Xcode Navigator Pane

Utilities

 

This is available at the right hand side of Xcode window. This contains File inspector, Quick Help inspector, File Template Library, Code Snippet Library, Object library and Media library. These tools help the developer with designing the user interface and writing coding using Xcode.

Xcode Utilities Pane

Editor

This available at the Centre of Xcode window and used for writing your code.

Xcode Editor Window

Interface builder

Interface builder or IB is available at the Centre of Xcode window when you navigate to your .xib file or storyboard. This allows users to build UI for their app.

Xcode Interface Builder

Debug and Console

 

Debug and Console panes are available at the bottom of Xcode window. As the name suggests Debug provides option for debugging your app and console displays both system, exceptions and app written messages.

Xcode Debug and Console Windows

Toolbar

Xcode Toolbar

The Toolbar provides the option to Run, Analyse, Build and Test your App. This is the place where you would specify whether you want to run the app in simulator (iPhone or iPad) or real device,

Xcode Choose Simulator

Another important feature of Toolbar is the option it provides to show or hide panes of Xcode.

Xcode Show or Hide Pane

The Editor option provides toggle option to show or hide Standard Editor, Assistant Editor and Version Editor. Similarly View option provide option to show or hide Navigator, Debug Area and Utilities. You can also launch Organizer from Xcode Toolbar.

Oragnizer

This provides access to the Documentation, Projects, Archives, Repositories and Devices (Provisioning Profiles)

Xcode Organizer

Filed Under: Develop, Xcode Tagged With: iOS, iOS Simulator

How to check recent login activity in Yahoo Account

June 14, 2014 By Ravi Shankar 4 Comments

Yahoo has a feature that allows user to check their recent login activity. This is quite useful when you want to monitor from where all your account was accessed. The Recent Login Activity can be launched through the Yahoo Account details screen.

Step 1: Login Yahoo Account.
Step 2: Click the drop down option available below the Yahoo username (top right corner) and select Account Info from the drop down menu list.
201210071214.jpg
Step 3: You may be asked to enter the password to access the Account Info screen.
Step 4: Scroll down to the Sign-In and Security section and click the View your recent sign-in activity option.
201210071220.jpg Step 5: The Recent sign-in activity screen should display the following details about the login details.
Recent Login Activity Yahoo
You can also see the Location instead of IP Address as shown below.
Recent Activity Location
If you are suspicious about the account being accessed by others then you can use this feature to monitor your account activities.

Filed Under: Yahoo Mail Tagged With: Login Activity, Recent Login, YAHOO

  • Go to page 1
  • Go to page 2
  • Go to Next Page »

Primary Sidebar

Recent Posts

  • We have blocked all requests from this device – Firebase Phone Authentication
  • iPhone is not available error message in Xcode
  • Clear CocoaPods cache, re-download and reinstall all pods
  • PDFKit – View, Annotate PDF file in Swift
  • Tab Bar Controller with WebView

Archives

  • September 2020
  • April 2020
  • December 2019
  • November 2019
  • October 2019
  • February 2019
  • October 2017
  • June 2017
  • May 2017
  • March 2017
  • September 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • November 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • April 2011
  • March 2011
  • January 2011
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • July 2009
  • March 2008

Copyright 2020 © rshankar.com