c:\>del 파일명 을 쓰시면 됩니다...
더 자세한 내용을 원하시면..
c:\>del /? 를 치시면 도움말이 나옵니다...
그럼... 즐써핑 하세염..^^*
이 글은 YouFree Basic 2.0에서 작성되었습니다.
이 글은 YouFree Basic 2.0에서 작성되었습니다.
YouFree Basic2.0.0이 릴리즈되었다.
- YouFree 서비스에 접속할 수 있는 시작페이지 제공
- 워크스페이스 서비스(신규서비스): 사용자가 만들어가는 위젯 기반 작업 공간
- 2.0 으로의 데이타 마이그레이션 지원
- 노트 서비스 2.0
- YouFree 관리자 안정화
라는 변화를 달고 세상에 나타났다.
YouFreeAPI를 정의하고, 해당 API를 이용해 만들어졌다.
짝꿍으로 YouFreeDeveloper도 있다.
YouFreeBasic 3.0은?
가야할 산에 돌도 많고, 가지가 우거졌다지만 가련다
다운로드: http://www.youfree.or.kr
YouFreeBasic에 관한 개선글들 환영합니다.
이 글은 YouFree Basic 2.0에서 작성되었습니다.
| |||||||||||||||||||||||||||||||
이 글은 YouFree Basic 2.0에서 작성되었습니다.
YouFree(http://www.youfree.or.kr) 노트에서 '티스토리'로 글보내기 중이다.
티스토리로 글을 보내서 서버에서 처리하는 부분은 Daum에서 진행했고,
YouFree에서는 노트에서 글을 써서 '티스토리로 보내기'를 누르면 된다.
^^*
잘 되어가고 있다.
티스토리로 보내기 위해 '많은 정보'를 입력해야 하는데,
이 부분을 좀 더 보완해야겠지.
이 글은 YouFree Basic 2.0에서 작성되었습니다.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
이 글은 YouFree Basic 2.0에서 작성되었습니다.
require 'socket'다음과 같이 하면, IP를 얻을 수 있다.
puts Socket.getaddrinfo(Socket.gethostname, 0, Socket::AF_INET)[0][3]
Socket::getaddrinfo(host, port[, family[, type[, proto[, flags]]]])
Returns an array containing socket address information (address family, port number, host name, host IP address, protocol family, socket type, and protocol). arr = Array.new()
arr =(params[:note_ids]).split(',')
fileName = "youfreeImport_#{Time.now.strftime('%Y%m%d%H%M%S')}"
file = File.new("../../MyData/#{fileName}.xml","w")
xml = Builder::XmlMarkup.new(:target => file, :indent =>1)
xml.instruct!
xml.notes {
arr.each { |key|
xml.note {
@note = Note.find("#{key}")
@category_name = @note.ncategory.name # ncategory 이름 얻어오기
xml.categoryName(@category_name)
xml.title(@note.title)
xml.content(@note.content)
xml.updated_at(@note.updated_at)
}
}
}
file.close
fileName = "youfreeImport_#{Time.now.strftime('%Y%m%d%H%M%S')}"
file= File.new("../../MyData/#{fileName}1.xml","w")
file.puts '<notes>'
arr.each { |key |
file.puts '<note>'
@note = Note.find("#{key}")
@category_name = @note.ncategory.name
file.puts tag('categoryName', @category_name)
file.puts tag('title', @note.title)
file.puts tag('content',@note.content )
file.puts tag('updated_at',@note.updated_at)
file.puts '</note>'
}
file.puts '</notes>'
file.close
def tag(tag_name, value, attrs ={})
tmp = "<#{tag_name}"
if attrs
attrs.each { |k,v| tmp += " #{k}='#{v}'" }
end
tmp + ">#{value}</#{tag_name}>\n"
# 호출의 예
# puts tag('hello', 'world')
# puts tag('a', 'b', { 'c' => 'd' })
end