Tuesday, January 3, 2012

Query to search text In Triggers (SQL SERVER)

SELECT OBJECT_NAME(id)
FROM syscomments
WHERE [text] LIKE '%your_search_here%' AND OBJECTPROPERTY(id, 'IsTrigger') = 1
GROUP BY OBJECT_NAME(id)

Friday, September 2, 2011

ODBC FOR 32 BIT

In order to make dsn on 64 bit machines for vb6 and win32 projects you should use the following line to open the odbc...

c:\Windows\SysWOW64\odbcad32.exe

Monday, August 29, 2011

Reset VSS Admin Password...

Copied from : http://www.tek-tips.com/viewthread.cfm?qid=51186


Hi
I hacked the um.dat file to remove the Admin password
from offset 80 the bytes are (all numbers are hex)

0:80  55 55 bc 7f 41 64 6d 69 6e 00 00 00 00 00 00 00
0:90  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0:a0  00 00 00 00 90 6e 00 00 a8 01 00 00 00 00 00 00

Once you do this the admin password will be empty (no password) you can then login and set.

Wednesday, August 17, 2011

SUSE 11.3 (Error Loading Operating System Fix)

Try re-installing grub.
Whilst booted with the USB drive - open a terminal and become su, and follow this

You enter this ---------------- grub

Computer returns like this ---- grub>

You enter this ---------------- find /boot/grub/menu.lst

Computer returns like this ---- (hd0,1)

Here, (hd0,1) is Grub's pointer to my openSUSE installation. Your pointer should be the same, I edited this example to (hd0,1).

You enter this ---------------- root (hd0,1)

Computer returns like this ---- Filesystem type is ext2fs, partition type 0x83

You enter this ---------------- setup (hd0)

You see several lines like this --- Checking if /boot/grub/stage1 exists ... yes Computer finally returns this-- Succeeded.......Done

You enter this ---------------- quit

You enter this ---------------- reboot

Monday, December 6, 2010

IPhone/IPad Development Course...

Dear Students/Professionals,

I am planning to start "IPhone Development Course", where i will be covering following topics:
- Getting Started with iOS 4 Programming
- Write Your First Hello World! Application
- Views, Outlets, and Actions
- View Controllers
- Multi-Platform Support for the iPhone and iPad
- Keyboard Inputs
- Screen Rotations
- Using the Table View
- Application Preferences
- File Handling
- Database Storage Using SQLite3
- Simple Animations and Video Playback
- Accessing Built-In Applications
- Recognizing Gestures
- Accessing the Accelerometer
- Web Services
- Bluetooth Programming
- Apple Push Notification Service
After the course you will be able to develop, compile & test iphone/ipod/ipad apps. At the end of the course we will also cover the topic of posting iPhone Apps to the Apple Store, where it will be downloaded by millions of users.

Those who are interested, email me at umer.naseer@gmail.com
I will take up a group of 10 students initially and will have classes on Saturday & Sunday for 2 hours duration.

The course will approximately take 20 hours.
The fee for the entire course will be Rs.15000/-
Please forward this post to further student groups also.
Thanks
Umer Naseer
CTO
Wavetec Private Limited,
The Technology Company
245-2-N Block-6 PECHS,
Karachi-75400, Pakistan
Cell: +(92334)-358-1618
Tel: +(9221) 111-111-133 ext. 106
Fax: +(9221) 454-5465
http://www.wavetec.com/

Tuesday, October 12, 2010

Recursive function to calculate a^b (a power of b)

int mypower(int a, int b)
{
if (b==0)
   return 1;
else
     return (a * mypower (a,b--));
}