Categories
Windows

Updating to PHP5.5.11.

同一記事の日本語版

   They released PHP5.5.11 on Apr-03 06:21:19UTC.

   According to ChangeLog, this includes the fix for CVE-2013-7345.

   The php.ini-production has nothing changed. As the official PHP binary includes php5apache2_4.dll, I extract the zip archive and replace all PHP5.5.10 files with all PHP5.5.11 files except my php.ini. Then, I restart my Apache. That’s it.

   If you need how to configure PHP5.5, please see the post. It is for a mbstrings user, but the information gives some help for you.

Categories
everyday life

Do you like wakegi(分葱)?

Magenegi
Magenegi
   Do you have had a chance to eat wakegi(分葱)? Wakegi is one of spring vegetables in Japan. A kind of onion but we usually eat green leaves instead of bulbs. I love one of wakegi dishes called Magenegi(まげ葱).

Categories
translation

Another information about ~-#7.

   I added the new links to the post “You can look inside!“.

Categories
everyday life

The declaration of flowering(開花宣言).

同一記事の日本語版

A cherry blossom.
A cherry blossom.
   The declaration of flowering(開花宣言). For what? Of course, about cherry blossoms at my garden he-he-he. I’ll show you the photo. See the right image. Unfortunately, the photo does not have good color because it’s rainy today.
 
   I also show you other photos of my garden flowers in the table.

No.1 Mitsumata
No.1 Mitsumata
No.2 Lenten rose
No.2 Lenten rose
No.3 Narcissus sp.
No.3 Narcissus sp.
No.4 Linaria
No.4 Linaria
No.5 Spring star
No.5 Spring star
No.6 Boke
No.6 Boke
No.7 Cyclamen
No.7 Cyclamen
No.8 Double-flowered Camellia
No.8 Double-flowered Camellia
No.9 Nanohana
No.9 Nanohana
Categories
Uncategorized

Updating to Apache 2.4.9.

同一記事の日本語版

   Apache HTTP Server 2.4.9 was released, and they did not release 2.4.8 because of an issue about OpenSSL area. So we’d better think 2.4.9 includes the changes with 2.4.8.

   I downloaded httpd-2.4.9-win32-VC11.zip (16 Mar) from the ApacheLounge for my Windows7 server. If you need the information about Apache 2.4.x configuration on Windows, see my post ‘To create a Wamp-like Web Server in Windows7-#1.‘.

Categories
everyday life

FUJITSU 30 pin display connector —>> DVI-D.

同一記事の日本語版
Update information      Edit(Apr.7)
30 pin plug head
Fig.1 30 pin plug head

I have an FMVH70K7V and I got it as one of my uncle belongings. I used the PC as my web sever machine. It’s already broken but its display(VL-17VS2) is still alive. The display has very unique connector like the right image(Fig.1). Though I’d used the display to watch TV since Digital Terrestrial Television Broadcasting starting, I began to think I wanted it as a PC monitor after installing a Vista on the KeyPaso. At the time I couldn’t find any information about its pin assignment on the Internet.

However, on Jan. 2nd,
・ 「NEC F17W21」をDVI端子で使えるように改造する
・ ディスプレイケーブル変換アダプター配線図

and on Jan.3rd,
NECのF17W11の専用デジタル接続端子(30 pin)を通常のDVI-Dデジタル端子に変換しましたのでその記録です。
I found out the pages above.

And KANさん told me the next two pages on the comment.
・ Fujitsu 30 pin Display to DVI(Japanese)
・ 富士通17インチ液晶モニタ(30ピンコネクタ)改造記録

Fig.2 34 wires in it.
Fig.2 34 wires in it.

They excited motivation in me but I got a cold after New Year holidays as you know, he-he. So my work about it began behind my plan. It was Jan. 16.

First I checked the cable of 30 pin connector by a circuit tester. Actually, the cable had 34 wires like as the left image(Fig.2), grrrr. To check the cable took more than one month, mainly my physical condition and probably to use a circuit tester was after a long time. Second I checked the DVI-D cable, which took only a day. Very short than to check the 30 pin connector.

When I was doing this, I talked to FHさん on his BBS. Here is the reprint(Japanese) of a part of his BBS related to my article, which appears his courtesy.

After the check, I got this as a result:
FUJITSU 30 pin display connector pin assignment (PC-side).

Fig.3
Fig.3

*** My Actual Work

  1. Connected each wire following the result. Used heat shrinkable tube as the technique to isolate each wire(Fig.3).
    [Note1] FHさん is kind enough to show me how to use heat shrinkable tube.
    [Note2] I also connected the wires about USB things, but my remote controller coming with FMVH70K7V did not work.
  2. Fig.4
    Fig.4

    About the wires that have a metal shield originally, wrapped with a piece of aluminum foil for cooking and over-wrapped them in insulating tape(Fig.4).

  3. Fig.5
    Fig.5

    Wrapped all 34 wires and shield in insulating tape(Fig.5).

I have good images on the display.
Now, mission complete, I think. Buuuuuut, there is more to it (T_T).

Edit(Apr.7):
I forgot to write. I heard the cable with the display (VL-17VS2) is not straight. I checked the only PC-side assignment out, so it is not useful for you if you want to change the display-side connections.

Categories
Windows

Updating to MariaDB 5.5.36.

同一記事の日本語版

   Today, I updated to MariaDB 5.5.36 on Windows7HP+SP1(x86). Here is its Changelog.

   First, I backed up all the sever data. Especially, MariaDB and MyDB.

   Next, I updated to MariaDB 5.5.36.

  1. Downloaded mariadb-5.5.36-win32.zip.
  2. Extracted the Zip archive.
  3. Control Panel >> Administrative tools >> Services
    Select the MyDB service name and stop.
  4. Replace old four folders with new ones. The folders exist in MariaDB and their names are bin, include, lib and share.
  5. Control Panel >> Administrative tools >> Services
    Select the MyDB service name and start.

   That’s it.

Categories
Windows

Updating to PHP5.5.10.

同一記事の日本語版

   Though I forgot to write because of hooked on WOFF, I updated to PHP5.5.10 on Mar. 10.

   According to ChangeLog, this includes the fixes for CVE-2014-1943, CVE-2014-2270 and CVE-2013-7327.

   The php.ini-production loses the next 31 lines. My server had nothing affected by them, though.
———————————————
; session.bug_compat_42
; Default Value: On
; Development Value: On
; Production Value: Off
———————————————
; session.bug_compat_warn
; Default Value: On
; Development Value: On
; Production Value: Off
———————————————
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope.
; PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled. This feature
; introduces some serious security problems if not handled correctly. It’s
; recommended that you do not use this feature on production servers. But you
; should enable this on development servers and enable the warning as well. If you
; do not enable the feature on development servers, you won’t be warned when it’s
; used and debugging errors caused by this can be difficult to track down.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/session.bug-compat-42
session.bug_compat_42 = Off
———————————————
; This setting controls whether or not you are warned by PHP when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by PHP. See the directive above for more information.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/session.bug-compat-warn
session.bug_compat_warn = Off
———————————————

   As the official PHP binary includes php5apache2_4.dll, I extract the zip archive and replace all PHP5.5.9 files with all PHP5.5.10 files except my php.ini. Then, I restart my Apache. That’s it.

   If you need how to configure PHP5.5, please see the post. It is for a mbstrings user, but the information gives some help for you.

   I use this opportunity to update to phpMyAdmin 4.1.9. If you need its configuration, see “phpMyAdmin 4.1.0 is released”.

Categories
WordPress

To create a WOFF file from my own handwriting-#3.

同一記事の日本語版
Update information      Edit(Jul.17)

New Widgets Title on Japanese blog   Continued from “To create a WOFF file from my own handwriting-#2.”.

   Now, I have the ttf file(Untitled1.ttf) I want. First I’ll make a subset from the ttf file. Actually my ttf file only contains 31 glyph, nevertheless, the subset file is smaller than the original file. So, this work is worthwhile. Second, I’ll make a WOFF file.

   You can find some sites which create WOFFs from ttfs. For example, Webfont Generator, ttf to woff converter, Font2Web, and so on. Some of them can convert full-size characters as well as half-size characters, others cannot. You are able to use command line tools like sfnt2woff. But I found a tool named WOFFコンバータ and can use it on Windows 2000/XP/Vista/7/8 and Mac OS X 10.6 or later. Besides, they distribute a subset font maker named サブセットフォントメーカー, which also works on Windows 2000/XP/Vista/7/8 and Mac OS X 10.6 or later. So, I’ll use it. I greatly appreciate their tools.

  1. Install サブセットフォントメーカー and WOFFコンバータ.
  2. Run サブセットフォントメーカー.   — Fig.1
     
    Explanations of words:
    参照 <--- Browse. 作成元フォントファイル <--- It means "Original File Location & Name". 作成後フォントファイル <--- It means "Subset File Location & Name". フォントに格納する文字 <--- It means "What characters you want the Subset file to include". 書体名を変更する <--- Change Font Name. IMPORTANT!! If a font on your system has the same name, it might be affected by this font.
    作成開始 <--- Make Subset
  3. After 2, WOFFコンバータ runs automatically.   — Fig.2
     
    Explanations of words:
    サンプル文字列 <--- Characters for @font-face Demo 変換開始 <--- Convert to WOFF.

   When this work ends, the tools give me next three files.
     ・Untitled1_sub.html
     ・Untitled1_sub.ttf
     ・Untitled1_sub.woff

   If you open the Untitled1_sub.html by a text editor, you can find the css code you need.

   In my case, I created the WOFF to use for the my Japanese blog Theme which is a child Theme of ‘Sugar and Spice’. So I added the css customization for its style.css. Here is my current style.css in the child Theme folder. Bold and italic parts are new additions. Of course, you have to upload the WOFF file to your server.
   Then the Widget Titles on my Japanese blog have changed their design. See the top image of this post. The WOFF file size is only 10.8KB. Now I have satisfied my own ego trip ha-ha-ha.

   Mission complete!! Clap, clap.

/*
Theme Name: J blog
Theme URI: http://webtuts.pl/themes/sugar-spice
Description: sugarspice Child Theme
Author: Aleksandra Laczek
Author URI: http://webtuts.pl
Template: sugar-and-spice
Tags: light, white, gray, two-columns, fixed-layout, responsive-layout,
custom-background, custom-menu, featured-images, theme-options, threaded-comments,
translation-ready, full-width-template
Text Domain: sugarspice-child
*/

@import url("../sugar-and-spice/style.css");

/* =Theme customization starts here
-------------------------------------------------------------- */
@font-face {
font-family: 'MyFont';
src: url('Exact URL to Untitled1_sub.woff') format('woff');
}

body {
color: #000;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
color: #000;
}

/* Calendar Widget */
table th,
table td{
color: #000;
background: transparent;
border: none;
text-align: left;
}

.widget-title em {
font-family: 'MyFont';
font-size: 26px;
font-style: normal;
padding-left: 3px;
}

/* 07. Forms & buttons
================================================== */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
color: #000;
}

/* #Forms */
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
textarea,
select {
color: #000;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
color: #000;
}

label span,
legend span {
color: #000;
}

Edit(Jul.17):
   Hey guys, I have good news for you. Now, we can use FontForge for Windows with no pains. At this time, its version is 20-06-2014.

Categories
WordPress

To create a WOFF file from my own handwriting-#2.

同一記事の日本語版
Update information      Edit(Jul.17)

   Continued from “To create a WOFF file from my own handwriting-#1.”.

   Now, I can use FontForge. By the way, the fontforge_cygwin-20090914.tar.bz2 on my Windows8 Pro x86 is very unstable. But it works. FontForgeSetup_2012-07-31_Windows.exe didn’t work and fontforge-20090923-1.i386.rpm was more unstable than fontforge_cygwin-20090914.tar.bz2 on my system. There is no turning back. So, I use the fontforge_cygwin. See the edit. You can use FontForge for Windows.
   I first write about creating a ttf file, but note the following points. To follow my procedure probably you have a ttf file and it possibly works. But I do not mention a lot of information to create a full ttf file. So if you want to make a decent ttf file, learn about it by yourself after my method confirmed. You can find more information on Tutorial.
 
**Step by step #2**

  1. Open a cygwin window (by clicking on the cygwin icon).
    $ xinit   — Fig.1

    I have X in a large window.
    [Note] I think you’d better make a working folder for your WOFF. The folder is named MyFont or something like that and placed in cygwinhome<username>. You save your Inkscape SVG files to the folder, which is convenient for your rest work.

  2. $ cd MyFont
    $ fontforge -new   — Fig.2
    I have a new window at the right top corner.
  3. ***Starting to create a font.
    1. I create a Japanese font, so I use a re-encoding feature (JIS 212 (Kanji)).   — Fig.3
    2. ****Creating a half-width character.

      At the first, I make “p” as a half-width character example. Double clicking on the green area.   — Fig.4
      I have another window.   — Fig.5

    3. Use ‘Import’.   — Fig.6
    4. Click ‘Image’ and choose ‘SVG’ from the drop down menu.   — Fig.7, Fig.8
    5. Double click p.SVG.   — Fig.9
    6. Choose ‘Close’.   — Fig.10
    7. “p” is a half-width character, so Use ‘Metric Window’.   — Fig.11
    8. Change the width from ‘1000’ to ‘500’.   — Fig.12
    9. Close ‘Metric Window’.   — Fig.13
    10. Save all I made as a sfd file (default: Untitled1.sfd).   — Fig.14, Fig.15
      [Note] Usually, we don’t need saving at this point, but my FontForge is very unstable. So, I saved all at the point every time just to be on the safe side.
    11. [Note] If you make half-width characters, repeat 2(Fig.4) -10(Fig.15) about all half-width characters you want to make.
       
    12. ****Creating a full-width character.

      I make “ン” as a full-width character example. When making a full-width character, use ‘View’ → ‘Goto’ feature because the finding character place is difficult.   — Fig.16

    13. Copy & paste “ン” in the search form and [OK].   — Fig.17
    14. Double clicking on the yellow area.   — Fig.18
      Repeat from Fig.5 to Fig.8.
    15. Double click U+30F3.SVG.   — Fig.19, Fig.20
      [Note] ‘U+30F3’ is the Unicode for ‘ン’. If available, ン.SVG is convenient for its file name, but, unfortunately this directory menu does not show full-width characters correctly on my system. So I use half-with characters as SVG file names.
    16. Close the window.   — Fig.10
    17. Save all to the sfd file which I made when I created the character “p”.   — Fig.14
    18. [Note] If suspending your creation, do Fig.21, Fig.22, Fig.23.
    19. [Note] If resuming your creation, type “fontforge YourFont.sfd” instead of “fontforge -new”.
    20. Repeat the work above about the characters I want to create. After that I have a sfd file which contains all glyph I want.
    21. Generate and save a ttf file.   — Fig.24, Fig.25
      [Note] Unchecked ‘Validate Before Saving’.
  4. Finaly, I have the ttf file I want.

   The next post I will write how to make a subset file.

Edit(Jul.17):

   Hey guys, I have good news for you. Now, we can use FontForge for Windows with no pains. At this time, its version is 20-06-2014.