Tutorial by Examples

Example for date or time range.
Consider the table dbo.state_zip, which contains the columns city, statecode and zipcode and has over 80,000 records. Parameters AttributeRequiredTypeDefaultDescriptionquerytruestringThe variable name of a query object.startrowfalsenumericThe starting row index of the query object.endrowfalsenumer...
Consider this list: <cfset foo = "one,two,three,four" /> Tag syntax Parameters AttributeRequiredDefaultDescriptionlisttrueA list object. The variable must be evaluated (wrapped with ##)indextrueThe current element of the list. <cfoutput> <cfloop list="#foo#&...
The ability to directly use an array object with cfloop was added in ColdFusion 8. Consider this array; <cfset aFoo = [ "one" , "two" , "three" , "four" ] /> Tag syntax ColdFusion 8 through current Using the attribute inde...
<cfloop list="#myFile#" index="FileItem" delimiters="#chr(10)##chr(13)#"> <cfoutput> #FileItem#<br /> </cfoutput> </cfloop>
Consider this structure: <cfset stFoo = { a = "one" , b = "two" , c = "three" , d = "foue" } /> Tag syntax Parameters Notice the use of the attribute item instead of index. AttributeRequiredTypeDefaultDescriptioncollection...
To split a JID into its component parts (the localpart, domainpart, and resourcepart), the following algorithm should be used (where the localpart is represented by lp, the resourcepart by rp, and the domainpart by dp and ∈ is used to check if the given character is included in the string): Note ...
In a module (library or application) where you need the aar file you have to add in your build.gradle the repository: repositories { flatDir { dirs 'libs' } } and add the dependency: dependencies { compile(name:'nameOfYourAARFileWithoutExtension', ext:'aar') } Pay a...
The aar file doesn't contain the transitive dependencies and doesn't have a pom file which describes the dependencies used by the library. It means that, if you are importing a aar file using a flatDir repo you have to specify the dependencies also in your project. You should use a maven repositor...
The XMPP network can be thought of as a bidirected graph with servers (S) operating in a mesh, clients (C) clustered about their local server, and streams represented by extraverted edges: When a client wants to send data (eg. a message or presence information) across the network to another clien...
In some cases, you want to show your users a UIPickerView with predefined contents for a UITextField instead of a keyboard. Create a custom UIPickerView At first, you need a custom wrapper-class for UIPickerView conforming to the protocols UIPickerViewDataSource and UIPickerViewDelegate. class My...
Similar to SQL for doing your first steps in MDX you need to start by installing a Server. There are several servers available that are compatible with MDX (check wikipedia page) with a couple of them free or with a community edition. Once you've your server you'll have to create your schema, you ...
NSString *someString = @" Objective-C Language \n"; NSString *trimmedString = [someString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; //Output will be - "Objective-C Language" Method stringByTrimmingCharactersInSet returns a new str...
A JID consists of three parts: localpart@domainpart/resourcepart. Full JIDs (always have a resource part) [email protected]/orchard example.org/da863ab Bare JIDs (always without resource part) [email protected] example.org
Data attributes were introduced in HTML5 which is supported by all modern browsers, but older browsers before HTML5 don't recognize the data attributes. However, in HTML specifications, attributes that are not recognized by the browser must be left alone and the browser will simply ignore them when...
JsonReader reads a JSON encoded value as a stream of tokens. public List<Message> readJsonStream(InputStream in) throws IOException { JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8")); try { return readMessagesArray(reader); } finall...
Swift let color = UIColor.redColor() let size = CGSize(width: 200, height: 200) UIGraphicsBeginImageContextWithOptions(size, false, 0.0) CGContextSetFillColorWithColor(UIGraphicsGetCurrentContext(), color.CGColor) CGContextFillRect(UIGraphicsGetCurrentContext(), CGRect(origin: .zero, size: si...
The filesystem configuration file is located at config/filesystems.php. Within this file you may configure all of your "disks". Each disk represents a particular storage driver and storage location. Example configurations for each supported driver is included in the configuration file. So,...
The Storage facade may be used to interact with any of your configured disks. Alternatively, you may type-hint the Illuminate\Contracts\Filesystem\Factory contract on any class that is resolved via the Laravel service container. Retrieving A Particular Disk $disk = Storage::disk('s3'); $disk = ...
Laravel's Flysystem integration provides drivers for several "drivers" out of the box; however, Flysystem is not limited to these and has adapters for many other storage systems. You can create a custom driver if you want to use one of these additional adapters in your Laravel application....

Page 394 of 1336