Friday, 17 June 2016

GIT error - Permission denied (publickey) | while GIT clone, pull or any action

While running the GIT clone

git clone ssh://git@exdomain.com:7999/expro/exrepo.git

You might land into the error -

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This error could be caused due to ssh key mismatch or unavailability in GIT Stash. To overcome the issue first we need to create the ssh key pair either it can be DSA or RSA by following the below steps:

  • First open the command prompt and go to ".ssh" directory -> cd .ssh
  • Then run "ssh-keygen"
  • leave empty at the file saved location. It will take default location.
  • Again leave empty and hit enter at passphrase
  • Now the ssh key "id_rsa.pub" file will be generated at .ssh directory
  • Copy the content of "id_rsa.pub" and paste in Stash -> Account Settings -> SSH Keys -> Add Key
  • Finally setup .gitconfig
    • git config --global user.name "Sriram Gunda"
    • git config --global user.email "Sriram.Gunda@xxx.com"


Friday, 27 May 2016

How to call Javascript function from ASP.Net, C# code behind

There are multiple ways of calling Javascript functions from code behind C#. This can be done by using ClientScriptManager Class which is introduced in .NetFreamework 2.0.

ClientScriptManager Class is used to create the scripts in HTML dynamically. This class has set of methods to accomplish the requirements based on the situation.

Often, we use the below two methods for many of our ASP.Net applications.

  • RegisterClientScriptBlock() Method
  • RegisterStartupScript()

RegisterClientScriptBlock() Method

ClientScriptManager script = Page.ClientScript;
if (!script.IsClientScriptBlockRegistered(this.GetType(), "Alert"))
{
    script.RegisterClientScriptBlock(this.GetType(), "Alert", "alert('hi')",true);
}

RegisterStartupScript() Method

ClientScriptManager script = Page.ClientScript;
if (!script.IsClientScriptBlockRegistered(this.GetType(), "Alert"))
{
    script.RegisterStartupScript(this.GetType(), "Alert", "alert('hi')",true);
}

Both the methods, RegisterStartupScript() and RegisterClientScriptBlock() inject Javascript code that will be execute during page load or start up of subsequent postback. The main difference is that RegisterClientScriptBlock() methods injects the script after the form open tag ("< form >") but before page controls and the RegisterStartupScript() methods injects the script after page controls but before form close tag ("< /form >"). That means using RegisterClientScriptBlock() method, we cannot access page controls in the script block while using RegisterStartupScript() method we can.

We can also directly call the Javascript functions available in the page as show below.

Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true);

MyFunction() is the function of Javascript in HTML. CallMyFunction is the string of ClientScriptmanager Class which is unique to avoid duplicated functions

Here is the example for Javascript confirm alert in C# -

Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","return confirm('Are you sure to continue?')",true);


Monday, 23 May 2016

Google Charts | AreaCharts | PieCharts by populating data from JSON


Using AJAX to load JSON Data for Google Visualization Charts

This post describes how to load data from server-side code using AJAX for Google Visualization Charts. This example fetching the data from external JSON file which contains the Chart data in JSON format.
Here are the files we are using in this example -
  • GoogleChart.html
  • data.txt

GoogleChart.html

This is the file that the user browses to. The drawChart() function calls the jQuery ajax() function to send a query to a URL and get back a JSON string. The URL here is of the local data.txt file. The returned data is actually a DataTable defined in the local data.txt file. This DataTable is used to populate a pie chart, area chart which is then rendered on the page.

data.txt

{
"cols": [
{"id":"","label":"Topping","pattern":"","type":"string"},
{"id":"","label":"Slices","pattern":"","type":"number"}
],
"rows": [
{"c":[{"v":"Mushrooms","f":null},{"v":3,"f":null}]},
{"c":[{"v":"Onions","f":null},{"v":1,"f":null}]},
{"c":[{"v":"Olives","f":null},{"v":1,"f":null}]},
{"c":[{"v":"Zucchini","f":null},{"v":1,"f":null}]},
{"c":[{"v":"Pepperoni","f":null},{"v":2,"f":null}]}
]
}

Friday, 6 May 2016

Indian Billionaire Nandan Nilekani invests in train travel based start-up RailYatri.in

Nandan Nilekani, co-founder of Infosys and former Chairman of UIDAI has invested an undisclosed amount in RailYatri.

In addition to the former UIDAI chairman, RailYatri's existing investors Helion Ventures, Omidyar Networks and Blume Ventures have participated in this round, RailYatri said in a statement.

"What excites me about RailYatri is the fact that this is a new-age product made by Indians for Indians. The RailYatri app, which intelligently harnesses the power of smartphones, data and mobile payments, has a huge opportunity of impacting the lives of millions of travellers," Nilekani reasoned.

RailYatri.in uses deep-analytics technology to make intelligent predictions that help travelers make smart decisions for their upcoming travel.

About RailYatri.in:

The brainchild of seasoned experts from IITs and IIM – KapilRaizada, SachinSaxena; and Manish Rathi with over 20 years of engineering experience – RailYatri is changing the ecosystem of train travel in India. The intelligent travel appprovides the most comprehensive information on trains, passenger amenities at stations, platform information, speed of the train, personalized alerts, and much more via the mobile apps, mobile web and SMS.

“It’s not just the money which is key to the business, but the right kind of advisors are as important. We are honored to board Nandan Nilekani on our platform,” says Kapil Raizada, Co-Founder RailYatri.

Thursday, 14 January 2016

Follow Follow Song Lyrics - Nannaku Prematho (2016)

Follow Follow Song Lyrics Details

Song Name: Follow Follow
Movie Name: Nannaku Prematho (2016)
Lyrics Writer: Devi Sri Prasad
Singer(s):Jr NTR
Music Director: Devi Sri Prasad
Song Cast: Jr NTR, Rakul Preet Signh

I wanna follow follow follow follow follow follow u
I wanna follow follow follow follow u ( 4x )...
aa aa aa aa aa aa andamaina
pi pi pi pi pi pi pilla
nuvvu yeka yeka yeka yeka yekkadikelna
na na na na na na naa valla

I wanna follow follow follow follow follow follow u
I wanna follow follow follow follow u

mu mu mu mu mu mu mu mu muddhugunna
ma ma ma ma maayadhari pilla
nee permanent address na gunde jilla
ne guddi guddhi chepputhaane Balla

I wanna follow follow follow follow follow follow u
I wanna follow follow follow follow u

cell phone-ni signal ye follow chesinattu
ninnu ne follow chesthu vunta
ninna nedu and tomorrow

I wanna follow follow follow follow follow follow u
I wanna follow follow follow follow u (2x)...

aa aa aa aa aa aa andamaina
pi pi pi pi pi pi pilla
nuvvu yeka yeka yeka yeka yekkadikelna
na na na na na na naa valla

I wanna follow follow follow follow follow follow u
I wanna follow follow follow follow u (2x)...

nuvvu ka ka ka coffee shop kelithe
aa ka ka ka cup nene
ni lip lip lip thakuthunte
aa sip sip sip nene
nee lub-dub gunde kottukunte
aa dup dup beat nene
nuvvu thippu tippukuntu naduchukelthey
nee needa thodu anni nene

I wanna follow follow follow follow follow follow u
I wanna follow follow follow follow u (2x)...

kallu kallu kallu moosukuni
paalu paalu thagey pilli laaga
nenu ninnu choodaledu ani anukoke pilla
oye nuvvu doosukelle bhanamani
mu mu murisipothe yella
ninnu vodilina villu mari
nene nene malla
naa kanti choopu nunchi
ninnu koyyaleru tenchi
aa krishna jesus aa aa alla..

I wanna follow follow follow follow follow follow u
I wanna follow follow follow follow u (4x)...


Asia Khandam lo Song Lyrics – Bengal Tiger

Asia Khandam lo Song Lyrics Details

Song Name: Asia Khandam Lo
Movie Name: Bengal Tiger (2015)
Lyrics Writer: Sampath Nandi
Singer(s):Nakash Aziz, Nutana
Music Director: Bheems Cicireleo
Song Cast: Ravi Teja, Raashi Khanna

Hey challo challo hava mein gaadi challo
Hamare saath challo hamesha valapula dharullo
Swiss-o spain-o chekkesi
Wine-o dine-o kummesi
Tata bye bye cheppedham vache malupullo

O columbia cocaine valala arabia sandram alala
Galileo rodhasi kalala missisipi nadhilo chepala

Asia khandamlo nee lanti gunta ledhe
Andhra veedullo manalanti janta ledhe..(2x)

Oh nuvvu na whatsapp dp
Nenu ne dollar rupee
Mana dating ke aa miami beach ni koni vedham
Gali tho kaburulu chebudam
Time to parugulu pedudham
Aa nature ke mana future plan-ulu vivariddam

Baapure dheeni amma kadupu mada yem chupurey
Dheeni bapu ke beeru dhaavathiyya yem shape-u re
Sarayi sukkara solid-u mukka ra
Gayi gayi ganjayi ra

Ipl match ayina ninnu chusthe aagipodhe
Bpl bunk ayina nuvvu adugesthe paelipodhe..(2x)

Ho scuba diving-u lu chedham
Cuba lo trekking chedham
Duniya motham hey janta ga manamey chuttoddam
Globe anchulakey veladam
Mob-u dance-u lane chedham
Adventure ke adventure ante chupedadham

Baapure idhi andamaina kundanala appurey
Dheeni flavour-e pakkanunte zindagi super-e
Thousand wala ra na dil-lo peley ra
Repu thondhi yama gattara

Asia khandamlo nee lanti gunta ledhe
Andhra veedullo manalanti janta ledhe
Asia khandamlo nee lanti gunta ledhe
Andhra veedullo manalanti janta ledhe

Hey challo challo hava mein gaadi challo
Hamare saath challo hamesha valapula dharullo