My contemplations and diurnal novelties are publicized here

Archive for April, 2012

Severe pain in back ear and back of head


It is merely for my reference only(Yet Public 🙂 ). (You can use it at your own risk)

Symptoms:-

Having severe pain in right ear seems like a pain in back ear. Also having headache in my half back-head lowering back to throat on right side.

Diagnosis:-

Diagnosed as, referred pain from throat.

Medication:-


Windows 7 built in filtering


Here is an easy but unnoticed (at least for me) built in filtering mechanism in Window 7. Hope this might help you in daily tasks.

 

 

How to host a facebook application into a facebook page tab


  1. Create a new app

  2. Enter App name and app namespace

  3. Enter basic information

  4. Enter app related information ( here the application is hosted via local host)

  5. Page tab and its url her

  6. Now you need to mention on which page this tab should be added

    E.g. www.facebook.com/dialog/pagetab?app_id=YOUR_APPLICATION_ID&next=https://localhost:443/yourapplication/home.aspx

  7. Select the page on which you want to add the tab

  8. Now you can go to your facebook page and use the application from there as a tab.

    That all now you can use your application

The web server process that was being debugged has been terminated by Internet Information Services (IIS) 7.5


Go to IIS server (run – > inetmgr – >Application pools – > Advanced Settings – > either change ping period or permanently disable ping enabled as shown below

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified


I recently run into a problem where I using following connection string for a csv file

this.ConnectionString = @”Driver={Microsoft Text Driver (*.txt; *.csv)};Extensions=asc,csv,tab,txt;Dbq=” + @FolderPath;

But I always give me Data source name not found and no default driver specified error. I was using Window 7, 64 Bit and Office 2010 (it’s 32 bit app) Installed. The suggested solution was to

  1. Uninstall any 32-bit Office apps.
  2. Install the Access 64-bit drivers
  3. Re-install any 32-bit Office apps

If you try to install access 64 bit without un-installing 32 bit office products it gives following error


Un-installing 32-bit office was sort of impossible solution for me, so I opted for another solution

I Opened the registry editor and browse to the location

HKEY_CLASSES_ROOT\Installer\Products\ 00002109030000000000000000F01FEC

Here most of the keys are related to MS office application so I renamed them to include a prefix of “.” E.g .00002109030000000000000000F01FEC


Then I installed Access 64-bit drivers, It worked like a charm. Then I re-booted the system and again renamed all them back to their original name excluding only one shown below.

Other step I have to was to change connection string to

this.ConnectionString = @”Driver={Microsoft Access Text Driver (*.txt, *.csv)};Extensions=asc,csv,tab,txt;Persist Security Info=False;Dbq=” + @FolderPath;

References:-

  1. http://stackoverflow.com/questions/6490543/data-source-name-not-found-and-no-default-driver-specified
  2. http://social.msdn.microsoft.com/Forums/nl-NL/adodotnetdataproviders/thread/abf34eea-1029-429a-b88e-4671bffcee76

How to display extjs label caption horizontally ( display: ‘rotate’ in extjs )


Recently I ran into a problem where I have to change the orientation of label.

(Note: – if you don’t know how to add label to pie chart refer to my previous article here.)

From this

To

I just change this

display: ‘rotate’,

to

display: {

rotate: true,

x: 0,

y: 0

},

jquery based Ajax file upload plugins


  1. http://www.uploadify.com/demos/ (It uses flash)
  2. http://blueimp.github.com/jQuery-File-Upload/
    1. http://www.phpletter.com/contents/ajaxfileupload/doajaxfileupload.php ( file used to upload the image)
  3. http://nixbox.com/demos/jquery-uploadprogress-demo-simple.php
  4. http://valums.com/ajax-upload/
  5. Asp.net based file upload
  6. 1. Plupload

  7. Plupload
  8. Allows you to upload files using HTML5 Gears, Silverlight, Flash, BrowserPlus or normal forms, providing some unique features such as upload progress, image resizing and chunked uploads,  Plupload is currently separated into a Core API  and a jQuery upload queue widget this enables you to either use it out of the box or write your own custom implementation.
  9. 2. SWFUpload jQuery Plugin

  10. SWFUpload jQuery Plugin
  11. Using jQuery (the solution to all things painful), I’ve written a plugin to create a real event dispatcher for SWFUpload without modifying the SWFUpload core.
  12. 3. AJAX File Upload

  13. AJAX File Upload
  14. This AjaxFileUpload Plugin is a hacked version of Ajaxupload plugin created by yvind Saltvik, which is really good enought for normal use. Its idea is to create a iframe and submit the specified form to it for further processing. In this hacked version, it submits the specified file type of input element only rather than an entire form.
  15. 4. Uploadify

  16. Uploadify
  17. Uploadify can also be modified to suits the needs of more advanced developers via the arsenal of custom options that are available. Below are a few examples of different implementations of the Uploadify plugin.
  18. 5. JqUploader

  19. JqUploader
  20. jqUploader is a jquery plugin that substitutes html file input fields with a flash-based file upload widget, allowing to display a progressbar and percentage.
  21. 6. jqUploader Demonstration

  22. jqUploader Demonstration
  23. In this scenario, When the upload is finished, the jquUploader is replaced by a text input field. This makes it easy to then submit your form and save the file path to a database field for instance, along with the rest of the form fields.
  24. 7. Code Samples

  25. Code Samples
  26. This page demonstrates the Form Plugin’s file upload capabilities. There is no special coding required to handle file uploads. File input elements are automatically detected and processed for you.
  27. 8. Ajax Upload

  28. Ajax Upload
  29. This plugin uses XHR for uploading multiple files with progress-bar in FF3.6+, Safari4+, Chrome and falls back to hidden iframe based upload in other browsers, providing good user experience everywhere.
  30. 9. uploadprogress

%d bloggers like this: