<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" 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" gd:etag="W/&quot;C0UGSHk4cSp7ImA9WhFSFkw.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243</id><updated>2013-06-18T23:07:09.739-04:00</updated><category term="Toggle Button" /><category term="Location" /><category term="Get" /><category term="Hash" /><category term="Untrusted" /><category term="String" /><category term="Haversine" /><category term="Mint" /><category term="UIAlertView" /><category term="Windows" /><category term="SQLite" /><category term="RSA" /><category term="Request" /><category term="Job" /><category term="Abstract" /><category term="BroadcastReceiver" /><category term="Code" /><category term="ABF" /><category term="Rewrite" /><category term="Conditional" /><category term="Decryption" /><category term="Hex" /><category term="FTP" /><category term="Heading" /><category term="IntentService" /><category term="ExpandableListView" /><category term="ClassPath" /><category term="Cell" /><category term="Apache" /><category term="iOS" /><category term="UISwitch" /><category term="Prompt" /><category term="Insert" /><category term="Query" /><category term="Char" /><category term="UILabel" /><category term="UITextField" /><category term="TimePickerDialog" /><category term="UINavigationController" /><category term="Latitude" /><category term="Service" /><category term="Dictionary" /><category term="Plugin" /><category term="Shell Script" /><category term="CSS" /><category term="PDF" /><category term="Loop" /><category term="Value" /><category term="DatePickerDialog" /><category term="Zeros" /><category term="DataQueue" /><category term="Disable" /><category term="Line" /><category term="Tracking" /><category term="FEDEX" /><category term="SDK" /><category term="BIFs" /><category term="Tomcat" /><category term="IAS" /><category term="Layout" /><category term="VMware" /><category term="UIImageView" /><category term="Eclipse" /><category term="ViewFlipper" /><category term="Alpha" /><category term="Relative" /><category term="EditText" /><category term="Field" /><category term="Method" /><category term="Load" /><category term="Cursor" /><category term="DIV" /><category term="Parcelable" /><category term="Scan" /><category term="Event" /><category term="Put" /><category term="Random" /><category term="Python" /><category term="Post" /><category term="POI" /><category term="Email" /><category term="Cache" /><category term="Program" /><category term="iframe" /><category term="Option" /><category term="Core Data" /><category term="ToolTip" /><category term="Encryption" /><category term="Tutorial" /><category term="Sort" /><category term="Keyboard" /><category term="CursorAdapter" /><category term="Pool" /><category term="CalendarView" /><category term="Toolbox" /><category term="Drop" /><category term="RPGLE" /><category term="Version" /><category term="AsyncTask" /><category term="Bouncy Castle" /><category term="Exception" /><category term="Hosting" /><category term="ScrollView" /><category term="Variables" /><category term="Parameter" /><category term="Record" /><category term="Convert" /><category term="Annotation" /><category term="Batch" /><category term="SSL" /><category term="Storage" /><category term="QR Code" /><category term="JSON" /><category term="mod_jk" /><category term="Preferences" /><category term="Spinner" /><category term="Servlet" /><category term="ListView" /><category term="alias" /><category term="Box" /><category term="Linear" /><category term="Base64" /><category term="Config" /><category term="UITabBarController" /><category term="CLP" /><category term="Create" /><category term="Restore" /><category term="Dialog" /><category term="BlueTooth" /><category term="Project" /><category term="Server" /><category term="xtype" /><category term="Connector" /><category term="CSV" /><category term="Data Area" /><category term="Statement" /><category term="Null" /><category term="DHL" /><category term="Google" /><category term="ExtJs" /><category term="Hello World" /><category term="JDBC" /><category term="Canvas" /><category term="Install" /><category term="Icon" /><category term="Click" /><category term="SXSSF" /><category term="Database" /><category term="Validation" /><category term="Linux" /><category term="Proxy" /><category term="UISlider" /><category term="Draw" /><category term="HSSF" /><category term="ViewController" /><category term="UITableView" /><category term="SHA-1" /><category term="Grid" /><category term="sp" /><category term="TableRow" /><category term="Double" /><category term="Store" /><category term="Directory" /><category term="Notification" /><category term="Encode" /><category term="EXCEL" /><category term="JSP" /><category term="SQL" /><category term="Integer" /><category term="Connection" /><category term="HTTPS" /><category term="Image" /><category term="Stored Procedure" /><category term="XSSF" /><category term="C" /><category term="Main" /><category term="Model" /><category term="Default" /><category term="Switch" /><category term="Delete" /><category term="Orientation" /><category term="Client" /><category term="HttpClient" /><category term="Progress Bar" /><category term="Focus" /><category term="Summary" /><category term="HTTP" /><category term="Telnet" /><category term="Text" /><category term="Formula" /><category term="Distance" /><category term="DOM" /><category term="Source" /><category term="SQLRPGLE" /><category term="Sencha Touch" /><category term="ComboBox" /><category term="Console" /><category term="List" /><category term="UIPickerView" /><category term="Bundle" /><category term="PC" /><category term="Decimal" /><category term="Parser" /><category term="StackTrace" /><category term="Error" /><category term="Manifest" /><category term="Qshell" /><category term="Class" /><category term="DataView" /><category term="jQuery" /><category term="MySQL" /><category term="UIButton" /><category term="TextToSpeech" /><category term="SFTP" /><category term="Barcode" /><category term="Decode" /><category term="URL" /><category term="XML" /><category term="External" /><category term="Replace" /><category term="Rename" /><category term="Enable" /><category term="Forward" /><category term="UISegmentedControl" /><category term="Select" /><category term="Objects" /><category term="SAX" /><category term="Jar" /><category term="Setup" /><category term="SAVE" /><category term="Color" /><category term="Maps" /><category term="JSONP" /><category term="View" /><category term="Read" /><category term="Panel" /><category term="Table" /><category term="Copy" /><category term="Tree" /><category term="DB2" /><category term="PreparedStatement" /><category term="Socket" /><category term="HTML" /><category term="Dynamic" /><category term="Union" /><category term="Debug" /><category term="Row" /><category term="Free" /><category term="iText" /><category term="Upload" /><category term="JavaScript" /><category term="Column" /><category term="UIDatePicker" /><category term="Numeric" /><category term="Activity" /><category term="Height" /><category term="Analytics" /><category term="iSeries" /><category term="Formats" /><category term="Measurement" /><category term="MVC" /><category term="IFS" /><category term="Binding" /><category term="Leading" /><category term="Button" /><category term="Trigger" /><category term="Date" /><category term="Byte Array" /><category term="SQL Server" /><category term="HashMap" /><category term="Paging" /><category term="Monitor" /><category term="Write" /><category term="Fetch" /><category term="Log4j" /><category term="PhoneGap" /><category term="Ajax" /><category term="autoComplete" /><category term="C++" /><category term="File" /><category term="Group" /><category term="WebView" /><category term="Function" /><category term="LANSA" /><category term="Localhost" /><category term="JSSE" /><category term="Chart" /><category term="IBM i" /><category term="Android" /><category term="Check" /><category term="Animation" /><category term="UITableViewCell" /><category term="AS400" /><category term="Emulator" /><category term="Style" /><category term="Override" /><category term="Centos" /><category term="USPS" /><category term="Menu" /><category term="Signature" /><category term="Internet" /><category term="Find" /><category term="Library" /><category term="dp" /><category term="Radio" /><category term="TextWatcher" /><category term="Width" /><category term="qsort" /><category term="Search" /><category term="Java" /><category term="API" /><category term="Google App Engine" /><category term="UIScrollView" /><category term="Gson" /><category term="Binary" /><category term="Command" /><category term="Edit" /><category term="Browser" /><category term="CheckBox" /><category term="Syntax" /><category term="Sun" /><category term="Number" /><category term="Data" /><category term="Properties" /><category term="DSPATR" /><category term="On-Error" /><category term="Controller" /><category term="SubMenu" /><category term="Launcher" /><category term="dip" /><category term="Update" /><category term="UpperCase" /><category term="Time" /><category term="Listing" /><category term="Redirect" /><category term="UPS" /><category term="Longitude" /><category term="Compile" /><title>Programmers Sample Guide, help is on the way</title><subtitle type="html">&lt;i&gt;All one can think and do in a short time is to think what one already knows and to do as one has always done!&lt;/i&gt;</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>534</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/MySampleCode" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="mysamplecode" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DE4CR3g_fCp7ImA9WhFSFUw.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-5222585198585995388</id><published>2013-06-17T20:56:00.000-04:00</published><updated>2013-06-17T20:56:06.644-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-06-17T20:56:06.644-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Java" /><category scheme="http://www.blogger.com/atom/ns#" term="SFTP" /><category scheme="http://www.blogger.com/atom/ns#" term="File" /><title>SFTP Apache commons file download, upload and delete example</title><summary>Secure File Transfer Protocol or SFTP uses the SSH secure shell protocol to provides file access, file transfer, and file management functionalities over any reliable data stream. Apache Commons VFS provides a single API for accessing various different file systems and one of them is SFTP. Here are the examples for how to use the VFS to achieve file download, upload and delete on a remote system.</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/5222585198585995388/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/06/sftp-apache-commons-file-download.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/5222585198585995388?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/5222585198585995388?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/06/sftp-apache-commons-file-download.html" title="SFTP Apache commons file download, upload and delete example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUUESXs-fSp7ImA9WhFSEks.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-1412888703726192713</id><published>2013-06-14T22:26:00.000-04:00</published><updated>2013-06-14T22:26:48.555-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-06-14T22:26:48.555-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UITableViewCell" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS programmatically create a custom UITableViewCell</title><summary>In our previous tutorial we learned how to create a custom UITableViewCell using a xib file. My personal preference is to define it programmatically as it takes me less time to code. In this example we basically recreate the same custom table cell view which displays our country information and a button that can be used to further drill down to say a detail screen about that specific country.



</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/1412888703726192713/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/06/ios-programmatically-create-custom-cell.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1412888703726192713?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1412888703726192713?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/06/ios-programmatically-create-custom-cell.html" title="iOS programmatically create a custom UITableViewCell" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-3Vdv-3J69ak/UbvMKYeXrzI/AAAAAAAADYM/ZLqX2_U0ZDM/s72-c/iOS+programmatically+create+a+custom+UITableViewCell.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CEEDRnc_eip7ImA9WhFSEks.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-5897966065427046004</id><published>2013-06-12T23:50:00.000-04:00</published><updated>2013-06-14T22:17:57.942-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-06-14T22:17:57.942-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UITableViewCell" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS custom UITableViewCell example using xib file</title><summary>




 

The UITableViewCell class defines the attributes and behavior of the cells that appear in UITableView objects. The iOS SDK comes with some predefined cell styles for your most common needs but what if you need a different layout for your table row data. Well you can easily extend the UITableViewCell class to create a new custom class and initialize that with your custom xib file.

In this</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/5897966065427046004/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/06/ios-custom-uitableviewcell-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/5897966065427046004?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/5897966065427046004?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/06/ios-custom-uitableviewcell-example.html" title="iOS custom UITableViewCell example using xib file" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-ORtS1xKijoo/Ubk06DlvfzI/AAAAAAAADX4/2N28phDVuEY/s72-c/iOS+custom+UITableViewCell+example+using+xib+file.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;C04ASH4-eyp7ImA9WhFSEEQ.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3817939542306878630</id><published>2013-06-09T19:11:00.000-04:00</published><updated>2013-06-12T22:52:29.053-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-06-12T22:52:29.053-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><category scheme="http://www.blogger.com/atom/ns#" term="Core Data" /><title>iOS Core Data example - CRUD operations</title><summary>Core Data is powerful framework, standard within the iOS SDK that simplifies the interaction with the persistent data store in an object-oriented way and the programmer doesn't have to worry about the low level interaction with the underlying database, basically simplifies the crud operations that you generally deal with when using SQL with any relational database. In core data the most important</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3817939542306878630/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/06/ios-core-data-example-crud-operations.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3817939542306878630?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3817939542306878630?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/06/ios-core-data-example-crud-operations.html" title="iOS Core Data example - CRUD operations" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-jYDPLJiVaqw/UbTBDmpGv3I/AAAAAAAADUw/V_FLaSfNAAc/s72-c/iOS+Core+Data+example+-+Table+view.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;C08DR3kycCp7ImA9WhFSEEQ.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-4198782652469136700</id><published>2013-06-03T23:41:00.000-04:00</published><updated>2013-06-12T22:51:16.798-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-06-12T22:51:16.798-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQLite" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS SQLite example with Create Insert Select Update and Delete operations</title><summary>The underlying database for iOS applications to store large amounts of data is SQLite. It is considered a de facto industry standard for lightweight embedded SQL database programming. You can use the core data framework provided in the iOS SDK to interact with the database in an abstract manner without actually going into the details how the low-level data management is implemented. The other </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/4198782652469136700/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/06/ios-sqlite-crud-operations-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4198782652469136700?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4198782652469136700?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/06/ios-sqlite-crud-operations-example.html" title="iOS SQLite example with Create Insert Select Update and Delete operations" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-M1N9E_WES2I/Ua1Wu5tf5vI/AAAAAAAADUA/bQgf8gKVK4E/s72-c/iOS+project+with+SQLite+library+in+Build+phases.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D08GR349fCp7ImA9WhBaGEU.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-4089004117515346700</id><published>2013-05-29T23:50:00.000-04:00</published><updated>2013-05-29T23:50:26.064-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-29T23:50:26.064-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><category scheme="http://www.blogger.com/atom/ns#" term="Signature" /><category scheme="http://www.blogger.com/atom/ns#" term="Image" /><title>iOS smooth signature capture example using quadratic bezier curve</title><summary>Signatures are stylized scripts associating them to a given individual and primarily used for the purpose of displaying intent of that individual in regards to a given document by having his or her signature. Now with the advent of the mobile devices such as iPhone and iPad there is an everyday demand to capture individual's signature on electronic documents such as PDF and mobile applications. </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/4089004117515346700/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/ios-smooth-signature-capture-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4089004117515346700?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4089004117515346700?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/ios-smooth-signature-capture-example.html" title="iOS smooth signature capture example using quadratic bezier curve" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-athavqk3QXs/Uaa9eG_f2fI/AAAAAAAADTg/X9S_3bIX_6A/s72-c/iOS+smooth+signature+capture+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUcESXg6eip7ImA9WhBaF0Q.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-6619723451525134351</id><published>2013-05-28T23:10:00.000-04:00</published><updated>2013-05-28T23:10:08.612-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-28T23:10:08.612-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><category scheme="http://www.blogger.com/atom/ns#" term="Connection" /><category scheme="http://www.blogger.com/atom/ns#" term="Internet" /><title>iOS check for internet connection</title><summary>Thanks to Tony Million there is ARC and GCD Compatible Reachability Class for iOS and MacOS from the original version developed as an example by apple. All you have to do is download the zip file for the Reachability project from the GitHub repository and then copy the Reachability.h and Reachability.m into your xcode application. Don't forget to add Reachability.m to your compile sources and </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/6619723451525134351/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/ios-check-for-internet-connection.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/6619723451525134351?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/6619723451525134351?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/ios-check-for-internet-connection.html" title="iOS check for internet connection" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-k_Thl141pcA/UaVomdUaQzI/AAAAAAAADTI/DVbecNWp9yI/s72-c/iOS+check+for+internet+connection.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUACRno8eyp7ImA9WhBaFEg.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3767761456586505718</id><published>2013-05-25T00:56:00.000-04:00</published><updated>2013-05-25T00:56:07.473-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-25T00:56:07.473-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CSV" /><category scheme="http://www.blogger.com/atom/ns#" term="Python" /><title>Python generate CSV file from List or Dictionary</title><summary>CSV (Comma Separated Values) is the most common data format for one-time data export from one system to another. The original data can be in any other relational database such as DB2, MySql, SQL Server, etc. but you can easily dump that into a CSV format and pass it on. I would say before the days of XML and JSON it was the de facto format for data transport. Python makes it really easy to create</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3767761456586505718/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/python-generate-csv-file-from-list-or.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3767761456586505718?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3767761456586505718?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/python-generate-csv-file-from-list-or.html" title="Python generate CSV file from List or Dictionary" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-gVxxC2FKJcQ/UaBBGlp1dkI/AAAAAAAADS4/iZKberkhzTc/s72-c/Python+generate+CSV+file+from+List+and+Dictionary+data.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;C0AASXw7fip7ImA9WhBaEkU.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-5615291052801722683</id><published>2013-05-23T00:02:00.000-04:00</published><updated>2013-05-23T00:02:28.206-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-23T00:02:28.206-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="CSV" /><category scheme="http://www.blogger.com/atom/ns#" term="Python" /><title>Python read CSV file into List or Dictionary example</title><summary>CSV (Comma Separated Values) is the most popular data format for importing and exporting databases between various systems. Because CSV doesn't have a standardized format there is always subtle differences between CSV files from different vendors such as the field separator may be TAB instead of a comma. Python CSV module tries to take care of most of these variation using either dialects and/or </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/5615291052801722683/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/python-read-csv-file-list-dictionary.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/5615291052801722683?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/5615291052801722683?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/python-read-csv-file-list-dictionary.html" title="Python read CSV file into List or Dictionary example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-czq9knwrflI/UZ2S8Xf1wbI/AAAAAAAADSo/jy4TS7F4gVI/s72-c/Python+read+CSV+file+into+List+or+Dictionary+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEcCQH45eSp7ImA9WhBaEUQ.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-2657126967470032099</id><published>2013-05-21T22:56:00.000-04:00</published><updated>2013-05-22T00:14:21.021-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-22T00:14:21.021-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Python" /><category scheme="http://www.blogger.com/atom/ns#" term="Read" /><category scheme="http://www.blogger.com/atom/ns#" term="File" /><title>Python read file line by line example</title><summary>Reading a text file line by line is pretty easy in python. Basically there are three steps first get a handle on the file using the open() function, then read the file line by line using either readline() or file iterator and finally use the close() method to close it and free up any system resources. But if you are processing say a sound clip or an image file then just add a 'b' to your mode, </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/2657126967470032099/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/python-read-file-line-by-line-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2657126967470032099?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2657126967470032099?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/python-read-file-line-by-line-example.html" title="Python read file line by line example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-bp1W1tq8YdI/UZwzFwlSkaI/AAAAAAAADSY/N4vva7QvwyE/s72-c/Python+read+file+line+by+line+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkAHQno_fCp7ImA9WhBaEUU.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-4745742288136634841</id><published>2013-05-20T22:48:00.000-04:00</published><updated>2013-05-21T22:12:13.444-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-21T22:12:13.444-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript" /><category scheme="http://www.blogger.com/atom/ns#" term="Cache" /><category scheme="http://www.blogger.com/atom/ns#" term="Image" /><category scheme="http://www.blogger.com/atom/ns#" term="Apache" /><title>Apache set Expiry date for javascript files and images</title><summary>I started looking into page caching this after running Google Page Speed Insights 
 to make my website load faster and one of the recommendations was "Specify an expiration at least one week in the future for the following resources". If your web server is apache then you can easily configure this in the httpd.conf file using the Apache module mod_expires, this will allow the browsers to cache </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/4745742288136634841/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/apache-set-expiry-date-for-javascript.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4745742288136634841?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4745742288136634841?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/apache-set-expiry-date-for-javascript.html" title="Apache set Expiry date for javascript files and images" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-uDJIvkcDsqw/UZrfrgR3_8I/AAAAAAAADSI/kwsvpttdRt8/s72-c/Apache+set+Expiry+date+for+javascript+files+and+images.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CU8CSX85eyp7ImA9WhBbFU0.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3291799432463630299</id><published>2013-05-13T23:57:00.002-04:00</published><updated>2013-05-13T23:57:48.123-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-13T23:57:48.123-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PDF" /><category scheme="http://www.blogger.com/atom/ns#" term="iText" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Signature" /><title>Android generate PDF using iText and print to Bluetooth printer example</title><summary>In this example we are trying to achieve two things, first and foremost how to create a PDF programmtically from your android application data and second print it using a bluetooth printer so that we don't have to rely on internet connectivity. For the purpose of generating a PDF this tutorial is using iText for Android which is a licensed version of iText with reduced file size and functionality</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3291799432463630299/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/android-itext-pdf-bluetooth-printer.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3291799432463630299?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3291799432463630299?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/android-itext-pdf-bluetooth-printer.html" title="Android generate PDF using iText and print to Bluetooth printer example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-g6EGpIAVySc/UZGoVxe1m8I/AAAAAAAADRQ/_u3QiT4jsWI/s72-c/Android+PDF+using+iText+.png" height="72" width="72" /><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;DE4BQX0zfSp7ImA9WhBbFks.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-1925220607841776368</id><published>2013-05-09T00:06:00.000-04:00</published><updated>2013-05-15T21:15:50.385-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-15T21:15:50.385-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Update" /><title>Android programmatically update application when a new version is available</title><summary>If you have apps that are hosted on your server and as time passes you make enhancements, fix bugs, etc. then comes the question how can I alert all my app users that a newer version is out there and make it real easy for them to download. You can email all your users with the link to the new version, that will be very cumbersome. Well that process needs to be built right into the app you deploy </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/1925220607841776368/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/android-update-application.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1925220607841776368?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1925220607841776368?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/android-update-application.html" title="Android programmatically update application when a new version is available" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-uJgMfSA3irc/UYsZpABgbpI/AAAAAAAADQk/3CThMpd0Fhg/s72-c/Android+update+application+programmatically.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkEGQn89fyp7ImA9WhBUGE0.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-7207882784132985192</id><published>2013-05-05T20:37:00.000-04:00</published><updated>2013-05-05T20:37:03.167-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-05T20:37:03.167-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Parser" /><category scheme="http://www.blogger.com/atom/ns#" term="HTTP" /><category scheme="http://www.blogger.com/atom/ns#" term="XML" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS HTTP request and XML parsing example</title><summary>NSXMLParser is a SAX parser included by default in the iOS. Its pretty straight forward to use if you are familiar with any other SAX parsers. Basically it is a event driven process where as it comes across certain parts of the XML document that it will send notification to a specific function where you can take the necessary action to save that to either memory or SQLite database. Here we get </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/7207882784132985192/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/ios-http-request-and-xml-parsing-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7207882784132985192?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7207882784132985192?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/ios-http-request-and-xml-parsing-example.html" title="iOS HTTP request and XML parsing example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-ic5NZfzNLNk/UYb1Py7DwvI/AAAAAAAADQE/kGdW26r-aZk/s72-c/iOS+HTTP+request+and+XML+parsing+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUYHSXsycSp7ImA9WhBUFkQ.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-2068106134852978127</id><published>2013-05-04T15:52:00.000-04:00</published><updated>2013-05-04T15:52:18.599-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-04T15:52:18.599-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Function" /><category scheme="http://www.blogger.com/atom/ns#" term="AS400" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><category scheme="http://www.blogger.com/atom/ns#" term="RPGLE" /><title>SQL User Defined Functions in iSeries(AS400)</title><summary>SQL comes with a lot of standard functions such as finding the maximum, minimum or distinct values for a column within a database table. But there comes a time when you wish that if you had that special function that will make your programming logic a piece of cake then you must take matters into your own hand and create your own SQL function. In this tutorial we are going to learn how to create </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/2068106134852978127/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/sql-user-defined-functions-as400.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2068106134852978127?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2068106134852978127?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/sql-user-defined-functions-as400.html" title="SQL User Defined Functions in iSeries(AS400)" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0QDR34ycCp7ImA9WhBUEkU.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-903452292338328194</id><published>2013-04-29T22:36:00.000-04:00</published><updated>2013-04-29T22:36:16.098-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-29T22:36:16.098-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><category scheme="http://www.blogger.com/atom/ns#" term="String" /><title>Objective C String concatenation example</title><summary>Well in any programming language this is considered one of important string manipulation functions and as simple as adding a plus sign between the two strings. Guess what its not that easy in Objective C, here is how to achieve string concatenation when using either NSString or NSMutableString classes.
#import &lt;Foundation/Foundation.h&gt;

int main(int argc, const char * argv[])
{

    @</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/903452292338328194/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/objective-c-string-concatenation-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/903452292338328194?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/903452292338328194?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/objective-c-string-concatenation-example.html" title="Objective C String concatenation example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkcGSXkzcCp7ImA9WhBVGEg.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3161649248264860894</id><published>2013-04-23T23:41:00.000-04:00</published><updated>2013-04-24T22:47:08.788-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-24T22:47:08.788-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSON" /><category scheme="http://www.blogger.com/atom/ns#" term="HTTP" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS HTTP request and JSON parsing example</title><summary>This is a very basic requirement when you are doing mobile apps to get data from a remote server and then either display or save it for future use. There are two things that we need to accomplish, first make an HTTP request from the app and then parse the JSON response. The HTTP request is done using the NSURLConnection object and the JSON parsing is done with the help of NSJSONSerialization </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3161649248264860894/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/ios-http-request-and-json-parsing.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3161649248264860894?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3161649248264860894?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/ios-http-request-and-json-parsing.html" title="iOS HTTP request and JSON parsing example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-AhPnshj-OUY/UXdGRYmXVhI/AAAAAAAADPg/yWMcO0xMe4U/s72-c/iOS+HTTP+request+and+JSON+parsing+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;Ak8CQnY_eyp7ImA9WhBVEUs.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-1451285777358540619</id><published>2013-04-16T23:21:00.000-04:00</published><updated>2013-04-16T23:21:03.843-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-16T23:21:03.843-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Version" /><title>Android display application version name programmatically</title><summary>You can get the app version from the PackageInfo class which contains all of the information collected from AndroidManifest.xml file. Check the link below for API reference to the PackageInfo class

http://developer.android.com/reference/android/content/pm/PackageInfo.html










Application Manifest file
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/1451285777358540619/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/android-display-application-version.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1451285777358540619?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1451285777358540619?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/android-display-application-version.html" title="Android display application version name programmatically" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-SR7jX2JsD0M/UW4G7dcrT3I/AAAAAAAADPQ/ZQn28AgfV_M/s72-c/Android+display+application+version+name+programmatically.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUUCRXkyfip7ImA9WhBWF04.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-7342347750006585167</id><published>2013-04-11T23:27:00.000-04:00</published><updated>2013-04-11T23:27:44.796-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-11T23:27:44.796-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Button" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Switch" /><title>Android switch button example</title><summary>A switch is type of button that can only have two states ON and OFF. You can set the initial state and then the user can change it. To get the current state you can check if the switch is checked or not, in addition to that you can attach a OnCheckedChangeListener to the switch to get notification when the state changes.












Android Screen Layout
&lt;RelativeLayout xmlns:android="http://</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/7342347750006585167/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/android-switch-button-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7342347750006585167?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7342347750006585167?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/android-switch-button-example.html" title="Android switch button example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-fnTuVMaC2Xk/UWdvW8dCpKI/AAAAAAAADO4/Om8jTHDntmA/s72-c/Android+switch+button+OFF+state.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkYDRXkyeSp7ImA9WhBWFkg.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-4564218067540667580</id><published>2013-04-10T23:16:00.000-04:00</published><updated>2013-04-10T23:16:14.791-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-10T23:16:14.791-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Internet" /><title>Android automatically detect internet connection status</title><summary>If you have an android application that needs to sync data with a backend server but doesn't need the internet to be available all the time for it to work then you must know at all times whether your app has access to internet or not. As soon as you have internet connection you can get latest data from the server or post any changes saved in your app using HTTP service. In this example we extend </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/4564218067540667580/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/android-automatically-detect-internet-connection.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4564218067540667580?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4564218067540667580?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/android-automatically-detect-internet-connection.html" title="Android automatically detect internet connection status" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-fExk2_U1GvU/UWYl5N032yI/AAAAAAAADOg/PWkDHeaMpIw/s72-c/Android+automatically+detect+internet+connection+status.png" height="72" width="72" /><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;AkYGRXo6fCp7ImA9WhBWFEo.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3462715496463479981</id><published>2013-04-08T23:28:00.000-04:00</published><updated>2013-04-08T23:28:44.414-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-08T23:28:44.414-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSON" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><category scheme="http://www.blogger.com/atom/ns#" term="Objects" /><title>Convert custom iOS object to JSON string</title><summary>Well if you have done programming in Java you will find that its surprisingly difficult in Objective C to convert your Objects to JSON string. The iOS SDK does provide the NSJSONSerialization class so that you can convert Foundation objects to JSON but it comes with limitations.




An object that may be converted to JSON must have the following properties


The top level object is an NSArray or </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3462715496463479981/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/convert-custom-ios-object-to-json-string.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3462715496463479981?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3462715496463479981?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/convert-custom-ios-object-to-json-string.html" title="Convert custom iOS object to JSON string" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-UPN9bUVv8ME/UWN8cefn6vI/AAAAAAAADOI/7maWhIY1sOI/s72-c/Convert+custom+iOS+object+to+JSON+string.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUABQng7fCp7ImA9WhBWEU4.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-2421894964258122490</id><published>2013-04-04T23:49:00.000-04:00</published><updated>2013-04-04T23:49:13.604-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-04T23:49:13.604-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UITableView" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS Table View Example</title><summary>UITableView class is used for display and editing List data similar to a ListView in Android. A table view is made up of zero or more sections, each with its own rows. Sections are identified by their index number within the table view, and rows are identified by their index number within a section. Any section can optionally be preceded by a section header, and optionally be followed by a </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/2421894964258122490/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/ios-table-view-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2421894964258122490?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2421894964258122490?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/ios-table-view-example.html" title="iOS Table View Example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-kpcEHhPGRPI/UV45_2J-mPI/AAAAAAAADNw/wWHkYAkkC64/s72-c/iOS+Table+View+Example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkQNSHc_fyp7ImA9WhBXGUs.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-1843039225538185924</id><published>2013-04-02T23:39:00.000-04:00</published><updated>2013-04-02T23:39:59.947-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-02T23:39:59.947-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Activity" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Menu" /><title>Android common menu options for multiple activities</title><summary>Android menu options provide user with actions and other options to choose from the action bar of the screen. Some of these actions are common to all the activities for your application, so instead of creating them in each of your activities you can create a BaseActivity that extends the Activity class and does all your menu processing. Then you can extend then base activity class in your </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/1843039225538185924/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/android-common-menu-options.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1843039225538185924?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1843039225538185924?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/android-common-menu-options.html" title="Android common menu options for multiple activities" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-mgNhMTJOWds/UVuJHYLWKbI/AAAAAAAADNQ/dafqKLAY_Ds/s72-c/Android+common+menu+options+for+multiple+activities.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0YCQH85eip7ImA9WhBXEEg.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-6752787397644448956</id><published>2013-03-23T12:12:00.000-04:00</published><updated>2013-03-23T12:12:41.122-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-23T12:12:41.122-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IFS" /><category scheme="http://www.blogger.com/atom/ns#" term="iSeries" /><category scheme="http://www.blogger.com/atom/ns#" term="AS400" /><category scheme="http://www.blogger.com/atom/ns#" term="File" /><title>Find and Replace characters in IFS file on iSeries(AS400)</title><summary>Lets say you received a XML, CSV, TXT or any other type of file in the IFS directory and before processing the file and exporting the data to a DB2 database you want to manipulate it. Its very easy with the help of QSHELL sed command, here is how

&gt; echo 'Today is Monday' | sed "s/Mon/Sun/"  
  Today is Sunday                            
  $  


In the above example we are taking a string and </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/6752787397644448956/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/03/find-and-replace-characters-in-ifs-file.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/6752787397644448956?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/6752787397644448956?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/03/find-and-replace-characters-in-ifs-file.html" title="Find and Replace characters in IFS file on iSeries(AS400)" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;C0cBQHk_eyp7ImA9WhBQFUU.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-9084047885155159364</id><published>2013-03-18T00:30:00.000-04:00</published><updated>2013-03-18T00:30:51.743-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-18T00:30:51.743-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Color" /><category scheme="http://www.blogger.com/atom/ns#" term="ListView" /><category scheme="http://www.blogger.com/atom/ns#" term="Row" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><title>Android SimpleCursorAdapter alternate Row Color example</title><summary>To change the background color of a row in ListView you have to use a custom Adapter. In this example we display a basic ListView from SQLite database using the SimpleCursorAdapter which by default doesn't have the zebra stripes on the rows. So to achieve our alternate colors for each row we extend the SimpleCursorAdapter to create a custom class and override the getView method.










Source </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/9084047885155159364/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/03/android-simplecursoradapter-alternate-row-color.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/9084047885155159364?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/9084047885155159364?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/03/android-simplecursoradapter-alternate-row-color.html" title="Android SimpleCursorAdapter alternate Row Color example" /><author><name>BetterThanZero</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-GCTSgHuzRKw/UUZlpFjj8II/AAAAAAAADM4/wpsXj6no7Fs/s72-c/Android+SimpleCursorAdapter+alternate+Row+Color+example.png" height="72" width="72" /><thr:total>0</thr:total></entry></feed>
