요샌 그냥 이런 팝이 좋네.

by snowall 2015. 5. 21. 01:52

뭐에 쓰는 프로그램인지는 방금 그거.


사용법

라인 수 = 입력하면 해당 라인 마다 파일 하나씩 만들어준다

숫자 2개 = 두 칼럼을 교체한다. 둘 중 하나가 0이면 0이 아닌쪽의 칼럼은 사라진다. 둘 다 같거나 둘 다 0이면 아무일 없음.



csv_split.zip


csv_split.exe

저작권은 물론 내꺼.

VS2013으로 개발했음. 닷넷3.0이상 필요한듯.


by snowall 2015. 5. 11. 13:45

친구 요청으로 작성함. wx는 필요함.


# -*- coding: utf-8 -*-
import wx
import os
import sys
reload(sys)
#sys.setdefaultencoding('cp949') # if you use windows, uncomment this line. if not, keep this line commented.

def converting(f):
    src=open(f, "r")
    header = src.readline()
    iteration = 0
    eof = "a"
    while not (eof==""):
        tar=open(f[:-4]+"_"+str(iteration)+".csv", "w")
        tar.writelines(header)
        for i in range(10000):
            eof = src.readline()
            if eof == "":
                break
            tar.writelines(eof)
        tar.flush()
        tar.close()
        iteration+=1
    src.flush()
    src.close()
  
class mainframe(wx.Frame):
    def __init__(self, *args, **kwds):
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        dig = wx.FileDialog(None, message="Choose data files", style = wx.FD_MULTIPLE)
        if dig.ShowModal() == wx.ID_OK:
            for fn in dig.GetPaths():
                converting(fn)

class conv(wx.App):
    def OnInit(self):
        wx.InitAllImageHandlers()
        main = mainframe(None, -1, "")
        self.SetTopWindow(main)
        main.Show(True)
        main.Show(False)
        exit()
        return 1

if __name__ == "__main__":
    conv = conv(0)
    conv.MainLoop()


by snowall 2015. 5. 11. 11:32

마트에서 부채살이 싸길래 사다가 스테이크를 해 봤다.


스테이크는 2덩어리였다. 바질과 카놀라유를 넉넉히 넣고 잠깐 재운 후, 후라이팬에 카놀라유를 두르고 데웠다. 한덩어리는 미디움, 한덩어리는 미디움웰던으로 익혔다. 사실은 레어와 미디움 레어를 시도했으나 금방 익더라. 


소스는 케찹 2스푼, 스파클링 와인 1잔, 고추장 1스푼, 설탕 1스푼, 식초 반스푼, 간장 반스푼, 버터 1스푼, 카놀라유 2스푼, 미숫가루를 넣고 졸였다. 다 졸인 후 스테이크에서 나온 육즙을 넣고 조금 더 졸였다.


가니쉬는 없어서 계란에 모짜렐라 치즈와 바질을 섞어서 익혔다.


평가는 스테이크는 맛있었고, 소스는 고추장과 케찹을 더 넣었어야 했다는 생각이 들었고, 저 가니쉬는 나는 맛있는데 내놓을 수는 없는 비주얼이 나왔다.



by snowall 2015. 5. 6. 21:26

우분투에서는 /etc/modprobe.d/ 디렉토리 밑에 새로 설정파일을 만들어야 하더군요.
즉, 제 티비카드가 vast pci tv card 이기에

/etc/modprobe.d/vast_pci_tv 라는 새로운 텍스트파일을 만든 후에
제가 가진 티비카드에 맞춰 나름대로 삽질해서 꾸민

alias char-major-81 videodev
alias char-major-81-0 bttv
options msp3400 mixer=1
options bttv bttv_gpio=1 gpiomask=0x0f audiomux=1,0x0f,0,0,0x0f tuner=11



http://tracypak.namoweb.net/?doc=bbs/gnuboard.php&bo_table=10&sselect=&stext=&ssort=wr_name&sorder=asc&soperator=&page=2&wr_id=37


http://tracypak.namoweb.net/?doc=bbs/gnuboard.php&bo_table=10&sselect=&stext=&ssort=wr_subject&sorder=asc&soperator=&page=2&wr_id=61


https://kldp.org/node/75102


http://likesam.tistory.com/16

by snowall 2015. 5. 6. 10:32