「TEST」を含む日記 RSS

はてなキーワード: TESTとは

2012-03-05

[][]だまされない!まともな英語勉強法TOEIC 860点を目指

TOEIC 860点以下が許されるのは小学生までだよねー、キモーイ、キャハハハハ」

おい、そこのおっさんTOEIC 700点台取ったくらいで威張るなって。

自慢してるつもりかもしれないけどさ、それ、英語できないって公言してるようなもんだぞ。

みなさん、TOEICで点を取りたければ、まともな勉強しましょう。小手先テクニック追っかけるのなんて、バカらしいよね。

そして、受けるからには860点を取りましょう。860点も取れないのは恥だと思いましょう。

TOEIC英語がどれくらいできるかというよりは、英語がどれくらいできないかをはかる試験だ、って言われて久しいけど、確かにそう思う。

でもさ、TOEICの点数も取れてないのに、「TOEICは云々」は偉そうに言えないよね。せめてTOEIC 860点くらい取ろうぜ。

TOEIC 860点までの英語勉強法

TOEIC 860点のレベルに達していない=基礎がなっていない」

まり、はっきり言って論外です。

なので、文法と基本的な語彙をつけ、英語の音に慣れること。近道なんてない。

そろそろ宗教じみた胡散臭い英語学習指南本は捨てましょう。その本を買ったことで得をしたのはあなたではなく、卑しい英語業界の野郎なんですよ。

あと、TOEIC 600点も無い人で、英会話をやってる人は今すぐ解約の電話を入れましょう。あなたお金をドブに注ぎ込んでいるのです。

基礎もへったくれも無いくせに会話とかできるわけないじゃん。マジ無駄だよ。

文法を覚える

まずは、高校レベルの文法の基礎知識を身につけよう。

その程度の知識もない人は、ぜひ復習しよう。

文法を一通り学んだあとは、文法ともっと仲良くなろう。

一億人の英文法』はイメージ効果で英文法を親しみやすく解説している。

基本的な語彙を身につける

DUO 3.0』や『TOEIC TEST英単語スピードマスター』を最低3周はしよう。この程度の語彙も無い人はTOEICなんか受けてもお金無駄

この程度の語彙を手に入れるただけで、あなたの視界は一気に開かれる。英語学習最初の山場と言えるかも知れない。

基本的な語彙を身につけると、理解効率がぐんぐん上がる。やっと英語ぼんやり分かってきた!って実感できる。

しんどいけども、頑張ろう。

長い期間をかけてだらだらとやるよりも、「短い期間で集中して覚える→それを繰り返す」が効率のいい方法。復習は勉強の基本。

英語の音に慣れる

TOEIC程度のリスニングができないあなた、多分まともに英語を聴いたこと無いだろ。

英語言葉言葉音楽

まずは洋楽を歌えるようにしよう。

歌詞カードを見ながら、きちんと曲のスピードに合わせて発音できる程度には練習しよう。発音が悪いと絶対間に合わないので、曲に合うくらい歌えるようになった時、ある程度発音も改善されているでしょう。

これを繰り返していくうちに、そのアーティストの曲は歌詞カードを見なくても聴いたら言葉が頭に浮かぶようになる。音と単語がつながる。これが大事

好きな洋楽を色々英語でまともに歌えるようになったら、あとはニュースを見たりラジオを聴いたり、映画ドラマを見たりすれば良い。

大事なのは、「音とのつながり」なので、スクリプトを用意できるものが良い。

あと、できるだけ毎日聴き続けよう。通勤通学の時間とかでも良いから。どうせ暇でしょ。

読む

あと大事なのは、普段から英語を読む習慣をつけること。

正直TOEICリーディングなんてのは難易度的にはクソです。問題数が多いからしんどいだけ。

じゃあどうやってその大量の問題をこなすか。スピードを鍛えよう。

TOEICの問題を解ききれない人は、読むのが遅すぎるんです。それはなぜか。普段から英語を読んでいないから

「問題1つ1つは簡単なのにな〜時間があれば全部解けるのに><」とか言ってる人いますよね。時間が無いのはお前が読むのが信じられなねーくらいすっげーおせーからだよ><

なんでも良いので、興味のある分野で毎日数個の記事を読みましょう。RSS登録しとくといいかも。毎日続けていると、だんだん活字中毒的な状態が麻痺してきて、「英文を読む」という行為に抵抗を感じなくなる。そうなったらもう、もうけもんやで。

最後に、TOEIC対策。

何のためにTOEIC受けるんだろうね。

英語力を測るため、だよね。

まり、まずは基礎的な英語力を付けることが先決。

小手先テクニック本は、実力の無いうちは買わなくてよろしい。

730点は絶対無理!って思うのなら、TOEIC関連の本を買う前に、上の方法で真面目に英語勉強しましょう。金の無駄

730点くらい行けるんじゃね?って思い始めたら、実際にTOEICテストを受ける前にTOEIC関連の本を買いましょう。これは、TOEICテストがどういうものかを知るためです。時間配分とか考えるためです。慣れるためです。それだけです。万能の最強テクニックなんてあるわけ無いじゃん。騙されるんなよ。

TOEIC 860点を超えたら。

ここまできたら、自分には何が必要で、どこを伸ばすべきかってのが意識できていると思う。

まり基礎はある程度ついてる。

なのであとは自分の好きなように勉強していくと良い。英会話はじめるのも良いんじゃないかなー。

英 語 習 得 の 道 の り は こ こ か ら は じ ま る !

精進あるのみ。

英語カンカク

例解 和文英訳教本 (文法矯正編)

この本は英作文の本だけど、文法への理解を深めるのにかなり役立つと思う。

日本人の英語』『続・日本人の英語』『心にとどく英語

ネイティブ立場から日本人英語を見ている。すごくタメになると思う。

英会話

英会話は、しゃべらないとできるようになりません。知識だけではダメ映画とかドラマとか見まくって表現を盗もう。

番手っ取り早い方法留学して、語学学校に入ること。

そんな金も時間もねーよって人は、今はやりのオンラインSkype英会話とかやればいいんじゃないでしょうか。

大事なのは間違いとか気にせずにテキトー人間になったつもりでペラペラしゃべること。無理だってやつは酒飲んでしゃべれ。

発音

英会話してると、自分の発音、ヤバくね?と気付きますカタカナ英語とか論外です。

学校では先生も生徒もみんなカタカナ英語だったって人、結構いたと思う。あの場できれいな発音すると逆に恥ずかしいんだよね。だからカタカナ英語は無くならない。バカだよね。

からお家で隠れて訓練しましょう。

American Accent Training

洋書です。この本は割としんどいけど良いトレーニングになると思う。

個々の単語の発音が良いだけじゃ伝わらないんだぜってことですね。

普段日本語しゃべってるとあまり気付かないかもしれないけど、言葉って音楽から

最後一言

謙虚にいこーぜ。英語なんて所詮ただの言葉、しゃべれて当たり前。できるだけですごいとか言ってるやつはみんなバカ。

だけど、「すぐできるようになる」とか言ってるやつや、ネイティブ教の卑しい宣教師は全員敵。騙されんなよ。

そして、ひとつ、心に留めておいてほしいことがあります

それは「お前の英語力、ネイティブ小学生以下だから。」ってことです。せいぜい頑張ってください。

2012-02-10

http://anond.hatelabo.jp/20120210102413

テストドリブン型」は「JAVA」ほどの違和感なんて無いと思うけど

test-drivenをテストドリブンと言うのは至って普通だし、「型」の有無なんて翻訳の揺れの範疇だろ

2012-01-19

Python vs Ruby vs PHP vs HaskellRubyistネクラオタクキモメン」 part2

Python vs Ruby vs PHP vs Haskell プログラミング言語バトル part1

http://anond.hatelabo.jp/20120118220204

441 : デフォルト名無しさん : 2011/12/14(水) 00:34:54.13

Rubyistってなんであんな小学校の図書室で毎日読書してそうな

いじめられっこネクラチビメガネみたいな色黒とかキモオタ

顔面オジサン、オバサンばっかなの?

445 : デフォルト名無しさん : 2011/12/14(水) 00:47:59.11

Javaer: 傲慢プライド高い、土方

Scalaer: 鼻持ちならない、モヒカン

Lisper: マジキチ

Rubyist: ネクラオタクキモメンいじめられっこネクラチビメガネ、色黒、キモオタ、顔面オジサン、オバサン

PHPer: 土方、DQN

Pythonista: イケメンリア充

473 : デフォルト名無しさん : 2011/12/16(金) 22:06:14.45

Python厨のRubyネガキャンは異常だなwww

608 : デフォルト名無しさん : 2011/12/28(水) 09:29:20.74

Rubyブロックが便利すぎて、Pythonをやめたくなった。

いちいちtemporaryな関数作成してから目的関数に渡していたのがばからしくなった。

609 : デフォルト名無しさん : 2011/12/28(水) 09:43:17.83

リストやジェネレータ式の内包表記が便利過ぎて

PythonからRubyには移行できないな

610 : デフォルト名無しさん : 2011/12/28(水) 11:03:14.91

日本人が開発の中枢にいるような言語はやめとけ。

どうせ廃れる。

611 : デフォルト名無しさん : 2011/12/28(水) 11:58:14.38

Pythonさんは、どうしてこう排他的かなぁ

626 : デフォルト名無しさん : 2011/12/28(水) 15:08:51.86

609

リストやジェネレータ式の内包表記が便利過ぎて

おれもそう信じてたけど、Rubyの、メソッド呼び出しを続けて書けるほうが便利だわ。

まるでjQueryみたい。といってもjQueryのほうが後発だけど。

たとえば「xsから0以上のものを選んで、その二乗の和を求める」場合

sum([ x*x for x in xs if x > 0 ])

これだと、後ろから読まないといけないんだよね。でも

xs.select{|x| x > 0}.map{|x| x*x }.sum

これなら頭からひとつずつ読めばいいから、わかりやすいし、考えたとおりに書きやすい。

まさにスクリプトって感じがする。

629 : デフォルト名無しさん : 2011/12/28(水) 15:55:19.77

Rubyメソッドチェーンって内包表記より弱いと思う

ネストするmapとかflattenとかわかりくいよ

Python: [[x,y] for x in xs for y in xs]

Ruby: xs.map{|x| xs.map{|y| [x,y] } }.flatten(1)

632 : デフォルト名無しさん : 2011/12/28(水) 17:25:29.75

いっぽうメソッドチェーンは

orz.sage().hage().hoge().hige() タイプの問題には向いている

まり向いている方向がちがう

(まあHaskellなら hige . hoge . hage . sage と書くだけだというのは置いといて)

強い弱いということで言うと、問題を解くのに必要な一番能力が弱い

(限定された)道具を使うという考え方があるようだよ

ベタ再帰は強い(汎用的)、がそれゆえ読むのに注意を必要とする

foldrは再帰よりは弱いが、foldrで表現可能な問題のクラス(原始再帰)はかなり

広いので、mapやfilterで済むならもちろんそのほうが望ましい

ではこの問題は弱いmapやfilterを結合させるほうがいいかというと、

俺はlist comprehensionのほうが集合表記そのもの=whatを表現していて好きだな

Pythonのlist comprehensionのsyntaxはあまり好きではないが

それは大きな問題じゃない

640 : デフォルト名無しさん : 2011/12/28(水) 19:56:09.23

メソッドチェーンってバグをわかりにくくするだけだと思うなあ。もちろん性能面もあるし。linqとかは良いと思うけど。

642 : デフォルト名無しさん : 2011/12/28(水) 20:28:45.92

同じメソッドチェーンでも、linqなら良いけどrubyなら悪い .....

一言で言うと「俺はRubyが大嫌いなんだぁーー」ということですな

663 : デフォルト名無しさん : 2011/12/28(水) 22:45:30.53

メソッドチェインなんてライブラリ設計次第でどうにでもなる

PythonどころかJavaでもできる

内包表記は構文でサポートしないと難しい(マクロがあれば別だが)

680 : デフォルト名無しさん : 2011/12/29(木) 00:07:41.77

メソッドチェーンが関数型の方法に比べて特に優れている点があるようには思えないが

パイプ順に書きたければ書けるし

682 : デフォルト名無しさん : 2011/12/29(木) 00:30:35.72

680,663

Pythonには関数型として致命的な弱点があるからメソッドチェーンでは簡潔なコードが書けない

たとえば「(1) Rubyは 条件判定が(文ではなく)式」だから以下のようなコードが書ける

 ys = xs.select { |x|

   if test

     if test_1 then test_1_1 else test_1_2 end

   else

     if test_2 then test_2_1 else test_2_2 end

   end

 }

あるいは「(2) Rubyブロック内で局所宣言が可能」だから上のコードを以下のように書き換えてもいい

 ys = xs.select { |x|

   cond_1 = if test_1 then test_1_1 else test_1_2 end

   cond_2 = if test_2 then test_2_1 else test_2_2 end

   if test then cond_1 else cond_2 end

 }

関数型言語であれば「(1) 条件判定(if/case)が式」で「(2) 局所宣言(let .. in .. end)が可能」なの当たり前

ところが残念な事に、どちらもPythonには欠落しているから、上の例はストレートコード化できない

からPythonではメソッドチェーンは使われないし、「酸っぱい葡萄」に見える

684 : デフォルト名無しさん : 2011/12/29(木) 00:37:06.68

Rubyでもリスト内包表記が言語として組み込まれてくれると嬉しい

リスト内包表記はトップダウン思考

メソッドチェーンはボトムアップ思考

だと思う

頭に浮かんだロジックをすばやくコード化するのはメソッドチェーンが適しているし、

じっくり腰を据えてコード設計するならリスト内包表記のほうが美しい

自分は、たぶんこのスレRubyコアの中の人も見ているだろうから

そのうちRubyにもリスト内包表記が実装されるんじゃないかと期待しているw

766 : デフォルト名無しさん : 2011/12/30(金) 10:04:41.40

メソッドチェーンは書き易い

内包表記は見た目が整ってて綺麗、最終的な型がわかり易い

いじょ。

2011-12-29

Portable electronic equipment battery technology

1, about the trickle charge, rapid charging and stable battery charging algorithm

According to the energy requirements of the final application, a battery may contain up to 4 lithium ion or lithium polymer battery core, its configuration will have a variety of change, at the same time with a mainstream power adapter: direct adapter, USB interface or car charger. Remove the core quantity, core configuration or power adapter type difference, the battery has the same charge characteristics. So they charge algorithm. Lithium ion and li-ion polymer battery best charging algorithm can divided into three phases: trickle charge, rapid charging and stable charge.

trickle charge. For depth discharge core to charge. When core voltage in less than about 2.8 V, use a constant 0.1 C of the current charging for it.

fast charging. Core voltage trickle charge more than the threshold, improve the charging current rapid charging. Fast charging current should be lower than 1.0 C.

stable voltage. In the fast charging process, once the core 4.2 V voltage, stable voltage phase began. This is through the minimum charge current or timer or of the two joint to interrupt charge. When the minimum current below about 0.07 C, can interrupt charge. The timer is to rely on a default to trigger the timer interrupt.

Advanced battery charger with additional security function normally. For example, if the core temperature exceeds the given window, usually 0 ℃-45 ℃, charge will be suspended.

Remove some very low-end equipment, now on the market/li-ion polymer lithium ion battery solutions are integrated with the outer components or, in accordance with the characteristics of the charging to charge, this is not just to get better effect charge, but also for safety.

lithium ion/polymer battery charge is an example of applications-double input 1.2 A lithium battery charger LTC4097

LTC4097 can be used to exchange adapter or USB power supply for single quarter/polymer lithium ion battery. Figure 1 for double input 1.2 A lithium battery charger LTC4097 schemes. It USES constant current/constant voltage algorithm charging, from exchange adapter power charge, programmable filling up to 1.2 electric current A, and with USB power can be as high as 1 A, at the same time, automatic detection in each input voltage whether there. This device also provide USB the current limit. Applications include PDA, MP3 players, digital camera, light portable medical and test equipment and big color cellular phone. The performance characteristics: no external micro controller charging termination; The input power automatic detection and choice; Through the resistance from the exchange of charging adapter input can be as high as 1.2 A programming charge current; The resistance of programmable USB charging current is up to 1 A; 100% or 20% USB charging current set; The input power output and existing bias NTC (VNTC) pin as a 120 mA drive ability; NTC thermistors input (NTC) pin for temperature qualified charged; Pre-settings battery voltage with floating plus or minus 0.6% accuracy; Thermal regulation maximize charge rate and free hot air LTC4097 can be used to exchange adapter or USB power supply for single quarter/polymer lithium ion battery. The use of constant current/constant voltage algorithm charging, from exchange adapter power charge, programmable filling up to 1.2 electric current A, and with USB power can be as high as 1 A, at the same time, automatic detection in each input voltage whether there. This device also provide USB the current limit. Applications include PDA, MP3 players, digital camera, light portable medical and test equipment and big color cellular phone.

2, lithium ion/polymer battery scheme

Lithium ion/polymer battery charge scheme for different number of core, core configuration, and power types are different. At present mainly have three main charging scheme: linear, Buck (step-down) switch and SEPIC (booster and step-down) switch.

2.1 linear scheme

When the input voltage in big with the charger with sufficient clearance of core after opening voltage, it is linear scheme, especially 1.0 C fast charging current than 1 A big too much. For example, MP3 players usually only one core, capacity from 700 to 1500 mAh differ, full charge voltage is open 4.2 V. MP3 player power is usually the AC/DC adapter or USB interface, the output is the rule of 5 V; At this time, the linear scheme is the most simple, most charger of the efficiency of the scheme. Figure 2 shows for lithium ion/polymer battery solution linear scheme, basic structure and linear voltage neat device.

linear scheme charger application examples-double input Li + charger and intelligent power source selector MAX8677A

MAX8677A is double input USB/AC adapter linear charger, built-in Smart Power Selector, used for rechargeable single quarter by Li + batteries portable devices. The charger integration of the battery and the external power source and load switch charging all the power switch, so that no external MOSFET. MAX8677A ideal used in portable devices, such as smart phones, PDA, portable media players, GPS navigation equipment, digital camera, and digital cameras.

MAX8677A can work in independent USB and the power input AC adapter or two input either one of the input. When connecting external power supply, intelligent power source selector allows the system not connect battery or can and depth discharge battery connection. Intelligent power source selector will automatically switch to the battery system load, use the system did not use the input power supply parts for battery, make full use of limited USB and adapter power supply input. All the needed electric current detection circuit, including the integration of the power switch, all integration in the piece. DC input current highest limit can be adjusted to 2 A and DC and USB input all can support 100 mA, 500 mA, and USB hung mode. Charge current can be adjusted to as high as 1.5 A, thus support wide range of battery capacitive. Other features include MAX8677A thermal regulation, over-voltage protection, charging status and fault output, power supply good surveillance, battery thermistors surveillance, and charging timer. MAX8677A using save a space, hot enhanced, 4 mm x 4 mm, 24 of the pins TQFN encapsulation, regulations, work in exceptional temperature range (40 ~ + 85 ℃).

2.2 Buck (step-down) switch scheme

When A 1.0 C of the charging current more than 1 A, or the input voltage of the core than with high voltage open many, Buck or step-down plan is A better choice. For example, based on the hard drive in the PMP, often use single core lithium ion battery, the full of open is 4.2 V voltage, capacity from 1200 to 2400 mAh range. And now PMP is usually use the car kit to charge, its output voltage in a 9 V to 16 between V. In the input voltage and battery voltage is the voltage difference between high (minimum 4.8 V) will make linear scheme lowers efficiency. This kind of low efficiency, plus more than 1.2 A 1 C fast charging electric current, have serious heat dissipation problems. To avoid this kind of situation, will the Buck scheme. Figure 3 for lithium ion/polymer battery charger scheme Buck diagram, basic structure with Buck (step-down) switching voltage regulators completely the same.

2.3 SEPIC (booster and step-down) switch scheme

In some use of three or four lithium ion/polymer core series equipments, charger of the input voltage is not always greater than the battery voltage. For example, laptop computers use 3 core lithium ion battery, full charge voltage is open 12.6 V (4.2 V x3), capacity is 1800 mAh to 3600 mAh from. Power supply input or output voltage is 1 6 V AC/DC adapter, or is car kit, the output voltage in a 9 V to 16 between V. Apparently, the linear and Buck solutions are not for this group of batteries. This is about to use SEPIC scheme, it can in the output voltage is higher than when the battery voltage, can be in the output voltage less than when the battery.

3, and power detection algorithm is proposed

Many portable products use voltage measurements to estimate the remaining battery power, but the battery voltage and surplus power relationship but will with the discharge rate, temperature and battery aging degree of change, make this kind of method can top 50% margin of error. The market for longer to use product demand unceasingly strengthens, so the system design personnel need more accurate solution. Use capacity check plan come to measure battery or consumption of electricity, will be in a wide range of application power to provide more accurate estimate of the battery power.

3.1 power detection algorithm is one of the examples of application, function complete list, double the battery portable battery application design

power detection principle. Good capacity check plan at least to have battery voltage, temperature and battery electric current, measuring method; A micro 9 a; And a set of and the verification of the punishment power detection algorithm is proposed. Bq2650x and bq27x00 is full capacity check program function, with a measuring voltage and temperature of the digital converter (ADC) and a measuring electric current and charging sensor the asp. These capacity check plan also has a microprocessor, is responsible for the implementation of the Texas instruments power detection algorithm is proposed. The algorithm can compensate the lithium ion battery life.low self-discharge, aging, the temperature and discharge rate, and other factors. Chip embedded microprocessor as host system processor save these calculation burden. Capacity check program can provide remaining power state information, bq27x00 series products also offer surplus can Run Time (Run Time to Empty) host may at any Time to capacity check plan these information query, then LED indicator light through or displays will inform the user battery. Capacity check meter is very easy to use, the system processor need only configuration 12 C or HDQ communication drive can.

The battery circuit description. Figure 4 (a) can be used for identification of IC functions with typical application circuit batteries. According to the use of IC testing program is different, the battery needs to have at least three to four outside the terminal.

VCC and BAT pins will even to the battery voltage, so that for, C power and the battery voltage measurement. The battery is connected a grounding resistance smaller detection resistors, let capacity check meter high impedance SRP and SRN input can monitor sensor resistance on both ends of the voltage. Through testing the current flows through a resistor can be used to judge the battery or release the amount of electricity. Designers choose detection resistance value must be considered when resistance on both ends of the voltage can't more than 100 mV, low resistance may be more hours in current errors. Circuit board layout must ensure that SRP and SRN to testing from as close as possible to the connection of the resistor sensor resistance end; In other words, they should be the Kelvin attachment.

HDQ pin need external and resistors, this resistance should be located the host or the main application, such capacity check plan to the battery and portable devices when sleep function enable connection broken. Advice and resistance choose 10 k Ω.

battery identification. A low cost WeiMao batteries are getting more and more serious, these cells may not contain OEM requirements of security protection circuit. So, genuine battery may contain figure 4 (a) shows the appraisal circuit. When to identify the battery, the host to contain IC (bq26150, the function is cyclic redundancy check (CRC)) issued the battery packs a ask value (challenge), the CRC will contain battery according to this inquiry value and, in the building of the IC in CRC polynomial calculation the CRC value. CRC is based on the host of command and IC secret in the query of the definition of the CRC polynomial completed, the host in CRC values calculated with the calculation result of well battery comparison to identify the appraisal success.

Once the battery through the appraisal, bq26150 will issue commands to ensure that the host and quantity test plan of material lines between normal communication. When the battery connection interruption or to connect, the whole the identification process will be repeated again.

double the battery application. Figure 4 (b) for use bq26500 support double the typical application of lithium ion battery circuit. In order to support more battery, and this circuit is adding a adjustable regulators. Capacity check millions of BAT pin and the bottom of a battery anode linked to complete the variable voltage measurement of the battery.

Host to be able to read capacity check plan of variable voltage measurement battery, to make sure the end of discharging threshold and charging terminate threshold. As for the remaining state power (RemainingStateofCapacity), do not need to read can use directly.

The above bq2650x and bq27x00 etc capacity check plan provides the battery manufacturer a simple to use options, this scheme L [just measuring battery voltage to be precise, so these capacity check plan can be applied to various battery framework, and can support the battery identification and double the battery application '

3.2 power detection algorithm is an example of applications another, can apply to all kinds of general voltmeter new IC.

Today's many manufacturers can provide a variety of voltmeter IC,, the user can choose the suitable function device, to optimize the product price. Use voltmeter measurement of storage battery parameters, the separate architecture allows users in the host custom power measurement algorithm within. Eliminating embedded processor battery cost. On this to Dallase semicconductor company called cases of DS2762 chip for typical analysis. A new separate voltmeter IC, its structure see chart 5 (a) below.

DS2762 application characteristics

DS2762 is a single quarter of lithium battery voltmeter and protection circuit, integrated into a tiny 2.46 mm x 2.74 mm inversion of packaging. Due to internal integration for power detection of high precise resistance, this device is very save a space. It is the small size and incomparable high level of integration, for mobile phone battery and other similar handheld products, such as PDA, etc, are all very ideal. Integrated protection circuit continuously monitoring the battery voltage, over voltage and flow fault (charging or discharge period). Different from the independent protection IC, DS2762 allow main processor surveillance/control protection FET conduction state, such, can DS2762 through the protection of the power system and the control circuit implementation. DS2762 can also charge a battery consumption has depth, when the battery voltage within three V, provide a limit of the charging current recovery path.

DS2762 accurate monitoring battery current, voltage and temperature, the dynamic range and resolution of common satisfy any mobile communication product testing standards. The measurement of current for internally generated when the integral, realize the power measurement. Through the real-time, continuous automatic disorders correct, the precision of power measurement can be increased. The built-in measuring resistance due to eliminate manufacturing process and temperature and cause resistance change, further improve the precision of the voltmeter. Important data stored in 32 bytes, can add the lock EEPROM; 16 bytes of SRAM are used to keep dynamic data. And DS2762 all communication all through the 1-Wire, more communication interface node, minimize the battery and the connection to the host. Its main features for; Single quarter of lithium battery protector; High precision current (power measurement), voltage and temperature measurement; Optional integrated 25 m Ω measuring resistance, each DS2762 after fine-tuning alone; 0 V battery restore charge; 32 bytes can lock EEPROM, 16 bytes SRAM, 64 a ROM;

1-Wire, node, digital communication interface; Support more battery power management, and through the protection system control FET power; Dormancy mode power supply current only 2 µ A (most); Work mode power supply current for 90 µ A (most); 2.46 mm x 2.74 mm inversion of packaging or 16 feet SSOP package led, and both are can choose with or without detection resistance; After has with e

2011-12-15

cent osでのphp5.3環境のセットアップ with "yum"

FuelPHP Advent Calendar 2011 の 15日目。

FuelPHP の URL とコントローラの関係から続いて寄稿します。

@eifukuです

早速ですが本題。

といって、そもそもの経緯を先に。

fuelphpを試そう!ってなもんで既存サーバPHP5.3にしよう〜という所が発端。

既にyumPHP5.2ベース環境が構築してあったせいで、色々とconflictしてインストールに手間取る。。。

案外、環境構築ってはまると手間よねーといった意味合いも込めて、

今後の参考迄に割とストレートにいける様にセットアップ手順をログます

今回はせっかくなので、色々と最新パッケを用意します。

LES RPM DE REMIのリポジトリ登録

そもそも、yum提供しているのはPHP5.2。

なので、fuelphpを動作させるために、今回は最新のRPMパッケからPHP5.3をインスコ

最新のrpmを確認してインストール

$ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

$ sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

apache2をインストール

$ sudo yum install apache2

mysql(v5.5)をインストール

既存mysqlを使う人は飛ばして次項へ。

(PHPを先にインストールすると色々こけるので先にmysqlをセットアップ)

$ sudo yum --enablerepo=remi install mysql mysql-server

で起動テスト

$ sudo /etc/init.d/mysqld start

いや、こけた。

起動せず。。

ふむ。repositoryをremi-testにしなければダメな模様。

再度インストール場合には依存関係のパッケージconflictするのでとにかく消す。

ごっそり消す!!

$ sudo yum remove -y mysql*

インストール

$ sudo yum --enablerepo=remi-test install mysql mysql-server

$ sudo /etc/init.d/mysqld start

Starting MySQL: [ OK ]

いった!

自動起動設定だけ済ませて次へ。

$ sudo /sbin/chkconfig mysqld on

php諸々をインストール

既存php5.2以前がある場合は、やはりとにかく、ごっそりremove!!

で以下に続く。

$ sudo yum --enablerepo=remi install -y php php-mysql php-xml php-mbstring php-common

以上でfulephp動作前の環境構築準備は完了!

ほんとはハマった辺りのログとかも入れた方がいいんでしょうが、今回はこれでご勘弁。

ソースから入れた方が楽だよなぁ・・・と何度か方向転換しかかりましたが・・・なんとか。

明日16日目は@madmamorさんの「FuelPHPのcoreクラスを拡張してみる。ですね!

おたのしみに!

2011-10-29

リニューアル後のはてダはてなブログ』のドメイン名

blog.hatena.ne.jpで決まりっぽい。今アクセスするとStaff is requiredと表示される。他の適当ドメイン(例えばtest.hatena.ne.jp)ではwww.hatena.ne.jpに飛ばされるので違いは明らか。だからなんだという話ではあるが。

2011-09-29

北海道の秋アニメ事情

最初から違法視聴することしか頭にない北海土人のために試される大地でも見れるアニメリスト作った

道民ブクマしておけ

参考サイト

ttp://hato.2ch.net/test/read.cgi/anime4vip/1303724097/

ttp://degoroku.blog40.fc2.com/

ttp://blog.livedoor.jp/mainichiganichiyoubi/

アニメ公式サイト

バクマン。第2シリーズ

ETV:10/1(土) 17:30 ←最速

C3 -シーキューブ-

AT-X:10/1(土) 23:30 ←最速

BS11:10/7(金) 23:00

ニコニコ動画:10月より

デジモンクロスウォーズ 時を駆ける少年ハンターたち

HTB:10/2(日) 6:30 ←最速

クロスファイト ビーダマン

TVH:10/2(日) 8:45 ←最速

AT-X:10/23(日) 8:45 (リピート放送 20:45 10/29(土) 15:45)

ファイ・ブレイン 神のパズル

ETV:10/2(日) 17:30 ←最速

たまゆら ~hitotose~

AT-X:10/3(月) 9:00 ←最速

アニメワン:10/4(火) 25:45

真剣で私に恋しなさい!!

AT-X:10/3(月) 11:00

ニコニコ動画:10/8(土) 23:30

侵略!?イカ娘

ニコニコ動画:10/3(月) 25:30

AT-X:10/15(土) 9:00

境界線上のホライゾン

ライブ配信:10/4

Fate/Zero

TVH:10/4(火) 26:00

BS11:10/7(金) 24:00

ニコニコ動画:10/7(金) 25:00

キッズステーション:10/14(金) 24:00

ましろ色シンフォニー -Love is pure white-

ニコニコ動画:10/5(水) 25:30

AT-X:10/21(金) 22:30

君と僕。

TVH:10/5(水) 26:20

ニコニコ動画:10/6(木) 27:30

AT-X:10/11(火) 11:30

森田さんは無口。2

ニコニコ動画:10/6(木) 25:30

SUPERNATURAL:THE ANIMATION

ANIMAX:10/7(金) 22:00

マケン姫っ!―MAKEN-KI!―

AT-X:10/7(金) 23:30

バンダイチャンネル

WORKING'!!

BS11:10/8(土) 23:30

ニコニコ動画:10/8(土) 25:30

AT-X:10/16(日) 10:00

キッズステーション:10/27(木) 23:00

HUNTER×HUNTER

STV:10/9(日) 7:30

機動戦士ガンダムAGE

HTB:10/9(日) 17:00 ←最速

未来日記

ニコニコ動画:10/9(日) 23:30 ←最速

うさぎドロップ

UHB:10/9(日曜) 25:45

ラストエグザイル銀翼のファム

AT-X:10/10(月) 8:30

HBC:10/10(月) 26:26

バンダイチャンネル・ショウタイム

ベン・トー

AT-X:10/10(月) 11:30

ニコニコ動画:10月より

ANIMAX:11/9(水) 22:00

ちび☆デビ!

ETV:10/10(月) 18:20 (大!天才てれびくん内にて) ←最速

灼眼のシャナIIIFinal

AT-X:10/13(木) 11:00

BS11:10/14(金) 24:30

ニコニコ動画:10月

gdgd妖精

ニコニコ動画:10/13(木)

世界一初恋2

AT-X:10/14(金) 8:00

ペルソナ4

ニコニコ動画:10/15(金) 24:30

アドリブアニメ研究所

BSフジ:10/15(土) 24:30

僕は友達が少ない

BS-TBS:11/12(土) 25:00

UN-GO

BSフジ

ギルティクラウン

BSフジ

ちはやふる

STV

戦国パラダイス -極-

フジログ


ホライゾン違法視聴してるやつがいたらそいつ北海土人

ホライゾン配信しろよ

追記

ホライゾンライブ配信きまった

2011-08-12

PDFファイル自動生成:Adobe Acrobat Distiller と PostScript

http://okwave.jp/qa/q2785121.html

新規でプリンタポートを"Local Port"で作成して、ポート名にc:\.....\test.ps

とかしておけば、そこにプリンタの出力ファイルが作られる。

あとは、PostScriptドライバインストールして作ったポートに出力するようにすればおっけ。

2011-07-13

Rubyの実行(.exe)ファイルの作り方の詳細

Rubyではじめるゲームプログラミング

P.340

1/ ・パスに2バイト文字が入らない

   ・パスにスペースの入らない(たとえば、My Documentsなどは、途中にスペースが入っているのでエラーになる。アンダーバー「_」は可。)

    フォルダ(C\Testなど)を作る。 →以下フォルダAとする。

2/ 実行ファイルを作りたいスクリプト(○○.rb)ファイル自体も、2バイト文字、半角でもスペースの入らないファイル名にする。

 →「5-05-04 ride block.rb」といったファイル名は、スペースが入っているのでダメ

3/ フォルダAに、ActiveScriptRubyインストールするとできる「ruby consoleショートカット(everything検索)のショートカットを、そのフォルダコピーする。

4/ フォルダAに、実行ファイルを作りたいスクリプト(○○.rb)を、Imgフォルダ等と共にコピーする。

5/ フォルダAに、fontを、fontsフォルダごとコピーする。

6/ フォルダAに、Ruby/SDLDLLをそのフォルダコピーする。15種類。

 →DLLフォルダを、ではなく、exeファイルの置かれる場所に、DLLファイルそのものを直接並べる。

7/ この時点でスクリプトテスト

フォルダAにコピーしたruby consoleを起動 →コマンドプロンプトの後に、「ruby ○○.rb」とし、スクリプトの起動を確認する。

8/ フォルダAにコピーしたruby consoleを起動 →コマンドプロンプトの後に、「mkexy ○○.rb」とする。

 →ゲームが起動するので、終了させる。

→○○.exy という、レシピファイル作成される。

9/ ○○.exy ファイルを、メモ帳等のテキストエディタで開く

10/ 初期値は「core: cui」となっているのを、「core: gui」に変える。

 →変えなくてもいいが、その場合、実行時にコマンドプロンプト窓が出てきて邪魔になる。

11/ フォルダAにコピーしたruby consoleを起動 →コマンドプロンプトの後に、「exerb ○○.exy」←今作ったファイル とする。

→「○○.exe」という実行ファイルができる。

12/ 「○○.exe」をダブルクリックして実行、起動しなかった場合、2~5のプロセスに、コピーし忘れがある。

13/ 配布物は以下の通り。

・実行ファイル「○○.exe」 →ファイル名は任意に変更可。(もちろん.exe以外の名前)

・fontsフォルダ

・images、soundなどのリソースフォルダ

Ruby/SDLDLL全て。厳密にはoggなどを使用しなければ、それ用のDLL不要

ログイン ユーザー登録
ようこそ ゲスト さん