이글루스 로그인


무언가 심히 허전하다

내가 바라던 방학이 온듯 싶은데 내 마음은 편하지가 않다

시험끝나면 정말 좋을 것 같았다 여느때 처럼

하지만 시험이 끝나니까 무언가 할 일이 사라졌다는 생각이 들면서

그냥 마냥 우울한것 같다

다음주면 방학인걸 잊고 또 다른 일이 시작되는데

그거 시작 전까지는 이럴라나? 싶다

슬프다 그냥 마냥 슬프다

한동안 괜찮았는데 갑자기 막 슬프다

밖에 눈도 엄청 오는데 그냥 기분이 싸~ 해진다

설마 나 또 사춘기 오는거 아니지? 이런 기분 정말 싫은데

by 재연 | 2006/12/17 00:49 | 흘러가는 인생사 | 트랙백 | 덧글(1)

ASP

using System;
using System.Collections.Generic;
using System.Text;
namespace ExMatrix
{
    class Program
    {
        static void InitializeMatrix(ref int[,] arr, int n)
        {
            for (int i = 0; i < n; i++)
            {
                for (int j = 0; j < n; j++)
                {
                    arr[i, j] = 0;
                }
            }
        }
        //static void FillMatrix(ref int[,] arr, int n)
        //{
        //    int k = 1;
        //    for (int i = 0; i < n; i++)
        //    {
        //        for (int j = 0; j <= i; j++)
        //        {
        //            arr[i, j] = k++;
        //        }
        //    }
        //}
        static void FillMatrix(ref int[,] arr, int n)
        {
            int k = 1;
            for (int i = 0; i < n; i++)
            {
                if (i < n / 2)
                {
                    for (int j = 0; j <= i; j++)
                    {
                        arr[i, j] = k++;
                    }
                    for (int j = n-1 -i; j < n; j++)
                    {
                        arr[i, j] = k++;
                    }
                }
                else
                {
                    for (int j = 0; j <= n-1-i; j++)
                    {
                        arr[i, j] = k++;
                    }
                    if (n % 2 == 1 && i == n/2) k--; //$$$$$$$
                    for (int j = i; j < n ; j++)
                    {
                        arr[i, j] = k++;
                    }
                }
            }
        }
        static void PrintMatrix(int[,] arr, int n)
        {
            for (int i = 0; i < n; i++)
            {
                for (int j = 0; j < n-1; j++)
                {
                    Console.Write((arr[i, j].ToString("000") + " "));
                }
                Console.WriteLine(arr[i, n-1].ToString("000"));
            }
        }
        static void Main(string[] args)
        {
            // 선언
            //Console.WriteLine(args[0]);
            int N =  int.Parse(args[0]);
            int[,] M = new int[N, N];
            // 초기화
            InitializeMatrix(ref M, N);
            // 작업
            FillMatrix(ref M, N);
            // 출력
            PrintMatrix(M, N);
            Console.ReadLine();
        }
    }
}
 

by 재연 | 2006/10/22 16:41 | Study | 트랙백 | 덧글(0)

많이는 아니지만 조금씩 조금씩

그 침울했던 암흑기가 조금씩 벗어나지는 것 같다

뭐 나름 만족스럽다고 느끼는데

언제 갑자기 급하강할지 몰라 좀 두렵기도하고 후움

아무래도 난 바보야 하지만 난 바보가 좋아

저 위 사진속 니노처럼 손 번쩍 들고 힘내자 감바레!

by 재연 | 2006/10/06 02:42 | 흘러가는 인생사 | 트랙백 | 덧글(0)

...

요즘이 가장 울적한 시기인듯 싶다.

육체적으로도 정신적으로도 많이 지치고 힘들고 우울하다.

뭐가 문제일까라지만

그 이유를 알듯 모를듯 하다

아하하 인생 뭐있던가 다 그런거지

받아들이며 사는게 억울하지만 어쩔수 없는 인생이라네

by 재연 | 2006/09/28 01:12 | 흘러가는 인생사 | 트랙백 | 덧글(0)

정답이 없는건가 내가 못찾는 건가

도무지 생각해봐도 대책이 없고 그거에 대한 답이 안보인다

아니 어쩌면 내가 그 답을 회피하는 걸지도 모르겠다

정말 내가 사춘기를 겪는 중.고등학생도 아니고

진짜 요즘 나 왜이러지

제발 이 순간이 아무일도 아닌 것 처럼

훌쩍 지나가버렸음 좋겠다.

아마 이 상태가 유지되면 내가 내 자신을 잃어버릴 것 같다

너무나도 변해버릴까봐 두렵고 무섭다..

by 재연 | 2006/09/10 21:07 | 흘러가는 인생사 | 트랙백 | 덧글(1)

060908 - JAVA

HelloWorldSwing

import javax.swing.*;      
import javax.swing.border.*;

public class HelloWorldSwing {
    private static void createAndShowGUI() {
        //Make sure we have nice window decorations.
        JFrame.setDefaultLookAndFeelDecorated(true);
        //Create and set up the window.
        JFrame frame = new JFrame("HelloWorldSwing");
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // 빼먹으면 안됨 윈도우리스너 필요없음
        BevelBorder border = new BevelBorder(BevelBorder.RAISED);
        ImageIcon buttonImage1 = new ImageIcon("images/doggy/T3.gif");
        ImageIcon buttonImage2 = new ImageIcon("images/doggy/T7.gif");
        JLabel label = new JLabel("Hello World");
        label.setBorder(border);
        label.setToolTipText("꺼져");
        JPanel pan = new JPanel();
        JButton button1 = new JButton("개");
        JButton button2 = new JButton("개2");
        button1.setIcon(buttonImage1);
        button2.setIcon(buttonImage2);
        pan.add(button1);
        pan.add(button2);
       
        frame.getContentPane().add(pan);
        //Display the window.
        //frame.pack();
        frame.setLocation(300, 200);
        frame.setSize(580, 200);
        frame.setVisible(true);
    }
    public static void main(String[] args) {
        HelloWorldSwing app = new HelloWorldSwing();
        app.createAndShowGUI();
    }
}

SwingApplication

/*
 * SwingApplication.java is a 1.4 example that requires
 * no other files.
 */
import javax.swing.*;         
import java.awt.*;
import java.awt.event.*;
public class SwingApplication implements ActionListener {
    private static String labelPrefix = "Number of button clicks: ";
    private int numClicks = 0;
    final JLabel label = new JLabel(labelPrefix + "0    ");
    //Specify the look and feel to use.  Valid values:
    //null (use the default), "Metal", "System", "Motif", "GTK+"
    final static String LOOKANDFEEL = "Metal";
    public Component createComponents() {
        JButton button = new JButton("I'm a Swing button!");
        button.setMnemonic(KeyEvent.VK_I);
        button.addActionListener(this);
        label.setLabelFor(button);
        /*
         * An easy way to put space between a top-level container
         * and its contents is to put the contents in a JPanel
         * that has an "empty" border.
         */
        JPanel pane = new JPanel(new GridLayout(0, 1));
        pane.add(button);
        pane.add(label);
        pane.setBorder(BorderFactory.createEmptyBorder(
                                        30, //top
                                        30, //left
                                        10, //bottom
                                        30) //right
                                        );
        return pane;
    }
    public void actionPerformed(ActionEvent e) {
        numClicks++;
        label.setText(labelPrefix + numClicks);
    }
    private static void initLookAndFeel() {
        String lookAndFeel = null;
        if (LOOKANDFEEL != null) {
            if (LOOKANDFEEL.equals("Metal")) {
                lookAndFeel = UIManager.getCrossPlatformLookAndFeelClassName();
            } else if (LOOKANDFEEL.equals("System")) {
                lookAndFeel = UIManager.getSystemLookAndFeelClassName();
            } else if (LOOKANDFEEL.equals("Motif")) {
                lookAndFeel = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
            } else if (LOOKANDFEEL.equals("GTK+")) { //new in 1.4.2
                lookAndFeel = "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
            } else {
                System.err.println("Unexpected value of LOOKANDFEEL specified: "
                                   + LOOKANDFEEL);
                lookAndFeel = UIManager.getCrossPlatformLookAndFeelClassName();
            }
            try {
                UIManager.setLookAndFeel(lookAndFeel);
            } catch (ClassNotFoundException e) {
                System.err.println("Couldn't find class for specified look and feel:"
                                   + lookAndFeel);
                System.err.println("Did you include the L&F library in the class path?");
                System.err.println("Using the default look and feel.");
            } catch (UnsupportedLookAndFeelException e) {
                System.err.println("Can't use the specified look and feel ("
                                   + lookAndFeel
                                   + ") on this platform.");
                System.err.println("Using the default look and feel.");
            } catch (Exception e) {
                System.err.println("Couldn't get specified look and feel ("
                                   + lookAndFeel
                                   + "), for some reason.");
                System.err.println("Using the default look and feel.");
                e.printStackTrace();
            }
        }
    }
    /**
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
     */
    private static void createAndShowGUI() {
        //Set the look and feel.
        initLookAndFeel();
        //Make sure we have nice window decorations.
        JFrame.setDefaultLookAndFeelDecorated(true);
        //Create and set up the window.
        JFrame frame = new JFrame("SwingApplication");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        SwingApplication app = new SwingApplication();
        Component contents = app.createComponents();
        frame.getContentPane().add(contents, BorderLayout.CENTER);
        //Display the window.
        frame.pack();
        frame.setVisible(true);
    }
    public static void main(String[] args) {
       SwingApplication app = new SwingApplication();
       app.createAndShowGUI();
    }
}

 

by 재연 | 2006/09/08 12:23 | Study | 트랙백 | 덧글(0)

어찌하다보니 잠수아닌 잠수를

음 이건 뭐 의도한건 아니지만

익숙한걸 며칠간 안하다보니 그게 몇주가 되도 어색하지 않게 되버렸다

나름 기분 우울도 하고 그냥 이것저것 고민도 하고 하다보니

머릿속이 복잡해 지면서 생각이 많아진것 같다

이제 어느정도 정리가 되어가는 것 같지만

난 아직도 어린가 보다 하긴 아직 엄마한테 어리광 부리고 싶으니까..

누군가가 내 어리광 받아주는게 정말 너무 좋다..

자 다시 정신 차리고 열심히 살아보자 빠샤!

by 재연 | 2006/09/06 11:50 | 흘러가는 인생사 | 트랙백 | 덧글(0)

승산없는 게임에 베팅따윈 하지 않아

난 절대로 이제다시 승산없는 게임에 베팅따윈 하지 않을것이다.

반.드.시

고로 지금 내가 하는건 승산있기에 베팅한거겠지?

by 재연 | 2006/08/21 01:46 | 흘러가는 인생사 | 트랙백 | 덧글(0)

퍼즐

방학한 후 갑자기 내 주위 사람들이 하나 둘씩 퍼즐을 한다며 자랑아닌 자랑질을 해댔다

그러다 보니 나도 퍼즐이 하고 싶어졌고 어릴적 생각이 떠올라

가볍게 500피스짜리를 질러서 이틀만에 다 맞춰버렸다 -_-

맞추고나니 그냥 마냥 흐믓하고 재밌다는 생각 뿐이었다

퍼즐을 할 동안만큼은 우울한 생각도 기분나쁜 생각도 어떠한 잡생각도

떠오르지 않아서 그 무엇보다도 좋았다

500피스짜리를 다 맞춘 후 2주정도가 흐르고 나서 1000피스짜리를 구입하여  요즘 맞추기에 열중하고 있다

요즘 기분이 그다지 좋지도 않고 복잡한 일들 뿐인데 저기에 전념하고 싶다

그러다 보면 곧 개강을 하게 될테고 나에 부족한 뇌에서도 잡다한 생각을 서서히 숨겨주겠지..?

by 재연 | 2006/08/08 22:13 | 흘러가는 인생사 | 트랙백 | 덧글(0)

행복이란 뭘까

세상을 사는데에 있어 행복이란 무얼까?

우리는 가끔 말을 하다 자기도 모르게 나 지금 행복해라고 말하곤 한다

정말 그 순간이 자신이 추구하는 행복일까

마음을 따뜻하고 포근하게 해주는 것이 진정한 행복일까

난 오늘도 무언가 새로운 고민에 빠져든 기분이 들었다

난 지금 이순간부터 행복이 무엇인지 생각하게 될 것 같다

그 해답을 언제쯤 찾을 수 있을까

by 재연 | 2006/08/07 03:31 | 흘러가는 인생사 | 트랙백 | 덧글(1)


◀ 이전 페이지          다음 페이지 ▶