Time of Update: 2015-05-19
標籤:圖片上傳 例子比較 簡單,服務端為Java Web Servlet,doPost方法中接收圖片並儲存,然後將儲存的圖片名返回給用戶端,關鍵代碼:@SuppressWarnings("deprecation")public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException,
Time of Update: 2015-05-19
標籤: 今天做一個Android的檔案管理工具,裡面用到非常多的地方用到了getResources。Drawable currentIcon = null;currentIcon = getResources().getDrawable(R.drawable.folder);currentIcon =
Time of Update: 2015-05-19
標籤:examination questionsWrite an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat
Time of Update: 2015-05-19
標籤:UDP協議發送資料:我們總是先運行接收端,再運行發送端發送端: 1 package cn.itcast_02; 2 3 import java.io.IOException; 4 import java.net.DatagramPacket; 5 import java.net.DatagramSocket; 6 import java.net.InetAddress; 7 /* 8 * UDP協議發送資料: 9 * A:建立發送端Socket對象10 *
Time of Update: 2015-05-19
標籤: 是時候建立一個真正的AngularJS單頁面應用程式了(SPA)。一個AngularJS應用程式樣本 你已經瞭解了足夠多的內容來建立第一個AngularJS應用程式:My Note Save Clear Number of characters left: 100 程式碼即解釋<html ng-app="myNoteApp"><script
Time of Update: 2015-05-19
標籤:Charles: 是在Mac下常用的截取網路封包的工具,在做iOS開發時,我們為了調試與伺服器端的網路通訊協議,常常需要截取網路封包來分析。Charles通過將自己設定成系統的網路訪問Proxy
Time of Update: 2015-05-19
標籤: 1、效能最佳化(添加幾百個cell到view) 2、如何?選中某行,改變這個cell最右側顯示的對號按鈕 1、如果表格中又幾百條資料的話,系統會自動載入顯示在介面上得資料,逐一載入添加100個資料到UITableView中1 for (int i = 0 ; i < 100 ; i ++)2 {3 NSString *icon = [NSString
Time of Update: 2015-05-19
標籤:好了 這是第十天了,按照白板任務上的來說的話,今天沒有完成,所以等一下還要繼續看看今天能不能把他做完,今天出的問題在於我又自己調整了一下UI設計,因為發現以前的設計發麵有重複,浪費了螢幕。所以還不如省下來安排一些其他的事情。導致今天沒有做關於天氣城市資料庫的瞭解,等會應該會繼續看一下資料庫的建立的事情,找一下其他的天氣APP的模板來看一下,今天做的主要還是UI的調整,但發現現在來說越調整越出錯,感覺應該先放一下做其他方面的了,不然就困在裡面了。還有一個作業沒有完成的就是老師流的每個組140
Time of Update: 2015-05-19
標籤:知識點:控制項transform屬性控制項改變形狀有三個方法1,CGAffineTransformMakeTranslation(平移)2,CGAffineTransformMakeScale(收縮)3,CGAffineTransformMakeRotate(旋轉) 一、實戰先建立項目,並且往項目添加一個UIImageView,三個Button分別為平移,收縮,旋轉功能,為UIImageView
Time of Update: 2015-05-19
標籤:1.禁用UITextField的雙擊出現複製粘貼剪下等操作有時候我們需要禁用UITextField的雙擊出現copy
Time of Update: 2015-05-19
標籤:運行你的app這篇課程會教你:1、如何在裝置上運行你的app。2、如何在模擬器上運行你的app。當然,在學習之前,你還需要知道:1、如何使用裝置。2、如何使用模擬器。3、管理你的項目。上一節課我們建立了一個android項目。它是可以直接啟動並執行。當我們建立好它時,它就預設幫我們寫好了一個Hello
Time of Update: 2015-05-18
標籤:iOS觸摸方法://開始接觸- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;- //在螢幕上移動- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;- //觸摸結束- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;- //取消觸摸-
Time of Update: 2015-05-18
標籤:android onclick 點擊事件 1、<span style="white-space:pre"></span>TextView tv = (TextView) findViewById(R.id.tv);tv.setOnClickListener(new OnClickListener() {@Overridepublic void
Time of Update: 2015-05-18
標籤:1原因:之所以寫這個架構是因為網上的好多的網路架構都沒有很好的對網路連接進行控制,比如當你點擊取消的時候只是對話方塊取消了,後台網路請求還是在繼續,這樣就造成了activity的無法釋放,更嚴重的情況是降低APP流暢度,所以就結合自己的需求寫了個這樣輕量級的網路架構2解決方案:我已經開源了,放在了OSC上,架構目前還不是很完善,所以需要慢慢改善,不過這個流程目前感覺是非常不錯的,當activity銷毀的時候基本不會存在無法釋放問題。當你點擊取消的時候也不會出現後台網路請求還在繼續的情況。h
Time of Update: 2015-05-18
標籤:z-fighting opengl es shadow
Time of Update: 2015-05-18
標籤: 1 package com.example.ele_me.util; 2 3 import java.lang.annotation.Retention; 4 import java.lang.annotation.Target; 5 import java.lang.annotation.ElementType; 6 import java.lang.annotation.RetentionPolicy; 7 8 /** 9 * Use this
Time of Update: 2015-05-18
標籤:本地環境用http://localhost/訪問,但是在做移動端的時候想用手機訪問出現了問題,後來在網上查到解決方案。修改php的設定檔httpd.conf。<Directory />Options FollowSymLinksAllowOverride NoneOrder deny,allowDeny from allSatisfy all</Directory>修改成<Directory />Options
Time of Update: 2015-05-18
標籤:要想讓網路中的電腦能夠互相通訊,必須為每台電腦指定一個標識號,通過這個標識號來指定要接受資料的電腦和識別發送的電腦。在TCP/IP協議中,這個標識號就是IP地址。那麼,我們如果擷取和操作IP地址呢? 為了方便我們對IP地址的擷取和操作,java提供了一個類InetAddress 供我們使用。 1 package cn.itcast_01; 2 3 import java.net.InetAddress; 4 import
Time of Update: 2015-05-18
標籤:go語言目前已可以用來開發android和ios手機app。相關資料: 1、IOShttps://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/golang-china/zEh_pdSLHDs需要能訪問google源碼:https://bitbucket.org/minux/goios其它文檔:https://medium.com/using-go-in-mobile-apps&nbs
Time of Update: 2015-05-18
標籤: 1 // 2 3 // HYViewController.m 4 5 // 01-圖片瀏覽器複習 6 7 // 8 9 // Created by apple on 15-4-10. 10 11 // Copyright (c) 2015年 apple. All rights reserved. 12 13 // 14 15 16 17 #import "HYViewController.h" 18 19 20 21