<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1352730749592886246</id><updated>2024-11-01T03:33:06.838-07:00</updated><category term="C"/><category term="android"/><category term="Objective-c"/><category term="Sort"/><category term="BlueTooth"/><category term="Python"/><category term="133"/><category term="Apache"/><category term="ArrayList"/><category term="BluetoothChat"/><category term="C sharp"/><category term="C#"/><category term="CVS"/><category term="CheckBox"/><category term="Closest Pair"/><category term="Console.ReadLine"/><category term="HashMap"/><category term="NFC"/><category term="NSDocumentDirectory"/><category term="NSString"/><category term="Pandaboard"/><category term="SQLite"/><category term="UIAlertController"/><category term="VB"/><category term="Xcode6"/><category term="driver"/><category term="execSQL"/><category term="gatt error"/><category term="httpd.conf"/><category term="office"/><category term="primie check"/><category term="property"/><category term="sharedApplication"/><category term="小小問題"/><title type='text'>JimmyQ</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-3531870819831554077</id><published>2019-01-15T23:17:00.005-08:00</published><updated>2019-01-15T23:19:47.370-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="133"/><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="BlueTooth"/><category scheme="http://www.blogger.com/atom/ns#" term="gatt error"/><title type='text'>[Android] BLE Gatt error 133 (solved)</title><content type='html'>BLE disconnect. Gatt error 133&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;if (Build.VERSION.SDK_INT &amp;gt;= Build.VERSION_CODES.M) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connectDevice.connectGatt(context, Consts.autoConnect, gatt_callback, &lt;span style=&quot;color: red;&quot;&gt;BluetoothDevice.TRANSPORT_LE&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}else {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connectDevice.connectGatt(context, Consts.autoConnect, gatt_callback);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;}&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/3531870819831554077/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2019/01/ble-gatt-error-133-solved.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3531870819831554077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3531870819831554077'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2019/01/ble-gatt-error-133-solved.html' title='[Android] BLE Gatt error 133 (solved)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-3462208769016327598</id><published>2016-03-14T19:31:00.004-07:00</published><updated>2016-03-14T19:31:53.142-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CVS"/><title type='text'>Delete a branch in &quot;CVS&quot;</title><content type='html'>&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Delete a branch in &quot;CVS&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;color: #222426;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;color: #222426;&quot;&gt;command: &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;tag -dB branchname&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;color: #222426;&quot;&gt;-d: &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;delete&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;span style=&quot;color: #222426;&quot;&gt;-B: &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;override and let it know to delete the branch&lt;/span&gt;&lt;span style=&quot;color: #222426;&quot;&gt; (not a tag).&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/3462208769016327598/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2016/03/delete-branch-in-cvs.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3462208769016327598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3462208769016327598'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2016/03/delete-branch-in-cvs.html' title='Delete a branch in &quot;CVS&quot;'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-776451017853564140</id><published>2015-09-23T01:10:00.000-07:00</published><updated>2015-09-23T01:10:03.074-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><title type='text'>Two floating numbers 四捨五入</title><content type='html'>&lt;br&gt;
Input two floating numbers X and P.&lt;br&gt;
&lt;br&gt;
a. 0 &amp;lt; X &amp;lt;1&lt;br&gt;
b. P = 1 / 0.1 / 0.01/ 0.001&lt;br&gt;
c. answer format %.4f&lt;br&gt;
&lt;br&gt;
ex:&lt;br&gt;
if X is 0.5678 and P is 0.01, then the answer is 0.5700&lt;br&gt;
if X is 0.1269 and P is 0.1, then the answer is 0.1000&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2015/09/two-floating-numbers.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/776451017853564140/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2015/09/two-floating-numbers.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/776451017853564140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/776451017853564140'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2015/09/two-floating-numbers.html' title='Two floating numbers 四捨五入'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-6827999723029520235</id><published>2015-09-17T22:36:00.004-07:00</published><updated>2015-09-23T01:10:15.810-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><title type='text'>C int mapping string</title><content type='html'>&lt;br&gt;
&lt;b&gt;Encoding scheme defined by the following mapping: &lt;/b&gt;&lt;br&gt;
&lt;b&gt;&lt;br&gt;&lt;/b&gt;
1-&amp;gt;&amp;#39;A&amp;#39;,&lt;br&gt;
2-&amp;gt;&amp;#39;B&amp;#39;,&lt;br&gt;
3-&amp;gt;&amp;#39;C&amp;#39;,&lt;br&gt;
...,&lt;br&gt;
9-&amp;gt;&amp;#39;I&amp;#39;,&lt;br&gt;
0-&amp;gt;&amp;#39;J&amp;#39;.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Input
A three-digit integer N&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Output
The encoding result&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2015/09/c-int-mapping-string.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/6827999723029520235/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2015/09/c-int-mapping-string.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/6827999723029520235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/6827999723029520235'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2015/09/c-int-mapping-string.html' title='C int mapping string'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-6989002061386374109</id><published>2014-09-24T04:00:00.000-07:00</published><updated>2014-10-07T09:25:16.948-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Objective-c"/><category scheme="http://www.blogger.com/atom/ns#" term="UIAlertController"/><category scheme="http://www.blogger.com/atom/ns#" term="Xcode6"/><title type='text'>Xcode 6.0.1 / iOS 8 UIAlertController</title><content type='html'>&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;UIAlertControllerStyleAlert with Buttons&lt;/b&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;div class=&quot;p1&quot;&gt;
UIAlertController  *alertController = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleAlert];&lt;br&gt;
   &lt;br&gt;
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@&amp;quot;Cancel&amp;quot;&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;style:UIAlertActionStyleCancel&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;handler:^(UIAlertAction *action)&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;NSLog(@&amp;quot;Cancel Action&amp;quot;);&lt;br&gt;
        }];&lt;br&gt;
   &lt;br&gt;
UIAlertAction *deleteAction = [UIAlertAction actionWithTitle:@&amp;quot;Delete&amp;quot;&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;style:UIAlertActionStyleDefault&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;handler:^(UIAlertAction *action)&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;NSLog(@&amp;quot;Delete Action&amp;quot;);&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}];&lt;br&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br&gt;
[alertController addAction:cancelAction];&lt;br&gt;
[alertController addAction:deleteAction];&lt;br&gt;
&lt;br&gt;
[self presentViewController:alertController animated:YES completion:nil];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2014/09/xcode-601-ios-8-uialertcontroller.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/6989002061386374109/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2014/09/xcode-601-ios-8-uialertcontroller.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/6989002061386374109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/6989002061386374109'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2014/09/xcode-601-ios-8-uialertcontroller.html' title='Xcode 6.0.1 / iOS 8 UIAlertController'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-5600436724302255196</id><published>2014-09-10T00:35:00.002-07:00</published><updated>2014-09-10T00:35:55.826-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Objective-c"/><title type='text'>iOS set UIImageView to CircleView</title><content type='html'>







&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
- (&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)imageViewSetCornerRadius:(&lt;span class=&quot;s2&quot;&gt;UIImageView&lt;/span&gt; *)imageView withImage:(&lt;span class=&quot;s2&quot;&gt;UIImage&lt;/span&gt; *)image {&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; imageView.&lt;span class=&quot;s2&quot;&gt;image&lt;/span&gt; = image;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; imageView.&lt;span class=&quot;s2&quot;&gt;layer&lt;/span&gt;.&lt;span class=&quot;s2&quot;&gt;borderWidth&lt;/span&gt; = &lt;span class=&quot;s3&quot;&gt;3.0f&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; imageView.&lt;/span&gt;layer&lt;span class=&quot;s4&quot;&gt;.&lt;/span&gt;borderColor&lt;span class=&quot;s4&quot;&gt; = [&lt;/span&gt;UIColor&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;whiteColor&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;].&lt;/span&gt;CGColor&lt;span class=&quot;s4&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; imageView.&lt;span class=&quot;s2&quot;&gt;layer&lt;/span&gt;.&lt;span class=&quot;s2&quot;&gt;cornerRadius&lt;/span&gt; = imageView.&lt;span class=&quot;s2&quot;&gt;frame&lt;/span&gt;.&lt;span class=&quot;s2&quot;&gt;size&lt;/span&gt;.&lt;span class=&quot;s2&quot;&gt;width&lt;/span&gt; / &lt;span class=&quot;s3&quot;&gt;2&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; imageView.&lt;span class=&quot;s2&quot;&gt;clipsToBounds&lt;/span&gt; = &lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;return&lt;/span&gt; imageView;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/5600436724302255196/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2014/09/ios-set-uiimageview-to-circleview.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/5600436724302255196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/5600436724302255196'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2014/09/ios-set-uiimageview-to-circleview.html' title='iOS set UIImageView to CircleView'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-1392178982836726098</id><published>2014-07-13T19:33:00.003-07:00</published><updated>2014-07-13T19:33:41.945-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Objective-c"/><category scheme="http://www.blogger.com/atom/ns#" term="property"/><category scheme="http://www.blogger.com/atom/ns#" term="sharedApplication"/><title type='text'>[iOS] Objective-c sharedApplication delegate, global @property</title><content type='html'>&lt;br&gt;








&lt;br&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;AppDelegate.h&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
#define &lt;span style=&quot;color: red; font-size: large;&quot;&gt;appDelegate&lt;/span&gt; ((AppDelegate *)[[UIApplication sharedApplication] delegate])&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;







&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
@property&lt;span class=&quot;s1&quot;&gt; (&lt;/span&gt;nonatomic&lt;span class=&quot;s1&quot;&gt;, &lt;/span&gt;assign&lt;span class=&quot;s1&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;NSInteger&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; globalCount;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
How to use?&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2014/07/ios-objective-c-sharedapplication.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/1392178982836726098/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2014/07/ios-objective-c-sharedapplication.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/1392178982836726098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/1392178982836726098'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2014/07/ios-objective-c-sharedapplication.html' title='[iOS] Objective-c sharedApplication delegate, global @property'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-599175611259451094</id><published>2014-07-10T22:30:00.000-07:00</published><updated>2014-07-11T09:05:55.361-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="ArrayList"/><category scheme="http://www.blogger.com/atom/ns#" term="HashMap"/><title type='text'>[Android] ArrayList save HashMap</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
ArrayList&amp;lt;HashMap&amp;lt;String,String&amp;gt;&amp;gt; &lt;span class=&quot;s1&quot;&gt;list&lt;/span&gt;&amp;nbsp;= &lt;span class=&quot;s2&quot;&gt;new&lt;/span&gt; ArrayList&amp;lt;HashMap&amp;lt;String,String&amp;gt;&amp;gt;();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
//Save&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;for&lt;/span&gt;(&lt;span class=&quot;s1&quot;&gt;int&lt;/span&gt; i=0;i&amp;lt;5;i++) {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HashMap&amp;lt;String,String&amp;gt; tempMap = &lt;span class=&quot;s1&quot;&gt;new&lt;/span&gt; HashMap&amp;lt;String,String&amp;gt;();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;String name = &lt;span class=&quot;s2&quot;&gt;&quot;server&quot;&lt;/span&gt;+i;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;String mac = &lt;span class=&quot;s2&quot;&gt;&quot;11:22:33:44:55:6&quot;&lt;/span&gt;+i;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;tempMap.put(&lt;span class=&quot;s2&quot;&gt;&quot;DEVICE_NAME&quot;&lt;/span&gt;,name);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;tempMap.put(&lt;span class=&quot;s2&quot;&gt;&quot;DEVICE_MAC&quot;&lt;/span&gt;,mac);&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;peripheralScanResultList&lt;span class=&quot;s3&quot;&gt;.add(tempMap);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
//Get&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;for&lt;/span&gt;(HashMap&amp;lt;String, String&amp;gt; tempMap: &lt;span class=&quot;s2&quot;&gt;peripheralScanResultList&lt;/span&gt;) {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Iterator&amp;lt;String&amp;gt; iterator = tempMap.keySet().iterator();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while&lt;/span&gt;( iterator.hasNext() ){&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String key=(String)iterator.next();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String value=(String)tempMap.get(key);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Log.i(&lt;span class=&quot;s2&quot;&gt;TAG&lt;/span&gt;, key + &lt;span class=&quot;s3&quot;&gt;&quot;, &quot;&lt;/span&gt; +value);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/599175611259451094/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2014/07/android-arraylist-save-hashmap-like-ios.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/599175611259451094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/599175611259451094'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2014/07/android-arraylist-save-hashmap-like-ios.html' title='[Android] ArrayList save HashMap'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-7760639898087515717</id><published>2014-07-10T18:27:00.001-07:00</published><updated>2014-07-13T19:35:14.335-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="execSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLite"/><title type='text'>[Android] SQLite execSQL, rawQuery</title><content type='html'>SQLiteDatabase db = &lt;span class=&quot;s1&quot;&gt;dbHelper&lt;/span&gt;.getWritableDatabase();&lt;br&gt;
&lt;br&gt;
a. Create table&lt;br&gt;
&lt;br&gt;
 String INIT_TABLE = &lt;span class=&quot;s2&quot;&gt;&amp;quot;CREATE TABLE IF NOT EXISTS &amp;quot;&lt;/span&gt; + &lt;span class=&quot;s3&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;tableName&lt;/span&gt;&lt;/span&gt; + &lt;span class=&quot;s2&quot;&gt;&amp;quot; (&amp;quot;&lt;/span&gt;&lt;br&gt;
                                     + &lt;span class=&quot;s3&quot;&gt;_ID&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; + &lt;/span&gt;&amp;quot; INTEGER PRIMARY KEY AUTOINCREMENT, &amp;quot;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;s4&quot;&gt;                                     + &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;field1&lt;/span&gt;&lt;/span&gt; + &lt;span class=&quot;s2&quot;&gt;&amp;quot; TEXT, &amp;quot;&lt;/span&gt;&lt;br&gt;
                                     + &lt;span class=&quot;s3&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;field2&lt;/span&gt;&lt;/span&gt; + &lt;span class=&quot;s2&quot;&gt;&amp;quot; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;INTEGER, &amp;quot;&lt;/span&gt;&lt;br&gt;
                                     + &lt;span class=&quot;s3&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;field3&lt;/span&gt;&lt;/span&gt; + &lt;span class=&quot;s2&quot;&gt;&amp;quot; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;VARCHAR &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;);&amp;quot; &lt;/span&gt;;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;db.execSQL(INIT_TABLE);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
b. Delete table&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
    &lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;try&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
          &lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;db.execSQL(&lt;span class=&quot;s3&quot;&gt;&amp;quot;delete from &amp;quot;&lt;/span&gt;+ &lt;span style=&quot;color: red;&quot;&gt;tableName&lt;/span&gt;);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
    } &lt;span class=&quot;s2&quot;&gt;catch&lt;/span&gt; (SQLException e) {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
          Log.e(&lt;span class=&quot;s3&quot;&gt;&amp;quot;ERROR&amp;quot;&lt;/span&gt;, e.toString());&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
    }&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
    &lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
    db.close();&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;/div&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2014/07/android-sqlite-execsql-rawquery.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/7760639898087515717/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2014/07/android-sqlite-execsql-rawquery.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/7760639898087515717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/7760639898087515717'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2014/07/android-sqlite-execsql-rawquery.html' title='[Android] SQLite execSQL, rawQuery'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-3292944224244659187</id><published>2014-06-20T02:55:00.002-07:00</published><updated>2014-07-13T19:36:05.469-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NSDocumentDirectory"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-c"/><title type='text'>[iOS] Objective-c save/load image under APP document</title><content type='html'>&lt;div class=&quot;p1&quot;&gt;
Objective-c save/load image under APP document&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Save image: &lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
   [self saveImageInDocumenet:Image withName:@&amp;quot;&lt;span style=&quot;color: blue;&quot;&gt;blue&lt;/span&gt;&amp;quot;];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Load image with name: &lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
   UIImage *image = [self loadImageFromDocumentWithName:@&amp;quot;&lt;span style=&quot;color: blue;&quot;&gt;blue&lt;/span&gt;&amp;quot;];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)saveImageInDocumenet:(&lt;span class=&quot;s2&quot;&gt;UIImage&lt;/span&gt; *)image withName:(&lt;span class=&quot;s2&quot;&gt;NSString&lt;/span&gt; *)name {&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
    &lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
    &lt;span class=&quot;s1&quot;&gt;if&lt;/span&gt; (image != &lt;span class=&quot;s1&quot;&gt;nil&lt;/span&gt;) {&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
        &lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;NSArray&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; *paths = &lt;/span&gt;NSSearchPathForDirectoriesInDomains&lt;span class=&quot;s3&quot;&gt;(&lt;/span&gt;NSDocumentDirectory&lt;span class=&quot;s3&quot;&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
                                                             &lt;span class=&quot;s4&quot;&gt;NSUserDomainMask&lt;/span&gt;, &lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
        &lt;span class=&quot;s2&quot;&gt;NSString&lt;/span&gt; *documentsDirectory = [paths &lt;span class=&quot;s4&quot;&gt;objectAtIndex&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;0&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
        &lt;span class=&quot;s2&quot;&gt;NSString&lt;/span&gt;* path = [documentsDirectory &lt;span class=&quot;s4&quot;&gt;stringByAppendingPathComponent&lt;/span&gt;:name];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
        &lt;span class=&quot;s2&quot;&gt;NSData&lt;/span&gt;* data = &lt;span class=&quot;s4&quot;&gt;UIImagePNGRepresentation&lt;/span&gt;(image);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
        [data &lt;span class=&quot;s4&quot;&gt;writeToFile&lt;/span&gt;:path &lt;span class=&quot;s4&quot;&gt;atomically&lt;/span&gt;:&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
    }&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2014/06/objective-c-saveload-image-under-app.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/3292944224244659187/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2014/06/objective-c-saveload-image-under-app.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3292944224244659187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3292944224244659187'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2014/06/objective-c-saveload-image-under-app.html' title='[iOS] Objective-c save/load image under APP document'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-4613727377718168281</id><published>2014-06-20T02:39:00.003-07:00</published><updated>2014-07-13T19:36:34.948-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NSString"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-c"/><title type='text'>[iOS] Objective-c NSString to Hex string</title><content type='html'>&lt;div class=&quot;p1&quot;&gt;
Objective-c NSString to Hex string&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
NSData *data = [self parseMacAddress:@&amp;quot;AABBCCDDEEFF &amp;quot;];&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
NSLog(@&amp;quot;After transfer: %@&amp;quot;, data); &lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
= &amp;gt; AABBCCDDEEFF &lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;(Hex)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2014/06/objective-c-nsstring-to-hex-string.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/4613727377718168281/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2014/06/objective-c-nsstring-to-hex-string.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/4613727377718168281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/4613727377718168281'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2014/06/objective-c-nsstring-to-hex-string.html' title='[iOS] Objective-c NSString to Hex string'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-5395785047686152257</id><published>2013-06-14T01:58:00.001-07:00</published><updated>2014-07-13T19:37:22.500-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BlueTooth"/><category scheme="http://www.blogger.com/atom/ns#" term="BluetoothChat"/><title type='text'>[Android] Bluetooth Chat receive data lost</title><content type='html'>原先:  &lt;br&gt;
while (true) {&lt;br&gt;
                try {&lt;br&gt;
                    // Read from the InputStream&lt;br&gt;
                    bytes = mmInStream.read(buffer);&lt;br&gt;
                    // Send the obtained bytes to the UI Activity&lt;br&gt;
                    mHandler.obtainMessage(BluetoothChat.MESSAGE_READ, bytes, -1, buffer)&lt;br&gt;
                            .sendToTarget();&lt;br&gt;
                } catch (IOException e) {&lt;br&gt;
                    Log.e(TAG, &amp;quot;disconnected&amp;quot;, e);&lt;br&gt;
                    connectionLost();&lt;br&gt;
                    // Start the service over to restart listening mode&lt;br&gt;
                    BluetoothChatService.this.start();&lt;br&gt;
                    break;&lt;br&gt;
                }&lt;br&gt;
            } &lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2013/06/bluetooth-chat-receive-data-lost.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/5395785047686152257/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2013/06/bluetooth-chat-receive-data-lost.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/5395785047686152257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/5395785047686152257'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2013/06/bluetooth-chat-receive-data-lost.html' title='[Android] Bluetooth Chat receive data lost'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-7644935189644697421</id><published>2013-04-29T20:34:00.001-07:00</published><updated>2014-07-13T19:38:06.037-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="CheckBox"/><title type='text'>[Android] remember me checkbox</title><content type='html'>&lt;br&gt;
private CheckBox checkBox;&lt;br&gt;
SharedPreferences login_pref;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br&gt;
private SharedPreferences.Editor loginPrefsEditor;&lt;br&gt;
private Boolean saveLogin;&lt;br&gt;
&lt;br&gt;
// onCreate&lt;br&gt;
&lt;br&gt;
username = (EditText) findViewById(R.id.editText_username);&lt;br&gt;
password = (EditText) findViewById(R.id.editText_password);&lt;br&gt;
login = (Button) findViewById(R.id.button_login);&lt;br&gt;
checkBox = (CheckBox)findViewById(R.id.checkBox1);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br&gt;
login.setOnClickListener(this);&lt;br&gt;
&lt;br&gt;
login_pref = getSharedPreferences(&amp;quot;loginPrefs&amp;quot;, MODE_PRIVATE);&lt;br&gt;
loginPrefsEditor = login_pref.edit();&lt;br&gt;
saveLogin = login_pref.getBoolean(&amp;quot;saveLogin&amp;quot;, false);&lt;br&gt;
if (saveLogin == true) {&lt;br&gt;
        &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;username.setText(login_pref.getString(&amp;quot;username&amp;quot;, &amp;quot;&amp;quot;));&lt;br&gt;
        &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;password.setText(login_pref.getString(&amp;quot;password&amp;quot;, &amp;quot;&amp;quot;));&lt;br&gt;
        &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;checkBox.setChecked(true);&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2013/04/android-remember-me-checkbox.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/7644935189644697421/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2013/04/android-remember-me-checkbox.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/7644935189644697421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/7644935189644697421'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2013/04/android-remember-me-checkbox.html' title='[Android] remember me checkbox'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-3875460977148072319</id><published>2013-04-25T19:34:00.002-07:00</published><updated>2013-05-26T20:05:36.075-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="driver"/><category scheme="http://www.blogger.com/atom/ns#" term="Pandaboard"/><title type='text'>PandaBoard driver install</title><content type='html'>PandaBoard Driver Install&lt;br /&gt;
&lt;br /&gt;
find sdk\extras\google\usb_driver\android_winusb.inf&lt;br /&gt;
open it and&lt;br /&gt;
add:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, MingLiU, PMingLiU; font-size: 13px;&quot;&gt;;OMAP-3/4&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, MingLiU, PMingLiU;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;%SingleAdbInterface% = USB_Install, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-family: Arial, MingLiU, PMingLiU;&quot;&gt;&lt;b&gt;USB\VID_18D1&amp;amp;PID_D002&amp;amp;REV_0216&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: red; font-family: Arial, MingLiU, PMingLiU;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, MingLiU, PMingLiU; font-size: 13px;&quot;&gt;%CompositeAdbInterface% = USB_Install, USB\VID_0451&amp;amp;PID_D102&amp;amp;MI_01&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, MingLiU, PMingLiU; font-size: 13px;&quot;&gt;%CompositeAdbInterface% = USB_Install, USB\VID_0451&amp;amp;PID_D106&amp;amp;MI_02&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, MingLiU, PMingLiU; font-size: 13px;&quot;&gt;%CompositeAdbInterface% = USB_Install, USB\VID_0451&amp;amp;PID_D107&amp;amp;MI_03&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, MingLiU, PMingLiU; font-size: 13px;&quot;&gt;%SingleAdbInterface% = USB_Install, USB\VID_0451&amp;amp;PID_FFFFE&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, MingLiU, PMingLiU; font-size: 13px;&quot;&gt;%CompositeAdbInterface% = USB_Install, USB\VID_0451&amp;amp;PID_FFFE&amp;amp;MI_01&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, MingLiU, PMingLiU; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, MingLiU, PMingLiU;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;[Google.NTx86]&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, MingLiU, PMingLiU;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiC-cEz4-3XYhaoebuY9nX3XgflnNPW9U529b4yqPd0sxUDOvJpglMIJHwyOaBjvz6FkFW4aB7y2spHFnia0WAw1LLKu_nYODXuCPP9kHvycqifCfFKbUTjpglVjyJtuWyWN5q4NKLTTFX/s1600/VID_PID.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiC-cEz4-3XYhaoebuY9nX3XgflnNPW9U529b4yqPd0sxUDOvJpglMIJHwyOaBjvz6FkFW4aB7y2spHFnia0WAw1LLKu_nYODXuCPP9kHvycqifCfFKbUTjpglVjyJtuWyWN5q4NKLTTFX/s1600/VID_PID.png&quot; height=&quot;320&quot; width=&quot;309&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
( PandaBoard 硬體識別碼)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, MingLiU, PMingLiU;&quot;&gt;設定好之後, 再更新驅動程式 from&amp;nbsp;&lt;/span&gt;sdk\extras\google\usb_driver folder&lt;br /&gt;
便可以順利安裝</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/3875460977148072319/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2013/04/pandaboard-driver-install.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3875460977148072319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3875460977148072319'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2013/04/pandaboard-driver-install.html' title='PandaBoard driver install'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiC-cEz4-3XYhaoebuY9nX3XgflnNPW9U529b4yqPd0sxUDOvJpglMIJHwyOaBjvz6FkFW4aB7y2spHFnia0WAw1LLKu_nYODXuCPP9kHvycqifCfFKbUTjpglVjyJtuWyWN5q4NKLTTFX/s72-c/VID_PID.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-8542723065438435792</id><published>2013-04-18T02:52:00.000-07:00</published><updated>2014-07-13T19:38:29.898-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="NFC"/><title type='text'>[Android] NFC API application</title><content type='html'>如何註冊我的APP是NFC程式呢？&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
1. 首先要先開起 AndroidManifest.xml&lt;br&gt;
&lt;br&gt;
&amp;lt;activity android:configchanges=&amp;quot;locale&amp;quot; android:label=&amp;quot;@string/app_name&amp;quot; android:name=&amp;quot;.MyNfc&amp;quot; android:screenorientation=&amp;quot;portrait&amp;quot;&amp;gt;&lt;br&gt;
    &amp;lt;intent-filter&amp;gt;&lt;br&gt;
        &amp;lt;action android:name=&amp;quot;android.intent.action.MAIN&amp;quot;&amp;gt;&lt;br&gt;
        &amp;lt;category android:name=&amp;quot;android.intent.category.LAUNCHER&amp;quot;&amp;gt;&lt;br&gt;
    &amp;lt;/category&amp;gt;&amp;lt;/action&amp;gt;&lt;br&gt;
&amp;lt;/intent-filter&amp;gt;&lt;br&gt;
&lt;br&gt;
    &amp;lt;intent-filter&amp;gt;&lt;br&gt;
            &amp;lt;action android:name=&amp;quot;android.nfc.action.TAG_DISCOVERED&amp;quot;&amp;gt;               &lt;br&gt;
    &amp;lt;/action&amp;gt;&lt;br&gt;
   &amp;lt;/intent-filter&amp;gt;         &lt;br&gt;
    &amp;lt;intent-filter&amp;gt;&lt;br&gt;
            &amp;lt;action android:name=&amp;quot;android.nfc.action.TECH_DISCOVERED&amp;quot;&amp;gt;                               &lt;br&gt;
    &amp;lt;/action&amp;gt;&amp;lt;/intent-filter&amp;gt;&lt;br&gt;
    &amp;lt;meta-data android:name=&amp;quot;android.nfc.action.TECH_DISCOVERED&amp;quot; android:resource=&amp;quot;@xml/nfc_tech_filter.xml&amp;quot;&amp;gt;               &lt;br&gt;
&amp;lt;/meta-data&amp;gt;&lt;br&gt;
&amp;lt;/activity&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2013/04/nfc-api.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/8542723065438435792/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2013/04/nfc-api.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/8542723065438435792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/8542723065438435792'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2013/04/nfc-api.html' title='[Android] NFC API application'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-1588494445619225083</id><published>2012-05-03T00:46:00.001-07:00</published><updated>2014-07-13T19:38:57.971-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>[Android] SimpleDateFormat ms</title><content type='html'>&lt;span style=&quot;font-size: small;&quot;&gt;java.text.SimpleDateFormat date =&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;new java.text.SimpleDateFormat(&quot;&quot;yyyy/MM/dd HH:mm:ss:&lt;span style=&quot;color: red;&quot;&gt;SSS&lt;/span&gt;&quot;); //SS = ms&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;saveTime = date.format(new Date(System.currentTimeMillis()));&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/1588494445619225083/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2012/05/android-simpledateformat.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/1588494445619225083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/1588494445619225083'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2012/05/android-simpledateformat.html' title='[Android] SimpleDateFormat ms'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-5450139135805743189</id><published>2011-11-20T22:01:00.001-08:00</published><updated>2011-12-06T06:00:49.341-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="office"/><title type='text'>office2003升級2007一直失敗 出現Windows Installer 服務無法更新某些被防寫保護的windows 檔案</title><content type='html'>解決方法如下： &lt;br&gt;
&lt;br&gt;
下載 &lt;a href=&quot;https://sites.google.com/site/shimin0521/download/fp4autl.dll?attredirects=0&amp;amp;d=1&quot; target=&quot;_blank&quot;&gt;fp4autl.dll&lt;/a&gt; 這檔案&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2011/11/office20032007-windows-installer.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/5450139135805743189/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2011/11/office20032007-windows-installer.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/5450139135805743189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/5450139135805743189'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2011/11/office20032007-windows-installer.html' title='office2003升級2007一直失敗 出現Windows Installer 服務無法更新某些被防寫保護的windows 檔案'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-220836886821319572</id><published>2011-05-22T05:59:00.000-07:00</published><updated>2011-12-06T06:02:08.033-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="httpd.conf"/><category scheme="http://www.blogger.com/atom/ns#" term="小小問題"/><title type='text'>apache httpd.conf virtual directory</title><content type='html'>Apache virtual directory設定：&lt;br&gt;
&lt;br&gt;
以windows 7安裝appserv為例&lt;br&gt;
appserv www 目錄在 C:\AppServ\www&lt;br&gt;
想要新增一virtual directory取代本機端檔案夾目錄&lt;br&gt;
&lt;br&gt;
找到apache的httpd.conf&lt;br&gt;
以我的安裝為例, C:\AppServ\Apache2.2\conf&lt;br&gt;
&lt;br&gt;
在空白處加上：&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2011/05/apache-httpdconf-virtual-directory.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/220836886821319572/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2011/05/apache-httpdconf-virtual-directory.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/220836886821319572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/220836886821319572'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2011/05/apache-httpdconf-virtual-directory.html' title='apache httpd.conf virtual directory'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-8572568427905884292</id><published>2011-05-16T20:21:00.000-07:00</published><updated>2014-07-13T19:39:33.671-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><title type='text'>[C] read txt file number and separate save </title><content type='html'>ex:&lt;br&gt;
輸入：&lt;br&gt;
1 5 3 5 &lt;br&gt;
23 59 0 34 &lt;br&gt;
21 33 21 10 &lt;br&gt;
0 0 0 0&lt;br&gt;
&lt;br&gt;
輸出 :&lt;br&gt;
1 5 3 5 &lt;br&gt;
23 59 0 34 &lt;br&gt;
21 33 21 10 &lt;br&gt;
0 0 0 0&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br&gt;
&lt;br&gt;
int main( void )&lt;br&gt;
{&lt;br&gt;
    int h1 , m1 , h2 , m2;&lt;br&gt;
    while(1)&lt;br&gt;
    {&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2011/05/c-txt-file.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/8572568427905884292/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2011/05/c-txt-file.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/8572568427905884292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/8572568427905884292'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2011/05/c-txt-file.html' title='[C] read txt file number and separate save '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-3012811575426117131</id><published>2011-05-16T20:19:00.000-07:00</published><updated>2014-07-13T19:40:00.627-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C sharp"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>[C#] Console.ReadLine txt file</title><content type='html'>ex:&lt;br&gt;
輸入：&lt;br&gt;
1 5 3 5 &lt;br&gt;
23 59 0 34 &lt;br&gt;
21 33 21 10 &lt;br&gt;
0 0 0 0&lt;br&gt;
&lt;br&gt;
輸出 :&lt;br&gt;
1 5 3 5 &lt;br&gt;
23 59 0 34 &lt;br&gt;
21 33 21 10 &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
using System;&lt;br&gt;
using System.Collections.Generic;&lt;br&gt;
using System.Text;&lt;br&gt;
using System.IO;&lt;br&gt;
using System.Collections;&lt;br&gt;
&lt;br&gt;
namespace ConsoleApplication1&lt;br&gt;
{&lt;br&gt;
    class Program&lt;br&gt;
    {&lt;br&gt;
        static void Main(string[] args)&lt;br&gt;
        {    &lt;br&gt;
            string line;&lt;br&gt;
            while( (line=Console.ReadLine()) != null)&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2011/05/c-sharp-consolereadlin-txt-file-string.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/3012811575426117131/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2011/05/c-sharp-consolereadlin-txt-file-string.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3012811575426117131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/3012811575426117131'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2011/05/c-sharp-consolereadlin-txt-file-string.html' title='[C#] Console.ReadLine txt file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-8754475284550439068</id><published>2011-05-16T20:14:00.000-07:00</published><updated>2014-07-13T19:40:18.282-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Console.ReadLine"/><category scheme="http://www.blogger.com/atom/ns#" term="VB"/><title type='text'>[VB] Console.ReadLine txt file</title><content type='html'> ex:&lt;br&gt;
輸入：&lt;br&gt;
1 5 3 5 &lt;br&gt;
23 59 0 34 &lt;br&gt;
21 33 21 10 &lt;br&gt;
0 0 0 0&lt;br&gt;
&lt;br&gt;
輸出 :&lt;br&gt;
1 5 3 5 &lt;br&gt;
23 59 0 34 &lt;br&gt;
21 33 21 10 &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Imports System&lt;br&gt;
Imports Microsoft.VisualBasic&lt;br&gt;
Imports System.IO&lt;br&gt;
Imports System.Collections&lt;br&gt;
&lt;br&gt;
Module Module1&lt;br&gt;
    Sub Main()        &lt;br&gt;
        Dim intA, intB, intC, intD As Integer&lt;br&gt;
        Dim intTotal As Integer&lt;br&gt;
        intTotal = 0&lt;br&gt;
        Dim line As String&lt;br&gt;
&lt;br&gt;
        DO&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2011/05/virtual-basic-txt-file.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/8754475284550439068/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2011/05/virtual-basic-txt-file.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/8754475284550439068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/8754475284550439068'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2011/05/virtual-basic-txt-file.html' title='[VB] Console.ReadLine txt file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-2294341479854773982</id><published>2010-12-11T17:11:00.000-08:00</published><updated>2014-07-13T19:40:29.876-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>[Python] Hello World</title><content type='html'>helloworld.py 是網頁程式的部份&lt;br&gt;
&lt;br&gt;
print &amp;quot;Content-Type: text/plain&amp;quot;&lt;br&gt;
print &amp;#39;&amp;#39;&lt;br&gt;
print &amp;#39;Hello, world! I\&amp;#39;m finalevil~&amp;#39;&lt;br&gt;
&lt;br&gt;
第1行:設定目前網頁資料的類型為&amp;quot;文字&amp;quot;&lt;br&gt;
第3行:輸出至網頁的文字內容&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
app.yaml 則是GAE的配置文件&lt;br&gt;
&lt;br&gt;
application: helloworld&lt;br&gt;
version: 1&lt;br&gt;
runtime: python&lt;br&gt;
api_version: 1&lt;br&gt;
&lt;br&gt;
handlers:&lt;br&gt;
- url: /.*&lt;br&gt;
  script: helloworld.py&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://shimin521.blogspot.com/2010/12/python-hello-world.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/2294341479854773982/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2010/12/python-hello-world.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/2294341479854773982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/2294341479854773982'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2010/12/python-hello-world.html' title='[Python] Hello World'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-6565346460424093676</id><published>2010-12-07T08:10:00.001-08:00</published><updated>2014-07-13T19:40:42.390-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="Sort"/><title type='text'>[C] selection sort</title><content type='html'>&lt;a href=&quot;http://shimin521.blogspot.com/2010/12/c-selection-sort.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/6565346460424093676/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2010/12/c-selection-sort.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/6565346460424093676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/6565346460424093676'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2010/12/c-selection-sort.html' title='[C] selection sort'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-1695860095066315026</id><published>2010-12-07T03:48:00.000-08:00</published><updated>2014-07-13T19:40:54.828-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="Sort"/><title type='text'>[C] Insertion sort</title><content type='html'>&lt;a href=&quot;http://shimin521.blogspot.com/2010/12/c-insertion-sort.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/1695860095066315026/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2010/12/c-insertion-sort.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/1695860095066315026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/1695860095066315026'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2010/12/c-insertion-sort.html' title='[C] Insertion sort'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1352730749592886246.post-8130706957599944647</id><published>2010-12-06T06:43:00.000-08:00</published><updated>2014-07-13T19:41:04.651-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C"/><category scheme="http://www.blogger.com/atom/ns#" term="Sort"/><title type='text'>[C] Array sort</title><content type='html'>&lt;a href=&quot;http://shimin521.blogspot.com/2010/12/c_06.html#more&quot;&gt;閱讀更多 »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimin521.blogspot.com/feeds/8130706957599944647/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://shimin521.blogspot.com/2010/12/c_06.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/8130706957599944647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1352730749592886246/posts/default/8130706957599944647'/><link rel='alternate' type='text/html' href='http://shimin521.blogspot.com/2010/12/c_06.html' title='[C] Array sort'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/06159302232212094599</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>