のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2018-01-01から1年間の記事一覧

ファイル共有

> docker run -v /c/Users/user01/Documents/MyDocker/workspace:/mnt/work --name env0 -di test/gen:1.0docker: Error response from daemon: Drive sharing seems blocked by a firewall.qiita.com # tar -zcvf folder.tar.gz /folder

E: Unable to correct problems, you have held broken packages.

root@1b2ddc8a7791:/# apt-get install -y --no-install-recommends libzmq3-dev=4.0.4+dfsg-2 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you …

libzmq3-dev : Depends: libzmq3 (= 4.0.4+dfsg-2) but 4.0.4+dfsg-2ubuntu0.1 is to be installed

Docfileを最小にしてみた。 Dockfile FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu14.04docker build -t test/gen:1.0 . docker run -name env1 test/gen:1.0 docker exec -ti env1 /bin/bashroot@1b2ddc8a7791:/# apt-get update Ign http://archive.ubuntu.c…

nvidia docker hub

github.com

docker docfile apt-get

RUN apt-get update && apt-get install -y --no-install-recommends >>|| $ sudo apt-get install --no-install-recommends デフォルトだと recommends しているだけの必須ではないパッケージも一緒に入って時間がかかるので --no-install-recommends をつ…

docker error

The following packages have unmet dependencies: libzmq3-dev : Depends: libzmq3 (= 4.0.4+dfsg-2) but 4.0.4+dfsg-2ubuntu0.1 is to be installed E: Unable to correct problems, you have held broken packages.

unable to prepare context:

C:\Users\m_fujii\Documents\MyDocker > docker build -t fujii/general:1.0 . unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx C:\Users\m_fujii\Documents\MyDocker\Dockerfile: The system cannot find…

43インチモニター(LG-43UD79-B)を購入

27インチモニターから、43インチモニターへ変えてみた。元のDELLの27インチ 購入した43インチのモニター LG モニター ディスプレイ 43UD79-B 42.5インチ/4K/IPS非光沢/HDMI×4・DP・USB Type-C・RS-232C/スピーカー/ブルーライト低減出版社/メーカー: LG Elec…

mstestで、TEST_CLASSを継承したいとき。

mstestで共通の関数をまとめたい。 継承がうまくできないな。CppUnitTestFramework自体は、継承をサポートしていないようだ。マクロ自体は、以下のようなので、多重継承できるみたい。 ///////////////////////////////////////////////////////////////////…

SourceTreeのログイン画面が何回も表示される。

sourcetreeを開いていると、何回もパスワードを聞かれる。 正しいパスワードを入れてもだめ。SourceTreeの設定でリポジトリ設定のoriginを以下のように変えてみた。 https://none53@bitbucket.org/none53/test.gitgit@bitbucket.org:none53/test.gitcommunit…

Visual Studioの単体テストで、時間のかかるテストをスキップする方法

実行するのに時間がかかるので、 無効にしたいテストを以下のようにすると、 スキップしてくれる。 。 #if 0で隠してしまうと、テストがあることがわからなくなってしまう。 BEGIN_TEST_METHOD_ATTRIBUTE(時間がかかるテストの名前) TEST_METHOD_ATTRIBUTE(L…

truetype F2Dot14 変換表

A 下位2Byteが、F2Dot14 A / 2^14 -32768 F8000 -2.000000 **** -32767 F8001 -1.999939 -32766 F8002 -1.999878 -16386 FBFFE -1.000122 -16385 FBFFF -1.000061 -16384 FC000 -1.000000 **** -16383 FC001 -0.999939 -16382 FC002 -0.999878 -2 FFFFE -0.0…

excel dec2hex 負数のとき、桁数を制限する方法(FFFFをカットする)

dec2hexで負数を表示すると、桁数制限しているのに、符号拡張部分のFFFFが表示されてしまう。 この、FFFFをカットして表示する方法例:A2=-32768 =DEC2HEX(A2,5) FFFF8000=DEC2HEX(BITAND(A2+2^16,2^16-1),5) 8000=DEC2HEX(BITAND(A2+2^20,2^20-1),5) F8000…

truetype fixed 16.16

Data type Description shortFrac 16-bit signed fraction Fixed 16.16-bit signed fixed-point number F2Dot14 16-bit signed fixed number with the low 14 bits representing fraction. F2Dot14 1.999 0x7FFF 32767 -2.0 0x8000 -32768 1.0 0x4000 16384 …

micro sd card sandisk 128GB

microSDXC 128GB SanDisk サンディスク UHS-1 超高速U1 FULL HD アプリ最適化 Rated A1対応 専用SDアダプ付 [並行輸入品]seqは、specどおりなのかな。 microSDXC 128GB SanDisk アプリ最適化 A1対応 サンディスク UHS-1 超高速U1 専用 SDアダプター付 [並行…

GoogleTestExtensionOptionsPageパッケージは正しく読み込まれませんでした。

PCを再起動し、 vs2017を起動したとき、以下のメッセージgでる。 VS2017 v15.5.0 - Error message about "GoogleTestExtensionOptionsPage" - Developer Community nasatame.hatenablog.com

freetype readpoint

>|| FT_LOCAL_DEF( FT_Error ) TT_Vary_Get_Glyph_Deltas( TT_Face face, FT_UInt glyph_index, FT_Vector* *deltas, FT_UInt n_points ) { FT_Stream stream = face->root.stream; FT_Memory memory = stream->memory; GX_Blend blend = face->blend; FT_Ve…

freetype all pointsの処理

/*************************************************************************/ /* */ /* The macro ALL_POINTS is used in `ft_var_readpackedpoints'. It */ /* indicates that there is a delta for every point without needing to */ /* enumerate all…

Serialized data

Serialized dataAfter the coordinate data for the glyph's tuples is a block of serialized data. This data contains the points the tuples operate on and their deltas.If the tuples_share_point_numbers flag is set, the serialized data begins w…

private_point_numbers

private_point_numbers Flag indicating that the preceding tuple data for this tuple is a set of packed point numbers that this tuple operates on. If this bit is clear, this tuple uses shared point numbers. このタプルの前のタプルデータが こ…

tuples_share_point_numbers

Currently, the only flag bit supported is 0x8000, tuples_share_point_numbers. This means that all of the tuples reference a common set of packed point numbers that follow immediately after the tuple array. 現在サポートされている唯一のフラ…

vs2017でfonttoolsのtestがdebugでみれた。

プロジェクトを新規に作成し、 fonttoolsの場所を指定しただけで、 特に設定はしていない。ステップ実行できるのが、いいと思う。

ファントムポイント

google翻訳 ファントムポイント Microsoftラスタライザv.1.7以降では、 すべてのアウトラインの最後に4つの「ファントムポイント」が追加され、 幅または高さの制御が可能になります (v.1.7より前のMSラスタライザは2つのファントムポイントを追加するだけ…

packed delta その6

カウントは1バイトまたは2バイトで格納されます。 第1のバイトを読み取った後、第2のバイトの必要性を判定することができる。 カウントバイトは次のように処理されます。最初のバイトが0の場合、2番目のカウントバイトは使用されません。 この値には特別な意…

packed delta その5

# all points in glyph (in overly verbose encoding, not explicitly prohibited by spec) #グリフ内のすべての点(仕様によって明示的に禁止されていない、過度に冗長なエンコーディング)https://github.com/fonttools/fonttools/blob/master/Tests/ttLi…

packed delta その4

@staticmethod def decompilePoints_(numPoints, data, offset, tableTag): """(numPoints, data, offset, tableTag) --> ([point1, point2, ...], newOffset)""" assert tableTag in ('cvar', 'gvar') pos = offset numPointsInData = byteord(data[pos]) p…

packed delta その3

def test_compilePoints(self): compilePoints = lambda p: TupleVariation.compilePoints(set(p), numPointsInGlyph=999) self.assertEqual("00", hexencode(compilePoints(range(999)))) # all points in glyph self.assertEqual("01 00 07", hexencode(co…

packed delta その2

staticmethod def compilePoints(points, numPointsInGlyph): # If the set consists of all points in the glyph, it gets encoded with # a special encoding: a single zero byte. if len(points) == numPointsInGlyph: return b"\0"https://github.com/f…

packed delta

VariableFontのPackedDeltaを解析していて、先頭に、0x00があるときがある。 この意味がよくわからない。例 AdobeVFPrototype.ttfgvar - “.notdef” - tuple2 dump 0000A75A 0000A750 -- -- -- -- -- -- -- -- -- -- -- -- 00 80 0A EC 00 14 .##............…

gvar packed delta

static FT_Short* ft_var_readpackeddeltas( FT_Stream stream, FT_Offset delta_cnt ) { FT_Short *deltas = NULL; FT_UInt runcnt; FT_Offset i; FT_UInt j; FT_Memory memory = stream->memory; FT_Error error = FT_Err_Ok; FT_UNUSED( error ); if ( FT…