Wednesday, 26 September 2012

10 Handy CSS Generators and Tools to Create CSS Effects

Cool effects and amazing responsiveness in the websites are some silent features of CSS3, with the help of CSS3 rules and tags, now, web designers are capable to create more rich websites. CSS generators are very useful tools which are used to convert any graphical interface into CSS rules. This means a lot to the web designers, these tools save your precious time to create styling rules for your web designs. Plus you will get more accurate and less errors within these generated CSS codes. Without using these tools, it’s nearly impossible to achieve heavy effects which are only possible into graphic editors like Photoshop & Illustrators. So, we have collected 10 most useful and handy CSS generators which will handle your burden of CSS styling and will generate cool effects of CSS3.

3D CSS Text Generator



CSS3 Sandbox



Ceaser



CSS3 Generator



Text Shadow Generator



Variable Grid System



CSS Button Generator



Ultimate CSS Gradient Generator



Typetester



CSS3 Generator

Tuesday, 25 September 2012

Why C# does not support multiple inheritance?

This is question most of the people ask every time. So I thought it will be good to write a blog post about it. So why it does not support multiple inheritance?

I tried to dig into the problem and I have found the some of good links from C# team from Microsoft for why it’s not supported in it. Following is a link for it.

http://blogs.msdn.com/b/csharpfaq/archive/2004/03/07/85562.aspx

Also, I was giving some of the example to my friend Dharmendra where multiple inheritance can be a problem.The problem is called the diamond problem. Let me explain a bit. If you have class that is inherited from the more then one classes and If two classes have same signature function then for child class object, It is impossible to call specific parent class method.

Here is the link that explains more about diamond problem.

http://en.wikipedia.org/wiki/Diamond_problem

Now of some of people could ask me then why its supporting same implementation with the interfaces. But for interface you can call that method explicitly that this is the method for the first interface and this the method for second interface. This is not possible with multiple inheritance. Following is a example how we can implement the multiple interface to a class and call the explicit method for particular interface.

Multiple Inheritance in C#

That’s it. Hope you like it. Stay tuned for more update..Till then happy programming.

10 Secrets To Getting A Job At Apple, Google Or Microsoft



10 Secrets To Getting A Job At Apple, Google Or Microsoft


Some might say that I got incredibly lucky. At eighteen years old, I was perhaps the youngest intern in Microsoft’s thousand person intern class. Most of my fellow interns had three times as much experience as me, and I couldn’t help but wonder, “What am I doing here?”



The tricks below enabled me to get the right experience, flaunt it on my resume, get the attention of recruiters, and eventually land positions with Microsoft, Apple and Google.
Here’s a list of 10 things you can do to improve your chances to do the same:

1.     Start Something: Launching a small tech company, or just a project, can demonstrate virtually everything a tech firm wants to see: field expertise, passion for technology, initiative, leadership and creativity. Don’t have software development experience? Not to worry – you can hire an outsourced development team from sites like odesk and elance

2.     Create an Online Portfolio: Almost everyone can benefit from a portfolio. A simple web site with a description of your major accomplishments (both inside and outside of work) can provide more context than what your resume can provide. Recruiters may reference this after seeing your resume, but they might stumble across your portfolio online and give you a call.

3.     Get Out There (And Online): Online job boards are tough, and the best way around them is a personal referral. Attending tech events will help to build your network, but don’t forget about the online channels. Recruiters search for potential candidates on blogs comments, industry forums and Twitter. Being active on online – while providing a trail back to your portfolio – can be an excellent way to catch a recruiter’s attention.

4.     Make a Short and Sweet Resume: Let me tell you a little secret: recruiters don’t really read resumes. They glance at them, often for as little as fifteen seconds, before putting it in the ‘yes’ pile or the ‘no’ pile. For this reason, a short (usually one-page) resume is advantageous. This will ensure that the resume screener notices your most impressive accomplishments, without the mediocre items getting in the way.

5.     Focus on Accomplishments: Kill the fluff; no one buys into vague statements like “excellent problem solver.” A resume should focus on your accomplishments: concrete ways that you’ve made an impact, quantified if possible. Remember that your list of accomplishments goes beyond the “official” work that you’ve done. Any project that is reasonably substantial can be listed on your resume.

6.     Rehearse Your Stories: One of the best ways to improve your overall interview performance is to practice your “stories.” For each major accomplishment, brainstorm ways that you showed leadership, demonstrated influence, or overcame challenges. Rehearsing these responses aloud will help you to more effectively discuss what you did and why it mattered.

7.     Practice Interview Questions – And Practice Them Well: Don’t walk into an interview blind; web sites like CareerCup.com and Glassdoor.com offer thousands of interview questions from tech firms. This will give you a good feel of what areas to prepare. Memorizing answers to these questions won’t help you though. Instead, practice solving these interview questions just as you would in an interview: out loud or on paper. The more realistically you can simulate the interview the better you’ll do.

8.     Prepare Questions for You to Ask: Asking interesting questions during your interview cannot only help you learn if the job is right for you, but it will also demonstrate to your interviewer that you’re passionate about the position. You should prepare a list of questions before your interview. My favorite questions take things a step further. A particularly insightful question about how the company has handled potential challenges can demonstrate your own expertise in the field.

9.     Admit Mistakes: No one is fooled when you try to cover up mistakes, especially in a problem solving question. After all, your interviewer has probably asked it dozens of times. Admitting a mistake shows that you are analytical enough to recognize when you messed up, and it also demonstrates humbleness and interpersonal skills. No one wants to work with someone who won’t fess up.

10.     Be Fearless: Companies like Google and Microsoft nearly as notorious for their tricky questions as they are famous for their perks. Unfortunately, many candidates freeze when asked a challenging question. Their minds race with thoughts of incompetence and impending doom, instead of with potential solutions. In asking these questions, companies aren’t just trying to test your intelligence (though that’s certainly a component of it). They want to see that you are fearless. They want to see that you’re the type of person who sees a tough problem and charges it head-on. So take a deep breath, and charge.

Monday, 24 September 2012

Excel Sheet Database Connectionstrings | Text File Database Connectionstrings | Microsoft Access Database



Excel Sheet Database
// ODBC DSN

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString =
              "Dsn=DsnName;" +
              "Uid=UserName;" +
              "Pwd=Secret;";
conn.Open();



// ODBC without DSN

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString =
       "Driver={Microsoft Excel Driver (*.xls)};" +
       "Driverid=790;" +
       "Dbq=C:\MyPath\SpreadSheet.xls;" +
       "DefaultDir=C:\MyPath;";
conn.Open();



// OleDb with MS Jet

using System.Data.OleDb;

OleDbConnection conn = new OleDbConnection();
conn.ConnectionString =
    "Driver=Microsoft.Jet.OLEDB.4.0;" +
    "Data Source=C:\MyPath\SpreadSheet.xls;" +
   @"Extended Properties=""Excel 8.0;HDR=Yes""";
conn.Open();



Text File Database
// ODBC DSN

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString =
              "Dsn=DsnName;" +
              "Uid=UserName;" +
              "Pwd=Secret;";
conn.Open();



// ODBC without DSN

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString =
 "Driver={Microsoft Text Driver (*.txt; *.csv)};" +
 "Dbq=C:\MyPath\;" +
 "Extensions=asc,csv,tab,txt;";
conn.Open();

// Use: sql = "Select * From MyTextFile.txt"



// OleDb with MS Jet

using System.Data.OleDb;

OleDbConnection conn = new OleDbConnection();
conn.ConnectionString =
      "Driver=Microsoft.Jet.OLEDB.4.0;" +
      "Data Source=C:\MyPath\;" +
      "Extended Properties=" +
        @"""text;HDR=Yes;FMT=Delimited""";
conn.Open();

// Use: sql = "Select * From MyTextFile.txt"


Microsoft Access Database

// ODBC DSN

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString = "Dsn=DsnName";
conn.Open();



// ODBC -- Standard Security

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString =
    "Driver={Microsoft Access Driver (*.mdb)};" +
    "Dbq=c:\myPath\myDb.mdb;" +
    "Uid=Admin;Pwd=;";
conn.Open();



// ODBC -- Workgroup (System Database)

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString =
    "Driver={Microsoft Access Driver (*.mdb)};" +
    "Dbq=c:\myPath\myDb.mdb;" +
    "SystemDb=c:\myPath\myDb.mdw;";
conn.Open();

// ODBC -- Exclusive Use

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
conn.ConnectionString =
     "Driver={Microsoft Access Driver (*.mdb)};" +
     "Dbq=c:\myPath\myDb.mdb;" +
     "Exclusive=1;";
     "Uid=Admin;Pwd=;";
conn.Open();

// OleDb with MS Jet -- Standard Security

using System.Data.OleDb;

OleDbConnection conn = new OleDbConnection();
conn.ConnectionString =
           "Provider=Microsoft.Jet.OLEDB.4.0;" +
           "Data Source=c:\mypath\myDb.mdb;" +
           "User id=admin;" +
           "Password=";
conn.Open();




// OleDb with MS Jet -- Workgroup (System Database)

using System.Data.OleDb;

OleDbConnection conn = new OleDbConnection();
conn.ConnectionString =
           "Provider=Microsoft.Jet.OLEDB.4.0;" +
           "Data Source=c:\mypath\myDb.mdb;" +
           "System Database=c:\mypath\myDb.mdw;";
conn.Open();



// OleDb with MS Jet -- With Password

using System.Data.OleDb;

OleDbConnection conn = new OleDbConnection();
conn.ConnectionString =
           "Provider=Microsoft.Jet.OLEDB.4.0;" +
           "Data Source=c:\mypath\myDb.mdb;" +
           "Database Password=Secret;"
conn.Open();