Skip to content

"Life would be so much easier if we only had the source code."


June 26, 2011

Hidden Chrome Experiments

There are some hidden experiment stuff in google chrome  browser ! Open-mouthed smile .. im currently using 14.0.797.0 dev-m but Careful, these experiments may bite !! Smile with tongue out 

Type : chrome://flags/ in ur address bar

among these features … most attractive one is Experimental new tab page , Enable it and restart chrome !

image

 

And enjoy the cool ! new tab page

image

There are more available try out and see Winking smile

May 21, 2011

Pixel Traveling !

if you think to travels pixels one by one for image processing nested loops is a bad choice … If No.1 is what u required to achieve nested loops always give you the No.2

May 21, 2011

E-mail spam to social spam ?

Email spam is common and widespread now we can see a new era of spamming with social networks…social spamming can be spread so fast .. and yet any networks haven’t developed filtering attacks can be effective..example Facebook application spams are widely used now …social spamming can be dangerous and can kill networks in days ! ..

April 19, 2011

How to write a ‘Function’ in Haskell 98

After days of trying just figured out how to write a function in haskell 98 (see how noob Winking smile )

‘Functions’ in functional programming plays a major role.. Surprised smile 

There are few thing we should concern before writing a function ..

  • Code Indentation and case sensitiveness  both of these aspects are really needed [We know that case sensitiveness is required in languages like C++ ] BUT first time in functional programming  Code indention is also highly required.

 

  • You CANNOT write functions in the Hugs/GHCI native console [This like this the Hugs console is just a place to test nooby stuff not to write real code Smile ]….

 

Where should you write code ?

Use a text editor Open-mouthed smile [Notepad++ etc.] and save that file with extension .hs

and required to attach that file to the Hugs interpreter …. like this

In Hugs:

File Menu –> Module Manager

image

Click add and attach ur .hs file to the interpreter… after attaching if u see any messages in red color in the hugs console .. there is some thing wrong with ur code !

 Undefined data constructor "x"

Syntax error in declaration (unexpected `}’, possibly due to bad

If u get this kind of error message just check for code indentation and case Smile 

Coding

This is a  function to find factorial using Haskell

fact :: Int –> Int
fact n = if n == 0 then
    1
    else
    n * fact (n-1)

Green stuff are the function definition n

C++/C such as :

return_type function_name (Parameters)

In Haskell:

Function_Name :: Return –> Input Parameters

{ Body }

(Make sure to keep the indentation if not function will throw errors !) Disappointed smile 

March 19, 2011

Super Moon සුපිරි

The moon appears larger than normal due to an optical illusion of perspective today !

19032011422

March 9, 2011

And Houston, Discovery. For the final time, wheelstop !

Shuttle discovery just completed it final journey and landed in Huston !  5.3-million-mile STS-133 mission to ISS. so next is mercury shuttle family donno what is looks like Open-mouthed smile

March 5, 2011

Beyond Fear – Where We in Security

February 16, 2011

Call Center Management System

Desgined using Microsoft SQL Server [Focused on Database Concepts ]and PHP

And here is the ER Diagram !

All the credit should goes to My Database Lecturer Mr.Thangavel Saravanan for his dedicated and great lecturing ! :D

 

February 8, 2011

Noobs Guide to Oracle DML/DDL by a Noob

  • View all the tables

select * from user_tablespaces;

  • Select a Specific table

select * from user_objects where object_type=’TABLE’;
select table_name from tabs; <– to view the table names available in the ORACLE server

  • Current Database

select sys_context(‘USERNV’,’db.name‘) from dual;

  • Create Table

CREATE TABLE table_name ( Column Name Data Type , Column Name 2 , Data Type);

  • View Table

DESCRIBE table_name;

  • Create Triggers

CREATE or REPLACE Trigger_name BEFORE INSERT ON Table_Name FOR EACH ROW
BEGIN
//Command
END;
/

  • Triggers in Column Level

CREATE OR REPLACE TRIGGER trigger_name BEFORE INSERT OR UPDATE OF Column_Name on Table_Name for each row
BEGIN
//command
END;
/

  • Triggers in Table Level

CREATE OR REPLACE TRIGGER trigger_name BEFORE INSERT OR UPDATE ON Table_name for                 each row
BEGIN
//command
END;
/

  • Database Level Trigger

CREATE or REPLACE TRIGGER trigger_name AFTER STARTUP ON database_name
BEGIN
//command
END;
/

  • Prevent Drop Objects from a Table using Triggers

CREATE OR REPLACE TRIGGER trigger_name
BEFORE DROP  ON user_name.schema
BEGIN
//command
END;
/

  • Stored Procedure

CREATE OR REPLACE PROCEDURE procedure_name ( variable , data type)
AS
BEGIN
//command
END;
/

  • Functions

CREATE OR REPLACE FUNCTION function_name ( variable , data type)
AS
BEGIN
//command
END;
/

  • Disable a Trigger

ALTER trigger trigger_name disable/enable;

  • Show Error Messages

Raise_Application_Error(‘Error Code‘,’Error Description’);

  • View Error Descriptions

show error trigger_name;

 

Hope this will be useful :D

January 2, 2011

2010 in review

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads This blog is doing awesome!.

Crunchy numbers

Featured image

A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 2,200 times in 2010. That’s about 5 full 747s.

In 2010, there were 22 new posts, growing the total archive of this blog to 23 posts. There were 13 pictures uploaded, taking up a total of 2mb. That’s about a picture per month.

The busiest day of the year was August 17th with 51 views. The most popular post that day was Running Microsoft SQL [MSSQL] Stored procedures in PHP.

Where did they come from?

The top referring sites in 2010 were phpfreaks.com, slashingtongue.com, facebook.com, healthfitnesstherapy.com, and bigextracash.com.

Some visitors came searching, mostly for cloud computing, claus schenk graf von stauffenberg, cloud computing diagram, graf von stauffenberg, and cloud internet.

Attractions in 2010

These are the posts and pages that got the most views in 2010.

1

Running Microsoft SQL [MSSQL] Stored procedures in PHP May 2010
6 comments

2

General Georgy Zhukov May 2010

3

Cloud Computing not a big deal ? June 2010

4

Claus Schenk Graf von Stauffenberg June 2010

5

About May 2009

Follow

Get every new post delivered to your Inbox.