<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/properties</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 19:02:38 GMT</pubDate>
<item>
<title>(Groovy) Load HSQLDB connection parameters from .properties file in groovlet - alces</title>
<link>http://snipplr.com/view/69940/load-hsqldb-connection-parameters-from-properties-file-in-groovlet/</link>
<description><![CDATA[ <p>Example of using .properties file for get database connection parameters into script</p> ]]></description>
<pubDate>Thu, 14 Feb 2013 18:11:53 GMT</pubDate>
<guid>http://snipplr.com/view/69940/load-hsqldb-connection-parameters-from-properties-file-in-groovlet/</guid>
</item>
<item>
<title>(CSS) Fixed Heading Scrollable Table Simulation - COBOLdinosaur</title>
<link>http://snipplr.com/view/69368/fixed-heading-scrollable-table-simulation/</link>
<description><![CDATA[ <p>Uses the table display properties in div tags to merge the attributes of multiple tags.</p> ]]></description>
<pubDate>Sun, 06 Jan 2013 05:33:14 GMT</pubDate>
<guid>http://snipplr.com/view/69368/fixed-heading-scrollable-table-simulation/</guid>
</item>
<item>
<title>(JavaScript) JSON Tree(1 function 15 lines)Nested Ul from single or multidimensional json object - halk</title>
<link>http://snipplr.com/view/67767/json-tree1-function-15-linesnested-ul-from-single-or-multidimensional-json-object/</link>
<description><![CDATA[ <p>Any valid json object will be recursively traversed building a nested unordered list of its properties and their values.  This example parses the json entered in the text area into an object that is passed to the json_tree() function.  I use the twitter bootstrap to make collapsible trees.  That is the purpose of thee css and the random string i generate.  I left it in as an example of how you might style the returned list.  This is very much a work in progress so if you have any suggestions please post a comment.  I have posted the entire html for a working example page just create the file and open it in your browser.(make sure your json validates - http://jsonlint.com - only valid json will produce a tree)</p> ]]></description>
<pubDate>Wed, 17 Oct 2012 04:48:13 GMT</pubDate>
<guid>http://snipplr.com/view/67767/json-tree1-function-15-linesnested-ul-from-single-or-multidimensional-json-object/</guid>
</item>
<item>
<title>(Maxscript) RPManager : Control multiple object properties with single object for faster rpmanager performance - reform</title>
<link>http://snipplr.com/view/66097/rpmanager--control-multiple-object-properties-with-single-object-for-faster-rpmanager-performance/</link>
<description><![CDATA[ <p>A big thanks to Grant from RPManager for this: (copied from rpmanager forums)

First, add a single object to a capture set. Define the properties for this object as if it is your 'capture set global settings' control, and per pass setup what you want per pass for the settings of all objects you want to control.
 
Then, deselect your control object, and select all the objects you want controlled and then last of all select the control object again (important you select it last), and then evaluate this in a maxscript window: 

Then restore you passes and marvel that all the objects properties are set (I tried it on some spheres, with box mode and RPMMaterial, so maybe try that first in case it doesn't work in other cases. I suspect it will though)
 
This works for per object RPMMaterial too, if you have RPMMaterial captured, and each object has a different rpmmaterial, each will have its own mat restored.
 
To update the state of the captured properties, simply edit that single objects properties.</p> ]]></description>
<pubDate>Thu, 12 Jul 2012 21:46:38 GMT</pubDate>
<guid>http://snipplr.com/view/66097/rpmanager--control-multiple-object-properties-with-single-object-for-faster-rpmanager-performance/</guid>
</item>
<item>
<title>(Maxscript) List current render properties and output into a new maxscript window - reform</title>
<link>http://snipplr.com/view/66083/list-current-render-properties-and-output-into-a-new-maxscript-window/</link>
<description><![CDATA[ <p>Thanks to Grant from RPManager for writing and sharing this script.</p> ]]></description>
<pubDate>Thu, 12 Jul 2012 01:08:16 GMT</pubDate>
<guid>http://snipplr.com/view/66083/list-current-render-properties-and-output-into-a-new-maxscript-window/</guid>
</item>
<item>
<title>(Java) Get String from file-backed Properties - spupy</title>
<link>http://snipplr.com/view/63050/get-string-from-filebacked-properties/</link>
<description><![CDATA[ <p>Loads Properties from a file and retrieves a single String property.</p> ]]></description>
<pubDate>Sat, 04 Feb 2012 03:46:35 GMT</pubDate>
<guid>http://snipplr.com/view/63050/get-string-from-filebacked-properties/</guid>
</item>
<item>
<title>(PHP) PHP Read-Only Public Properties - phpexpert</title>
<link>http://snipplr.com/view/62924/php-readonly-public-properties/</link>
<description><![CDATA[ <p>I like using public properties, as they greatly aid in API development and proper encapsulation.  Here's my solution for having the ease of public variable getting without the dangers of public variable setting.</p> ]]></description>
<pubDate>Tue, 31 Jan 2012 09:14:46 GMT</pubDate>
<guid>http://snipplr.com/view/62924/php-readonly-public-properties/</guid>
</item>
<item>
<title>(iPhone) New iOS 5 API: Customize UINavigationBar Background Property with EASY function!!! - codeRefiner</title>
<link>http://snipplr.com/view/61401/new-ios-5-api-customize-uinavigationbar-background-property-with-easy-function/</link>
<description><![CDATA[ <p>Here is a nice function you can use to implement a custom background for your UINavigation Bars

Simply make two images in photoshop: 

32 x 32 
44 x 44 

and name them whatever you want. 

put them in your iPhone project by dragging and dropping them from the desktop or another directory. 

If need be check the Copy Group Destination files in folder line to add the two image files to your project. 

Make sure you replace the two lines that create the UIImages with your image names


Copy And paste the function into your app delegate right above applicationDidFinishLaunchingWithOptions: 

then simply call 

[self customizeAppearance]; inside your app delegate and...

voila, enjoy :)</p> ]]></description>
<pubDate>Thu, 01 Dec 2011 12:28:55 GMT</pubDate>
<guid>http://snipplr.com/view/61401/new-ios-5-api-customize-uinavigationbar-background-property-with-easy-function/</guid>
</item>
<item>
<title>(Java) Struts2 Dynamic Text into Bundle Message - lucaborace</title>
<link>http://snipplr.com/view/58086/struts2-dynamic-text-into-bundle-message/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 22 Aug 2011 20:14:39 GMT</pubDate>
<guid>http://snipplr.com/view/58086/struts2-dynamic-text-into-bundle-message/</guid>
</item>
<item>
<title>(C#) SharePoint 2010 Developing Custom Web Part - nickaranz</title>
<link>http://snipplr.com/view/57843/sharepoint-2010-developing-custom-web-part/</link>
<description><![CDATA[ <p>Great tutorial for getting started with SharePoint custom web parts</p> ]]></description>
<pubDate>Tue, 16 Aug 2011 02:49:15 GMT</pubDate>
<guid>http://snipplr.com/view/57843/sharepoint-2010-developing-custom-web-part/</guid>
</item>
<item>
<title>(Java) Load file from classpath - cupakob</title>
<link>http://snipplr.com/view/54711/load-file-from-classpath/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 01 Jun 2011 16:49:57 GMT</pubDate>
<guid>http://snipplr.com/view/54711/load-file-from-classpath/</guid>
</item>
<item>
<title>(Java) frontend caching Liferay - Rito</title>
<link>http://snipplr.com/view/54644/frontend-caching-liferay/</link>
<description><![CDATA[ <p>Properties for caching.</p> ]]></description>
<pubDate>Tue, 31 May 2011 21:26:37 GMT</pubDate>
<guid>http://snipplr.com/view/54644/frontend-caching-liferay/</guid>
</item>
<item>
<title>(JavaScript) Checking Object Properties - ramonlechuga</title>
<link>http://snipplr.com/view/50276/checking-object-properties/</link>
<description><![CDATA[ <p>http://blog.ramonlechuga.com/2010/10/20/checking-object-structure/

The Array</p> ]]></description>
<pubDate>Tue, 08 Mar 2011 07:25:55 GMT</pubDate>
<guid>http://snipplr.com/view/50276/checking-object-properties/</guid>
</item>
<item>
<title>(ActionScript 3) AS3Query Set Properties - adamcoulombe</title>
<link>http://snipplr.com/view/45741/as3query-set-properties/</link>
<description><![CDATA[ <p>as3query written by nitoyon. http://tech.nitoyon.com/blog/2008/01/as3query_alpha.html

Package download: http://bit.ly/as3query</p> ]]></description>
<pubDate>Wed, 15 Dec 2010 03:51:26 GMT</pubDate>
<guid>http://snipplr.com/view/45741/as3query-set-properties/</guid>
</item>
<item>
<title>(Visual Basic) Reflection extension method to copy properties from one object to another object. - s0lidmetal</title>
<link>http://snipplr.com/view/36094/reflection-extension-method-to-copy-properties-from-one-object-to-another-object/</link>
<description><![CDATA[ <p>This copies all property values from Class A to Class B. Useful if you have many unrelated classes that share similar properties and you are constantly writing code like:

    shirt.Color = pants.Color
    shirt.Pattern = pants.Pattern
    shirt.Style = pants.Style

Could change to:

    pants.CopyPropertiesTo(shirt)</p> ]]></description>
<pubDate>Thu, 24 Jun 2010 05:12:30 GMT</pubDate>
<guid>http://snipplr.com/view/36094/reflection-extension-method-to-copy-properties-from-one-object-to-another-object/</guid>
</item>
<item>
<title>(Visual Basic) Reflection extension method to bind DataRow values to object properties. - s0lidmetal</title>
<link>http://snipplr.com/view/36093/reflection-extension-method-to-bind-datarow-values-to-object-properties/</link>
<description><![CDATA[ <p>This will populate object properties with values from a DataRow. The DataTable column names must match the property names and types of the target class.

Example:

    DataTable dt = new DataTable();
    dt.Columns.Add("TestString", typeof(string));
    dt.Columns.Add("TestBool", typeof(bool));
    dt.Columns.Add("TestInt", typeof(int));
    dt.Columns.Add("TestDouble", typeof(double));
    dt.Columns.Add("TestDecimal", typeof(decimal));
    dt.Columns.Add("TestFloat", typeof(string));

    DataRow dr = dt.NewRow();
    dr["TestString"] = "Hello";
    dr["TestBool"] = false;
    dr["TestInt"] = DBNull.Value;
    dr["TestDouble"] =4.56;
    dr["TestDecimal"] = 7.89m;
    dr["TestFloat"] = "3.14f";
    dt.Rows.Add(dr);

    TestClass tc = new TestClass();
    dr.AssignObjectValue(tc);
            
    class TestClass
    {
        public string TestString { get; set; }
        public bool? TestBool { get; set; }
        public int? TestInt { get; set; }
        public double TestDouble { get; set; }
        public decimal TestDecimal { get; set; }
        public float TestFloat { get; set; }
    }</p> ]]></description>
<pubDate>Thu, 24 Jun 2010 05:04:11 GMT</pubDate>
<guid>http://snipplr.com/view/36093/reflection-extension-method-to-bind-datarow-values-to-object-properties/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Properties Method - adamcoulombe</title>
<link>http://snipplr.com/view/34021/as3-properties-method/</link>
<description><![CDATA[ <p>This method allows you to pass an object to a movieclip to quickly apply properties rather than tediously typing out each line.</p> ]]></description>
<pubDate>Fri, 07 May 2010 08:53:36 GMT</pubDate>
<guid>http://snipplr.com/view/34021/as3-properties-method/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 flash.system.Capabilities Properties - adrianparr</title>
<link>http://snipplr.com/view/31781/as3-flashsystemcapabilities-properties/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 14 Apr 2010 09:48:53 GMT</pubDate>
<guid>http://snipplr.com/view/31781/as3-flashsystemcapabilities-properties/</guid>
</item>
<item>
<title>(Java) Load properties - dalcacer</title>
<link>http://snipplr.com/view/29490/load-properties/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 09 Mar 2010 08:41:32 GMT</pubDate>
<guid>http://snipplr.com/view/29490/load-properties/</guid>
</item>
<item>
<title>(JavaScript) JavaScript : Alert all the properties of an object - aindrei</title>
<link>http://snipplr.com/view/26519/javascript--alert-all-the-properties-of-an-object/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 15 Jan 2010 14:12:16 GMT</pubDate>
<guid>http://snipplr.com/view/26519/javascript--alert-all-the-properties-of-an-object/</guid>
</item>
</channel>
</rss>