Tutorial by Examples: c

DayPilot Scheduler widget displays a time line for multiple resources. Supports AJAX and HTML5. Automatic and manual localization. Full CSS styling support
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %> <DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server" DataStartField="eventstart" DataEndField="eventend" ...
ProGuard allows the developer to obfuscate, shrink and optimize his code. #1 The first step of the procedure is to enable proguard on the build. This can be done by setting the 'minifyEnabled' command to true on your desired build #2 The second step is to specify which proguard files are we using...
Everybody loves twitter bootstrap, but some of us don't like it's default design. So here's a simple guide on how to start customizing boostrap's design. Twitter boostrap when cloned provides a set of default css files which we can override. The mail css file that we need to override is the boostra...
You can create a new Repository where ever you want, but it's recommended to create them in a seperate Repository folder. While you could name the Repository file and class as you wish, it's recommended to name the Repository EntityNameRepository, to that you could quickly find those in your folder...
If you want to use the MySQL command IN() in the QueryBuilder, you can do it with the in() function of the ExpressionBuilder class. // get an ExpressionBuilder instance, so that you $expressionBulder = $this->_em->getExpressionBuilder(); $qb = $this->_em->createQueryBuilder() ->se...
A Bootstrap dropdown is a Bootstrap component that allows an HTML element trigger the display of a sub-menu dropdown upon the element being clicked. Here is a basic HTML usage example: <div class="dropdown"> <button id="dLabel" type="button" data-toggle=&q...
Create an HTML file (in this example libraries/turf.html) with the library you want to load: <script src="../../bower_components/turf/turf.min.js"></script> Import the HTML file (libraries/turf.html) in your component with the rest of your imports: <link rel...
def make_unicode(data): if type(data) != unicode: data = data.decode('utf-8') return data else: return data
In PubNub JavaScript v3, you could implement a unique callback for every channel that you subscribed to as long as you called the subscribe function for each channel and implemented the callback in that subscribe like this: var pubnub = new PubNub({ publishKey: "your-pub-key", s...
Ever wondered why you cannot use Assert.Equals() for both Nunit and MSTest. If you have not then maybe as a start you need to be aware that you cannot use this method. Instead you would use Assert.AreEqual() to compare two objects for equality. The reason here is very simple. Like any class the Ass...
Say you have the following model: public class foo { [Required] public string Email { get; set; } [Required] public string Password { get; set; } [Required] public string FullName { get; set; } } But you want to exclude FullName from the modelvalidation becaus...
When your Bluetooth LE Watcher's callback is triggered, the eventArgs include an RSSI value telling you the received signal strength (how strong the private async void OnAdvertisementReceived(BluetoothLEAdvertisementWatcher watcher, BluetoothLEAdvertisementReceivedEventArgs eventArgs) { // Th...
It is very common that during development, one may find very useful to lock/unlock the device screen during specific parts of the code. For instance, while showing a Dialog with information, the developer might want to lock the screen's rotation to prevent the dialog from being dismissed and the cu...
/** * @author piotrek1543 * * This example provides a specific UI testing problem and how it is already solved * with Google's Espresso. Notice that I used also Spoon framework, as Espresso * lacks of taking screenshots functionality. */ @RunWith(AndroidJUnit4.class) public class M...
It depends on kind of hosting that you have: If you have SSH console, then you can do it on hosting after step 2, if you haven't then do it locally: run command php app/console cache:clear --env=prod'. Suppose you have on you hosting folders youdomain/public_html, so in public_html m...
Suppose you have a table and you want to change one of this table primary id. you can use the following scrpit. primary ID here is "PK_S" begin for i in (select a.table_name, c.column_name from user_constraints a, user_cons_columns c where a.CONSTRAINT_TYPE...
Suppose you have the table T1 and it has relation with many tables and its primary key constraint name is "pk_t1" you want to disable these foreign keys you can use: Begin For I in (select table_name, constraint_name from user_constraint t where r_constraint_name='pk_t1') loop E...
As previous example, this script request elevation if needed. We ask the user for credentials avoiding the UAC prompt. @echo off cls & set "user=" & set "pass=" :: check if we have administrative access :: ----------------------------------------------------------...
Out line for details find a theme you like in the gallery install theme activate theme *need to add screen shots.

Page 516 of 826