Wednesday, June 16, 2010

Facebook: A real menace

I had been using Facebook since the end of 2008, and have been using it in the mid of 2009 at its peak, with all the games in it. Silently they were also eating my time as well. I was really addicted to see the recent robberies and attack taking place in the Mafia Wars game, take turns in Scrabble and eager to update my status for no reason. I just couldn't find a breakthrough in my life to not feel addicted.
the EDMD or "Everybody Draw Mohammed Day" Facebook page on May 21, 2010 that brought in storms of condemnation from all parts of the Muslim world permitted me to think of quitting Facebook for the sake of religion. Eventually I did so.

Although I have set up a profile on a muslim alternative called www.millatfacebook.com, it still hasn't attracted me well...But I think I feel now a bit more comfortable than I was before, with more things to think of in my life than Facebook.

Tuesday, May 4, 2010

How to get a column from the last record inserted in SQL

I was in real need for getting a particular column value for the last record inserted. After running through many hints provided in the internet, I came up with the following solution:

Used this forum as a starting point:

If there is a column called login in the table tb_admin, to select the value of a particular column of the last row inserted, this is the query :

SELECT login from (select top 1 * from tb_admin order by recid desc) as tempTable

Here "top 1 *" will give the first record and order by recid desc will order it in the descending order to get the last record.

Monday, May 3, 2010

Installing NAV 5.0 SP1 on Windows 7

I recently migrated to Windows 7 from Windows XP. Most of the software updates were going smooth with suitable notifications if anything was missing, but when I tried to install NAV 5.0 SP1, I got a strange error message, but minutes later I got a notification that I had to upgrade my SQl Server 2005 Express to, SQL Server 2005 SP3.
Since NAV 5.0 SP1 installs a SQL Server 2005 Express, I was hoping that the service pack may be the cause for the strange error. I got it downloaded and ran it, everything was fine since then.

Friday, April 23, 2010

ஏன் திருமணம்?

பாடம் ஒன்று: ஏன் திருமணம்?

(M.Sc. Wifeology - 1)


இந்தக் கேள்விக்கு நேரடியான விடையே கிடையாது. கண்ணதாசன் சொன்ன மாதிரி, நான் மாட்டின காரணத்தை நானே அறியும் முன்னே நீயும் வந்து ஏன் கேட்கிறாய்னுதான் கேட்கணும்.

"Everybody should be married. In fact, happiness is not everything" னு சொன்ன அறிஞரோட விடைதான் கொஞ்சம் கிட்டக்கிட்ட வருது.

ரொம்ப யோசிச்சா, இந்த மாதிரி சில காரணங்களைத் தேடிப் பிடிக்கலாம்.

1. நாளைக்கு வயசாயி உடம்பு சரியில்லாம போனா பாத்துக்க ஒரு ஆளு வேணாம்? (மனைவி வேணுமா நர்ஸ் வேணுமான்னு தெரியாத ஆளுங்க! - நாளைக்கு உனக்கு வயசாகும்போது அவங்களுக்கும் வயசாகாதா? வெளிய சொல்லிக்கறத நாம நம்பவா முடியும்??)

2. வம்சம் விளங்க வேணாமா? (பெரிய ராஜ ராஜ சோழன் வம்சம்!)

3. எத்தனை நாள்தான் இப்படி வாழ்க்கையில பிடிப்பே இல்லாம ஓட்ட முடியும்? (மவனே இருக்குடீ உனக்கு! வாயுப்பிடிப்பு., சதைப்பிடிப்பு, சம்பளப்பிடிப்பு எல்லாம் கிடைக்கும் கவலையே படாதே!)

4. வீட்டுக்கு விளக்கேத்த ஒரு பொண்ணு வேணுமே! (ஸ்விட்சுன்னு ஒண்ணு எதுக்கு கண்டுபிடிச்சிருக்காங்களாம்?)

5. சாப்பாட்டுக்கு கஷ்டப்பட வேணாம் இல்லையா? (இது கரெக்டு.. எப்படியும் சமைக்கக் கத்துக்கத்தான் போறே!)

திருமணங்கள் சொர்க்கத்தில் நிச்சயிக்கப்படுகின்றன அப்ப்டின்னு சொல்லும்போதே தெரிய வாணாம்? மவனே உனக்கு சாவுமணிதாண்டான்னு!

கல்யாணம் ஆனவங்களோட பொறாமை மற்றவர்களோட திருமணத்துக்குக் காரணமாகி விடுவது உளவியல் அறிஞர்கள் ஆராய வேண்டிய விஷயம்.  "என்னங்க, நம்ம சித்தப்பா பொண்ணுக்கு உங்க பிரண்டு சரவணனைக் கேக்கலாமா" என்ற கேள்விக்கு, சரி என்று சொல்லும் முன், "நான் மட்டும் என்ன முட்டாளா?" என்ற எண்ணமும் "எஞ்சாய் பண்றாண்டா" என்ற பொறாமையும் இருப்பது திண்ணம்.

பெரியோர் நிச்சயித்த கல்யாணத்துக்கும், காதல் திருமணத்துக்கும் கொலைக்கும் தற்கொலைக்கும் ஆன வித்தியாசம்தான் என்று சொல்வதில் உண்மை இல்லாமல் இல்லை.

ஆனால், மத்தவங்க என்ன சொன்னாலும், வேறு சில சிற்றின்பக் காரணங்களுக்காக, "கல்யாணத்துக்கு என்ன அவசரம்? நாலஞ்சு நாள் போகட்டும்" என்று சொல்லும் மாப்பிள்ளைதானே முதல் குற்றவாளி?

நான் சொல்ல வர சிற்றின்பம், பெரியோர் ஆசீர்வாதத்துடன் சைட்டடிப்பது, நாம என்னவோ ஆணழகன் மாதிரி எந்த போட்டோ வந்தாலும் "Forehead ஆ இது? Four Head மாதிரி இருக்கே!" "பொண்ணு கிளி மாதிரின்னு சொன்னாங்களே? மூக்கை மட்டும்தான் சொன்னாங்களா?" என்று வர்ஜ்யா வர்ஜ்யம் இல்லாமல் கமெண்ட் அடிப்பது, திடுதிப்பென்று கிடைக்கும் எலுமிச்சை வெளிச்சம் போன்ற சிற்றின்பங்களைச் சொல்றேன்.

ஆனா ஒண்ணு.. கல்யாணம் பண்ணாம நிம்மதியா இருக்கறது 1 - 2% ஆளுங்கதான். ஆடை இல்லாத ஊரிலே கோவணம் கட்ட முடியாதவங்க எப்படி கல்யாணத்துக்குத் தயார் ஆவது எப்படின்னு அடுத்த திங்கள் சொல்றேன்.

வீட்டுப்பாடம்:
இந்த யூ ட்யூப் வீடியோவைப் பார்க்கவும்:
http://www.youtube.com/watch?v=pSWTVXh_Yns


ஒரு டிஸ்கிளெய்மர்:

பிரச்சினையில்லாத திருமண வாழ்வை இந்த வகுப்புகள் வழங்கும் என்ற உடோபியக் கனவுகளை நம்பவேண்டாம். அது ஒரு மாயை.  இதன் ஆசிரியர்களின் வாழ்வில் ஏற்பட்ட அனுபவங்களின் மீள்பார்வையில் Retrospective சிந்தனைகளின் விளைவே இந்த வகுப்புகள். இது ஒரு Exact Science உம் கிடையாது. மனைவிகள் என்னும் பிரகிருதிகளுடான உளவியலில் Scienceக்கும் எந்த இடமும் கிடையாது, Exact கும் எந்த இடமும் கிடையாது. இந்த வழிமுறைகளை முயற்சிப்பவர்கள் தத்தம் சொந்தப் பொறுப்பின் பெயரிலேயெ செயல் படுபவர்கள் ஆவார்கள். மீறி ஏற்படும் வீக்கங்களுக்கும் ரத்தகாயங்களுக்கும் கல்லூரி பொறுப்பேற்காது.

இப்படிப் பினாத்தியது பினாத்தல் சுரேஷ்
http://penathal.blogspot.com/2007/10/m-sc-wifeology-1.html


Tuesday, April 20, 2010

கமல்ஹாசன் கவிதைகள்



 

 

 

(நடிகர்) கமல்ஹாசன் கவிதைகள்

*

"பெருஞ்சிங்கம்"

ஞானமெனும் பெருஞ்சிங்கம்
எறும்புகளை உண்பதில்லை,
இறந்தபின் சிங்கத்தை
எறும்புகள் உண்பதுண்டு.

- கமல்ஹாசன்

*

பிரதிபிம்பம் பழங்கனவு
மறந்த என் மழலையின் மறுகுழைவு
மகளே
உனக்கு என் மூக்கு என் நாக்கு!

என் தாய் பாடித் தூங்கவைத்த தாலாட்டு
தினம் உனக்காய் நான் படிப்பேன் என் குரலில்
பாசத்தில் எனைப் பெற்றோர் செய்த தவறெல்லாம்
தவறாமல் நான் செய்வேன்
என் ரத்தம் எனது சதை எனக் கூவி
உன் சித்தம் உன் போக்கை இகழ்ந்திடுவேன்
உன் போக்கு இதுதான் என நீ மறுக்க
உடைந்த மனதுடனே மூப்பெய்வேன்
என் அப்பனைப் போல்!

அன்று - சாய் நாற்காலியில் வரப்போகும்
கவிதைகளை இன்றே நான் எழுதிவிட்டால்
அன்று - நான் பேசலாம் உன்னோடு

எழுதிவிட்டேன்
வா - பேச!

- கமல்ஹாசன்

*

"நச்சு"

நாகத்தின் நச்சதனைத்
தூற்றுவார் தூற்றிடினும்
நச்சதற்குக் கேடயம்போல்
தற்காப்பு ஆயுதமே
பறவைக்கு அலகினைப்போல்
பசுமாட்டுக்குக் கொம்பைப்போல்
நமக்கெல்லாம் பொய்யைப்போல்
தப்பிக்கும் ஓர்வழிதான்
நாகத்தின் நச்சென்பேன்

- கமல்ஹாசன்

நன்றி:
http://selventhiran.blogspot.com/2007/07/blog-post.html

 

Wednesday, July 29, 2009

Checking for illegal characters in C#

I was dealing with windows forms application and wanted to check for illegal characters. So i came up with this small function and thought of sharing it for anybody to use it:
 private bool CheckIllegalChars(string nametext)  
 {  
 char[] illegalChars = new char[] { '*', '|', ',', '\\', '\"', '<', '>', '[', ']', '{', '}', '`', '\'', ';',':', '(', ')', '@', '&', '$', '#', '%', '?', '^' };  
 int length = nametext.Length;  
 bool res = false;  
 if (nametext.IndexOfAny(illegalChars) > -1)  
 {  
 MessageBox.Show("The textbox cannot contain illegal characters");  
 res = true;  
 }  
 return res;  
 }  

Wednesday, June 3, 2009

Hottest Components of the .NET Framework

-extracted from www.c-sharpcorner.com

ASP.NET
 MVC, JQuery, ASP.NET AJAX 
and ADO.NET Entity Framework are the hottest components of .NET Framework. These components may already be integrated in forthcoming .NET Framework 4.0. Most of the experts are using these components to build cutting-edge killer Web applications.

ASP.NET MVC allows software architects to build ASP.NET Web applications based on MVC design pattern. 
JQuery is a new JavaScript library that changes the way you write JavaScript today. JQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. ASP.NET MVC Framework and JQuery are here to change the world of programming. 

ADO.NET Data Entity Framework is another component added to .NET 4.0. It allows us to build Fully-Functional data-driven applications using ASP.NET and ADO.NET without writing even a single line of code. These applications allow you to add, edit, delete, sort, page, and find data in your application. This is must if you are building a data-driven application using ASP.NET 3.5. You can build a fully-functional application in 10 minutes.

Tuesday, June 2, 2009

NetworkWorld sent by Mafaz

Windows 7 to ship Oct. 22

This NetworkWorld article was sent to you by sm2mafaz@gmail.com

Message from sender: "Windows 7" to be born on my birthday...!


Windows 7 to ship Oct. 22

Microsoft sets date, puts RTM in late July
By John Fontana , NetworkWorld.com  6/02/09

Windows 7 will be generally available on Oct. 22 and the code will be finalized and sent out to manufacturing in late July, according to Microsoft.

Read the entire article at
http://www.networkworld.com/news/2009/060209-microsoft-windows-7-ship-date.html

TOP STORIES | MOST DUGG STORIES

  1. Five things we love/hate about Win 7/Windows Server 2008 R2
  2. Nine management apps that won't bust your budget
  3. Cisco added to Dow
  4. YouTube hit by porn storm
  5. Is routing undergoing a mid-life crisis?
  6. Ubuntu Desktop: Plenty of sizzle, not much steak
  7. Windows 7 alluring, but XP is the migration factor
  8. The rise of personal 'Mi-Fi' hotspots
  9. HP ProCurve converges wireless and wired network access
  10. MDOP is the hidden gem of Microsoft's WS 2008 R2, W7 releases

2009 Fave RavesNetwork World on Twitter: Get our tweets and stay plugged in to networking news


Copyright 2007 NetworkWorld, Inc. All rights reserved

Monday, May 25, 2009

Installing SQL Server 2008 Express Edition

I do not know how many people were resulted with the problem in getting SQl Server 2008 Express Edition (offered freely by Microsoft) installed.  Several times i got problem with the authentication, even though i produced appropriate information. Anyway some how i got it installed. But unlike it's predecessor, the number of steps inorder to get it installed was high. Yet the installion interface was cool. Microsoft has required to get the following components installed beforehand:
  1. .NET Framework 3.5 SP1
  2. Windows Installer 4.5
  3. Windows Powershell 1.0
as of 24th of May 2009...
But I was shown with one more requirement during the installtion, which Microsoft has forgotten to mention in it's updated page for users who have installed Visual Studio 2008. You got to get the Visual Studio 2008 SP1 installed if you are to use the latest version of SQL Server 2008.

Tuesday, May 5, 2009

How To Determine If Your Computer Is Being Assigned The External IP Address




This is a very interesting information I came across from www.whatismyip.com

For Windows 2000, XP, and 2003

1. Click Start
2. Click Run
3. Type in cmd and hit ok
4. Type ipconfig and hit enter

For Vista
1. Click Start
2. Click All Programs expand the Accessories menu
3. In the Accessories menu, Right Click Command Prompt and choose Run as administrator
4. Type ipconfig hit enter

Results
If you see an IP that resembles 192.168.n.n then this is an internal IP address assigned by a router. So your router is getting your external IP address. If the IP displayed in the command prompt window matches the one shown on 
What Is My IP then your computer is being assigned your external IP.