What is Mobile CSP?

Mobile CSP is an AP Computer Science Principles course that focuses on mobile computing:

  • Build socially useful mobile apps
  • Project-based focus
  • Emphasis on writing & communication
  • Fosters collaboration & creativity

As of Fall 2017, Mobile CSP is being taught in 400+ schools in 42 states across the country, including over 100 schools in Connecticut and Massachusetts with teacher professional development (PD) in the summer and academic year support.

See: https://www.mobile-csp.org/

 

Swift2 (1) Hello world to iPhone

[Swift][超入門]初心者向けはじめてのHelloWorld!

まずはXcodeのDownloadからはじまる

MacのApp StoreからXcodeを検索して、ダウンロードする(無料)。

プロジェクトの作成

1. プロジェクトの新規作成 まずXCodeを開いたら

File>New>Project を選択。

2. テンプレートの選択

次に作りたいアプリに合わせてテンプレが選べます。
今回は iOS>Application>Single New Application を選択。

3. プロダクト名の決定

次にプロダクト名を設定します。Product Nameの中にHelloWorldと入力しましょう。

4. 保存先の設定
デフォルトでは~/Applications内に保存されるそうです。
Desktopに変更してください。

HelloWorldを出力

上記を全て終えるとプロジェクトが立ち上がります。

1.  ラベルを配置

2. ボタンを配置

3. ボタンのイベント処理を追加

ラベルに”HelloWorld”文字列を代入。

//
//  ViewController.swift
//  MyFirstApp
//
//  Created by Hong Chen on 2017/02/22.
//  Copyright © 2017年 DIT. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var label: UILabel!
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


    @IBAction func tappedButton(_ sender: Any) {
        label.text = "Hello!!"
    }
}

 

 

4. 実行してみる

左上の実行ボタンをクリック!!エミュレータが起動。

エミュレータのボタンをクリックすると、ラベル文字はHelloWorldに変わればOK!!

これでSwiftエンジニアデビュー!!

使用する参考書:

[amazonjs asin=”4774178713″ locale=”JP”]

Mobile Computing with App Inventor – CS Principles

edXオンライン授業プラットフォーム

大規模公開オンライン講座(MOOC:Massive Open Online Course) の提供機関であるedX(米国ハーバード大学とMITが創設)。

https://www.edx.org/

アメリカには大学レベルの授業を無償で提供するedXというオンライン授業プラットフォームがあり、ハーバード大学やマサチューセッツ工科大学(MIT)、日本の京都大学、早稲田大学などが参加しています。

Mobile Computing with App Inventor – CS Principles

モバイルコンピューティング(App Inventor利用)のコースは2月再開(Starts on February 7, 2017)。ちょうと春休み期間中、英語得意の学生はユビキタス・クラブで一緒に楽しく勉強して、Certificationを取りませんか?

  • Length: 6 weeks (February 7, 2017 – March 20, 2017?)
  • Effort: 8 hours per week
  • Price: FREE
    Add a Verified Certificate for $49
  • Institution: TrinityX
  • Subject: Computer Science
  • Level: Introductory
  • Languages: English
  • Video Transcripts: English

This course introduces basic principles of computer science by designing and building mobile apps in App Inventor for Android.

https://www.edx.org/course/mobile-computing-app-inventor-cs-trinityx-t007x

About this course

Learn to use the open development tool, App Inventor, to program on Android devices. You will learn how to design and build mobile apps — apps that are aware of their location, send and receive text messages, and give advice and directions. The only limit on the types of apps you will learn to build is your own imagination!

However, computer science is not just about coding and building apps. We will also learn some of  the fundamental principles of computer science. We’ll learn about the potential and the limitations of computing and coding. We’ll learn how the Internet works and about the positive and negative aspects of computing in today’s society, and much more!

For these broader computing concepts we will work within an emerging curricular framework — the Computer Science Principles (CSP). The CSP framework is being developed by leading computer science educators from around the country under the auspices of the College Board and with funding support of the National Science Foundation.

In addition to programming and CSP the course is project-based and emphasizes writing, communication, and creativity. Multiple-choice questions, in the style that students can expect to encounter on the AP exam, will also be a key component of this course.

MITが無料オンライン講座で修士学位を取得可能

edxは大学レベルの授業を受けられるだけで単位は付与されないことになっているのですが、MITがedxの無料オンライン講座を受講した学生に単位を付与するパイロットプログラムを発表し話題を呼んでいます。

http://professional.mit.edu/programs/short-programs/educational-mobile-computing/

Prerequisites:

  • Six-week App Inventor MOOC Mobile Computing with App Inventor – CS Principles (ID Verified Certificate of Achievement: $50) offered by edX starting February 1, 2017. Registration for this MOOC will open soon.
  • Master Trainer applicants who already have experience teaching App Inventor can submit proof of coursework taught in lieu of taking Mobile Computing with App Inventor – CS Principles.
  • Ten weeks of online independent coursework beginning May 8, 2017 (included in the $3,500 course fee).

WP REST API をWebサービス、スマートフォンのプロトタイプ開発に

WordBench東京 3月勉強会 「WP REST API をハンズオンで学ぼう」参加。

LT会でPhotoBlog を紹介。

MIT App Inventor から、WP REST APIを通して、WordPressにPublishingする。

 

WordPressのWP REST API をWebサービスの基盤として利用し、様々なセンサー情報に対応するWebサービスのシステム構築に、スマートフォンのプロトタイプ開発に利用可能とアピール。

SE奮闘記: IMAPでGmailを監視して、新着メールがあったらPHPを実行

とあるシステムがqmailでメールサーバーを構成していて、新着メールをトリガーにPHPを実行していた。このサーバーを移行するときにメールはGmail(Google Apps)で受け取るようにして、サーバーからはGmailを監視するように変更したときの覚書。環境: CentOS 6.6, iojs-v1.4.2ざっと調べた感じだとNode.jsで実装すると簡単そう。メール受信をトリガ – NAVER まとめメールをトリガーにした処理がかんたんにかけるNode.jsの「inbox」 – ayapi.github.io

Source: SE奮闘記: IMAPでGmailを監視して、新着メールがあったらPHPを実行

砂糖水を売り続ける日本の大企業

iPhone4はスゴかった。これはスゴイ。技術的には日本の企業でも十分作れるレベルなのになぜ先手を打たれたのか。NTT DoCoMoすごい儲かってます。楽天もすごい儲かってます。じゃあDoCoMoや楽天が世界を牽引できる企業かと言うと答えはNOです。日本国内からお金を搾取(聞こえは悪いが)する事に関しては長けていても世界との競争力がある企業とは言い難いというのが現状ではないでしょうか。

Source: 砂糖水を売り続ける日本の大企業

学校の勉強ってどうして必要なの?(砂糖水編)

この時、ジョブズさんはスカリーさんの心をつかむために、こんな決めゼリフを言ったらしい。「このまま一生、砂糖水を売りつづけるのか、それとも世界を変えるチャンスをつかみたいか」(Do you want to sell sugar water for the rest of your life, or do you want to come with me and change the world?)

Source: 学校の勉強ってどうして必要なの?(砂糖水編)

「誰もやりたくないアプリ」を3日でつくったら、広告収益3,500万円超え。800万ダウンロードの無駄タップアプリ「100万のタマゴ」が世界各国でヒットするまで。 | アプリマーケティング研究所

人類の時間をムダにしたタマゴ。

Source: 「誰もやりたくないアプリ」を3日でつくったら、広告収益3,500万円超え。800万ダウンロードの無駄タップアプリ「100万のタマゴ」が世界各国でヒットするまで。 | アプリマーケティング研究所