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

Installing 64 Bit Oracle Client : Windows 10 – 64 Bit

Scenario : You want to install Oracle Client and ODBC driver in Windows 10 – 64 Bit Files Required : Oracle Instant Client Basic : http://download.oracle.com/otn/nt/instantclient/122010/instantclient-basic-windows.x64-12.2.0.1.0.zip Instant Client Package – ODBC : http://download.oracle.com/otn/nt/instantclient/122010/instantclient-odbc-windows.x64-12.2.0.1.0.zip Step 1 : Download Above 2 Packages. Step 2: Copy all the contents to a single folder and name the folder as “oracle” Step 3: Now copy the folder to c:\ So now the content of c drive should like below Step 4: Now create a folder called tns inside c:\oracle => this folder will be used to save tnsnames.ora file Step 5 : Add TNS_ADMIN variable in Environment Variables TNS_ADMIN  => c:\oracle\tns\ Step 6: Add c:\oracle to the path variable Step 7 : Right click the file c:\oracle\ Step 8 : Now create a sample tns file and save in c:\oracle\tns\ PROD= (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=xxx.oracle.haneefputtur.com (PORT=1521) ) (CONNECT_DATA= (SERVER=dedicated) (SERVICE_NAME=xxx.haneefputtur.com ) ) …. Now your oracle client and odbc driver is ready to use. Step 9 : Create ODBC DSN as follows   Note For 32 Bit Clients Link  for 32 bit Instant Client : http://download.oracle.com/otn/nt/instantclient/122010/instantclient-basic-nt-12.2.0.1.0.zip Link for 32 Bit ODBC Driver : http://download.oracle.com/otn/nt/instantclient/122010/instantclient-odbc-nt-12.2.0.1.0.zip  

» Read more

Error Could not load file or assembly ‘System.Net. ASP.NET MVC C#

Error : Could not load file or assembly ‘System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Could not load file or assembly ‘System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. Solution : To resolve this issue before you publish the file make sure you select Copy Local to True from False If the dll property of the file — copy local is  false means the file will not be copied to bin folder while publishing. Set it to true so that file will be copied to bin folder Screenshot before error:   Solution     This will copy the dlls while publishing to Bin folder      

» Read more

Rotativa :: HTTP Error 401.2 – Unauthorized You are not authorized to view this page

Scenario Using Rotativa as PDF convertor in ASP.NET MVC C# with Active directory login authentication Problem HTTP Error 401.2 – Unauthorized You are not authorized to view this page due to invalid authentication headers Cause : If you use Rotativa.ActionAsPDF it will not pass the header values related to authentication to the new page. So option is to use Rotativa.PartialViewAsPdf Sample Code:   public ActionResult ConvertToPDF(string stdId, string vid) { TestModel model = dbfunctions.GetTestValue(stdId, vid); // send model as partial View Pdf not return new Rotativa.PartialViewAsPdf(“TestPDF”, model); } public ActionResult TestPDF(TestModel model) // model with values { // PartialView(pdf) not View(pdf); return PartialView(model); }          

» Read more

Error installing NuGET Packages Visual Studio 2013 – already has a dependency defined for xxxx

When you install new nuget packages you receive error as below.     In order to resolve this follow this steps.   Close Visual Studio Download Latest version of NuGet Package Manage and Install https://marketplace.visualstudio.com/items?itemName=NuGetTeam.NuGetPackageManagerforVisualStudio2013 Step 3: After installation open the Visual Studio and try to install NuGet Package!!!    

» Read more

c++ function to return mnm of 2 numbers

Condition : numbers should asked when function is executed:   #include <iostream> using namespace std; int minnummber() { // local variable declaration int result, num1, num2; cout << “Enter first number :: “; cin >> num1; cout << “Enter second number :: “; cin >> num2; if (num1 > num2) result = num2; else result = num1; return result; } int main () { cout << “Min is “<<minnummber(); return 0; }

» Read more

Oracle PL/SQL to Send ARABIC Emails with SMTP AUTHENTICATED Server UTL_SMTP

declare TO_EMAIL VARCHAR2(255) := ‘toemailaddress’; FROM_EMAIL VARCHAR2(255) := ‘fromemailaddress’; MAIL_SUBJECT VARCHAR2(255) := ‘Test Subject’; FROM_NAME VARCHAR2(255) := ‘FROM NAME’; EMAIL_MESSAGE VARCHAR2(255) := ‘سؤال اليوم : ما هو الحل ‘; smtp_conn UTL_SMTP.CONNECTION; smtp_username VARCHAR2 (200) := ‘username’; smtp_server VARCHAR2 (60) := ‘smtpserver address’; smtp_password VARCHAR2 (200) := ‘smtp password’; begin smtp_conn := UTL_SMTP.Open_Connection(smtp_server); UTL_SMTP.Helo(smtp_conn, smtp_server); UTL_SMTP.command (smtp_conn, ‘AUTH LOGIN’); UTL_SMTP.command (smtp_conn, UTL_RAW.cast_to_varchar2 (UTL_ENCODE.base64_encode (UTL_RAW.cast_to_raw (smtp_username)))); UTL_SMTP.command (smtp_conn, UTL_RAW.cast_to_varchar2 (UTL_ENCODE.base64_encode (UTL_RAW.cast_to_raw (smtp_password)))); UTL_SMTP.Mail(smtp_conn, FROM_EMAIL); UTL_SMTP.Rcpt(smtp_conn, TO_EMAIL); UTL_SMTP.OPEN_DATA(smtp_conn); UTL_SMTP.WRITE_DATA(smtp_conn, ‘Subject: =?UTF-8?Q?’ || UTL_RAW.CAST_TO_VARCHAR2(UTL_ENCODE.QUOTED_PRINTABLE_ENCODE(UTL_RAW.CAST_TO_RAW(EMAIL_SUBJECT))) ||’?=’ || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(smtp_conn, ‘MIME-version: 1.0’ || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(smtp_conn, ‘Content-Type: text/html;charset=utf-8’ || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(smtp_conn, ‘Content-Transfer-Encoding: quoted-printable ‘|| UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(smtp_conn, ‘Date: ‘ || TO_CHAR(SYSDATE, ‘dd Mon yy hh24:mi:ss’ ) ||’ -0800 (GMT)’ || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(smtp_conn, ‘From: “‘|| FROM_NAME|| ‘”<‘|| FROM_EMAIL|| ‘>’ || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(smtp_conn, ‘To: ‘ || TO_EMAIL || UTL_TCP.CRLF); UTL_SMTP.WRITE_DATA(smtp_conn, UTL_TCP.CRLF); UTL_SMTP.WRITE_RAW_DATA(smtp_conn, UTL_ENCODE.QUOTED_PRINTABLE_ENCODE(UTL_RAW.CAST_TO_RAW(EMAIL_MESSAGE))); UTL_SMTP.WRITE_DATA(smtp_conn, UTL_TCP.CRLF); UTL_SMTP.CLOSE_DATA(smtp_conn); UTL_SMTP.QUIT(smtp_conn); END;

» Read more

C++ Program to Average of 7 Numbers, Average of Odd Numbers and Average of Even numbers

#include <iostream> #include <string> using namespace std; int main() { int numb; float oddcount =0; float evencount = 0; float oddsum = 0; float evensum = 0; float allsum = 0; for (int k =1; k <= 7 ; k++) { cout << “Enter Number ::”<<k << endl; cin >> numb ; allsum = allsum + numb; while( numb % 2 == 0) { evencount = evencount+1; evensum = evensum + numb; break; } while( numb % 2 != 0) { oddcount = oddcount+1; oddsum = oddsum + numb; break; } } cout << “Average of All ::”<<allsum / 7 << endl; if (evencount != 0 ) cout << “Average of Even Numbers ::”<<evensum / evencount << endl; else cout << “No Even Numbers entered”<< endl; if (oddcount != 0) cout << “Average of Odd Numbers ::”<<oddsum / oddcount << endl; else cout << “No Odd Numbers entered”<< endl; }

» Read more

Unlock / Factory Reset Dell Venue 8 3840 – Tested Solution

Issue : Hard Reset Dell Venue 8 3840 Unlock Forgotten Pin Reinstall OS Unbrick Table   Required : Windows 7 , 32 Bit  [64 Bit did not work for me ] Software : Download All contents of This Folder from Dell Support site http://opensource.dell.com/releases/Venue_8_3840_Merrifield/developer-edition/FlashTool/ If Wifi Model Table :  Download http://opensource.dell.com/releases/Venue_8_3840_Merrifield/developer-edition/A195/Unbrick/YTD802A519500-2014-07-16-22.tgz If Lte Model Download : http://opensource.dell.com/releases/Venue_8_3840_Merrifield/developer-edition/A195/Unbrick/YTP802A119500-2014-07-16-16.tgz Download Latest USB Driver : https://dl-ssl.google.com//android/repository/latest_usb_driver_windows.zip   Extract and Install  : http://opensource.dell.com/releases/Venue_8_3840_Merrifield/developer-edition/FlashTool/xFSTK_downloader_1.5.1.zip Extract and Install : http://opensource.dell.com/releases/Venue_8_3840_Merrifield/developer-edition/FlashTool/iSocUSB-Driver-Setup-1.0.4.zip If Wifi Model , Extract this to a folder : http://opensource.dell.com/releases/Venue_8_3840_Merrifield/developer-edition/A195/Unbrick/YTD802A519500-2014-07-16-22.tgz  [ Do the same for LTE model] Copy all the files of this folder to the same location : http://opensource.dell.com/releases/Venue_8_3840_Merrifield/developer-edition/FlashTool/fastboot/ Make sure your folder content is exactly as follows Now Open the xFSTK Downloader which we installed earlier Make setting as follows  :: Go to options , media settings and change the settings as shown Now press Ok and in the main window do the settings as shown below in the second tab of software Now switch of the Tablet Click begin Download button above Now Hold the Volume Up key in tablet and connect the USB cable to PC Download will start and above message will be shown.  [ If it fails to connect make sure you have installed the USB […]

» Read more
1 2 3 4 43