Tuesday 13 January 2015

The site name will be changed to gistsolutionsz.blogspot.com effectively from 26-1-2015

Monday 12 January 2015

Addicted to Pornography

Are you addicted to Pornography? Do you watch it alone or with your spouse? Do you make excuses to yourself to justify that its ok to watch it? A short advice on why these diseases have now infested our societies even though we possess Islam, The most beautiful way of life!

Pornography addiction is a behavioral addiction characterized by compulsive, repeated use of pornographic material until it causes serious negative consequences to one's physical, mental, social, and/or financial well-being.

Addiction to Internet pornography is also a form of cybersex addiction. There is no diagnosis of pornography addiction in the current Diagnostic and Statistical Manual of Mental Disorders .

Problematic Internet pornography viewing is viewing of Internet pornography that is problematic for an individual for personal, or social reasons, or reasons such as time spent viewing or viewing in problematic situations. Individuals may report depression, social isolation, career loss or decreased productivity, and financial consequences as a result of their problematic Internet pornography viewing.


Addicted to Porn

Friday 2 January 2015

Simple but Strong Program on Indian Flag in JAVA using Applet

import java.awt.*;
import java.applet.*;
/*<applet code=Flag.class width=300 height=200></applet>*/
public class Flag extends Applet {
 public void paint(Graphics g) {
  g.setColor(Color.orange);
  g.fillRect(20,10,270,30);
  g.setColor(Color.white);
  g.fillRect(20,40,270,30);
  g.setColor(Color.green);
  g.fillRect(20,70,270,30);
  g.setColor(Color.blue);
  g.drawOval(135,42,25,25);
  g.drawLine(148,42,148,67);
  g.drawLine(136,54,161,54);
  g.drawLine(140,46,156,62);
  g.drawLine(154,46,140,64);
  g.setColor(Color.black);
  g.fillRect(15,10,5,200);
 }
}

Oldest and Best Visual Basic

Visual Basic - Check Box, Option Button and Frame


Step1: Place One Label, one Text Box, Two Frames, Two Option Buttons, Three Check Boxes and a Command Button on the Form1
Step2: Rename the Control Caption in the Property Window as follows
 
Form1 -> Option & Check
Label1 -> Enter Text Here:
Frame1 -> Case
Frame2 -> Effects
Option1 -> Upper
Option2 -> Lower
Check1 -> Strike Through
Check2 -> Under Line
Check3 -> Bold
Command1 -> Exit
 
Change the Text1 Properties as multiline True and ScrollBars as Both
Enter the following codes in the corresponding controls
Private Sub Check1_Click()
If Check1.Value = 1 Then
Text1.Font.Strikethrough = True
Else
Text1.Font.Strikethrough = False
End If
End Sub

Private Sub Check2_Click()
If Check2.Value = 1 Then
Text1.Font.Underline = True
Else
Text1.Font.Underline = False
End If
End Sub

Private Sub Check3_Click()
If Check3.Value = 1 Then
Text1.Font.Bold = True
Else
Text1.Font.Bold = False
End If
End Sub

Private Sub Command1_Click()
End
End Sub

Private Sub Form_Load()
Option2.Value = True
End Sub

Private Sub Option1_Click()
If Option1.Value = True Then
 Text1.Text = UCase(Text1)
 End If
 End Sub

Private Sub Option2_Click()
If Option2.Value = True Then
Text1.Text = LCase(Text1)
End If
End Sub

 Step3: Run the Application by pressing F5

DATA STRUCTURE 

Java program for Linked list (Lists)


import java.util.*;

public class LinkedListDemo{
public static void main(String[] args){
LinkedList link=new LinkedList();
link.add("a");
link.add("b");
link.add(new Integer(10));
System.out.println("The contents of array is" + link);
System.out.println("The size of an linkedlist is" + link.size());

link.addFirst(new Integer(20));
System.out.println("The contents of array is" + link);
System.out.println("The size of an linkedlist is" + link.size());

link.addLast("c");
System.out.println("The contents of array is" + link);
System.out.println("The size of an linkedlist is" + link.size());

link.add(2,"j");
System.out.println("The contents of array is" + link);
System.out.println("The size of an linkedlist is" + link.size());

link.add(1,"t");
System.out.println("The contents of array is" + link);
System.out.println("The size of an linkedlist is" + link.size());

link.remove(3);
System.out.println("The contents of array is" + link);
System.out.println("The size of an linkedlist is" + link.size());
}
}