Sathish
Sathish SR
Thursday, January 6, 2022
sewing machine old and new
All types tailoring mechines sales and service support @coimbatore Ags sewingmechines 7092885705
Saturday, December 14, 2019
இதயத்திற்கு இதமான எகிப்து வெங்காயம் by honourable minister
நோக்கம்
Reason of spices
எகிப்து வெங்காயத்தை பொறுத்தவரை சல்பர் அதிகமாக இருப்பதினால் காரத்தன்மை அதிகமாக உள்ளது
மருத்துவ குணம்
எகிப்து வெங்காயம் காரதன்மை அதிகமாக உள்ள காரணத்தினால் இது இருதய நோய்க்கு பயன்படும்
Look like Egypt onion
எகிப்து வெங்காயம் கொஞ்சம் கெட்டியாக உள்ளது. இது நன்று வாழைக்காய் மாறியும், இன்னெnன்று புடலங்காய் மாறியும் உள்து
Easily usable for briyani #egyptonion
bரியாணிக்கு வெங்காயம் வெட்டும் பொழுது சின்ன வெங்காயம் என்றால் சிறிதாக இருக்கும், இதுவே பெரிய வெங்காயம் (#egyptonion) என்றால் எளிதாக உபயோகிக்க முடியும்
Ivar .........the honourable ministry of tamilnadu
#onion
#tamilnadu
#ministers
#egyptonion
#spice's
#honourableministeroftamilnadu
#coimbatore
#chennai
#health
#doctors
#clinic
#hospitals
#india
#cleanindia
#tamilnadu
#briyani
#bigonion
#coimbatore
#chennai
#health
#doctors
#clinic
#hospitals
#india
#cleanindia
#tamilnadu
#briyani
#bigonion
Tuesday, September 1, 2015
android development tools
following sites usefull for develop Environment :
- DirectLinks and steps:
jdk: javadevelopmentkit:
eclipse development tool (portable):
software development kit for android sdk:
Wednesday, August 26, 2015
Android Issues With Solutions
- Android Studio Error:Execution failed for task ':doctor:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 1
Answers :
Desccription : Android Studio ran out of memory, try increasing the memory size in
Build.Gradul File :
android {
//Additionally you may want to add
dexOptions { incremental true
javaMaxHeapSize "4g"
}
}
- Error inflating class and android.support.v7.widget.CardView
eclipse Go to File -> Import -> Existing Android code into workspace --> Browse (Go to sdk/extras/android/support/v7/cardview) --> Click ok --> Click Finish Your project explorer will now show cardview as a project. Right click on cardview project --> Properties --> Android(Left Pane) --> Enable isLibrary (tick the checkbox) --> Apply --> ok Now Right click on your project --> Properties --> Android(Left pane) --> Add (under library) --> cardview --> apply --> ok Now right click on your project again --> build path --> configure build path --> Under projects tab, add cardview android studio
When you want to use support library for Recyclerview or CardView in lower API devices, you not only needs to import the v7 library, but also needs to import Recycler View and Card View support independently.
Like this:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.+'
compile 'com.android.support:cardview-v7:21.0.+'
compile 'com.android.support:recyclerview-v7:21.0.+'
compile 'com.android.support:support-v4:21.0.0'
}
This is noted by Google's documents here: https://developer.android.com/training/material/compatibility.html
Friday, August 21, 2015
Android Json Parsing
Android Json Parsing ( JSON Deserializing )
Get Arralist Example
Download the GSON library
Make sure you import this into your Android project as an imported library by going to:
Project > Properties > Java Build Path > Libraries > Add Jars…
Setup the Deserializer
Lets build our deserializer by using the following code, using the type “Gig” as an example:
Make model first like this
YourModel.class
public class YourModel
{
@SerializedName("name") public String name= "name";
}
String YourjsonData = "[Insert JSON data here]";
Gson gson = new Gson();
JSONObject j;
Gig gig = null;
try
{
j = new JSONObject(jsonData);
gig = gson.fromJson(YourjsonData.toString(), YourModel.class);}
catch(Exception e)
{
e.printStackTrace();
}
Get Arralist Example
YourModel.class
public class YourModel
{
@SerializedName("name") public String name= "name";
@SerializedName("arrylistmodel")public ListModel arraylistmodel= new ListModel()public class ListModel{
@SerializedName("name") public String name= "name";
}
}
Friday, January 23, 2015
DES Encrypt And Decrypt Working Copy For BlackBerry
DES SAmple Encrtyp And Decrypt For BlackBerry Working Fine
import java.io.*; import net.rim.device.api.crypto.*; import net.rim.device.api.util.*; import net.rim.device.api.ui.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.util.*;
public class EncodeDecodeString extends UiApplication {
private TripleDESKey _key;
public EncodeDecodeString() { public String encrypt(String plaintext) { try { _key = new TripleDESKey(); TripleDESEncryptorEngine encryptionEngine = new TripleDESEncryptorEngine(_key); // In most cases, the data to encrypt will not fit into the block // length of a cipher. When that happens, use a padding algorithm // to pad out the last block. This uses PKCS5 to do the padding. PKCS5FormatterEngine formatterEngine = new PKCS5FormatterEngine( encryptionEngine ); // Use the byte array output stream to catch the encrypted information. ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); // Create a block encryptor to help use the triple DES engine. BlockEncryptor encryptor = new BlockEncryptor( formatterEngine, outputStream ); // Encrypt the data. encryptor.write( plaintext.getBytes() ); // Close the stream. This forces the extra bytes to be padded out if // there were not enough bytes to fill all of the blocks. encryptor.close(); // Get the encrypted data. byte[] encryptedData = outputStream.toByteArray(); String strEncrypted = new String(encryptedData); return(strEncrypted); } catch( CryptoTokenException e ) { System.out.println(e.toString()); } catch (CryptoUnsupportedOperationException e) { System.out.println(e.toString()); } catch( IOException e ) { System.out.println(e.toString()); } return "error"; } public String decrypt(String ciphertext) { try { // Perform the decryption. Since this is a symmetric algorithm, // use the same key as before. TripleDESDecryptorEngine decryptorEngine = new TripleDESDecryptorEngine(_key); // Create the unformatter engine to remove padding bytes. PKCS5UnformatterEngine unformatterEngine = new PKCS5UnformatterEngine( decryptorEngine ); // Set up an input stream to hand the encrypted data to the // block decryptor. ByteArrayInputStream inputStream = new ByteArrayInputStream( ciphertext.getBytes() ); // Create the block decryptor passing in the unformatter engine and the // encrypted data. BlockDecryptor decryptor = new BlockDecryptor( unformatterEngine, inputStream ); // Next, read from the stream. This example reads the data 10 bytes // at a time and then adds that new data to the decryptedData array. // For efficiency in a real situation, you should use a value // larger than 10. This example uses a small value to demonstrate // several iterations through the loop. byte[] temp = new byte[10]; DataBuffer db = new DataBuffer(); for( ;; ) { int bytesRead = decryptor.read( temp ); if( bytesRead <= 0 ) { // No more information to read, so leave loop. break; } db.write(temp, 0, bytesRead); } // Make sure that the decrypted data is the same as the data // that was passed into the encryptor. byte[] decryptedData = db.toArray(); String strDecrypted = new String(decryptedData); return(strDecrypted); } catch( CryptoTokenException e ) { System.out.println(e.toString()); } catch (CryptoUnsupportedOperationException e) { System.out.println(e.toString()); } catch( IOException e ) { System.out.println(e.toString()); } return "error"; } }
DES Workking Copy For Blackberry
DES SAmple Encrtyp And Decrypt For BlackBerry Workking Fine
import java.io.*; import net.rim.device.api.crypto.*; import net.rim.device.api.util.*; import net.rim.device.api.ui.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.util.*;
public class EncodeDecodeString extends UiApplication {
private TripleDESKey _key;
public EncodeDecodeString() { public String encrypt(String plaintext) { try { _key = new TripleDESKey(); TripleDESEncryptorEngine encryptionEngine = new TripleDESEncryptorEngine(_key); // In most cases, the data to encrypt will not fit into the block // length of a cipher. When that happens, use a padding algorithm // to pad out the last block. This uses PKCS5 to do the padding. PKCS5FormatterEngine formatterEngine = new PKCS5FormatterEngine( encryptionEngine ); // Use the byte array output stream to catch the encrypted information. ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); // Create a block encryptor to help use the triple DES engine. BlockEncryptor encryptor = new BlockEncryptor( formatterEngine, outputStream ); // Encrypt the data. encryptor.write( plaintext.getBytes() ); // Close the stream. This forces the extra bytes to be padded out if // there were not enough bytes to fill all of the blocks. encryptor.close(); // Get the encrypted data. byte[] encryptedData = outputStream.toByteArray(); String strEncrypted = new String(encryptedData); return(strEncrypted); } catch( CryptoTokenException e ) { System.out.println(e.toString()); } catch (CryptoUnsupportedOperationException e) { System.out.println(e.toString()); } catch( IOException e ) { System.out.println(e.toString()); } return "error"; } public String decrypt(String ciphertext) { try { // Perform the decryption. Since this is a symmetric algorithm, // use the same key as before. TripleDESDecryptorEngine decryptorEngine = new TripleDESDecryptorEngine(_key); // Create the unformatter engine to remove padding bytes. PKCS5UnformatterEngine unformatterEngine = new PKCS5UnformatterEngine( decryptorEngine ); // Set up an input stream to hand the encrypted data to the // block decryptor. ByteArrayInputStream inputStream = new ByteArrayInputStream( ciphertext.getBytes() ); // Create the block decryptor passing in the unformatter engine and the // encrypted data. BlockDecryptor decryptor = new BlockDecryptor( unformatterEngine, inputStream ); // Next, read from the stream. This example reads the data 10 bytes // at a time and then adds that new data to the decryptedData array. // For efficiency in a real situation, you should use a value // larger than 10. This example uses a small value to demonstrate // several iterations through the loop. byte[] temp = new byte[10]; DataBuffer db = new DataBuffer(); for( ;; ) { int bytesRead = decryptor.read( temp ); if( bytesRead <= 0 ) { // No more information to read, so leave loop. break; } db.write(temp, 0, bytesRead); } // Make sure that the decrypted data is the same as the data // that was passed into the encryptor. byte[] decryptedData = db.toArray(); String strDecrypted = new String(decryptedData); return(strDecrypted); } catch( CryptoTokenException e ) { System.out.println(e.toString()); } catch (CryptoUnsupportedOperationException e) { System.out.println(e.toString()); } catch( IOException e ) { System.out.println(e.toString()); } return "error"; } }
Subscribe to:
Posts (Atom)