(keyworda|keywordb)

에 정규표현식으로 검색하면 된다.

 

[링크 : https://stackoverflow.com/questions/12215896/searching-multiple-files-for-multiple-words/17874867]

'프로그램 사용 > notepad++' 카테고리의 다른 글

notepad++ multi line edit  (0) 2019.12.30
notepad++ for ubuntu?  (0) 2019.12.21
notepad++ 주석 삭제하기  (4) 2018.05.09
notepad++ 특정 라인 열도록 실행하기  (0) 2018.01.02
notepad++ 따옴표 자동완성 끄기  (0) 2017.12.10
Posted by 구차니
Programming/c# & winform2020. 11. 5. 17:46

환경 설정파일로 ini 만한게 없긴하지..

 

[링크 : https://www.nuget.org/packages/ini-parser/]

[링크 : https://wookoa.tistory.com/417]

[링크 : https://github.com/Enichan/Ini]

 

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

C# 시간 관련 클래스  (0) 2020.11.10
c# 문자열을 시간으로  (6) 2020.11.06
C# UTC -> 지역시간  (0) 2020.11.05
c# gps(nmea parser)  (0) 2020.11.05
c# label rotate  (0) 2020.11.04
Posted by 구차니

엑셀에서는 아이콘으로 있었는데

메뉴를 한참들어가서 옵션을 열고 체크해줘야 하다니 ㅠㅠ

 

 

[링크 : https://www.yangel.org/DODOxe/OfficeOA/6408]

Posted by 구차니

구글 지도 에서 export 가능한 포멧이 GPX인데 XML 기반이다.

GPX를 NMEA(GPS raw data) 형식으로 변환이 가능하면

구글 어스에서 내가 경로를 만들어서 raw 데이터로 쓸 수 있으려나?

 

 

gpx to nmea를 해보는데 output data가 NMEA 0183으로 지정된다. NMEA 2000은 파일 포맷이 아닌건가?

그리고 변환해보니 (point.gpx) GPWPL 로만 생성이 된다.

 

[링크 : https://mygeodata.cloud/converter/gpx-to-nmea]

[링크 : https://mygeodata.cloud/converter/nmea-to-gpx]

 

[링크 : https://wiki.openstreetmap.org/wiki/Converting/NMEA_to_GPX]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

fp16  (0) 2021.05.10
gps 체크섬  (0) 2020.11.17
NMEA / GPS 날짜&시간  (0) 2020.11.05
온프레미스  (0) 2020.10.27
NMEA 포맷  (0) 2020.10.26
Posted by 구차니
Programming/c# & winform2020. 11. 5. 15:39

위는 결과는 UTC 시간을 출력해주고

아래 결과는 지역시간(한국이니 UTC+9 = KST)으로 출력된다

label2.Text = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now).ToString();
label2.Text = DateTime.Now.ToString();

 

GPS 에서 사용하는 스타일로 UTC를 출력하기

DateTime utc = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now);
label2.Text = "" + String.Format("{0:D2}", utc.Year % 100) + String.Format("{0:D2}", utc.Month) + String.Format("{0:D2}", utc.Day);
label2.Text += " " + String.Format("{0:D2}", utc.Hour) + String.Format("{0:D2}", utc.Minute) + String.Format("{0:D2}", utc.Second);

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.datetime.tolocaltime?view=netcore-3.1]

[링크 : https://docs.microsoft.com/ko-kr/dotnet/standard/datetime/converting-between-time-zones]

 

+

2020.11.06

 

utc를 저장하고 ToLocalTime() 한번 실행해주면 지역시간으로 바뀐다.

public DateTime ToLocalTime ();

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.datetime.tolocaltime?view=netcore-3.1]

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

c# 문자열을 시간으로  (6) 2020.11.06
c#에서 ini 파일 사용하기  (0) 2020.11.05
c# gps(nmea parser)  (0) 2020.11.05
c# label rotate  (0) 2020.11.04
c# tooltip  (0) 2020.11.04
Posted by 구차니

epoch로 계산해야 하는줄 알았는데 자릿수가 적어서 고민때리다가 발견

그냥 두자리씩 자르면 된다 -_-

 

GPGGA는 위치와 시간 정보가 들어있는 녀석인데

011557.00은 시간으로

01:15:57.00 UTC (KST는 +9니까 한국은 10시)

 

261020은 날짜로

DD/MM/YY

26/10/20 -> 2020년 10월 26일 로 출력된다.

 

마지막의 CRC만 계산하는 법 찾으면 그냥 라이브러리 만들어서 쓰는게 편할지도?

+

[링크 : https://en.wikipedia.org/wiki/NMEA_0183#C_implementation_of_checksum_generation]

 

$GPGGA,011557.00,3724.048737,N,12659.412849,E,1,27,0.3,90.1,M,18.4,M,,*5E
$GPRMC,011557.00,A,3724.048737,N,12659.412849,E,002.0,069.3,261020,,,A*56

 

 

for example:

$GPRMC,040302.00,A,3209.992,N,11052.530,W,0.00,93.70, 070807,11.30,E*7C

 

I would extract 040302.00 and 070907 and converted to milliseconds of the week (0000 SUnday GMT).

Tuesday August 07, 2007 04:03:02.00 AM UTC  would equal to: 187,382,000 milliseconds

[링크 : https://social.msdn.microsoft.com/.../how-to-convert-gps-utc-time-to-millisecond-of-the-week?forum=netfxbcl]

[링크 : https://blog.naver.com/6k5tvb/120061235070]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

gps 체크섬  (0) 2020.11.17
GPX, NMEA 포맷 변환  (0) 2020.11.05
온프레미스  (0) 2020.10.27
NMEA 포맷  (0) 2020.10.26
NUMA, SMP  (0) 2020.09.25
Posted by 구차니
Programming/c# & winform2020. 11. 5. 15:00

내가 필요한건 NMEA 값을 받아와서 파싱하고

그 값을 내가 원하는대로 수정해서 원래 GPS 데이터로 출력하는 건데..

 

괜찬아 보이는데 쓰기 쉬울려나?

 

 

Features
  • Most common NMEA messages fully supported
    • GNSS: BOD, GGA, GLL, GNS, GSA, GST, GSV, RMB, RMA, RMB, RMC, RTE, VTG, ZDA
    • Garmin Proprietary: PGRME, PGRMZ
    • Trimble Laser Range Finder: PTNLA, PTNLB
    • TruePulse Laser Range Finder: PLTIT
  • Automatic merging of multi-sentence messages for simplified usage.
  • Extensible with custom NMEA messages see here
  • Multiple input devices out of the box
    • System.IO.Stream (all platforms)
    • Emulation from NMEA log file (all platforms)
    • Serial Device: .NET Framework, .NET Core (Windows, Linux, Mac) and Windows Universal.
    • Bluetooth: Windows Universal and Android. .NET Core/.NET Framework is supported using the bluetooth device via the SerialPortDevice.

[링크 : https://www.nuget.org/packages/SharpGIS.NmeaParser/]

[링크 : https://dotmorten.github.io/NmeaParser/api/index.html]

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

c#에서 ini 파일 사용하기  (0) 2020.11.05
C# UTC -> 지역시간  (0) 2020.11.05
c# label rotate  (0) 2020.11.04
c# tooltip  (0) 2020.11.04
c# GIF picturebox  (4) 2020.11.04
Posted by 구차니
Programming/c# & winform2020. 11. 4. 20:42

일일이 돌리려면 죽어 나겠는데 편하게 돌리는 법 없나?

 

[링크 : https://www.codeproject.com/Questions/1103814/How-to-rotate-a-label-by-keeping-autosize-in-Cshar]

[링크 : https://www.c-sharpcorner.com/forums/rotate-a-lable-in-c-sharp]

 

 

+ 2020.11.05

문자열이 얼마나 크게 그려지는지 pixel 단위로 돌려받는 함수.

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.drawing.graphics.measurestring?view=dotnet-plat-ext-3.1]

 

+ 2020.11.05

4분면 마다 다르게 설정해야 하는데 sin/cos 다시 공부하게 생겼다.. ㅠㅠ

아무튼 해당 코드 정상적으로 잘 작동하는 것 확인!

[링크 : https://stackoverflow.com/questions/1371943/c-sharp-vertical-label-in-a-windows-forms]

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

C# UTC -> 지역시간  (0) 2020.11.05
c# gps(nmea parser)  (0) 2020.11.05
c# tooltip  (0) 2020.11.04
c# GIF picturebox  (4) 2020.11.04
C# 큰 이미지를 일부만 그리고 드래그 지원하기  (2) 2020.10.30
Posted by 구차니
Programming/c# & winform2020. 11. 4. 18:16

ToolTip.IsBalloon = true;

 

ToolTip.IsBalloon = false;

 

[링크 : https://stackoverflow.com/questions/9776077/how-can-i-add-a-hint-or-tooltip-to-a-label-in-c-sharp-winforms]

[링크 : http://www.gisdeveloper.co.kr/?p=2244]

Posted by 구차니
Programming/c# & winform2020. 11. 4. 17:51

ImageAnimator 클래스를 이용해서 비트맵과 프레임변경 핸들러를 추가하면

ImageAnimator.UpdateFrames()를 통해 다음 프레임을 원하는대로 그리는 듯

투명도 되려나?

 

using System;
using System.Drawing;
using System.Windows.Forms;
 
namespace BackgroundWorkerTest
{
    public partial class SandGlass : Form
    {
        public SandGlass()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
        }
 
        Bitmap bit;
        protected override void OnLoad(EventArgs e)
        {
            bit = new Bitmap("sandglass.gif");
            ImageAnimator.Animate(bit, new EventHandler(this.OnFrameChanged));
            base.OnLoad(e);
        }
        protected override void OnPaint(PaintEventArgs e)
        {
            ImageAnimator.UpdateFrames();
            Graphics g = pictureBox1.CreateGraphics();
            g.DrawImage(this.bit, new Point(0, 0));
            base.OnPaint(e);
        }
        private void OnFrameChanged(object sender, EventArgs e)
        {
            this.Invalidate();
        }
    }
}

[링크 : https://blog.naver.com/goldrushing/130184365511]

[링크 : https://docs.microsoft.com/en-us/dotnet/api/system.drawing.imageanimator.animate?view=dotnet-plat-ext-3.1]

Posted by 구차니