Tuesday, May 19, 2015

Fatal error: Call to undefined function pg_connect()

Uncomment following lines in your php.ini and you are good to go.

extension=php_pdo_pgsql.dll
extension=php_pgsql.dll

I hope this helps. Thanks!!!!

Thursday, May 7, 2015

NetBeans How to : Using Subversion

I will just post the original link here and attachment.

https://wiki.csc.calpoly.edu/Surelock/wiki/NetBeansHOWTO

Please let me know if the link is broken. Hope it helps.. thanks!!

Friday, September 5, 2014

Quickly Show/Hide Hidden Files on Mac OS X Mavericks

To Show
1 > Open Terminal

2 >  defaults write com.apple.finder AppleShowAllFiles YES
3 >
  Right-click on Finder while holding "Alt/option" key and select "Relaunch" the Finder.


To Hide
1 > Open terminal
2 > defaults write com.apple.finder AppleShowAllFiles NO

Please repeat above step 3> to relaunch the Finder.


Thank you.

I have found this solution here :
http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/

Getting files by creation date in .NET

using System.Linq;

DirectoryInfo info = new DirectoryInfo("");
FileInfo[] files = info.GetFiles().OrderBy(p => p.CreationTime).ToArray();
foreach (FileInfo file in files)
{
    // DO Something...
}
full credit to original post:
http://stackoverflow.com/questions/4765789/getting-files-by-creation-date-in-net

Friday, June 20, 2014

Default Maximized Window State for JFrame using NetBeans IDE


1. Go to JFrame - Properties
2. Set extendedState to MAXIMIZED_BOTH

Sunday, April 13, 2014

Connect Remote MSSQL Server with PHP

Connect MSSQL Server with PHP

<?php
$server = 'xxx.xxx.xxx:port';
// Connect to MSSQL
$link = mssql_connect($server, 'user', 'password');
if (!$link) {
    die('Something went wrong while connecting to MSSQL');
}
if($link)
{
    echo mssql_get_last_message();
    mssql_close();
}
?>

You can use localhost instead of ip or url if you are connecting on the same machine. :) Thanks :)

Friday, March 2, 2012

Using your DIVs as Tables

Enjoy your coding!!!

<html>
<head>
<style>
  #container {
    display: table;
    }
  #row  {
    display: table-row;
    }

  #left, #right, #middle {
    display: table-cell;
    }
</head>
<body>
<div id="container">
  <div id="row">
   <div id="left">
     Left
   </div>
   <div id="middle">
      Middle
   </div>
   <div id="right">
       Right
   </div>
 </div>
</div>
</body>
</html>