約 2,809,751 件
https://w.atwiki.jp/jdj7mpc2/
POKEMON CHATへようこそ ■POKEMON CHATへようこそ 閲覧されている皆様、POKEMON CHATへようこそ! こちらはwhocares?様からお借りしている、無料でレンタルできるチャットです。私が運営するチャットでは、主にポケモンという主旨ですが雑談も大歓迎です。是非お立ち寄りください。 ■個人情報の記載について 当チャットでは、一部個人情報を除いて記載は、許可していますが、必ずPMをご使用ください。また、当サイトで個人情報の流失などのトラブルが発生しても、一切責任を負いません。御了承下さい。 住所 電話番号 ※一部個人情報とはこれら2点です。記載された場合によっては、アクセス禁止になります。他にもルールがございますので、詳しくは、こちらをご覧下さい。顔写真とか個人が特定できるようなものはPMで
https://w.atwiki.jp/hitsville/pages/80.html
Swing low Sweet chariot Chorus Swing low, sweet chariot, Comin for to carry me home; Swing low, sweet chariot, Comin for to carry me home. I looked over Jordan, And WHAT did I see, Comin for to carry me home, A band of angels comin after me, Comin for to carry me home. Repeat chorus If you get there before I do, Comin for to carry me home, Tell all my friends I m comin too, Comin for to carry me home.
https://w.atwiki.jp/langc/pages/22.html
update test -- test (2009-11-23 20 22 38) 名前 コメント Exercise 2-1.Write a program to determine the ranges of char , short , int , and long variables, both signed and unsigned , by printing appropriate values from standard headers and by direct computation. Harder if you compute them determine the ranges of the various floating-point types. #include stdio.h #include limits.h #include float.h int main(){ char a = 0; short c = 0; int e = 0; long g = 0L; int i; puts(" from limits.h "); printf("char_MAX %d, char_MIN %d¥n",CHAR_MAX,CHAR_MIN); printf("unsigned_char_MAX %u¥n", UCHAR_MAX); printf("int_MAX %d, int_MIN %d¥n",INT_MAX, INT_MIN); printf("unsgined_int_MAX %u¥n", UINT_MAX); printf("long_MAX %ld, long_MIN %ld¥n", LONG_MAX, LONG_MIN); printf("unsigned_LONG_MAX %lu¥n", ULONG_MAX); puts(" by computation "); printf("char_SIZE %d bit¥n", (int)sizeof(a) * 8 ); printf("char_MAX %d, char_MIN %d¥n", a | 0x7F, ~(a | 0x7F)); printf("unsigned_char_MAX %u¥n", a | 0xFF); printf("short_SIZE %d bit¥n", (int)sizeof(c) * 8); printf("short_MAX %d, short_MIN %d¥n", c | 0x7FFF, ~(c | 0x7FFF)); printf("unsigned_short_MAX %u¥n", c | 0xFFFF); printf("int_SIZE %d bit¥n", (int)sizeof(e) * 8 ); printf("int_MAX %d, int_MIN %d¥n", e | 0x7FFFFFFF, ~(e | 0x7FFFFFFF)); printf("unsgined_int_MAX %u¥n", e | 0xFFFFFFFF); printf("long_SIZE %d¥n", (int)sizeof(g) * 8); printf("long_MAX %ld, long_MIN %ld¥n", g | 0x7FFFFFFFFFFFFFFF, ~(g | 0x7FFFFFFFFFFFFFFF)); printf("unsignded_long_MAX %lu¥n", g | 0xFFFFFFFFFFFFFFFF); printf("float_MAX %e, float_MIN %e¥n", FLT_MAX, FLT_MIN); } Exercise 2-2.Write a loop equivalent to the for loop above without using or || . i = 0; while(1){ if(i = lim-1){ if((c = (getchar() != ¥n ){ if(c != EOF){ s[i++] = c; }else break; }else break; }else break; } Exercise 2-3.Write the function htoi(s) , which converts a string of hexadecimal digits (including an optional 0x or 0X) into its equivalent integer value. The allowable digits are 0 through 9, a through f, and A through F . #include stdio.h int htoi(char s[]){ int i; int result = 0; for(i = 2; s[i] != ¥0 ; i++){ if(s[i] = 0 || s[i] = 9 ){ result = 4; result += s[i] - 48; //printf("%d ¥n ", result); } else if(s[i] = a || s[i] = f || s[i] = A || s[i] = F ){ result = 4; switch(s[i]){ case a case A result += 10; break; case b case B result += 11; break; case c case C result += 12; break; case d case D result += 13; break; case e case E result += 14; break; case f case F result += 15; break; } } } return result; } int main(int argc, char *argv[]){ if(argc = 1){ puts("please input the hex-number with formatting 0x??, or 0X???"); exit(1); } if(argc != 2){ puts("too many argments"); exit(1); } if( argv[1][0] != 0 || (argv[1][1] != x argv[1][1] != X )){ puts("please input like follwing format. 0x??, or 0X??"); exit(1); } int result = htoi(argv[1]); printf("hex-num %s is converted to %d¥n", argv[1], result); } Exercise 2-4.Write an alternate version of squeeze(s1,s2) that deletes each character in the string s1 that matches any character in the string s2 . #include stdio.h char *squeeze(char s1[], char s2[]){ int i,j,k,l; for(i = 0; s2[i] != ¥0 ; i++){ k = 0; for(j = 0; s1[j] != ¥0 ; j++){ if( s1[j] != s2[i]){ s1[k++] = s1[j]; } else{ for(l = j; s1[l] != ¥0 ; l++){ s1[l] = s1[l+1]; } j--; } } } s1[k] = ¥0 ; return s1; } int main(int argc, char *argv[]){ if(argc = 1){ puts("please input like following format, ./a.out s1 s2 ,replace s1,s2 arbitrary"); exit(1); } if(argc = 4){ puts("too many arguments"); exit(1); } printf("your input ¥n s1 %s¥n s2 %s¥n", argv[1], argv[2]); char *result = squeeze(argv[1], argv[2]); printf("removed string %s ¥n", result); } Exercise 2-5.Write the function any(s1,s2) , which returns the first location in the string s1 where any character from the string s2 occurs, or -1 if s1 contains no characters from s2 . (The standard library function strpbrk does the same job but returns a pointer to the location.) #include stdio.h #define MAX_CHAR 10000 int any(char s1[], char s2[]){ int candidates[MAX_CHAR] = {0}; int i,j,k = 0,l; int first_check = 1; for(i = 0; s2[i] != ¥0 ; i++){ if(first_check){ for(j = 0; s1[j] != ¥0 ; j++){ if(s1[j] == s2[i]) candidates[k++] = j; } first_check--; candidates[k] = -1; } else for(j = 0; candidates[j] != -1; j++){ if(s1[candidates[j]+i] != s2[i]){ for(l = j; candidates[l] != -1; l++){ candidates[l] = candidates[l+1]; } j--; } } } return candidates[0]+1; } int main(int argc, char *argv[]){ int result; if(argc = 1){ puts("please input like following format, ./a.out s1 s2 ,replace s1,s2 arbitrary"); exit(1); } if(argc != 3){ puts("please input properly"); exit(1); } printf("your input ¥n s1 %s¥n s2 %s¥n", argv[1], argv[2]); if(result = any(argv[1], argv[2])) printf("the placee of the word you chosed %d ¥n", result); else puts("-1"); } Exercise 2-6.Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position p set to the rightmost n bits of y, leaving the other bits unchanged. Exercise 2-7.Write a function invert(x,p,n) that returns x with the n bits that begin at position p inverted (i.e., 1 changed into 0 and vice versa), leaving the others unchanged. Exercise 2-8.Write a function rightrot(x,n) that returns the value of the integer x rotated to the right by n bit positions. Exercise 2-9.In a two s complement number system, x = (x-1) deletes the rightmost 1-bit in x . Explain why. Use this observation to write a faster version of bitcount . Exercise 2-10.Rewrite the function lower, which converts upper case letters to lower case, with a conditional expression instead of if-else .
https://w.atwiki.jp/takewhatever/pages/20.html
#!ruby -Ku # -*- coding utf-8 -*- #text = IO.read("ホームページ.txt") # ----- 括弧のクラス --------------------------------------------------- # Stapleクラスは自分の出現位置と対応する括弧のタイプを知っている # ---------------------------------------------------------------------- class Staple attr_reader type def initialize( type ) @type = type # 自身の括弧のタイプ end # 対応する括弧のタイプ def pare case @type when { str = } when } str = { end return str end end class JavaDocParse def initialize(text) @text = text @begin_count = 0 @in_process = false @is_end = false end def parse() text_array = Array.new @text.reverse.each do |c| countup_begin(c) text_array "#{c}" break if @is_end end ret_text = "" text_array.reverse.each do |line| ret_text line end ret_text end def countup_begin(context) # /** から */までのJavaDocを抜き出す # 前提条件:テキスト反転(下から上の走査) # */ で開始 @begin_count +=1 if /^.*\*\// =~ context # /* で終了 @begin_count -=1 if /^.*\/\*/ =~ context unless @in_process @in_process = 0 @begin_count p "開始" if @in_process else if 0 == @begin_count p "完了" @is_end = true end end end end START_PATTERN = /¥{/ END_PATTERN = /¥}/ class ServletParse def initialize(text) @text = text @begin_count = 0 @in_process = false @is_in_comment = false @is_end = false end def parse() ret_text = "" @text.each do |c| countup_begin(c) ret_text "#{c}" break if @is_end end ret_text end def countup_begin(context) # コメントアウト行【複数行】開始(/*) if /^.*\/\*/ =~ context @is_in_comment = true end # コメントアウト行【複数行】終了(*/) if /^.*\*\// =~ context @is_in_comment = false end # コメントアウト行(/* */)【複数行】は、無視する unless @is_in_comment # コメントアウト行(//)は、無視する unless /^[\s]*\/\// =~ context stack = Array.new() # スタックを配列だけで書いてみる # 一文字ずつ読み込んで、括弧の開始であれば、スタックに追加。 # 括弧の終了であれば、スタックの最後と比較して一致していれば # スタックから取り出し、不一致であれば、スタックに追加。 dq_cnt = 0 context.scan(/./).each do |char| #ダブルクオート内の{}は無視する dq_cnt += 1 if char.match( /"/ ) next if (dq_cnt % 2 == 1) if char.match( /[{]/ ) staple = Staple.new( char ) stack.push( staple ) elsif char.match( /[}]/ ) if stack.last != nil if char == stack.last.pare stack.pop else staple = Staple.new( char ) stack.push( staple ) end else staple = Staple.new( char ) stack.push( staple ) end end end # 最終的にスタックに残っているものが括弧の対応が取れていない stack.each do |e| p e.type @begin_count +=1 if /\{/ =~ e.type @begin_count -=1 if /\}/ =~ e.type end end end unless @in_process @in_process = 0 @begin_count p "開始" if @in_process end if @in_process if 0 == @begin_count p "完了" @is_end = true end end end end text2 = "" #。詳しくは「IO のエンコーディングとエンコーディングの変換」を #エンコーディングは Encoding.default_external に Encoding.default_external="Shift_JIS" Encoding.default_internal="UTF-8" a_text = IO.readlines("SampleServlet.java") #open("ホームページ.txt") {|file| # print file.readlines[3] #} #a.slice(0,2) start_no = 22 - 1 end_no = a_text.size #47 - 17 + 1 java_doc = JavaDocParse.new(a_text.slice(0, start_no)) servlet_parse = ServletParse.new(a_text.slice(start_no, end_no)) text = java_doc.parse() text servlet_parse.parse() #.each { |c| text "#{c}" } #a_text.each { |c| text "#{c}\n" } open("log.txt", "w utf-8") { |f| f.write(text)}
https://w.atwiki.jp/crsavrkouza/pages/29.html
シリアル通信とは? マイコンには様々な通信方法が有りますが、ここではシリアル通信というものを扱います。 通信には次の大きく分けて2種類有ります。 シリアル通信 1つの線で通信 パラレル通信 複数の線で通信 更にシリアル通信のなかでもUART(Universal Asynchronous Receiver Transmitter)というものです。 詳しくは第11回にやりますが、ここでは一つの通信線で一方向に一文字ずつ通信ができるということを理解してください。 1.CRSのgoogleドライブから「Serail.h」をダウンロード ダウンロードしたファイルをAtmelStudioのプロジェクトフォルダーの中にコピーしてください。 2.シリアルモジュールとマイコンを接続します。 下の図を参考にしてください。 それでは、以下のプログラムをAVRに書き込んでみてください。 #include avr/io.h #define F_CPU 1000000 #include util/delay.h #include "Serial.h" //ポート設定の初期化 int main(void){ serial.begin(12); //UARTの初期化 DDRD = 0b11111111;//PDをすべて出力設定 PORTD = 0b00000000;//PDをすべてLに while(1){ serial.send_char( H ); serial.send_char( e ); serial.send_char( l ); serial.send_char( l ); serial.send_char( o ); serial.send_char( ); serial.send_char( W ); serial.send_char( o ); serial.send_char( r ); serial.send_char( l ); serial.send_char( d ); serial.send_br(); PORTD = ~PORTD;//PDをすべて反転 _delay_ms(1000); } } それでは、TeraTermを起動してください。「シリアル」を選択して「ポート」を選択して「OK」をクリックします。 画面に「Hello World」と表示されれば成功です。 いろいろと新しい関数が出てきました。send_char関数はシリアル通信で一文字送信する関数です。 C言語では一文字をASCIIコードで表すのに「 (シングルコート)」を使います。 何言ってんだって感じですね。ちゃんと説明します。 コンピュータ(マイコンを含む)は文字をそのまま保存することが出来ません。 なので、文字を数字に置き換えて、数字の羅列として文字を保存しています。 つまり、文字列は数字の羅列として保存されているわけです。 その文字と数字の変換を決めた決まりがASCIIコードというわけです。 どの数字がその文字に対応しているかは、googleとかで「ASCIIコード表」とググれば出てくるので調べてください。 さて、シリアル通信に話を戻します。UARTで通信を行うときも数字に変換してから数字として文字を送っています。 なので、一文字を数字に変換してくれる書き方である、「 」を使って書く必要があります。 もう一つ関数がありますよね。send_br関数です。これは、改行を行うための関数です。 PCでプログラミングをしている時とは改行の手順が異なるため専用の関数があります。 他の例もあげておきます。C言語の復習に使ってください。 #include avr/io.h #define F_CPU 1000000 #include util/delay.h #include "Serial.h" ISR(USART_RX_vect){ serial.receive_enqueue(UDR0); } //ポート設定の初期化 int main(void){ int16_t var = 0; uint8_t character = 0; serial.begin(12); //UARTの初期化 DDRD = 0b11111111;//PDをすべて出力設定 PORTD = 0b00000000;//PDをすべてLに while(1){ serial.send_println("a toggle LED"); // 改行付きで文字列を送信する関数 serial.send_println("b plus one"); serial.send_println("s show variable"); serial.send_br(); // 改行する関数 // available関数は現在受信した文字数を返す。 // whileの特別な構文。受信文字数が1より小さい時に繰り返す。 while(serial.available() 1); // 受信した文字を変数に保存 character = serial.read_dequeue(); // 条件分岐 if(character == a ){ PORTD = ~PORTD;//PDをすべて反転 }else{ if(character == b ){ var++; }else{ if(character == s ){ // send_num関数は変数の値を送信する関数。 //int16_t型とint32_t型なら使える。 serial.send_print("var = "); // 改行なしで文字列を送信する関数 serial.send_num(var); serial.send_br(); }else{ serial.send_println("there is not such a command."); } } } } }
https://w.atwiki.jp/geltner/pages/16.html
Ib is on a visit to the art gallery with her parents. In the midst of browsing the various works on display, Ib suddenly finds herself alone. Where has everybody gone? When she tries to find her way back, she becomes trapped in a very strange set of circumstances... Ib Pronounced "Eve". The protagonist. She s still a young girl so there are many difficult words she cannot read. Ib s Parents Strict, but kind. They visit the art gallery to see the Geltner exhibition as a family of three. Garry A strange man Ib meets at the art gallery. He reads difficult words for Ib when they are together. Mary A strange girl Ib meets at the art gallery. She takes an immediate liking to Ib. Very friendly. Story adapted from the official site. Character descriptions translated from the offical site.
https://w.atwiki.jp/magichappy/pages/263.html
▼ ウィンダス水の区 Lago-Charago おや、何か御用かな? 見ての通り、我輩は天体観測の準備で 忙しいのだが……。 Lago-Charago ……ふむ、察するに貴公、 我輩が著した天体全図を見たいのか? 選択肢:天体全図を見たい? いいえ Lago-Charago ならば、御遠慮願えるかな? 星の一生に比べれば、人間の命など一瞬だ。 それなのに、この星空はあまりにも広い。 我輩は、1秒たりとも無駄にはしたくないのだ。 はい Lago-Charago ふむ、 星に興味を持つのはよいことだ。 Lago-Charago 北の空に昇るのが、 かの有名なオーディン(ODIN)座。あの黒点は オーディンの愛馬スレイプニル(Sleipnir)を あらわしている。 Lago-Charago そしてその上…… いや、実際の夜空では下に見えるのだが…… ひときわ明るいあの星が、船乗り達の道標に なっている北極星(The North Star)だ。 Lago-Charago 星空に興味を持つ者なら、 我輩はいつでも歓迎する。また、明日の夜にでも ここへ来たまえ。 ※ファイナルファンタジーXI 公式設定資料集 Life in Vana diel に掲載の図はこちら↓ ▲ ■関連人物 天体全図について(Adaunel) , 天体全図について(Kaela) , ウィンダス水の区 Copyright (C) 2002-2014 SQUARE ENIX CO., LTD. All Rights Reserved.
https://w.atwiki.jp/w_alice/pages/16.html
担当キャラ2 Tea Party Mad Hatter -いかれ帽子屋- The March Hare -三月うさぎ- The Dormouse -眠りねずみ- Others The Cheshire Cat -チェシャ猫- Tweedle Twins -トゥウィードル兄弟- The Caterpillar -芋虫- Humpty Dumpty -ハンプティダンプティ- Brothers of the Lizard -とかげ兄妹- The Gryphon -グリフォン- The Mock Turtle -海がめ-
https://w.atwiki.jp/heavens_iceemperor/pages/13.html
simpleapi_img http //www.dochat.net/ 新着情報 DoChat.NET(どぅーちゃっとどっとねっと/読み方は諸説あり)は、2001年4月17日にインサイドウェブ株式会社が開設したチャットサイト。主に「Do」「Doチャ」「どちゃ」と呼ばれる。 管理人に放置されていて、アクセス禁止や機能改善の処置が行われなかったり、レンタルが出来ると謳いつつチャットのレンタルが出来なかったり、時計が15分ズレていたりと散々な状況ではあるが、それでも日夜賑わっている。 入室せずに発言することができる。何の対策もされていない為、フリーダムであるが。ここでは「裏口」と呼ばれている。 発言できる最大文字数は、半角625字 全角312.5字。 サーバーが脆くて簡単に落ちる。 メール欄にある程度文字を入力して発言すると、携帯でログが観れなくなる。 部屋 オープンチャット1 PC版 携帯版 オープンチャット2 PC版 携帯版 初心者チャット PC版 携帯版 小学生チャット1 PC版 携帯版 小学生チャット2 PC版 携帯版 中学生チャット1 PC版 携帯版 中学生チャット2 PC版 携帯版 中学生チャット3 PC版 携帯版 高校生チャット PC版 携帯版 大学生・学生チャット PC版 携帯版 10代チャット PC版 携帯版 20代チャット PC版 携帯版 30代チャット PC版 携帯版 40代~チャット PC版 携帯版 フリーチャット PC版 携帯版 映画・音楽チャット PC版 携帯版 ゲーム・インターネットチャット PC版 携帯版 マンガ・アニメチャット PC版 携帯版 なりきりチャット PC版 携帯版 北海道・東北・北陸チャット PC版 携帯版 関東・甲信越チャット PC版 携帯版 東海・近畿チャット PC版 携帯版 中国・四国チャット PC版 携帯版 九州・沖縄チャット PC版 携帯版 サンプルチャット1 PC版 携帯版 サンプルチャット2 PC版 携帯版
https://w.atwiki.jp/pgvb2010tj/pages/18.html
Sys.Views Sys.Tables TRUNCATE TABLE varcharとnvarcharの違いvarchar型 nvarchar型 charとvarcharの違いchar型 varchar型 CONSTRAINT 制約 SET IDENTITY_INSERT で IDENTITY に任意の値を設定 Sys.Views View の一覧を取得 SELECT * FROM Sys.Views; Sys.Tables Table の一覧を取得 SELECT * FROM Sys.Tables; TRUNCATE TABLE 各行の削除内容を記録せずにテーブル内のすべての行を削除します。 TRUNCATE TABLE は、WHERE 句を伴わない DELETE ステートメントに似ています。 TRUNCATE TABLE の方が高速で、使用するシステム リソースとトランザクション ログ リソースも少なくなります。 TRUNCATE TABLE tablename varcharとnvarcharの違い varchar型 バイト数 Unicode ではない可変長の文字型データ nvarchar型 文字数 可変長の UNICODE 文字データ charとvarcharの違い char型 データ挿入時に指定サイズ分が記憶領域に確保 指定サイズに満たないデータを入れた場合、不足バイト分のスペースで埋められる Unicode ではない固定長の文字型データ varchar型 必要な分のみ確保される CONSTRAINT 制約 制約名に同じ名前は使えない SET IDENTITY_INSERT で IDENTITY に任意の値を設定 SET IDENTITY_INSERT TableName ON; INSERT INTO TableName (serialnum, num) VALUES (128, 128); SET IDENTITY_INSERT TableName OFF;