하드웨어/Storage2020. 10. 25. 11:51

일단 절전모드 까지 확인을 못해서 어떻게 될진 모르겠지만

 

전원 OFF시 0.2W

부팅 이후 40W (1T HDD * 4)

 

그리고 

1T * 4 / RAID5로 구성은 가능한데 단일 공유 폴더 용량은 2T가 최대

 

업로드 다운로드 속도가 100Mbps 정도밖에 나오지 않는 물건(도대체 그 당시에 왜 GbE를 달아놓은건지..)

 

게다가! SMB1 프로토콜이라 win10 에서 쓰려면

SMB1 서브 시스템 + 방화벽 설정을 해주어야 해서 애매한 물건

 

+ SMB1 설정

 

[링크 : https://blog.naver.com/sonix/221288536131]

[링크 : https://rootblog.tistory.com/139] <<

[링크 : https://docs.microsoft.com/.../smbv1-not-installed-by-default-in-windows]

 

NAS로 업로드 속도

 

NAS 에서 다운로드 속도

 

----

초기화 이후 캡쳐

 

디스크가 없으면 초기화도 못하다니!

 

켠채로 꼽고 scan

 

 

 

 

 

 

 

 

 

 

 

초기화 이후 부팅

기본 암호는 admin / storage

 

 

 

Add

 

 

 

 

 

Add

 

 

 

 

 

 

 

 

 

 

 

+

디스크 추가하니 아래의 화면에서 넘어가질 않는다.

 

 

 

일단 새롭게 추가되는 녀석은 접근할 계정을 지정해 주어야 한다.

 

전체 스토리지 초기화 하려는데

RAID5 3+1 / RAID5 4 / RAID 10 / RAID 0 / JBOD 로 설정이 가능하다.

'하드웨어 > Storage' 카테고리의 다른 글

WWN  (0) 2020.11.02
d-link dns-343  (2) 2020.10.31
d-link dns-343 이상하네?  (0) 2020.09.15
synology DS213j 소비전력  (2) 2020.09.14
d-link DNS-343  (0) 2020.09.14
Posted by 구차니
embeded/raspberry pi2020. 10. 25. 10:36

라즈비안 설치하고 kodi 올려서 돌려보니

odroid XU4 보다 느리고 재생가능한 녀석도 더 적어졌다.

이게 머야!

 

아무튼 라즈베리 3랑 4를 비교해보면 대략 성능이 4배 정도 뛰었다! 라고 하고 싶긴한데

[링크 : https://medium.com/@ghalfacree/benchmarking-the-raspberry-pi-4-73e5afbcd54b]

 

 

XU4 쪽이 워낙 넘사벽이라 rpi 4라고 하더라도 odroid XU4가 더 쾌적할지도?

단, 라즈베리 4는 4GB 모델이 있으니 그건 좀 유리해 보이긴 한다.

[링크 : https://www.hardkernel.com/ko/shop/odroid-xu4-special-price/]

 

'embeded > raspberry pi' 카테고리의 다른 글

node-red rpi  (0) 2020.11.29
간만에 라즈베리 + 포맷?  (0) 2020.11.29
rpi bt ble advertise mode(beacon)  (0) 2020.10.12
rpi voip  (0) 2020.09.22
라즈베리 파이 자동차 전원 업그레이드?  (0) 2020.06.17
Posted by 구차니

태워먹음.. 무슨날이냐..

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

앵무새 보러 갔는데  (0) 2020.12.06
지치는 토요일  (0) 2020.12.05
귀찮아!!!  (0) 2020.10.18
평온한.. 하루?  (0) 2020.10.16
오늘은 운전을 하면 안되는 날이구만  (0) 2020.10.10
Posted by 구차니
Programming/c# & winform2020. 10. 23. 19:09

+

2020.11.13

컨트롤 추가를 투명하게 하려는 컨트롤에 해주어야 한다.

그리고 좌표는 부모(?) 컨트롤에 상대적으로 적용된다.

 

pictureBox7.Controls.Add(pictureBox8); << 이 부분이 핵심이고

pictureBox8.Location = Point(0,0); << 이 부분이 두번째 핵심이다.

public Form1()
{
    InitializeComponent();
    pictureBox7.Controls.Add(pictureBox8);
    pictureBox8.Location = new Point(0, 0);
    pictureBox8.BackColor = Color.Transparent;
}

 

[링크 : https://stackoverflow.com/questions/19910172/how-to-make-picturebox-transparent]

---

 

[링크 : https://stackoverflow.com/questions/36099017/how-to-make-two-transparent-layer-with-c]

[링크 : https://stackoverflow.com/questions/12138892/picturebox-with-transparent-background]

[링크 : https://stackoverflow.com/questions/4144371/a-picturebox-problem]

 

[링크 : https://social.msdn.microsoft.com/Forums/windows/en-US/ce17105b-2ded-4649-a1b6-c83db4bcde8a/picturebox-transparency?forum=winforms]

[링크 : https://stackoverflow.com/questions/5522337/c-sharp-picturebox-transparent-background-doesnt-seem-to-work]

Posted by 구차니
Programming/c# & winform2020. 10. 23. 16:46

form2.Owner = this;

라고 부모에서 자신을 소유자로 등록하면

하위 폼인 form2 에서 ((Form1)(this.Owner)).parent_variable; 식으로 접근이 가능해진다.

다만 이벤트 핸들러 도 어떻게 영향을 받는지

 

alt-f4를 막아놨더니 부모도 창이 안 닫히는 문제가 발생했다.

 

 

[링크 : https://idgaf.tistory.com/3]

Posted by 구차니
Programming/c# & winform2020. 10. 23. 14:38

예전 MFC 보다 많이 편해진 느낌?

 

 

private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
    e.Cancel = true;
}

[링크 : https://stackoverflow.com/questions/14943/how-to-disable-alt-f4-closing-form]

'Programming > c# & winform' 카테고리의 다른 글

c# winform picturebox 끼리는 투명 적용 되지 않음  (0) 2020.10.23
자식에서 부모창의 자원 접근하기  (0) 2020.10.23
markdig custom markdown  (0) 2020.10.22
pdfsharp , migradoc  (0) 2020.10.22
itext7  (0) 2020.10.22
Posted by 구차니

결론(?)은 팀 탐색기에서 하면 됨.

 

[링크 : https://ssu-gongdoli.tistory.com/47]

[링크 : http://euhyeji.blogspot.com/2019/08/github-2.html]

Posted by 구차니
Programming/c# & winform2020. 10. 22. 18:24

돌려는 봤는데 어렵네 ㅠㅠ

어떻게 파서를 짜야하려나?

 

[링크 : https://www.cyotek.com/blog/writing-custom-markdig-extensions]

  [링크 : https://www.cyotek.com/downloads/view/MarkdigMantisLink.zip/]

 

[링크 : https://odetocode.com/blogs/scott/archive/2020/01/23/a-custom-renderer-extension-for-markdig.aspx]

 

+ 2020.10.29

원래 구현하고자 하는 것은

[ ]

[x]

을 받으면 HTML의 input type=checkbox 로 변환하는 건데

MantisLink 예제를 따라해보니 [는 걸려지지 않는다.

아무래도 링크로 연관되어 [는 이미 처리되어버리기 때문에 걸러내질 못하는 듯..

 

그러면 github 등에서 어떻게 구현을 해서 쓰고 있는걸까?

'Programming > c# & winform' 카테고리의 다른 글

자식에서 부모창의 자원 접근하기  (0) 2020.10.23
c# winform 자식 다이얼로그에서 F4 막기  (0) 2020.10.23
pdfsharp , migradoc  (0) 2020.10.22
itext7  (0) 2020.10.22
c# pdf itextsharp -> itext7  (0) 2020.10.22
Posted by 구차니
Programming/c# & winform2020. 10. 22. 18:04

MIT license

[링크 : http://www.pdfsharp.net/Licensing.ashx]

 

 

다만 html 을 pdf로 변환하는 기능은 없다고 -_ㅠ

Can I use PDFsharp to convert HTML or RTF to PDF?¶
No, not "out of the box", and we do not plan to write such a converter in the near future.

Yes, PDFsharp with some extra code can do it. But we do not supply that extra code.
On NuGet and other sources you can find a third party library "HTML Renderer for PDF using PdfSharp" that converts HTML to PDF. And there may be other libraries for the same or similar purposes, too. Maybe they work for you, maybe they get you started.

[링크 : https://stackoverflow.com/questions/48759671/convert-html-string-to-pdf-with-migradoc]

 

+

HtmlRenderer.RdfSharp 라는게 가장 위에 나오는데

BSD 3 clause 라이센스..

[링크 : https://archive.codeplex.com/?p=htmlrenderer]

[링크 : https://github.com/ArthurHub/HTML-Renderer]

'Programming > c# & winform' 카테고리의 다른 글

c# winform 자식 다이얼로그에서 F4 막기  (0) 2020.10.23
markdig custom markdown  (0) 2020.10.22
itext7  (0) 2020.10.22
c# pdf itextsharp -> itext7  (0) 2020.10.22
c# print 하기  (0) 2020.10.19
Posted by 구차니
Programming/c# & winform2020. 10. 22. 16:51

HtmlConverter.ConvertToPdf()

는 하나의 HTML을 pdf로 변환하고 close 하기 때문에

merger를 이용해서 합쳐야 하는 듯 하고

 

HtmlConverter.ConvertToDocument()

는 pdf로 변환하지만 ConvertToPdf()와는 다르게 div()를 정상적으로 처리하지 못한다.

 

[링크 : https://kb.itextpdf.com/home/it7kb/ebooks/itext-7-converting-html-to-pdf-with-pdfhtml/chapter-7-frequently-asked-questions-about-pdfhtml/how-to-parse-multiple-html-files-into-one-pdf] java

 

private void button2_Click(object sender, EventArgs e)
        {
            String DEST = "hello_world.pdf";

            FileInfo file = new FileInfo(DEST);
            file.Directory.Create();

            PdfWriter writer = new PdfWriter(DEST);
            PdfDocument pdf = new PdfDocument(writer);
            Document document = new Document(pdf, PageSize.A4.Rotate());
            document.SetMargins(20, 20, 20, 20);
            PdfMerger pdfMerger = new PdfMerger(pdf);

            document.Add(new Paragraph("Hello World!"));

            String[] SRC = {
            @"d:\test1.html",
            @"d:\test2.html",
            @"d:\test3.html",
            @"d:\test4.html" };

            foreach (var html in SRC)
            {
                MemoryStream baos = new MemoryStream();
                PdfDocument temp = new PdfDocument(new PdfWriter(baos));
                temp.SetDefaultPageSize(PageSize.A4.Rotate());
                HtmlConverter.ConvertToPdf(System.IO.File.ReadAllText(html), temp, new ConverterProperties());
                ReaderProperties rp = new ReaderProperties();
                baos = new MemoryStream(baos.ToArray());
                temp = new PdfDocument(new PdfReader(baos, rp));
                pdfMerger.Merge(temp, 1, temp.GetNumberOfPages());
                temp.Close();
            }
            pdfMerger.Close();            
        }

[링크 : https://stackoverflow.com/questions/57415902/generate-one-pdf-document-with-multiple-pages-converting-from-html-using-itext-7] .net

 

pdf 특성상 붙이는 파일의 용지 방향을 지정해 주어야 한다.

[링크 : https://stackoverflow.com/questions/54347293/how-to-set-orientation-to-landscape-in-itext-7]

'Programming > c# & winform' 카테고리의 다른 글

markdig custom markdown  (0) 2020.10.22
pdfsharp , migradoc  (0) 2020.10.22
c# pdf itextsharp -> itext7  (0) 2020.10.22
c# print 하기  (0) 2020.10.19
c# printer 사용하기 - printer enumeration  (0) 2020.10.19
Posted by 구차니