Archive for the ‘Open Source Tutorial’ Category

If you have a presentation about your Android App it will be funny if your demo is on your little device screen and everyone can’t see your app from afar. Okay, i found this Android Screencast, what will display your device screen to your computer screen. This tool is quite handy, it works on my Samsung Galaxy SL I9003 (running Froyo) and my Windows 7 x64.

The main flaw of this app is the frame rate since it is very slow, maybe about 4-5 fps. Not very good if your Andoid has flashy animations. The color display isn’t very good too, maybe because this app is reducing the resolution display.

Despite its limitations, this app is one of the best that i can found in internet.

Here are steps to run this app:

  1. Download this app from here : http://code.google.com/p/androidscreencast/
  2. Download Android sdk. Place android-sdk-windows folder on root of your C:\
    http://developer.android.com/sdk/index.html
    …and install JRE(JDK) 6
    http://java.sun.com/javase/downloads/widget/jdk6.jsp
  3. Plug your device using USB Cable, make sure you’ve installed your device’s driver.
  4. Open cmd and type: javaws androidscreencast.jnlp
    since it’s not an exe file but the advantage is you can run this app from Linux or Mac.

 Other similar app, is AShot, but i don’t know why it isn’t working on my 64 bit OS.

Advertisements

Everybody knows android emulator works very slow even on my 2.1 GHz Core2 Duo laptop it can’t be helped. So i thought it’s better to debug using real device:

1. First of course, you need to install your android device on your computer. Then connect your android device to PC using usb cable (it’s possible to connect via wireless too).

2. On your android device, Go to Settings –> Applications –> Development –> check USB Debugging

3. that’s all, just two simple steps and let adb do the rest.

4. I’m using netbeans 7.0, here’s the screenshot, my device was on the list:

Here are simple steps to run Android on PC, of course it uses virtual machine, like virtual box.

Okay, the first step of course download Android x86 ISO

Then, download and install Virtual Box mine is using Windows 7 x64 but Virtual Box x86 version runs perfect.

Then run Virtual Box

Create New Virtual Machine, Operating System is Linux and Version is Other Linux

Set the Memory to 512 MB

(more…)

By using WiFi, your android device can connect to internet but  normally it will be useless if the network is using proxy authentication. Anfroid Froyo 2.2 has option for proxy configuration (such as proxy address and port number) but it has no option for proxy username and password.

The trick is using TransProxy (abbreviation of Transparent Proxy). Before using this app you need to root your android device. I’ve tested some apps for examples Facebook, Market, Google YouTube, Google Sky Map, and they can connect easily through proxy with authentication.

To download TransProxy, simply click HERE (need to register first at XDA Developer forum)

Android is a great mobile platform and it has a lot of cool applications. Common way to install new applications is through Android Market, but there’s a trick if you have .apk files and install it to your Android device.

Here’s the steps :

  1. Modify your Android’s settings to allow the installation of applications from other sources, go to Settings –> Applications –> check option for Unknown Sources
  2. Modify your Android’s settings to allow USB Debugging, go to Settings –> Applications –> Development –> check option for USB Debugging
  3. Download Android SDK
  4. Download Android SDK Tools (you can install it using Android SDK or using this offline package )
  5. Make sure you’ve installed your android driver on your computer or if your android is Nexus One or Nexus S download Google USB Driver
  6. Go to Android SDK Tools folder (for example mine on  C:\Users\azer\Downloads\Android\tools_r05-windows), make sure on that folder has executable program named adb.exe
  7. Open Command Prompt, and type CD <Your Android SDK Tools Path> (if you want to skip this step, you just have to add your android sdk tools folder path into Environtment Variable on your system)
  8. Connect your Android Device using USB Cable, the notification on the top toolbar on home screen should be “USB debugging connected”
  9. Type this on the command prompt: adb devices , your device should be listed
  10. Last step, type this on the command prompt: adb install <your .apk file path> , for example: adb install C:\Users\azer\Downloads\Android\Zenonia.2.1.0.3.Android.apk

Note :

  • This tutorial is tested using Windows 7 x64, Android Froyo, and Samsung Galaxy SL I9003
  • If you want to support the developers, please buy the software :)


GRUB get wrong, can’t boot the system, but don’t panic

One way to do this, graphically, and easily, although the process is longer than some methods…

Okay, this is the step :

  1. boot your debian installation CD/DVD
  2. select ‘advanced options’
  3. select ‘graphical rescue mode’
  4. select language
  5. select keyboard layout
  6. it will take a while to scan the CD
  7. configure the network
  8. configure clock
  9. finally…enter rescue mode…
  10. select the device to use as root file system, which should be the device where debian install is located (example : /dev/sda1)
  11. select ‘reinstall GRUB boot loader’
  12. enter the device for boot loader installation, usually type this “hd0”
  13. installing grub
  14. select reboot system
  15. the end…you get your system back

This commands below are quite effective to remove virus if your filesystem are being shared (for example, there are some clients that are accessing your linux filesystem using samba).

Find all files having .bak (*.bak) extension in current directory and remove them:
$ find . -type f -name "*.bak" -exec rm -f {} \;

Find all core files and remove them:
# find / -name core -exec rm -f {} \;

Find all *.bak files in current directory and removes them with confirmation from user:
$ find . -type f -name "*.bak" -exec rm -i {} \;

linuxmint7logo

Just a video about Linux Mint 7 Installation.

Well, Linux Mint 7 is a great Distro :)

Linux Mint is based on Ubuntu and the two distributions have much in common. Both distributions use the same software repositories. For instance, release 6 (“Felicia”) uses the package pools of Ubuntu “Intrepid Ibex” (8.10). Most packages are the same on both distributions, and as of Linux Mint 6 ‘Felicia’, each Linux Mint release is based on Ubuntu, whereas before they were based on the previous Linux Mint release.

Most differences are on the desktop. Linux Mint has a stated focus on elegance, and it includes a number of applications that are not available in Ubuntu

What we will do ?

Create a file server using Samba, which is able to record each user whhen  connected or disconnected in a log file.

sample log file below :

time          user   source      ip
2009 01 00:23 umum freeshare 10.126.11.2

This samba server can sharing printer too :D

(more…)

what thing is that?

“Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients.” Samba is freely available, unlike other SMB/CIFS implementations, and allows for interoperability between Linux/Unix servers and Windows-based clients.

(more…)