11
May
2012
Author: Rod
In: Business
I read one good article of Jessica Hagy - The Six Enemies of Greatness. Click the link to view the article.
Enjoy!
9
May
2012
Author: Rod
In: Tools
Use this tool to create minified version of CSS and Javascript to enhance performance of your web applications. Just follow the steps below.
Copy your javascript or css code in the code textbox
Select type of code to compress
Leave the default options as is.
Click Compress button.
You can copy the compressed code in the Compressed Code textbox or click Download Compressed File or Download Gzipped Compressed File button.
Online Compression Tool
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.
[More]
Encountered "Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005" error when we deploy application using MS Excel components.
MS Excel component(s) are COM componets that can only activated by Administrator, System, and Interactive accounts. When you deploy the application, it is using the identity of the Application Pool being used by the site that causes this issue. I found a good article that explains the details on how to resolve the issue.
[More]
27
Apr
2012
Author: Rod
In: Javascript, Tools, Visual Studio
My teammate sends me the link today. Reading the feedback from my teammate I download and install it. Some neat features of this tools are:
- highlighting the matching opening or closing braces, parenthesis, and brackets
- Adds support for highlighting all instances of the word currently at the cursor. This helps you locate other instances of the method or variables in the code with the same name.
- Adds support for automatically creating outlining regions for JScript blocks
- And more...
[More]
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.
[More]
22
Apr
2012
Author: Rod
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>
Example:
<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
21
Apr
2012
Author: Rod
In: FAQ, Javascript, Tips and Tricks
For the past couple of weeks this is one of FAQ I received - How can we determine the methods and properties of an object in javascript? This is true to custom objects and objects that are not well documented. Thats the reason I create this small article.
Javascript is a dynamic language. You can create properties and mothods at run time and extend existing object with your custom methods. This makes object's members are hard to determine. Like in the case of jQuery, you can extend it anytime you want and thats how jQuery Plug-ins works.
[More]
17
Apr
2012
Author: Rod
In: HTML5, jQuery-Mobile, MVC
In MVC 4 Mobile Project, JQuery Mobile comes with built-in theme A - E that is ready to use. There are cases you want to add or cusomize theme to suite your design or upgrade to the latest version. Follow the steps below to customize your theme.
[More]
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.
[More]
7
Apr
2012
Author: Rod
In: HTML5, jQuery-Mobile, MVC
jQuery simplyfies everything with mobile development that can run on different platform - iphone, android, and ipad to name a few. With jQuery Theme Roller you can design your mobile UI in a fly and with its custom attributes like data-role, data-filter, and data-inset it can add some more flavor on your application. Like for instance when data-filter is set to true, a list search will automatically available for you without extra coding.
jQuery mobile comes with a core CSS library that manages UI rendering and styling that is optimized for mobile interface.
[More]
SSRS returns "...Maxmimum Request Length Exceed..." when deploying the report file.
This happens when you are deploying reports that is greater than 4MB in size which is the default maximum report size to upload
[More]
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]
16
Jul
2011
Author: Rod
In: SQL Server/T-SQL
Filestream enable SQL Server Database to store binary (VARBINARY(MAX)) data into NTFS file system with no impact to SQL DML (Data Manipulation Language). Filestream increases the performance and availability of the database because it take advantage of NT System cache for caching data instead of SQL Server buffer pool that will give extra memory to SQL Server query processing.
[More]
11
Jul
2011
Author: Rod
In: jQuery, La Vida Loca, MVC, Fiddler
I have a jquery code that calls an endpoint to grab the details of the record using $.getJSON(). I have use this code in several of MVC projects without any problem but in my MVC 2 project it does not trigger my callback at all. I thought it was just a JSON formatting issue because the only way the callback may not trigger if you have incorrect JSON format. But when I test it using fiddler the the structure are intact and the endpoint returns the right data.
[More]