Source Code

Download files from FTP Server in Java - Using Commons Net API
Download files from FTP Server in Java - Using Commons Net API In today's discussion we will came across 'How to Download files from FTP Server in Java'. We are using 'apache commons-net' API that holds all necessary classes to deal with FTP operations like, create connection , get list of all f…[ More ]
Delete files from FTP Server in Java - Using Commons Net API
Delete files from FTP Server in Java - Using Commons Net API In today's discussion we will came across 'How to Delete files from FTP Server in Java'. We are using 'apache commons-net' API that holds all necessary classes to deal with FTP operations like, create connection , get list of all fil…[ More ]
Create connection with FTP server in Java - Using Commons Net API
Create connection with FTP server in Java - Using Commons Net APIIn today's discussion we will came across 'How to establish connection with FTP server in Java'. We are using 'apache commons-net' API that holds all necessary classes to deal with FTP operations like, create connection , get list …[ More ]
Create and Delete a directory on FTP Server in Java - Using Commons Net API
Create and Delete a directory on FTP Server in Java - Using Commons Net API In today's discussion we will came across 'How to Create and Delete a folder on FTP Server in Java'. We are using 'apache commons-net' API that holds all necessary classes to deal with FTP operations like, create connect…[ More ]
MySQL pivot table
MySQL pivot tableIf I have a MySQL table looking something like this:company_name action pagecount ------------------------------- Company A PRINT 3 Company A PRINT 2 Company A PRINT 3 Company B EMAIL Company B PRINT 2 Company B PRINT 2 Co…[ More ]
Wrong results returned by a table pivot - MySQL Database
Wrong results returned by a table pivot - MySQL DatabaseI'm working with MySQL 5.0.25 form phpMyAdmin 2.6.3 and I get strange results when trying to pivot a table...My table "Test" is very simple and looks like : Expand|Select|Wrap|Line Numbers MatchID UserID Presence1 1 11 2 01 3 11 4 12…[ More ]
case statement in select query in sql
case statement in select query in sqli need to set the column value of the destination table based on the two values of the select statement, some thing like the below example.insert into table table_name( value1, value 2,value 3)select (value 1,value2 ,case value3when value1 = 'somevalue' &&* val…[ More ]
smslib - [smslib] Read messages from a serial gsm modem. - msg#00010 - Recent Discussion OSDir.com
smslib - [smslib] Read messages from a serial gsm modem. - msg#00010 - Recent Discussion OSDir.comI am new to SMS Lib. When I run the ReadMessages class, the below isthe output.Example: Read messages from a serial gsm modem.SMSLib: A Java API library for sending and receiving SMS via a GSMmodem or o…[ More ]
OpenIMAJ
OpenIMAJ * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributi…[ More ]
Thread: Sending SMS using smslib
MyMessage.java - Sample application.//// This application shows you the basic procedure for sending messages.// You will find how to send synchronous and asynchronous messages.//// For asynchronous dispatch, the example application sets a callback// notification, to see what's happened with messages…[ More ]
OpenIMAJ _ Code _ [r254] _trunk_demos_VideoSIFT_src_main_java_org_openimaj_demos_video_videosift_Vid
OpenIMAJ _ Code _ [r254] _trunk_demos_VideoSIFT_src_main_java_org_openimaj_demos_video_videosift_Vid * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are …[ More ]
using package smslib for sending and receiving sms by a modem, i want help regarding the parameters
code for sending messages// i have imported smslibpackage examples.modem;import org.smslib.AGateway;import org.smslib.IOutboundMessageNotification;import org.smslib.Library;import org.smslib.OutboundMessage;import org.smslib.Service;import org.smslib.modem.SerialModemGateway;public class SendMessage…[ More ]
Support Forums / Coding Support Forums / Visual Basic and the .NET Framework / Encrypt String using
Support Forums / Coding Support Forums / Visual Basic and the .NET Framework / Encrypt String using * @author smutungi*/public class TheCipher {  public static final String ALGORITHM = "RSA";  public static final String PRIVATE_KEY_FILE = "D:/vas\\Mwamba\\B2C_Rollout\\ApiMessageEncryptionKey.key";  …[ More ]
PHPKode > scripts > TCPDF > tcpdf/examples/example_016.php
PHPKode > scripts > TCPDF > tcpdf/examples/example_016.php002 //============================================================+ 003 // File name  : example_016.php 004 // Begin  : 2008-03-04 005 // Last Update : 2013-05-14 006 // 007 // Description : Example 016 for TCPDF class 008 //  Document Encryp…[ More ]
Managing X.509 certificates using PHP
Managing X.509 certificates using PHP  req ] default_bits  = 1024 default_keyfile  = privkey.pem distinguished_name  = req_distinguished_name attributes  = req_attributes x509_extensions  = v3_ca dirstring_type = nobmp [ req_distinguished_name ] countryName  = Country Name (2 letter code) countryNam…[ More ]
Programmers Convert PDF to SWF
Programmers  Convert PDF to SWFHere sample code snippet - private static String Pdf2SwfExecutablePath="C:\\Program Files\\SWFTools\\pdf2swf.exe"; private ByteArrayOutputStream convertPdfToSwf(ByteArrayOutputStream pdfOutput) throws IOException {    ByteArrayOutputStream swfByte = new ByteAr…[ More ]
Java OCR implementation
Java OCR implementationpackage com.github.axet.lookup;import java.io.File;import com.github.axet.lookup.common.ImageBinaryGrey;publicclassOCRTest{staticpublicvoid main(String[] args){ OCR l =new OCR(0.70f);// will go to com/github/axet/lookup/fonts folder and load all font// familys (here i…[ More ]
Java OCR _ git _ [5cb9b4] _plugins_awt_src_main_java_net_sourceforge_javaocr_ocrPlugins_OCRDemo_OCRS
Java OCR _ git _ [5cb9b4] _plugins_awt_src_main_java_net_sourceforge_javaocr_ocrPlugins_OCRDemo_OCRSCopyright (c) 2003-2012, Ronald B. Cemer , Konstantin Pribluda, William Whitney, Andrea De Pasquale**** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file excep…[ More ]
Tess4J
Tess4J Code SamplesThe following code example shows common usage of the library. Make sure *.dll and tessdata folder are in the same directory and the .jar files are in the classpath.package net.sourceforge.tess4j.example;import java.io.File;import net.sourceforge.tess4j.*;public class TesseractExa…[ More ]
JTable : how to get selected cells?
JTable : how to get selected cells?No problem. We won't show you that ad again. Why didn't you like it?I have a JTable and its TableModel, it works well but what I want to do now is to get the selected cells of it. I thought of doing something like :int rows =this.getTable().getRowCount();int column…[ More ]