Skip to main content

Posts

Basic object detection in python using OpenCv and Numpy - by Dustbiin

Recent posts

Read data from .pfx file for Digita Signature - by Dustbiin

Their is many way to read data for data for digital signature but hear we discus reading data from .pfx file -  code for read .pfx file - import java.io.FileInputStream; import java.security.KeyStore; import java.security.cert.X509Certificate; import java.util.Date; import java.util.Enumeration; import javax.net.ssl.KeyManagerFactory; public class PdfDemo { public static void checkExpire() { try { KeyManagerFactory kmf = javax.net.ssl.KeyManagerFactory.getInstance( "SunX509" ); KeyStore keystore = KeyStore.getInstance( "PKCS12" ); char[] password = "123456".toCharArray(); keystore.load( new FileInputStream( "demo.pfx" ), password ); //keystore.load(new FileInputStream(certificate), password); kmf.init( keystore, password ); Enumeration<String> aliases = keystore.aliases(); while ( aliases.hasMoreElements() ) {

Create Digital signature field in iText Pdf - by Dustbiin

 Creating signature field in iText PDF -  First need to add dependency  <dependency> <groupId>com.itextpdf.tool</groupId> <artifactId>xmlworker</artifactId> <version>5.4.5</version> </dependency> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.4.5</version> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> <version>1.60</version> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk15on</artifactId> <version>1.60</version> <type>jar</type> <!-- <scope>compile</scope> <optional>true</optional> --> </dependency> For certified you pdf document by digital sign first you need to create signat

Create design by connecting dot's using opencv and numpy - by Dustbiin

Create basic design by using connecting dot's using your mouse- I have been create this by using mouse event check out the code below- use Python, OpenCv , NumPy import numpy as np import cv2 def click_event(event , x , y , flags , param): if event == cv2.EVENT_LBUTTONDOWN: print(x , " , " , y) font = cv2.FONT_HERSHEY_SIMPLEX strXY = str(x) + ' , ' + str(y) # cv2.putText(img,strXY, (x, y), font, .1, (255, 255, 0), 2) cv2.circle(img , (x , y) , 3 , ( 0 , 0 , 255 ) , - 1 ) points.append((x , y)) if len(points) >= 2 : cv2.circle(img , points[- 1 ] , 3 , ( 0 , 0 , 255 ) , - 1 ) # cv2.putText(img,strXY, points[-1], font, .1, (255, 255, 0), 2) cv2.line(img , points[- 2 ] , points[- 1 ] , ( 0 , 0 , 255 ) , 1 ) cv2.imshow( "Image" , img) points = [] img = np.zeros(( 512 , 512 , 3 )) cv2.imshow( "Image" , img) cv2.setMouseCallback( 'Image'

Custom cell color in Excel Apache POI - By Dustbiin

Create custom color for cell background by using java color class Create custom color- XSSFWorkbook workBook = new XSSFWorkbook (); IndexedColorMap colorMap = workbook.getStylesSource().getIndexedColors(); Font tableHeadOneFontStyle = workbook.createFont();  tableHeadOneFontStyle.setBold( true ); tableHeadOneFontStyle.setColor( IndexedColors.BLACK.getIndex() ); XSSFCellStyle tableHeaderOneColOneStyle = workbook.createCellStyle(); tableHeaderOneColOneStyle.setFont( tableHeadOneFontStyle ); tableHeaderOneColOneStyle.setFillForegroundColor( new XSSFColor( new java.awt.Color( 255, 231, 153 ), colorMap ) ); tableHeaderOneColOneStyle.setFillPattern( FillPatternType.SOLID_FOREGROUND ); tableHeaderOneColOneStyle = setLeftRightBorderColor( tableHeaderOneColOneStyle ); tableHeaderOneColOneStyle = alignCenter( tableHeaderOneColOneStyle );

Best 6 free cloud data storage on Internet upto 100 GB - By Dustbiin

Cloud storage for video, image, and documents etc... In nowadays everyone wants to store their data at any remote location. From which they can access their data remotely from anywhere and any device.  So, we find out top 6 cloud storage which provides limited space free for everyone- 1) DropBox Dropbox is the world’s first smart workspace. We bring all your team’s content together while letting you use the tools you love. And we help cut through the clutter, surfacing what matters most. Free space - Upto 5GB Link -   https://www.dropbox.com/?_hp=c 2) Box Box started in 2005 to make it easy to access information from anywhere and collaborate with anyone. While that vision still lies at the core of our business, it has transformed into our mission to power how the world works together. Today, we're proud to call 97,000 companies and 68% of the Fortune 500 our customers — but we're just getting started. As work continues to evolve, we stay focused on delivering innovation to orga

Best Pdf Viewer/Reader for Linux/Ubuntu 20.04 - by Dustbiin

PDF viewer and editor for Ubuntu operating system. In now days lot's of PDF reader/viewer available for Ubuntu and they are also Open source, But if you want a software which is also useful for the advance thing like- Display PDFs with high fidelity Annotate & Markup PDFs Fill & Save Forms Render Digital Signatures & Layers Advanced User Interface Advanced Print & Search Options Document Storage Integrations DocuSign© Integration If you want a PDF reader which has all these feature then you can use QOPPA SOFTWARE PDF studio. PDF Studio Viewer ™ is a cross-platform PDF reader that is reliable and easy to use. PDF Studio Viewer can annotate PDF documents and fill interactive forms. For more editing features, Qoppa Software publishes PDF Studio Standard and Pro editions. Download Link- click hear Look like-