21 Nisan 2013 Pazar

to add facebook login button to blog page

Studying on sundays really sucks :(  However, it is wise to spend these rainy cold days studying and make room for life for oncoming sunny beautiful days:)
In this post, i summarize steps to add a facebook login to a blog page as in http://ucasfumproject.blogspot.com/
I have followed two posts and a stackoverflow question to get it working..

- create a facebook app  >> https://developers.facebook.com/apps
specify the site url as your blog address 
- login to blogger dashboard
go templates >> edit HTML
- right after the body tag, copy the following:

remember to change appId accordingly..
- go layout >> add a gadget and add an HTML/Javascript  gadget as follows:


19 Nisan 2013 Cuma

a python book - part 1

Nowadays, i am trying to learn Python and prepared a repository consisting of Python books, tutors etc..
Actually, finding good documentation on Python isn't that hard due to its widespread use..
Anyway, i am using the online free book on ww.rexx.com/~dkuhlman/ and take my own notes during study..
In this post, i publish those notes of mine as notebook pages, a weird way for sharing actually!!
The book consists of three parts, and (i can say that) this is the summary of first part.. 














 

7 Nisan 2013 Pazar

introduction to couchdb

I hate studying on this beautiful Sunday morning, instead of enjoying the weather :( However, it is going to be a busy week and i need to make my system run till thesis meeting. I decided to use CouchDB, played with it through Futon interface and want to share two basic posts about it, which helped me understand the concept of document database:
http://blog.vi-kan.net/2010/introducing-couchdb/
http://blog.vi-kan.net/2010/basic-couchdb-interaction/


14 Mart 2013 Perşembe

radgrid - export

It is fairly easy to export a radgrid content in various formats.
here is sample code:

<telerik:RadGrid ID="GridRaporListe" AllowFilteringByColumn="true" AutoGenerateColumns="false"
PageSize="10000" AllowPaging="True" AllowSorting="True" runat="server" ShowGroupPanel="false"
OnItemCreated="GridRaporListe_ItemCreated" AllowMultiRowSelection="true" ClientSettings-AllowColumnHide="True"
ClientSettings-AllowColumnsReorder="True">
<ClientSettings EnableRowHoverStyle="true">
<Selecting AllowRowSelect="False"></Selecting>
</ClientSettings>
<PagerStyle Mode="NextPrevAndNumeric" />
<GroupingSettings CaseSensitive="false" />
<MasterTableView TableLayout="Fixed" DataKeyNames="ID" CommandItemDisplay="TopAndBottom">
<CommandItemSettings ShowExportToExcelButton="true" ShowExportToPdfButton="true"
ShowExportToWordButton="true" ShowExportToCsvButton="true" ShowRefreshButton="false"
ShowAddNewRecordButton="false"></CommandItemSettings>
<Columns>
<telerik:GridBoundColumn HeaderText="OgretimYili" DataField="OgretimYili" UniqueName="OgretimYili"
SortExpression="OgretimYili" HeaderStyle-Width="100px" />
<telerik:GridBoundColumn HeaderText="Donem" DataField="Donem" UniqueName="Donem"
SortExpression="Donem" HeaderStyle-Width="100px" />
</Columns>
</MasterTableView>
<ExportSettings FileName="Rapor">
<Excel Format="Html"></Excel>
</ExportSettings>
<ClientSettings AllowDragToGroup="true">
</ClientSettings>
</telerik:RadGrid>


7 Mart 2013 Perşembe

allow postgresql connection without password

I am trying to run a thesis project on my local environment. In order to achieve this, i installed postgresql (v9.2) and have to connect it with my computer's user name and no password! (it is not possible to change the code in jar file and the configuration file is missing!) To accomplish this:
- i added a login role (by using pgAdmin GUI) with my computer's name and defined it with no password
- i edited pg_hba.conf file as follows:

host    all     all    127.0.0.1/32  md5trust