Enable Right Click – Copy in protected web pages

Problem : Some websites use javascripts to block mouse right click so that you will not be able to copy text or images from the site. Solution: If you are using google chrome , add the extension called Allow Copy. Features of Allow Copy: Allow Copy will re-enable select, copy, paste and right click in any webpage using any copy protection. Just click on extension icon to enable it on any page!    

» Read more

Install Oracle DB Express and Connect to ASP.Net MVC C# Using Dapper and ODP.net

Tools Used : Oracle DB Express Toad for Oracle ( To explore database– You can also user Oracle Developer)  Visual Studio .net 2013 This tutorial covers following points. Install Oracle DB Express.  ==< Link http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html Create a user  — Refer my post => Create user and Schema Create a Schema — Refer my post => Create user and Schema Create a Table ALTER TABLE HPUTTUR.EMPLOYEE DROP PRIMARY KEY CASCADE; DROP TABLE HPUTTUR.EMPLOYEE CASCADE CONSTRAINTS; CREATE TABLE HPUTTUR.EMPLOYEE ( EMPLOYEE_ID NUMBER NOT NULL, EMPLOYEE_NAME VARCHAR2(200 CHAR) NOT NULL, EMPLOYEE_MOBILE VARCHAR2(50 BYTE) NOT NULL, EMPLOYEE_DEPARTMENT VARCHAR2(50 BYTE) NOT NULL ) TABLESPACE SYSTEM RESULT_CACHE (MODE DEFAULT) LOGGING NOCOMPRESS NOCACHE NOPARALLEL MONITORING; CREATE UNIQUE INDEX HPUTTUR.EMPLOYEE_PK ON HPUTTUR.EMPLOYEE (EMPLOYEE_ID) LOGGING TABLESPACE SYSTEM NOPARALLEL;  CREATE OR REPLACE TRIGGER HPUTTUR.EMPLOYEE_TRG BEFORE INSERT ON HPUTTUR.EMPLOYEE REFERENCING NEW AS New OLD AS Old FOR EACH ROW BEGIN — For Toad: Highlight column EMPLOYEE_ID :new.EMPLOYEE_ID := EMPLOYEE_SEQ.NEXTVAL; END EMPLOYEE_TRG; / ALTER TABLE HPUTTUR.EMPLOYEE ADD ( CONSTRAINT EMPLOYEE_PK PRIMARY KEY (EMPLOYEE_ID) USING INDEX HPUTTUR.EMPLOYEE_PK ENABLE VALIDATE); Insert into HPUTTUR.EMPLOYEE (EMPLOYEE_ID, EMPLOYEE_NAME, EMPLOYEE_MOBILE, EMPLOYEE_DEPARTMENT) Values (1, ‘Haneef Puttur’, ‘354354354345’, ‘Computer’); Insert into HPUTTUR.EMPLOYEE (EMPLOYEE_ID, EMPLOYEE_NAME, EMPLOYEE_MOBILE, EMPLOYEE_DEPARTMENT) Values (2, ‘Minnu’, ‘y676756565’, ‘Computer’); Insert into HPUTTUR.EMPLOYEE (EMPLOYEE_ID, EMPLOYEE_NAME, EMPLOYEE_MOBILE, EMPLOYEE_DEPARTMENT) Values (3, ‘Minaal Haneef’, […]

» Read more

Integrate Croppic to ASP.NET MVC C# – For Cropping Passport Size Picture 3.5cm X 4.5 Cm

Solution : Integrate Croppic to ASP.NET MVC C# , so that user can upload an image and crop, zoom , rotate the image and save to the assigned folder. Step 1: Create one empty Project ASP.NET Web Application in Visual Studio 2013 Step 2 : Download croppic (Image cropping jquery plugin from croppic.net == > Link  http://croppic.net/croppic.zip Please note that I have edited the css files to match the folder structure. Please download the entire solution from github and follow it. Step 3 : Extract The croppic Folder inside the scripts folder and make sure the folder structure as shown Step 4: Create a controller called Croppic and paste following content. using Newtonsoft.Json; using System; using System.Drawing; using System.Drawing.Drawing2D; using System.IO; using System.Web; using System.Web.Mvc; //Coding by Haneef puttur namespace Croppic.Controllers { public class CroppicController : Controller { public ActionResult Index() { return View(); } [HttpPost] public string UploadOriginalImage(HttpPostedFileBase img) { string folder = Server.MapPath(“~/Temp”); string extension = Path.GetExtension(img.FileName); string pic = System.IO.Path.GetFileName(Guid.NewGuid().ToString()); var tempPath = Path.ChangeExtension(pic, extension); string tempFilePath = System.IO.Path.Combine(folder, tempPath); img.SaveAs(tempFilePath); var image = System.Drawing.Image.FromFile(tempFilePath); var result = new { status = “success”, width = image.Width, height = image.Height, url = “../Temp/” + tempPath }; return JsonConvert.SerializeObject(result); […]

» Read more

XENSERVER – Free Open Source Virtualization Platform

XenServer is the leading open source virtualization platform, powered by the Xen Project hypervisor and the XAPI toolstack. It is used in the world’s largest clouds and enterprises. XENSERVER FEATURES XenServer is an enterprise-class, cloud-proven, virtualization platform that delivers all of the critical features needed for any server and datacenter virtualization implementation.  The following list summarizes some of the key capabilities of XenServer, and a complete technical FAQ can be found on the Citrix support web site. CORE PLATFORM XenServer is based on the Xen Project™ hypervisor.  The Xen Project hypervisor is a bare metal virtualization platform used by XenServer to deliver near native application performance for x86 workloads in an Intel and AMD environment. MANAGEMENT CAPABILITIES MULTI-SERVER MANAGEMENT XenCenter provides all the virtual machine management, monitoring and general administration, and general administration functions in a single interface. Administrators can easily manage hundreds of virtual machines from a centralized, highly available management console that installs on any Windows® desktop. The resilient distributed management architecture in XenServer distributes server management data across the servers in a resource pool to ensure that there is no single point of management failure. ROLE BASED ADMINISTRATION Role-based administration improves security and enables delegated access, control, and usage of XenServer […]

» Read more

How to Clean up names and split names in Excel as First , Middle and Last Name

Scenario : You have a excel file with one column which is full name. It needs to clean up by trimming extra spaces, convert into sentense case and finally split into three names . Example : Orginal Name : MAHAMMAD HanEEF BALLeri PUttur    = > Firstname : Mahammad  Middlename : Haneef Balleri  Lastname : Puttur Steps Put the Row Names in Column A Column B , put a formula to trim and also to convert to Sentence Case  B2 =PROPER(TRIM(A2)) column C , put a formula to extract the first name from B2 .  C2=LEFT(B2,SEARCH(” “,B2,1)) column D , Put a formula to extract the Middle Name from B2 .   D2 = MID(B2,((SEARCH(” “,B2,1))),(LEN(B2)-((SEARCH(” “,B2,1)))-(LEN(B2)-FIND(“|”,SUBSTITUTE(B2,” “,”|”, LEN(B2)-LEN(SUBSTITUTE(B2,” “,””))))))) column E, Put a formula to extract the Last Name from B2,  E2 = RIGHT(B2,LEN(B2)-FIND(“|”,SUBSTITUTE(B2,” “,”|”, LEN(B2)-LEN(SUBSTITUTE(B2,” “,””))))) Download the sample excel file here :sample_haneef Splitting Full Name into First , Middle and Last name in Oracle Pl/SQL If you wish to achieve the same in oracle use the following trick>   –Firstname select substr (‘Mohammed Hannef Marakkar Puttur’,1,instr(‘Mohammed Hannef Marakkar Puttur’,’ ‘)) from dual; — Last Name select substr (‘Mohammed Hannef Marakkar Puttur’,instr(‘Mohammed Hannef Marakkar Puttur’,’ ‘,-1)) from dual; –Middle Name select […]

» Read more

Installing Ubuntu and Windows 10 Side By Side ASUS ROG G752VT

  Installing Ubuntu side by side with Windows 10 is tricky with ASUS ROG G752VT. After wasting hours on this here is the steps how it worked. Basically this laptop is coming with 2 HDD’s 1TB 7200RPM + 128GB SSD (PCIEG3x4)   Steps For Dual Booting Windows 10 And Ubuntu The steps required for dual booting Windows 10 and Ubuntu are as follows: Backup your Windows 10 operating system (optional but highly recommended) Create a Ubuntu USB drive Enable booting from a USB drive Shrink the Windows 10 partition to make space for Ubuntu Boot into Ubuntu live environment and install Ubuntu Step1 : Disable Secure Boot Windows, hold the Shift key while selecting Restart. Go to Troubleshoot > Advanced Options: UEFI Firmware Settings. Find the Secure Boot setting, and if possible, set it to Disabled. This option is usually in either the Security tab, the Boot tab, or the Authentication tab.   Step2 : Shrink Windows To Make Space For Ubuntu If your computer only has one hard drive you will need to shrink your Windows 10 partition in order to make space for Ubuntu. The tool used for shrinking Windows partitions is “Disk Management”. To start “Disk Management”, right […]

» Read more

Visual Studio 2013 Shortcut keys

Analyze Navigate Backward Shift+Alt+3 Navigate Forward Shift+Alt+4 Architecture New Diagram Ctrl+\, Ctrl+N Architecture Context Menus Add Node Ins Both Dependencies B Incoming Dependencies I Outgoing Dependencies O New Comment Ctrl+Shift+K Ctrl+E, C Remove Del Rename F2 Architecture Designer Navigate To Code F12 Build Build Selection Shift+F6 Build Solution Ctrl+Shift+B F6 Cancel Ctrl+Break Compile Ctrl+F7 Run Code Analysison Solution Alt+F11 Class Diagram Collapse Num – Expand Num + Class View Context Menus Properties Alt+Enter Viewin Page Inspector Ctrl+K, Ctrl+G Misc Commit All Edits Shift+Alt+U Move Left Edgetotheleft Ctrl+Shift+, Move Left Edgetotheright Ctrl+Shift+. Move Right Edgetotheleft Ctrl+Shift+Alt+, Move Right Edgetotheright Ctrl+Shift+Alt+. TSql Editor Clone Query Ctrl+Alt+N TSql Editor Database Combo Shift+Alt+PgDn View File In Script Panel Shift+Alt+PgDn Debug Apply Code Changes Alt+F10 Autos Ctrl+Alt+V, A Ctrl+D, A Ctrl+D, Ctrl+A Break All Ctrl+Alt+Break Breakat Function Ctrl+B Ctrl+D, N Ctrl+D, Ctrl+N Breakpoints Ctrl+Alt+B Ctrl+D, B Ctrl+D, Ctrl+B Call Stack Ctrl+Alt+C Ctrl+D, C Ctrl+D, Ctrl+C Delete All Breakpoints Ctrl+Shift+F9 Launch Alt+F2 Disassembly Ctrl+Alt+D DOMExplorer Ctrl+Alt+V, D Enable Breakpoint Ctrl+F9 Exceptions Ctrl+Alt+E Ctrl+D, E Ctrl+D, Ctrl+E Go To Previous Callor Intelli Trace Event Ctrl+Shift+F11 Capture Frame Ctrl+F12 Start Diagnostics Alt+F5 Graphics Move Pixel Selection Down Shift+Alt+Down Arrow Graphics Move Pixel Selection Left Shift+Alt+Left Arrow Graphics Move […]

» Read more

Create Summary Report in Excel Using PivotTable and PivotChart

PIVOT Table Excel can help you by recommending and then automatically creating PivotTables, which are a great way to summarize, analyze, explore, and present your data. Make sure your data has column headings or table headers, and that there are no blank rows. Scenario : Create a line chart from the available data of a school where the performance of all students are available in excel sheet.  This will enable the school head to measure the department wise performance  and also the overall performance. Task 1: Create %ge performance of each department with category 1-5 View the complete video tutorial here in Youtube.   select the data range by highlighting rows and columns of the data and press OK Drag the columns as shown above Right click on any row -> Show Value as -> % of Row Total Click on any row and click Pivot chart as shown below.   Download the sample excel data file from here.      .

» Read more

Installing Oracle ODBC Driver to Windows 2012 Server R2

Step1:   Download 32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html   After installing the above software create a envirnoment variable called TNS_ADMIN Variable Name :TNS_ADMIN Variable Value : C:\oracle\product\10.2.0\client_2\network\admin  (Make sure path is correct. If your machine is connected to Domain path may differ) Step3: Open C:\Windows\SysWOW64\odbcad32.exe USER DSN –> Add –> Oracle in Ora Clientxxx If you cannot see the TNS service name in drop down means you have not done previous step. You can also check the proper settings by pressing Test Connection and providing the Credentials.    .

» Read more

How to Display Line Numbers in the Editor Visual Studio 2013

Line numbers aren’t added to your code; t hey’re just for reference. If you want line numbers to print, in the Print dialog box, select the Include line numbers check box. To display line numbers in code On the menu bar, choose Tools, Options. Expand the Text Editor node, and then select either the node for the language you are using, or All Languages to turn on line numbers in all languages. Or you can type line number in the Quick Launch box .

» Read more
1 2 3 7