In: Tips and Tricks, Tools
There are cases you need to check the activity of the MSI installer during the installation to check the details like if it overwrites the file or just skip it, the version of the files being installed, the target paths, etc.. Just follow these steps... [More]
In: Tips and Tricks, Windows Forms
Treeview.Nodes.Find() only search nodes by its name not text to use this you need to name your node the same as your text which has a lot of limitation like you can not enter white space and other special character. This is a snippet on how to search node by text (node.Text) and wildcard search. [More]
In: iPhone, Mobile, Tips and Tricks
Contains some snippets to take advantage iPhone Platform Services in your browser based mobile applications like launching Email, SMS, and Google map applications. [More]
In MVC 4 Mobile project, the default viewport of the layout is width=device-width. This tells the mobile browser to zoom into the page before resizing and apply the width based on the captured width. The issue is that when you switch to landscape mode, the portrait width retains that leaves empty space at the right side and it does not allow the width to automatically resize with the landscape width.
In jQuery Mobile pageinit is an event equivallent to document.ready event of the web page and triggered when the page is loaded. Page in jQuery Mobile referrs to a div with data-role-"page", during page transition jQuery mobile only grabs the page instead of the entire content of the web page then appends the content in body of the current web page. In this case traditional $(document).ready() does not trigger during page transition because of this transition behavior and this is where pageinit comes into the picture.
In: HTML5, Tips and Tricks, Mobile
To automatically launch device's call when you click a link or a button is simple as mailto reference. In the case of mobile numbers just use tel in anchor's href attribute. Here is the syntax
<a href="tel:<phone number>"> Call Me </a>
<a href="tel:+639171112222">Call Me</a>
Above sample will call the phone number +639171112222 defined in href when call me link is clicked.
I tested this using iPhone 3 and 4 and it works like a charm.
Hope this helps
I encountered this issue when I want to set the default page/dialog transition to slide. Default transition of jQuery mobile is fade because this is the only transition can be applied to device that does not support 3D like Android 2.X. Transition is the event when you move from one page to another. To set the default transition I need to set the defaultPageTransition and defaultDialogTransition of jQuery mobile to slide in mobileinit event.
The reason why I want this to be the default transition that way I dont need to declare the data-transition="slide" to each anchor or button that links to another page or dialog.
SQL Server experess does not includes SQL Server Agent that manages SQL jobs. In this case we could not create job that will manage the schedule of backup. We can create backup manually by using SQL Server Express Management Studio backup task or by creating a script that you can run in management studio.
With the absence of SQL Server Agent we can use Windows built-in Scheduled Tasks in scheduling backup and combination of batch script and osql command line to run the backup. Follow the steps below to create scheduled backup for SQL express. [More]
This will show simple trick to insert rows into a table without defining table columns. This is useful in caching data, temporary storage, and if you are tiered of defining columns of your temporary table :) [More]
In: Tips and Tricks, Windows Mobile
I'm working on a mobile project (interfaced to a laser device) that requires me to serialize-deserialize objects for queuing purposes. Serializing objects in XML will have some performance penalties and requires extra step before I can dump it in the queue. Unlike binary serialization its more compact and has less payload.
One major problem I'm facing is that Windows Mobile CE 6.0 it does not supports Binary Serialization so I created my simple Binary Serialization-Deserialization method to serialize object I need to push into the queue.
I was assigned last year to design applicaiton to accommodate high volume transactions and able to generate trending reports and statistics.
My knowledge in Dimensional Modeling help me decide to adopt Fact Table in normal database to isolate reporting data and improve querying performance.
Using fact table does not always means you are building a data warehouse but its a design decision to improve data mining and query performance. [More]
There are cases we want to concatenate the result of our query to display single row result. Normally we use cursor to concatenate query results but cursor is a very expensive query and complicated to use. [More]
In: MVC, Security, Tips and Tricks
Create MVC attribute to restrict non-AJAX call to the endpoint. [More]
In: Tips and Tricks, Fiddler
I use fiddler to view session, request, and response but I could not see the sessions coming from localhost. [More]