Posts

django TextFeild print as a text Area

When printing django  TextFeild  without <p> </p> tag encoding it will display  just as a sentance without <br/> , \n ,\r ( breaks , newlines) However text area can encoded with <p> </p>  and supported with  linebreaks   which result the paragrh with expected breaks and newlines <p>     {{ post.song |linebreaks }}  </p>

අහම්බෙන් කවියක් ලියවුනා

ප්‍රශ්න ගොඩක් ඔහේ ,,, තව ප්‍රශ්න ඇත මෙහේ ,, ඊයේ රැ වගේ,, හොරෙන් FB එන්න වගේ,, අදහසක් නැද්ද අනේ ,,

Dahas Pethiya Male - Kasun Kalhara - දහස් පෙතියා මලේ,,

Image
ගැහැණිය මේ ලෝකයට බිහිවෙලා  ඉන්නේ ජිවිත කාලය පුරාම හඬන්නවත්,,හිනැහෙන්නවත් නොවේ. හැඩ්මත් සිනහවිමත් අතර රැදෙමින්,,,ලෝකය තවත් ලස්සන කරන්නටයි... දහස් පෙතියා මලේ,, වැටුණු පිනි බිදු,,,, අරුනොදේ,,, උණු කදුළැලි වේදෝ,,, පෙති දහස විසිරිලා සුලගට...... ඈත සිතිජයේ පාවෙලා.........  මත් වු බිගු රජු මලින් පියබා..ඈත සිතිජයේ තනිවෙලා.....  පියබලා......තනිවෙලා සැරසුවා,,,  දඟකාර කෙහෙරැල්ල දහස් පෙතියා මලින් රැවටිලා රොන් ගන්න වැසුවා කෙහෙරැල්ලේ ,,,, විසිරුනා පෙති දහස,,,, දහස් පෙතියා මලේ// සැරසුවා ,,,පෝරු මස්තකය දහස් පෙතියා මලින් මිලින  වු පෙති,,මුකුලිත වේදෝ අසිනිය මල් මතදී.,,, විසිරුනා පෙති දහස,,,, දහස් පෙතියා මලේ//

Malakai Kiya -Kasun Kalhara මලකැයි කියා - කසුන් කල්හාර

Image
මලකැයි කියා,,මලකැයි කියා,,,සිතුවෙම නැ ඔසු මලකයි කියා ,,,, යමෙකු උපතින්ම තියුණු බුද්ධියකට උරුමකම් කියන්නට පුළුවන. ඔහු අතිදක්ෂයෙක් වන්නටද පුලුවන. ඔහුගේ බුද්ධිය මෙහෙයවා අතිවිශාල සාර්ථකත්වයන්ටද ඔහු ළඟාවී සිටින්නටද පුළුවන. එහෙත් යම්දවසක ඔහුගේ බුද්ධිය හදවතට කතාකරන දිනයක් ජීවීතයේ කවර හෝ දිනෙක උදාවනු ඇත.. .ඒ බුද්ධිය හෙම්බත්වී ඇති මොහොතකය... © Tharindu Prabash https://plus.google.com/+TharinduPrabash/posts

She Thought me What is Love ,,,,

Image
She Thought me What is Love ,,,, The undeclared love ,than expressed , the donated love, than owned  , is more Powerful. Since we reincarnate  , I will be Silent, No more asking for Rights,,, අප්‍රකාශිත ප්‍රේමය .. ප්‍රකාශිත ප්‍රේමයට වඩාත්.. පරිත්‍යාග කල ප්‍රේමය... ඓතිකරගත් ප්‍රේමයට වඩාත් .. බලවත්ය.. සංසාරය දිගු බැවින්,නිහඩ වෙමි. අයිතිවාසිකම්  නොකියමි.                                                                     ©anonymous 

python.exe: Resolve "command not found"

Recently when I was working on hosting Django site in Windows 7 machine I came up through the following error (python command not found) $ c:\Python27\python.exe django-admin.py startproject myproject . sh.exe": c:Python27python.exe: command not found Frist I discovered it is because of not having back -slash  and I added (\\)  $ c:\\Python27\\python.exe django-admin.py startproject myproject . c:\Python27\python.exe: can't open file 'django-admin.py': [Errno 2] No such fil e or directory In this way you can invoke phthon.exe without adding it to environmental variables by giving absolute location. (c:\Python27\python.exe) However another error still persisting "can't open file 'django-admin.py': [Errno 2] No such fil e or directory". Since django is located in the site packages it also required to give the absolute parth. In my case it is "C:\\Python27\\Lib\\site-packages\\django\\bin\\django-admin.py" So that below

Trick to Debug Oracle Procedure

In the Production Environment an oracle procedure can lead to Exception or Error which cannot be backtrack if a proper logging machanisam not adopted. Take the following Example Procedure, create or replace PROCEDURE DEPOSIT_INSRT (   APLICTON_ID IN VARCHAR2 , DEP01_ID IN  VARCHAR2 , tempdbexc IN OUT INTEGER ) AS BEGIN --APLICTON_ID:='1383'; --DEP01_ID :='1234567v';   tempdbexc :=1;     INSERT INTO CF_FXD_DEPOSIT ("APPLCTION_ID",  "DEP01_ID",)   VALUES (APLICTON_ID, DEP01_ID);   INSERT INTO CF_FXD_DEP_RECPT ("APPLCTION_ID") VALUES (APLICTON_ID);   DBMS_OUTPUT.put_line('COMMITTED INSERT');   COMMIT; END DEPOSIT_INSRT; In a testing Environment, Example I will use the SQLDeveloper as the web Client to Oracle ,,We can run and verify weather produce is error free for the values given hard corded values i have commented (APLICTON_ID:='1383', DEP01_ID :='1234567v';) However when procedure executi