Monday, November 23, 2009

Nothing Else Matters

So close, no matter how far
Couldn't be much more from the heart
Forever trusting who we are
and nothing else matters

Never opened myself this way
Life is ours, we live it our way
All these words I don't just say
and nothing else matters

Trust I seek and I find in you
Every day for us something new
Open mind for a different view
and nothing else matters

never cared for what they do
never cared for what they know
but I know

So close, no matter how far
Couldn't be much more from the heart
Forever trusting who we are
and nothing else matters

never cared for what they do
never cared for what they know
but I know

Never opened myself this way
Life is ours, we live it our way
All these words I don't just say

Trust I seek and I find in you
Every day for us, something new
Open mind for a different view
and nothing else matters

never cared for what they say
never cared for games they play
never cared for what they do
never cared for what they know
and I know

So close, no matter how far
Couldn't be much more from the heart
Forever trusting who we are
No, nothing else matters

Replace white space and find in last modified file

Unix (Finding in last modified file)
----
ls -ltr|tail -1 | xargs grep 0
ls -t|head -2 | xargs grep 0 | wc -l

Finding in Yesterday's File
---------------------------
find /export/home/mdsp/record/systemlog/AuthPrice -type f -mtime -1 |xargs grep 0|wc -1

Java (Replace white space)
----
if(StringUtils.hasLength(sText)
{
sText= sText.replaceAll("\\s+", " AND ");
}

Wednesday, September 30, 2009

A dream to remember

It was a dream, dream in literal.
I was going home, some village or my village. I was with my bike, I felt relaxed going home, suddenly I heard some car sound and saw a taxi behind me, it was unusual to find a taxi in that soil built dusty village road, I was astonished and stopped willingly to see the taxi, while the taxi was crossing me a girl cried loudly "Bhaiyaaaaa", I could recognize her, she was one of my friends' girl friend. "What is she doing here?". Before I got my answer I saw another university mate in that taxi. I thought they are here, may be for some expedition or project. The taxi left me behind, I can clearly see the taxi still now, it was moving like a junk cartoon in that village road.
I was following that taxi and it stopped ahead of me in a beautiful garden like place and I saw a grand rest house there, I never saw that guest house in my village. Well forwarding to there I found my friend, that girls boyfriend. It was reasonable to find him, it was pretty joyful and surprising to find him there at my village.

But the real drama I saw after a while, it was a rally of taxis, moving like junk cartoon in soil built dusty village road, loaded with people, all my university people, my friends, my enemies, they are all I could remember, some of them are now far away from this country, but I found them all.

I felt I am host, they are all my guest. They all ported to that rest house. They were playing, they were talking, they were laughing and dancing.
I saw them, I was quite myself in my dream, the most beautiful dream so far.

Tuesday, September 1, 2009

Shock Number Five

"Shocks make you stronger"

Did I ever find a universal application of it? Or specially if it is the victim myself?
Shocks are making me weaker, May be I was/am a weaker person who could never stand against shocks, shocks made me weaker and turned me more eligible for new shocks. What causes pain? As an alarm of some imbalances in body and mind. Were I could manage myself to believe that pains are imbalances, by under going proper process this imbalance could have been reduced. And people say,

"It is never too late"

True , a part of process to create equilibrium. Some day scientist will find a way to calculate and model "Entropy of mind".

We all know its late when it is late, why should we give ourselves support to exists?
I am always supporting myself, may be in a wrong way, there is always a trade off supporting oneself blindly.

Is there any practical reason to follow some one blindly? Or why I might be writing this shit? Why I should feel happy unreasonably?

Let's analyze an important term and it is "Just".


My manager delivered a message to me trying to soothing my pain of the disaster of not being upgraded. Instantly I put an extra emotional weight to that short message. "what should I reply? Should I reply "Asshole, who the hell you think you are to repay in favor of my pain?" Discussing with saikat and collecting some data I came to know that the message belongs to "Just" category. Collected information was something like "manager gave that message to everyone", doing some so called formalities. It was just a message. Reply should also be just a message. "Thanks" is the perfect one. Wish I could sort out all the "Just" around. Life would have been easier.

Now why should I follow some one blindly. The core part of any relation is

Love
Respect
Faith


How could I support myself to follow her convincing thyself she is some one whom I love, for whom I have respect and faith? In reality who I do have no relation with?
Should not I categorize those feelings in "Just" group? Those feelings were just feelings. But I can't and this inability have turned me into and idiot who will die in pain who will die in vein.

Well she (or might be she) might see an IP address
76.123.226.114, 72.150.229.2 (or around)etc if she hits http://whatismyipaddress.com/.

Like wise shaila will see 118.138.204.181

Both these information are "just" category information, but I have always given extra weight to former one, fool I am. Trying to believe that I live or will live in her/their mind.

Let not there be such foolishness.

Amen

Monday, August 31, 2009

Task Class





FTP Task Class
--------------


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author user
*/

import java.io.*;
import java.net.*;
import java.util.TimerTask;
public class FtpTask extends TimerTask {



public void ftpDownload(String h,String u,String p, String s,int q) {

// int count =1;
URLConnection m_client = null;

// String host = "192.168.94.64";
String host = h;

//String user = "root";
String user = u;
// String password = "infoX";
String password = p;
//String sdir = "ddiag/test.txt";
String sdir = s;
String erMesg ="";
String succMesg ="";
int k = q;

try{

URL url = new URL("ftp://"+user+":"+password+"@"+host+"/"+sdir+";type=i");

m_client = url.openConnection();



}catch(Exception ex){
StringWriter sw0= new StringWriter();
PrintWriter p0= new PrintWriter (sw0,true);
ex.printStackTrace(p0);
erMesg = sw0.getBuffer().toString();

}

try{
InputStream is = m_client.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);

OutputStream os = new FileOutputStream("C:/mdspfile.txt");
if(k==1)
{
os = new FileOutputStream("C:/mdspfile.txt");
}
else if(k==2)
{
os = new FileOutputStream("C:/wapfile.txt");
}
else
os = new FileOutputStream("C:/mmscfile.txt");

BufferedOutputStream bos = new BufferedOutputStream(os);

byte[] buffer = new byte[1024];
int readCount;

while( (readCount = bis.read(buffer)) > 0)
{
bos.write(buffer, 0, readCount);
}
bos.close();
is.close (); // close the FTP inputstream
// this.succMesg = "Downloaded";


}catch(Exception ex){
StringWriter sw0= new StringWriter ();
PrintWriter p0= new PrintWriter ( sw0, true );
ex.printStackTrace ( p0 );
erMesg = sw0.getBuffer().toString ();

}
}

@Override
public void run() {
throw new UnsupportedOperationException("Not supported yet.");
}


}




Compare Line Class
-----------------------------


import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;


public class CompareLine
{

public int count =1;
// public static void main(String[] args)

public void compare(String f1, String f2 )
{


try
{


// File file1 = new File("C:\\MyFile.txt");
File file1 = new File(f1);
File file2 = new File(f2);

FileInputStream fis1 = null;
BufferedInputStream bis1 = null;
DataInputStream dis1 = null;

FileInputStream fis2 = null;
BufferedInputStream bis2 = null;
DataInputStream dis2 = null;

try {
fis1 = new FileInputStream(file1);

// Here BufferedInputStream is added for fast reading.
bis1 = new BufferedInputStream(fis1);
dis1 = new DataInputStream(bis1);
fis2 = new FileInputStream(file2);
bis2 = new BufferedInputStream(fis2);
dis2 = new DataInputStream(bis2);


while (dis1.available() != 0) {


if(dis1.readLine().equals(dis2.readLine()))
{
// System.out.println("Line right\n");

}
else

{

System.out.println("Line mismatch " + count+"\n");
// System.out.println(dis1.readLine()+" From file 1");
// System.out.println(dis2.readLine()+" From file 2");
count++;


}
}

// dispose all the resources after using them.
fis1.close();
bis1.close();
dis1.close();
fis2.close();
bis2.close();
dis2.close();

}

catch (FileNotFoundException e)
{
e.printStackTrace();
}
}
catch (IOException e)
{
e.printStackTrace();
}


////////////////////////





}

}



OpenUrl Class
----------------------------------------------------------


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author user
*/



import java.lang.reflect.Method;
import javax.swing.JOptionPane;
import java.util.Arrays;

public class OpenUrl {

static final String[] browsers = { "firefox", "opera", "konqueror", "epiphany",
"seamonkey", "galeon", "kazehakase", "mozilla", "netscape" };

public static void openURL(String url) {
String osName = System.getProperty("os.name");
try {
if (osName.startsWith("Mac OS")) {
Class fileMgr = Class.forName("com.apple.eio.FileManager");
Method openURL = fileMgr.getDeclaredMethod("openURL",
new Class[] {String.class});
openURL.invoke(null, new Object[] {url});
}
else if (osName.startsWith("Windows"))
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
else { //assume Unix or Linux
boolean found = false;
for (String browser : browsers)
if (!found) {
found = Runtime.getRuntime().exec(
new String[] {"which", browser}).waitFor() == 0;
if (found)
Runtime.getRuntime().exec(new String[] {browser, url});
}
if (!found)
throw new Exception(Arrays.toString(browsers));
}
}
catch (Exception e) {
JOptionPane.showMessageDialog(null,
"Error attempting to launch web browser\n" + e.toString());
}
}

}



The Main Class
----------------------------------------------------



import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.Timer;
import java.util.TimerTask;


public class SystemHealthMDSP extends javax.swing.JFrame {

/** Creates new form SystemHealthMDSP */
public SystemHealthMDSP() {
initComponents();

}

/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
//
private void initComponents() {

jPanel1 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jSeparator2 = new javax.swing.JSeparator();
jLabel5 = new javax.swing.JLabel();
jProgressBar1 = new javax.swing.JProgressBar();
jLayeredPane1 = new javax.swing.JLayeredPane();
jToolBar1 = new javax.swing.JToolBar();
jButton7 = new javax.swing.JButton();
jButton8 = new javax.swing.JButton();
jButton9 = new javax.swing.JButton();
jToolBar2 = new javax.swing.JToolBar();
jButton10 = new javax.swing.JButton();
jButton11 = new javax.swing.JButton();
jButton12 = new javax.swing.JButton();
jLayeredPane2 = new javax.swing.JLayeredPane();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jButton2 = new javax.swing.JButton();
jSeparator1 = new javax.swing.JSeparator();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jButton5 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem3 = new javax.swing.JMenuItem();
jMenu3 = new javax.swing.JMenu();
jMenuItem4 = new javax.swing.JMenuItem();
jMenuItem5 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
jMenuItem6 = new javax.swing.JMenuItem();
jMenuItem7 = new javax.swing.JMenuItem();
jMenu4 = new javax.swing.JMenu();
jMenuItem8 = new javax.swing.JMenuItem();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setResizable(false);

jPanel1.setBackground(new java.awt.Color(101, 97, 97));
jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

jButton1.setBackground(new java.awt.Color(255, 255, 255));
jButton1.setFont(new java.awt.Font("Arial", 1, 11));
jButton1.setForeground(new java.awt.Color(51, 51, 51));
jButton1.setText("MMSC");
jButton1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, null, new java.awt.Color(51, 153, 255), null, null));
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

jButton3.setFont(new java.awt.Font("Arial", 1, 11));
jButton3.setText("WAP");

jButton4.setFont(new java.awt.Font("Arial", 1, 11));
jButton4.setText("MDSP");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});

jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14));
jLabel1.setForeground(new java.awt.Color(0, 153, 255));
jLabel1.setText("System");

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(21, 21, 21)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)))
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGap(80, 80, 80)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(29, 29, 29)
.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 108, Short.MAX_VALUE)
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(57, 57, 57)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(97, 97, 97))
);

jLabel5.setForeground(new java.awt.Color(102, 102, 102));
jLabel5.setText("Developed by Ashik");

jLayeredPane1.setBackground(new java.awt.Color(51, 204, 0));
jLayeredPane1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("")));
jLayeredPane1.setForeground(new java.awt.Color(0, 255, 204));

jToolBar1.setRollover(true);

jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/links_icon.gif"))); // NOI18N
jButton7.setFocusable(false);
jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jToolBar1.add(jButton7);

jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon2.gif"))); // NOI18N
jButton8.setFocusable(false);
jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});
jToolBar1.add(jButton8);

jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon.png"))); // NOI18N
jButton9.setFocusable(false);
jButton9.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton9.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jToolBar1.add(jButton9);

jToolBar1.setBounds(0, 0, 120, 30);
jLayeredPane1.add(jToolBar1, javax.swing.JLayeredPane.DEFAULT_LAYER);

jToolBar2.setRollover(true);

jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/lab_icon.gif"))); // NOI18N
jButton10.setFocusable(false);
jButton10.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton10.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jToolBar2.add(jButton10);

jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon10.gif"))); // NOI18N
jButton11.setFocusable(false);
jButton11.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton11.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jToolBar2.add(jButton11);

jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/media_icon.gif"))); // NOI18N
jButton12.setFocusable(false);
jButton12.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton12.setSelected(true);
jButton12.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jToolBar2.add(jButton12);

jToolBar2.setBounds(120, 0, 160, 30);
jLayeredPane1.add(jToolBar2, javax.swing.JLayeredPane.DEFAULT_LAYER);

jLayeredPane2.setBackground(new java.awt.Color(204, 204, 204));
jLayeredPane2.setOpaque(true);

jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);

jScrollPane1.setBounds(10, 50, 500, 410);
jLayeredPane2.add(jScrollPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);

jButton2.setText("Clear Console");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton2.setBounds(390, 20, 120, -1);
jLayeredPane2.add(jButton2, javax.swing.JLayeredPane.DEFAULT_LAYER);
jSeparator1.setBounds(20, 490, 460, -1);
jLayeredPane2.add(jSeparator1, javax.swing.JLayeredPane.DEFAULT_LAYER);

jTextField1.setText("13");
jTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField1ActionPerformed(evt);
}
});
jTextField1.setBounds(160, 510, 60, 20);
jLayeredPane2.add(jTextField1, javax.swing.JLayeredPane.DEFAULT_LAYER);

jTextField2.setText("7");
jTextField2.setBounds(400, 510, 50, 20);
jLayeredPane2.add(jTextField2, javax.swing.JLayeredPane.DEFAULT_LAYER);

jButton5.setText("Fail Message");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jButton5.setBounds(20, 503, 130, 30);
jLayeredPane2.add(jButton5, javax.swing.JLayeredPane.DEFAULT_LAYER);

jButton6.setText("Line Mismatch");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});
jButton6.setBounds(260, 500, 120, 30);
jLayeredPane2.add(jButton6, javax.swing.JLayeredPane.DEFAULT_LAYER);

jMenu1.setText("System");

jMenuItem1.setText("MDSP");
jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem1);

jMenuItem2.setText("WAPGW");
jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem2ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem2);

jMenuItem3.setText("MMSC");
jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem3ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem3);

jMenuBar1.add(jMenu1);

jMenu3.setText("Tools");

jMenuItem4.setText("Open Log");
jMenu3.add(jMenuItem4);

jMenuItem5.setText("Save Log");
jMenu3.add(jMenuItem5);

jMenuBar1.add(jMenu3);

jMenu2.setText("Edit");

jMenuItem6.setText("Edit log");
jMenu2.add(jMenuItem6);

jMenuItem7.setText("Properties");
jMenu2.add(jMenuItem7);

jMenuBar1.add(jMenu2);

jMenu4.setText("Help");

jMenuItem8.setText("About Health check");
jMenu4.add(jMenuItem8);

jMenuBar1.add(jMenu4);

setJMenuBar(jMenuBar1);

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(235, 235, 235)
.addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 239, Short.MAX_VALUE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(53, 53, 53))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLayeredPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 579, Short.MAX_VALUE)
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 761, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLayeredPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 563, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

pack();
}//

int system = 0;
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
// CompareLine a = new Compareline();



FileInputStream fis1 = null;
BufferedInputStream bis1 = null;
DataInputStream dis1 = null;
File fileMdsp = new File("C:\\mmscfile.txt");
try
{
fis1 = new FileInputStream(fileMdsp);
// Here BufferedInputStream is added for fast reading.
bis1 = new BufferedInputStream(fis1);
dis1 = new DataInputStream(bis1);
try {
jTextArea1.setText("MMSC System status\n\n\n");
jTextArea1.setText("----------------------------------------");

while (dis1.available() != 0) {
jTextArea1.append((String) dis1.readLine()+"\n");
}
} catch (IOException ex) {
Logger.getLogger(SystemHealthMDSP.class.getName()).log(Level.SEVERE, null, ex);
}
}
catch(FileNotFoundException e)

{
e.printStackTrace();

}






int count =1;
if(system==0){
FtpTask ftpmdsp = new FtpTask();
// ftpmdsp.ftpDownload("192.168.94.64","root","infoX","ddiag/test.txt");
}
else if(system == 1)
{
FtpTask ftpmdsp = new FtpTask();
//ftpmdsp.ftpDownload("192.168.23.17","root","infoX-root","ddiag/test.txt");
}

else if (system == 2)
{
FtpTask ftpmdsp = new FtpTask();
// ftpmdsp.ftpDownload("192.168.23.4","root","infoX-root","ddiag/test.txt");
}



/*if(count>=14)
{
OpenUrl SMSUrl = new OpenUrl();
//OpenUrl.openURL("http://202.134.8.28/tgw/SMPPTest.jsp?number=7181339&msg=MDSP+Down&psswd=0181");
}
*/

FtpTask ftpmdsp = new FtpTask();
ftpmdsp.ftpDownload("192.168.23.4","root","infoX-root","ddiag/test.txt",3);





}

private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jLabel1.setText("WAPGW HEALTH CHECK");
system = 1;
}

private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jLabel1.setText("MMSC HEALTH CHECK");
system = 2;
}

private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jLabel1.setText("MDSP HEALTH CHECK");
system = 0;
}

private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:

// TimerTask downloadTask = new DownloadTask(this);
// Timer timer = new Timer();
// timer.scheduleAtFixedRate(downloadTask,0, 1000000);




FtpTask ftpmdsp = new FtpTask();
ftpmdsp.ftpDownload("192.168.94.64","root","infoX","ddiag/test.txt",1);
File fileMdsp = new File("C:\\mdspfile.txt");


FileInputStream fis1 = null;
BufferedInputStream bis1 = null;
DataInputStream dis1 = null;
try
{
fis1 = new FileInputStream(fileMdsp);
// Here BufferedInputStream is added for fast reading.
bis1 = new BufferedInputStream(fis1);
dis1 = new DataInputStream(bis1);
try {
jTextArea1.setText("MDSP System status\n\n\n");
jTextArea1.setText("----------------------------------------");

while (dis1.available() != 0) {
jTextArea1.append((String) dis1.readLine()+"\n");
}
} catch (IOException ex) {
Logger.getLogger(SystemHealthMDSP.class.getName()).log(Level.SEVERE, null, ex);
}
}
catch(FileNotFoundException e)

{
e.printStackTrace();

}



}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jTextArea1.setText("");
TimerTask downloadTask = new TimerFTP();
Timer timer = new Timer();
timer.scheduleAtFixedRate(downloadTask,0, 100000);
}

private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:

/* try {
SmsRequest sms = new SmsRequest();
sms.RequestSms();
} catch (Exception ex) {
Logger.getLogger(SystemHealthMDSP.class.getName()).log(Level.SEVERE, null, ex);
}*/
try
{
WordSearch ws = new WordSearch();
ws.SearchString("C://mdspfile.txt", "Offline","mdsp2","oracle-rg");
/* ws.SearchString("C://mdspfile.txt", "Offline","mdsp1","mdsp_rg");
ws.SearchString("C://mdspfile.txt", "Offline","share-ip1","mdsp2");
ws.SearchString("C://mdspfile.txt", "Offline","oraclestorage","mdsp2");
ws.SearchString("C://mdspfile.txt", "Offline","oracle_listener","mdsp2");
ws.SearchString("C://mdspfile.txt", "Offline","oracle_server","mdsp2");
ws.SearchString("C://mdspfile.txt", "Offline","share-ip2","mdsp1");
ws.SearchString("C://mdspfile.txt", "Offline","mdspkg","mdsp1");
ws.SearchString("C://mdspfile.txt", "Offline","mdsp_hadgs","mdsp1");*/
jTextField1.setText(""+ws.failCount);

}
catch (Exception ex) {
Logger.getLogger(SystemHealthMDSP.class.getName()).log(Level.SEVERE, null, ex);
}


try {
TelnetScript tels = new TelnetScript();
tels.TelConnect();
}
catch (Exception ex) {
Logger.getLogger(SystemHealthMDSP.class.getName()).log(Level.SEVERE, null, ex);
}



}

private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
try
{
CompareLine cl = new CompareLine();
cl.compare("C:\\mdspfile.txt", "C:\\mdsp.txt");
// String t = (String)(cl.count);
jTextField2.setText(""+(cl.count));

}
catch (Exception e) {
System.err.println("Got an exception! ");
}



}

private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:

NewClass nc = new NewClass();
nc.ExecuteCommand();
}

private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
NetComponent netc = new NetComponent();
netc.RunScript();
}


/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new SystemHealthMDSP().setVisible(true);
}

//**********************************************************
{


}


















});
}

// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton10;
private javax.swing.JButton jButton11;
private javax.swing.JButton jButton12;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
private javax.swing.JButton jButton9;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel5;
private javax.swing.JLayeredPane jLayeredPane1;
private javax.swing.JLayeredPane jLayeredPane2;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenu jMenu3;
private javax.swing.JMenu jMenu4;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JMenuItem jMenuItem2;
private javax.swing.JMenuItem jMenuItem3;
private javax.swing.JMenuItem jMenuItem4;
private javax.swing.JMenuItem jMenuItem5;
private javax.swing.JMenuItem jMenuItem6;
private javax.swing.JMenuItem jMenuItem7;
private javax.swing.JMenuItem jMenuItem8;
private javax.swing.JPanel jPanel1;
private javax.swing.JProgressBar jProgressBar1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
private javax.swing.JToolBar jToolBar1;
private javax.swing.JToolBar jToolBar2;
// End of variables declaration

}




Sms Sql Class
-----------------------------------------------------




/**
* Ashikur Rahman
* @author user
*/

import java.sql.*;

public class SmsSql
{
// Query1.java: Query an mSQL database using JDBC.

void ForSms()
{
try {
String url = "jdbc:msql://192.168.87.134:3306/test";
Connection conn = DriverManager.getConnection(url,"manzur","manzur");
Statement stmt = conn.createStatement();

ResultSet rs;

rs = stmt.executeQuery("SELECT * FROM tarchira");
while ( rs.next() ) {
String lastName = rs.getString("*");
System.out.println(lastName);
}
conn.close();
} catch (Exception e) {
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
}
}

}



SMS Request Class
--------------------------------------------------------------------


/** Ashikur Rahman
*
* @author user
*/


import java.net.*;
import java.io.*;
import java.util.Date;
public class SmsRequest {



//class UCDemo

public static void RequestSms() throws Exception
{
int c;
//URL hp = new URL("http://www.java-samples.com/j2me/");
URL hp = new URL("http://192.168.87.134/asptest/GPRS_alarm.asp?port=8801817181339&body=MDSP+Alarm+Test");
// URL hpp = new URL("http://192.168.87.134/asptest/GPRS_alarm.asp?port=8801817181339&body=MDSP+Alarm+Test");
// URL hppp = new URL("http://192.168.87.134/asptest/GPRS_alarm.asp?port=8801817181047&body=MDSP+Alarm+Test");

URLConnection hpCon = hp.openConnection();
// URLConnection hpConn = hpp.openConnection();
// URLConnection hpConnn = hppp.openConnection();
System.out.println("Date: " + new Date(hpCon.getDate()));
System.out.println("Content-Type: " + hpCon.getContentType());
System.out.println("Expires: " + hpCon.getExpiration());
System.out.println("Last-Modified: " + new Date(hpCon.getLastModified()));
int len = hpCon.getContentLength();
System.out.println("Content-Length: " + len);
if (len > 0)
{
System.out.println("=== Content ===");
InputStream input = hpCon.getInputStream();
int i = len;
while (((c = input.read()) != -1) && (-i > 0))
{
System.out.print((char) c);
}
input.close();
}
else
{
System.out.println("No Content Available");
}
}

}



New Class
-------------------------------------------------------------


import java.io.*;


public class NewClass {







public void ExecuteCommand() {

try {
Runtime rt = Runtime.getRuntime();
// Process pr = rt.exec("cmd /c telnet 192.168.85.22");
//Process pr = rt.exec("ftp 192.168.94.64");
String cmd = "ftp 192.168.94.64";
Process pr = rt.exec(cmd);
BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));

String line=null;

while((line=input.readLine()) != null) {
System.out.println(line);
}

int exitVal = pr.waitFor();
System.out.println("Exited with error code "+exitVal);

} catch(Exception e) {
System.out.println(e.toString());
e.printStackTrace();
}
}


}



Word Search Class
-----------------------------------------------------------


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author user
*/
import java.io.*;

public class WordSearch {

public int failCount =0;

public void SearchString(String s, String message1, String message2, String message3)
{

try
{
//File file = new File("c://blue//detectLog//detectLog.csv");
File file = new File(s);

if(file.exists())
{
FileReader fr = new FileReader(file);
LineNumberReader ln = new LineNumberReader(fr);
String readL = "";
do
{
if((readL = ln.readLine()) == null)
break;
/* if(readL.contains(message1) && readL.contains(message2) && readL.contains(message3))
{
failCount++;
System.out.println(readL+" "+ln.getLineNumber());

}*/
if(readL.contains(message1) && (ln.getLineNumber()==84 ||ln.getLineNumber()==86 || ln.getLineNumber()==95 || ln.getLineNumber()==98 || ln.getLineNumber()==101 || ln.getLineNumber()==104 || ln.getLineNumber()==106 || ln.getLineNumber()==109 || ln.getLineNumber()==112))
{
failCount++;
}


} while(true);
// System.out.println((new StringBuilder()).append("Total line no: ").append(count).toString());
ln.close();
fr.close();
} else
{
System.out.println("File does not exists!");
}
}
catch(Exception e)
{
e.printStackTrace();
}

}
}




Timer FTP Class
------------------------------------------------------------------



import java.util.TimerTask;



/**
*
* @author xencare1
*/
public class TimerFTP extends TimerTask{



/** Creates a new instance of DownloadTask */


public void run() {
//do download things here
FtpTask download = new FtpTask();
System.out.println("This run loop");
download.ftpDownload("192.168.94.64","root","infoX","ddiag/test.txt",1);
//ftpDownloadCampagnXML();
}

public void startDownloading()
{

}


public void stopDownlaoding()
{

}



}

Friday, August 21, 2009

Music with FL

Still need to learn how these can behave.

3xOsc
Peak Controller
Layer
Slice-X
Synthesizer and slicer
TS404 Plug-in
EQUO
Wave traveler for scratch
Automation clip for envelop , link controller
Mixer (Filter)
Edison Editor
Naming patterns
Chord progression
Bass synthesis.
Root note very low for bass effect for any instrument.
FL key plug-in tuning with low treble
Pan
Volume
Velocity
Feed to reverb
Plug-in groups
Video tutorials from Image line
FPC use with different combination
Syncopation
More important is learn to create music with three channel in a mixer

1. Select a theme
2. Select bit
3. Sing with vocal
4. Sing song those sing others
5. Look out for transitions
6. Realize the philosophy behind music.



What is worthy about them

Delay use, One ends another begins
Frequency tuning, Use of shape, Vol cut and Res settings
Selecting filter
Transition

Ekdin Protidin

Karo jonno sacrifice kore kisu ekta korei thaki, tarpor kisu ekta kore sacrifice er glory ta nijei nosto kori, this is stupid. Valo kisu korbo, seta k aro valo rakhar jonno kono praptir asha na kore ba valo kisu korar jonno baktigoto opochoy tuku bujhte na dile sobchaite valo hoy, tate tori tire aslo ar tori dublo na.

GPRS service fluctuating:

1. Hand book er idea onek puraton , Hand book sathe rakha joruri. Network diagram sathe thaka joruri.

2. See all alarms of connected nodes.

3. See all system logs.

4. Computer nosto hole trial - error basis e kaj kortam, ekhaneo tai, Firewall by pass kora, LAN by pass kora. Divide and conquer strategy.

5. Compare configuration files to standard ones.

6. Hop by hop test by ping. (Total flow diagram ta mathay rakha)

7. Test catalyst , known effect k jene model fitting kora.

8. Refresh, reboot works well.

Manager is responsible to clarify, He must do his own business, Every one is manager in his world, Good managerial skill is good pushing skill to collect information and get the output done. Hok seta chole, bole or koushole.


Let your temperament be cool, but you must be angry sometimes just to keep others alert that it your temperament is untraceable.

Monday, August 17, 2009

Australia




At least some part of it is beautiful, music is good, costume remarkable.
Excitement encountered.

Sunday, August 16, 2009

Trance ! Trance ! Trance



Trance

Transition is just a stair and attack (Reversed)
Learn tuning
Create and save score

-----------------------------------------------------------------




The important thing is only a little part created the whole music.
Here it is:








Progression
Modification in 12-16 interval

I was trying to listen her picture as music




%-- 8/14/09 1:11 AM --%
%-- 8/14/09 9:41 PM --%
%-- 8/15/09 1:12 PM --%


I = open('E:\Pen\Archive 2\EM.pdf')
open('E:\Pen\Archive 2\EM.pdf')
whos
clear
clc
open('E:\Pen\Archive 2\EM.pdf')
whos
auread('E\Pen\AC 2')
auread('E\Pen\AC2')
wavread('E\Pen\AC2')
wavread('E\Pen\AC 2')
wavread('E\Pen\AC 2.wav')
wavread('E:\Pen\BeginningiPhoneDev.121808\07 Pickers\Custom Picker Sounds\win')
load chirp;
y1 = y; Fs1 = Fs;
load gong;
wavplay(y1,Fs1,'sync') % The chirp signal finishes before the
wavplay(y,Fs) % gong signal begins playing.
whos
wavplay(double(rand(20000)),Fs) % gong signal begins playing.
rand(60000)
rand(6000)
%-- 8/15/09 9:44 PM --%
imread('nishat','jpeg')
whs
whos
double(ans)
whos
wavplay(ans)
im2single(ans)
whos
imread('cell')
imread('cell','tif')
whos
wavplay(ans)
double(ans)
whos
wavplay(ans)
playsnd(ans,1000)
wavplay(ans,1000)
playsnd([1000, 23, 34;23 45 67],100)
wavplay([1000, 23, 34;23 45 67],100)
wavread('E:\pen\AC2')
wavread('E:\pen\AC 2')
whos
wavplay(ans)
wavplay(ans,1000);
%-- 8/15/09 10:04 PM --%
clear
clc
wavplay('E:\Pen\AC 2',8000)
wavread('nishat','jpeg')
wavread('nishat')
a = imread('nishat')
a = imread('nishat','jpeg')
whos
a = imread('cell','tif')
whos
b = double(a)
whos
wavplay(b,5000)
wavread('E:\Pen\AC 2')
a = ans;
hist(a)
whos
wavplay(a,20000)
wavplay(a,40000)
wavplay(a,100000)
a = [1 2 3];
b = [4 5 6];
c = 7.94682e6;
file_1 = fopen('output1.txt','w')
file_2 = fopen('output2.txt','w')
fprintf(file_1,'Example formatted output \n\n')
fprintf(file_1,'a = [%8.6E %8.6E %8.6E] (km/s)\n',a)
fprintf(file_2,'b = [%13.6G %13.6G %13.6G] (km^3/s^2)\n\n c = %5.2f ',b,c)
fclose(file_1)
fclose(file_2)
a=wavread('E:\Pen\AC 2');
file_1 = fopen('music.txt','w');
fprintf(file_1,a);
fprintf(file_1,'%d',a);
fprintf(file_1,'%d\n',a);
fprintf(file_1,'%2f\n\n',a);
a(1)
whos
a(1,1)
a(1,2)
a(1148438,2)
waveplay(a,60000)
wavplay(a,60000)
wavplay(a,30000)
fprintf(file_1,'%2f',a);
clear
clc
fclose(file_1)
whos
fprintf(fopen('music2.txt','w'),'%2f',wavread('E:\Pen\AC 2'));
whos
a=wavread('E:\Pen\AC 2');
whos
a(1148438,2)
a(1148439,2)
a(1148438,3)
a(1148438,1)
fprintf(fopen('music3.txt','w'),'%2f ',wavread('E:\Pen\AC 2'));
for m = 1:30000
for n = 1:2
fprintf(
fclose('music3.txt')
fclose(music3.txt)
fclose(music3)
whos
fopen('indexed.txt','w');
for m = 1:30000
for n = 1:2
fprintf(indexed,'%2f\n',a(m,n))
end
end
for m = 1:30000
for n = 1:2
fprintf(fopen('indexed.txt','w'),'%2f\n',a(m,n))
end
end
clear
clc
fclose()
fclose(indexed)
kill
%-- 8/16/09 12:04 AM --%
fopen('ashik.txt','w');
for m = 1:30000
for n = 1:2
fprintf(ashik,'%2f\n',a(m,n));
end
end
clear
clc
d = {'Time', 'Temp'; 12 98; 13 99; 14 97}
d =
'Time' 'Temp'
[ 12] [ 98]
[ 13] [ 99]
[ 14] [ 97]
xlswrite('tempdata.xls', d, 'Temperatures', 'E1');
d = {'Time', 'Temp'; 12 98; 13 99; 14 97}
xlswrite('tempdata.xls', d, 'Temperatures', 'E1');
whos
clear
clc
a = wavread('E:\Pen\AC 2');
whos
for m= 1:10000
for n = 1:2
p(m,n)=a(m,n);
end
end
p
whos
xlswrite('tempdata2.xls', p, 'Temperatures', 'E1');
wavplay(a,40000)
wavplay(p,40000)
whos
c=[ -0.1006 -0.0924
-0.0982 -0.1013
-0.0878 -0.1047
-0.0891 -0.1060
-0.1005 -0.1010
-0.1088 -0.0925
-0.1100 -0.0921
-0.1012 -0.0961]
wavplay(c,40000)
c = [-0.0834 -0.0981
-0.0934 -0.0994
-0.1018 -0.1024
-0.1061 -0.1099
-0.0982 -0.1129
-0.0960 -0.1233
-0.1022 -0.1407
-0.0944 -0.1420
-0.0812 -0.1307
-0.0767 -0.1180
-0.0710 -0.1006
-0.0661 -0.0876
-0.0700 -0.0874
-0.0736 -0.0888
-0.0701 -0.0854
-0.0659 -0.0856
-0.0603 -0.0874
-0.0489 -0.0800
-0.0439 -0.0684
-0.0491 -0.0573
-0.0508 -0.0437
-0.0506 -0.0378
-0.0559 -0.0458
-0.0622 -0.0560
-0.0662 -0.0619
-0.0657 -0.0643
-0.0546 -0.0590
-0.0360 -0.0461
-0.0235 -0.0371
-0.0153 -0.0321
-0.0019 -0.0222
0.0045 -0.0158
-0.0014 -0.0179
-0.0043 -0.0221
-0.0018 -0.0302
0.0016 -0.0366
0.0019 -0.0353
-0.0063 -0.0351
-0.0182 -0.0405
-0.0319 -0.0523
-0.0485 -0.0671
-0.0607 -0.0755
-0.0707 -0.0796
-0.0815 -0.0822
-0.0916 -0.0842
-0.1006 -0.0924
-0.0982 -0.1013
-0.0878 -0.1047
-0.0891 -0.1060
-0.1005 -0.1010
-0.1088 -0.0925
-0.1100 -0.0921
-0.1012 -0.0961]
wavplay(c,40000)
ndata = xlsread('tempdata2.xls')
ndata
wavplay(ndata,40000)
xlsread('tempdata2.xls')
clear
clc
a = wavread('E:\Pen\AC 2');
whos
for m= 1:10000
for n = 1:2
p(m,n)=a(m,n);
end
end
xlswrite('ashik.xls', p, 'Temperatures', 'E1');
ndata = xlsread('ashik.xls', 'Temperatures')
wavplay(ndata,40000)
ndata = xlsread('ashik.xls', 'Temperatures');
wavplay(ndata,40000)
wavplay(ndata,10000)
for m= 1:60000
for n = 1:2
p(m,n)=a(m,n);
end
end
xlswrite('ashik.xls', p, 'Temperatures', 'E1');
ndata = xlsread('ashik.xls', 'Temperatures');
wavplay(ndata,40000)
ndata2=xlsread('ashik2.xls', 'Read');
wavplay(ndata2,40000)
ndata2=xlsread('ashik2.xls', 'Read');
wavplay(ndata2,40000)
ndata2=xlsread('ashik2.xls', 'Read');
wavplay(ndata2,40000)
whos
hist(ndata2)
d = imread('nishat','jpeg')
whos
hist(d)
d=double(d)
hist(d)
imshow(d)
image(d)
image(uint8(d))
whos
xlswrite('nishat.xls', d, 'Temperatures', 'E1');
image('forest','tif')
image('forest')
image('cell','tif')
imshow('cell','tif')
imshow(imread('cell','tif'))
imshow(imread('forest','tif'))
image(imread('forest','tif'))
d = imread('forest','tif')
whos
d=double(d);
whos
xlswrite('nishat.xls', d, 'Temperatures', 'E1');
wavplay(d,40000)
ndata = xlsread('nishat.xls', 'Temperatures');
wavplay(ndata,40000)
ndata = xlsread('image.xls', 'Read');
wavplay(ndata,40000)
ndata = xlsread('ashik2.xls', 'Read');
wavplay(ndata,40000)
f = 1/500;
for m = 1:60000
y(m) = sin(2*pi*f*m);
end
plot(y);
f = 1/500;
for m = 1:60000
y(m) = .4*sin(2*pi*f*m);
end
plot(y);
clear
clc
f = 1/500;
for m = 1:60000
y(m) = .4*sin(2*pi*f*m);
end
plot(y);
xlswrite('math.xls', y, 'Read', 'E1');
whos
xlswrite('math.xls', y', 'Read', 'E1');
ndata = xlsread('math.xls', 'Read');
wavplay(ndata,40000)
wavplay(ndata,60000)
wavplay(ndata,20000)
for m = 1:60000
y1(m) = .001*sin(2*pi*f*m);
end
y2 = y1*randn(size(y1);
y2 = y1*randn(size(y1));
whos
size(y1)
rand(size(y1));
whos
ans(1,6)
max(ans)
min(ans)
y2=rand(size(y1));
max(y2)
min(y2)
y2 = .1*rand(size(y1));
y3 = y + y2;
whos
plot(y3);
xlswrite('noise.xls', y3', 'Read', 'E1');
ndata = xlsread('noise.xls', 'Read');
wavplay(ndata,60000)
y4=[y,y2]
whos
y4=[y;y2];
whos
wavplay(y4',40000)
wavplay(y',40000)
wavplay(y2',40000)
wavplay(y3',40000)
wavplay(y',40000)

--

Sunday, January 6, 2008

I feel I am stopped




I feel I have been stopped, no where to go, I know my limit which I can't cross, I feel
helpless, I feel helpless when I am confused about my potential, I feel helpless taking decision, and when I am not up to something it means I am doing nothing, feelings of doing noting makes me helpless, I used to move through out my life knowing what is good defined by my surroundings,I never knew what I want for my own life, well I used to dream, my dream is to become the one, become a hero, so I run for everything, in the end could not catch anything. I don't want to be stopped, but I feel I have been stopped, minutes, hours are life, I am not living my life, to me living is living with dream, living with a goal, I find no goal of my life, so I feel helpless. I have been dreaming of a fairy princess so long, I thought she would show me direction, I didn't find any, is it because my dream was buggy with nasty earthy infections? Is it because I could not dream truly?

Friday, November 2, 2007

kutir silpo

i never liked the internet culture of chatting, community messaging, scraping.
but since last year i have done nothing but those things. why? to know about the internet freaks around? internet is fast, beautifully fast, its amazing, but the culture being built taking the advantage of this fast technology is alarming. now a days absurdism is a hectic disease for a large community of people, they are getting
addicted to excitations and internet culture add spices to this nicely. they
chat first, then carry conversation over the phone and then meet. and its not over , its just the beginning, they become more fast, they want more relationship, none of them stands on true feelings of friendship or love, they search for romances
always,potentially ornamented with sexual appeal. and the cycle goes
on. this culture makes people more and more unstable.




when i begun i liked to think positively, taking this culture as a gracious benefit of technology, i assumed like this internet community culture can keep us all together, it can act like a family, and communication among people can be thought as an art. this is helpful when you sit for viva and you go through professional people, it teaches how to manage, communicate and proceed, and of course i waited to see other people's action. i have given so much time in it. i could suitably do a thesis
in my academic line in this time. i don't know what i have learn t, lost or gained ,
but time was passing through well. now i think it should be over.












jasso ?
jeo na.
vul kheale chole geleo
firte vulo na.



--------------------------------------------------------------




















khabi chor?
chor kha
naile dibo thappor.




------------------------------------------------------------------








ore valo meye
tai to achi cheye






---------------------------------------------------------












chupti kore dariye ase
jane na chhola kola

koto kotha bolar chhilo
holo na tar bola