博客园 - slideruuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=217922013-12-20T15:54:25Zsliderhttps://www.cnblogs.com/slider/feed.cnblogs.comhttps://www.cnblogs.com/slider/p/3484700.htmlegit - not authorized - sliderA. To specify credentials individually for each remoteOpen Git repositories view,open "Remotes > origin > "click "Change Credentials..."(From User Guide - Resource Context Menu)B. To specify credentials per serverIf you want to access multiple repositories on the same serve2013-12-20T15:54:00Z2013-12-20T15:54:00Zsliderhttps://www.cnblogs.com/slider/【摘要】A. To specify credentials individually for each remoteOpen Git repositories view,open "Remotes > origin > "click "Change Credentials..."(From User Guide - Resource Context Menu)B. To specify credentials per serverIf you want to access multiple repositories on the same serve <a href="https://www.cnblogs.com/slider/p/3484700.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/p/3410477.htmlphonegap3.0 simple - sliderenvironment: window8(64bit) First you go to the phonegap site and install it. note that installing your node if you don't installed it on you computer, note you shoud select zip file carefully by 32 or 64. now ok, you click the application that named 'node command line', input this comma2013-11-06T06:20:00Z2013-11-06T06:20:00Zsliderhttps://www.cnblogs.com/slider/【摘要】environment: window8(64bit) First you go to the phonegap site and install it. note that installing your node if you don't installed it on you computer, note you shoud select zip file carefully by 32 or 64. now ok, you click the application that named 'node command line', input this comma <a href="https://www.cnblogs.com/slider/p/3410477.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/p/3210080.htmlandroid: adapter getView(position==0) was invoked many times. - sliderthis is a big problem for me. i follow the solutions that i searched from the internet: modify the listview layout and list-item layou file, 'wrap_content' to 'fill_parent'. but 'getView' function always was voked many time when the value of the 'position' is 0; i thi2013-07-24T02:34:00Z2013-07-24T02:34:00Zsliderhttps://www.cnblogs.com/slider/【摘要】this is a big problem for me. i follow the solutions that i searched from the internet: modify the listview layout and list-item layou file, 'wrap_content' to 'fill_parent'. but 'getView' function always was voked many time when the value of the 'position' is 0; i thi <a href="https://www.cnblogs.com/slider/p/3210080.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/p/3183515.htmlpython use dom to write xml file - slider#encoding:utf-8''' write xml in dom style '''from xml.dom.minidom import Documentdoc = Document() # new a DOM objectwords = doc.createElement('words') # new a root elementwords.setAttribute('xmlns:xsi',"http://www.w3.org/2001/XMLSchema-instance")#设置命2013-07-11T02:59:00Z2013-07-11T02:59:00Zsliderhttps://www.cnblogs.com/slider/【摘要】#encoding:utf-8''' write xml in dom style '''from xml.dom.minidom import Documentdoc = Document() # new a DOM objectwords = doc.createElement('words') # new a root elementwords.setAttribute('xmlns:xsi',"http://www.w3.org/2001/XMLSchema-instance")#设置命 <a href="https://www.cnblogs.com/slider/p/3183515.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/05/22/3093651.htmlbuild developemnt environment for go - slider1.download source : http://golang.org/doc/Installed , here i haved file named 'go1.1.linux-386.tar.gz' , decompress it.2.To build the Go distribution, run$ cd go/src$ ./all.bash(To build under Windows use all.bat.)If all goes well, it will finish by printing output like:ALL TESTS PASSED---In2013-05-22T13:14:00Z2013-05-22T13:14:00Zsliderhttps://www.cnblogs.com/slider/【摘要】1.download source : http://golang.org/doc/Installed , here i haved file named 'go1.1.linux-386.tar.gz' , decompress it.2.To build the Go distribution, run$ cd go/src$ ./all.bash(To build under Windows use all.bat.)If all goes well, it will finish by printing output like:ALL TESTS PASSED---In <a href="https://www.cnblogs.com/slider/archive/2013/05/22/3093651.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/05/03/3056104.htmlhow to determine-point-inline-polyno - slider// Globals which should be set before calling this function: // // int polySides = how many corners the polygon has // float polyX[] = horizontal coordinates of corners // float polyY[] = vertical coordinates of corners // float x, y = point to be tested // // (Globals are used ...2013-05-03T02:06:00Z2013-05-03T02:06:00Zsliderhttps://www.cnblogs.com/slider/【摘要】// Globals which should be set before calling this function: // // int polySides = how many corners the polygon has // float polyX[] = horizontal coordinates of corners // float polyY[] = vertical coordinates of corners // float x, y = point to be tested // // (Globals are used ... <a href="https://www.cnblogs.com/slider/archive/2013/05/03/3056104.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/04/15/3021857.htmla google website of android code - sliderrecently, i found a website that post many good artilce. many of them is valuable to read. here is the link: http://www.java2s.com/Code/Android/2D-Graphics/RotateBitmap.htm2013-04-15T04:48:00Z2013-04-15T04:48:00Zsliderhttps://www.cnblogs.com/slider/【摘要】recently, i found a website that post many good artilce. many of them is valuable to read. here is the link: http://www.java2s.com/Code/Android/2D-Graphics/RotateBitmap.htm <a href="https://www.cnblogs.com/slider/archive/2013/04/15/3021857.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/04/03/2998007.htmlprogressdialog not display - slidernew AsyncTask<Void, Void, String>(){ ProgressDialog progressDialog; protected void onPreExecute() { progressDialog = new ProgressDialog(EditSelectedActivity.this); progressDialog.setMessage(getResources().getString(R.string.d_loading)); ...2013-04-03T07:22:00Z2013-04-03T07:22:00Zsliderhttps://www.cnblogs.com/slider/【摘要】new AsyncTask<Void, Void, String>(){ ProgressDialog progressDialog; protected void onPreExecute() { progressDialog = new ProgressDialog(EditSelectedActivity.this); progressDialog.setMessage(getResources().getString(R.string.d_loading)); ... <a href="https://www.cnblogs.com/slider/archive/2013/04/03/2998007.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/04/01/2993824.htmlDraw with a Canvas - sliderWhen you're writing an application in which you would like to perform specialized drawing and/or control the animation of graphics, you should do so by drawing through aCanvas. A Canvas works for you as a pretense, or interface, to the actual surface upon which your graphics will be drawn — it h2013-04-01T08:54:00Z2013-04-01T08:54:00Zsliderhttps://www.cnblogs.com/slider/【摘要】When you're writing an application in which you would like to perform specialized drawing and/or control the animation of graphics, you should do so by drawing through aCanvas. A Canvas works for you as a pretense, or interface, to the actual surface upon which your graphics will be drawn — it h <a href="https://www.cnblogs.com/slider/archive/2013/04/01/2993824.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/04/01/2992940.htmlfindviewbyid return null for custom view - slideri invoke findViewById method like this:view view = LayoutInflater.from(this).inflate(R.layout.xxx,null);Customview myView = view.findviewbyid(R.id.xy);....setcontentView(view); but it keeps return null . after searchs, i found that i shoud call findviewbyid() before setcontentview method. you can...2013-04-01T02:55:00Z2013-04-01T02:55:00Zsliderhttps://www.cnblogs.com/slider/【摘要】i invoke findViewById method like this:view view = LayoutInflater.from(this).inflate(R.layout.xxx,null);Customview myView = view.findviewbyid(R.id.xy);....setcontentView(view); but it keeps return null . after searchs, i found that i shoud call findviewbyid() before setcontentview method. you can... <a href="https://www.cnblogs.com/slider/archive/2013/04/01/2992940.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/28/2987876.htmlconversion between xml and object using xstream - slideroffical site said, but it does not make it clearly. especial parse xml with attributes. here is my test according to docs from offical websites.public class XstreamTest { public static void main(String[] args) throws Exception { //convertXml2(); convertObject2(); } p...2013-03-28T15:22:00Z2013-03-28T15:22:00Zsliderhttps://www.cnblogs.com/slider/【摘要】offical site said, but it does not make it clearly. especial parse xml with attributes. here is my test according to docs from offical websites.public class XstreamTest { public static void main(String[] args) throws Exception { //convertXml2(); convertObject2(); } p... <a href="https://www.cnblogs.com/slider/archive/2013/03/28/2987876.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/28/2986042.htmlandroid-image: load large bitmap Efficiently - sliderAn image with higher resolution does not provide any visible benefit, but still takes up precious memory and incurs additional performance overhead due to additional on the fly scaling. Given that you are working with limited memory, ideally you only want to load a lower resolution version in mem...2013-03-28T02:32:00Z2013-03-28T02:32:00Zsliderhttps://www.cnblogs.com/slider/【摘要】An image with higher resolution does not provide any visible benefit, but still takes up precious memory and incurs additional performance overhead due to additional on the fly scaling. Given that you are working with limited memory, ideally you only want to load a lower resolution version in mem... <a href="https://www.cnblogs.com/slider/archive/2013/03/28/2986042.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/27/2985289.htmldisplay log information in terminal - slideroffical website note:# import the logging libraryimport logging# Get an instance of a loggerlogger = logging.getLogger(__name__)def my_view(request, arg1, arg): ... if bad_mojo: # Log an error message logger.error('Something went wrong!') but it not display log info in termina...2013-03-27T12:35:00Z2013-03-27T12:35:00Zsliderhttps://www.cnblogs.com/slider/【摘要】offical website note:# import the logging libraryimport logging# Get an instance of a loggerlogger = logging.getLogger(__name__)def my_view(request, arg1, arg): ... if bad_mojo: # Log an error message logger.error('Something went wrong!') but it not display log info in termina... <a href="https://www.cnblogs.com/slider/archive/2013/03/27/2985289.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/26/2982975.htmlsearch a file from directory and get storage directorys from android device(i use tablet here) - sliderpublic class Explorer { String TAG = "Explorer"; private final String DISK_DIR = "/mnt"; public static final int DIR_SDCARD = 0; public static final int DIR_SDCARD_EX = 1; // external sdcard public static final int DIR_USB = 2; // usb external storage ...2013-03-26T09:17:00Z2013-03-26T09:17:00Zsliderhttps://www.cnblogs.com/slider/【摘要】public class Explorer { String TAG = "Explorer"; private final String DISK_DIR = "/mnt"; public static final int DIR_SDCARD = 0; public static final int DIR_SDCARD_EX = 1; // external sdcard public static final int DIR_USB = 2; // usb external storage ... <a href="https://www.cnblogs.com/slider/archive/2013/03/26/2982975.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/25/2980992.htmlwhy request.path return None? - sliderin django, sometimes you want to pass value of current page path , you will do this follows: a. <form action="./?next={{request.path}}" method="post">...</form> b.<form action="" method="post"> <input type="hidden" name="nex2013-03-25T08:26:00Z2013-03-25T08:26:00Zsliderhttps://www.cnblogs.com/slider/【摘要】in django, sometimes you want to pass value of current page path , you will do this follows: a. <form action="./?next={{request.path}}" method="post">...</form> b.<form action="" method="post"> <input type="hidden" name="nex <a href="https://www.cnblogs.com/slider/archive/2013/03/25/2980992.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/25/2980943.htmlstatelistdrawable与colorstatelist - sliderprivate StateListDrawable getStateSelector(ImageEntity image){ StateListDrawable stalistDrawable = new StateListDrawable(); //int normal = android.R.attr.state_empty; //int pressed = android.R.attr.state_pressed; //int focused = android.R.attr.state_focused; //int selected = android.R.attr.stat...2013-03-25T08:04:00Z2013-03-25T08:04:00Zsliderhttps://www.cnblogs.com/slider/【摘要】private StateListDrawable getStateSelector(ImageEntity image){ StateListDrawable stalistDrawable = new StateListDrawable(); //int normal = android.R.attr.state_empty; //int pressed = android.R.attr.state_pressed; //int focused = android.R.attr.state_focused; //int selected = android.R.attr.stat... <a href="https://www.cnblogs.com/slider/archive/2013/03/25/2980943.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/25/2980933.htmlandroid中对象Parcelable化 - slider对象序列化找个东西我不知道怎么用。个人认为许多需要传递大对象的情况都可以避免掉。比如把多个acitivyt的内容写到一个activity中(找个好处还可以同时可以finish掉许多activity哦)。但是作为一个知识,还是写写了,也因为我n久没有更新博客了。 介绍的话就不准备写了,还是代码简单: public class ImageEntity implements Parcelable{ String name; String path; String path1; // first path, default path . replace with select...2013-03-25T08:00:00Z2013-03-25T08:00:00Zsliderhttps://www.cnblogs.com/slider/【摘要】对象序列化找个东西我不知道怎么用。个人认为许多需要传递大对象的情况都可以避免掉。比如把多个acitivyt的内容写到一个activity中(找个好处还可以同时可以finish掉许多activity哦)。但是作为一个知识,还是写写了,也因为我n久没有更新博客了。 介绍的话就不准备写了,还是代码简单: public class ImageEntity implements Parcelable{ String name; String path; String path1; // first path, default path . replace with select... <a href="https://www.cnblogs.com/slider/archive/2013/03/25/2980933.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/21/2973635.html阻止点击numberpicker(edittext)时候弹出输入法 - slider1.首先说说默认不显示输入法,这里通常又三种:在 AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为 adjustUnspecified|stateHidden < activity android:name=".Main" android:label="@string/app_name" android:windowSoftInputMode="adjustUnspecified|stateHidden" android:configChanges="o2013-03-21T08:10:00Z2013-03-21T08:10:00Zsliderhttps://www.cnblogs.com/slider/【摘要】1.首先说说默认不显示输入法,这里通常又三种:在 AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为 adjustUnspecified|stateHidden < activity android:name=".Main" android:label="@string/app_name" android:windowSoftInputMode="adjustUnspecified|stateHidden" android:configChanges="o <a href="https://www.cnblogs.com/slider/archive/2013/03/21/2973635.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2013/03/07/2947843.htmlImageView.ScaleType简单介绍 - sliderImageView.ScaleType共八种: 1·ImageView.ScaleType.center:图片位于视图中间,但不执行缩放。 2·ImageView.ScaleType.CENTER_CROP 按统一比例缩放图片(保持图片的尺寸比例)便于图片的两维(宽度和高度)等于或者大于相应的视图的维度 3·ImageView.ScaleType.CENTER_INSIDE按统一比例缩放图片(保持图片的尺寸比例)便于图片的两维(宽度和高度)等于或者小于相应的视图的维度 4·ImageView.ScaleType.FIT_CENTER缩放图片使用cente2013-03-07T05:04:00Z2013-03-07T05:04:00Zsliderhttps://www.cnblogs.com/slider/【摘要】ImageView.ScaleType共八种: 1·ImageView.ScaleType.center:图片位于视图中间,但不执行缩放。 2·ImageView.ScaleType.CENTER_CROP 按统一比例缩放图片(保持图片的尺寸比例)便于图片的两维(宽度和高度)等于或者大于相应的视图的维度 3·ImageView.ScaleType.CENTER_INSIDE按统一比例缩放图片(保持图片的尺寸比例)便于图片的两维(宽度和高度)等于或者小于相应的视图的维度 4·ImageView.ScaleType.FIT_CENTER缩放图片使用cente <a href="https://www.cnblogs.com/slider/archive/2013/03/07/2947843.html" target="_blank">阅读全文</a>https://www.cnblogs.com/slider/archive/2012/08/17/2643998.htmleclipse更新4.2自动提示 - slider这是一个很旧的问题。但有时候还是无法解决。网上找寻了很多办法后,终于解决。 1.首先,默认的eclipse4.2的版本无法自动提示,表现是闪烁(至少我的ubuntu12.04是这样的),让你根本不知道是怎么回事。然后给我的感觉可能就是快捷键那里可能有两个功能的快捷键相同,才有可能照成这个问题。去'window-->General-->Keys'那里发现,果然有两个功能键都是‘alt+/':work completion 和 content assist. 处于习惯,那就修改work completion的快捷键吧。 2.然后就是常规的‘window-->2012-08-17T06:25:00Z2012-08-17T06:25:00Zsliderhttps://www.cnblogs.com/slider/【摘要】这是一个很旧的问题。但有时候还是无法解决。网上找寻了很多办法后,终于解决。 1.首先,默认的eclipse4.2的版本无法自动提示,表现是闪烁(至少我的ubuntu12.04是这样的),让你根本不知道是怎么回事。然后给我的感觉可能就是快捷键那里可能有两个功能的快捷键相同,才有可能照成这个问题。去'window-->General-->Keys'那里发现,果然有两个功能键都是‘alt+/':work completion 和 content assist. 处于习惯,那就修改work completion的快捷键吧。 2.然后就是常规的‘window--> <a href="https://www.cnblogs.com/slider/archive/2012/08/17/2643998.html" target="_blank">阅读全文</a>