Saturday, June 18, 2016

ReCam 1.8 is out!

Many great optimization and new features!

It has been a while since my last update, but it brings me great pleasure to release this update
Release Notes:
  • File path of saved files now appear on in ReCam's File Browser
  • Updated UI problems with Android Marshmallow.
  • Fixed issue with scheduling on Android Marshmallow when device is asleep (Power saving mode).
  • Share Option available to content. (Long press on files on the ReCam file browser view and select share)
  • Storage Location for saving to YouTube and Google Drive. Google Play Services needs to be installed from Google Play Store in order to get Option.

It is easy to automatically upload videos after recording. Just select the option YouTube or Google Drive under the storage location, pick the account, and content will be uploaded when recording is finished. Once upload is done, the file is removed from device, this way you keep precious free space. All the content is private on initial upload to either services. To make public, just log into YouTube or Google Drive and set the content up for public viewing. FYI, on initial setup of YouTube or Google Drive, Google will confirm permissions with you to allow ReCam to upload on your behalf.

Happy Recording!

Download on Google Play!

Free (10 sec. Recording limit): Premium:

Thursday, May 14, 2015

ReCam Updated!

ReCam has been updated with the new feature to Record on Demand! Spy lovers rejoice! Just pull out your phone and hit start recording. Once the recording begins, you can continue to use your phone incognito ;). You can also place the device on the table or in some hidden location. What you record is all up to you. Very good for keeping an eye on your property and surroundings.

In addition, UI has been improved.

Check it out on Google Play!

Pro Version also Available!

Monday, March 2, 2015

ReCam v1.0 Released!

Ever wanted to use your phone or tablet to record Video or Audio at a certain time for a few seconds or minutes without you pressing camera and record? ReCam is there to help. ReCam gives you the ability to use your mobile or tablet as an automated recording device. You can set various schedules with varying duration. Recording jobs will run in the background which means you can still use your device even if a recording is in progress. You can schedule recordings to execute once or repeat every day or week.

Install the free Demo version now available at on Google Play:

The full-version is also available on Google Play

Wednesday, October 22, 2014

Java - Get IndexOf String of an Exact Word

Been a while since I posted but I thought this would be a good little piece of code to give you the index of an exact word in a large string. I found the need in this because I was parsing command-line output.

Pattern pattern = Pattern.compile("\\bbe\\b");
Matcher matcher = pattern.matcher("Today is a good day because I will be going to the park.");

    return -1;
int index = matcher.start();

The result will ensure not to give you the index of 'be' in because and actually give you the exact 'be' in the String. If not found, return -1. Hope this helps!

Thursday, February 20, 2014

PDF to SVG - Java

I have been working with SVG formats recently. Mainly, trying to find a decent swing component for creating and modifying SVGs. As a result of such escapade, I decided to write a PDF to SVG converter. Now, I haven't fully tested it, but with the PDFs I have tried, it converted successfully.

The libraries I used were Batik 1.7 and PDF-Renderer v1.0.5

Here is My Main

public class ConversionMain
    public ConversionMain()
        File pdf = new File("ss12.pdf");

    public static void main(String[] args)
        new ConversionMain();

Here is my PDFUtility function for taking PDF, reading it and then converting to SVG

public class PDFUtility
    public static void PDF_TO_SVG(File pdfFile)
            RandomAccessFile raf = new RandomAccessFile(pdfFile, "r");
            FileChannel channel = raf.getChannel();
            ByteBuffer buf =, 0, channel.size());
            PDFFile pdf = new PDFFile(buf);

            DOMImplementation domImp = GenericDOMImplementation.getDOMImplementation();
            for (int i = 1; i <= pdf.getNumPages(); i++)
                PDFPage page = pdf.getPage(i);
                // image dimensions
                int width = (int) page.getWidth();  //Can be changed to whatever you like
                int height = (int) page.getHeight();

                Rectangle rect = new Rectangle(0, 0, (int) page.getBBox().getWidth(), (int) page.getBBox().getHeight());
                Image image = page.getImage(width, height, rect, null, true, true);

                String svgNS = "";
                Document document = domImp.createDocument(svgNS, "svg", null);

                SVGGraphics2D svgGenerator = new SVGGraphics2D(document);
                Graphics graphics = svgGenerator.create();
                graphics.drawImage(image, 0, 0, null);

                boolean userCSS = true;
                FileOutputStream fos = new FileOutputStream(new File("Page " + i + ".svg"));

                Writer out = new OutputStreamWriter(fos);

      , userCSS);
        catch (Exception e)


Try it out and let me know what you think


Saturday, October 26, 2013


So a few days ago I was browsing a site

and I wanted to download the images, but there are like 72 of them and I don't want to right click each one and save them. So I was thinking since I could use wget, but I don't want to download the whole site. I just want the pictures of this sweet looking bike! So I took a look at the URL for the images and sure enough they are all using a simple naming scheme (e.g. speed_001.jpg). So what immediately comes to mind is a bash script with a for loop calling wget to download all the images for me (because you know as programmers we are lazy).

for ((i=1; i<=NUM; i++)) {

    if [ $i -lt 10 ]
        wget ${ADD}
        wget ${ADD}

I'm not saying that this is the only way to do this, it's just what came to mind when faced with the problem.

Thursday, September 19, 2013

Getting Alt Text from IMG tags in HTML using Pattern Regex - Java

I was given the task to retrieve alt= from an img tag inside an html string. Here is an example:

<div class="rc_release_list_item_picture">
 <a href="/release/fatboy-slim-and-riva-starr/21683/eat-sleep-rave-repeat/"><img width="87" height="87" border="0" src="" alt="Fatboy Slim and Riva Starr - Eat, Sleep, Rave, Repeat" title="Fatboy Slim and Riva Starr - Eat, Sleep, Rave, Repeat" /></a>

I used the Pattern and Matcher Class provided by the java.util package. The following is a sample of quick main I built to achieve my task:

import java.util.regex.Matcher;
import java.util.regex.Pattern;

 * User: GKproggy
public class Main
    private static String testStrings = "<div class=\"rc_release_list_item_picture\">\n" +
            " <a href=\"/release/fatboy-slim-and-riva-starr/21683/eat-sleep-rave-repeat/\"><img width=\"87\" height=\"87\" border=\"0\" src=\"\" alt=\"Fatboy Slim and Riva Starr - Eat, Sleep, Rave, Repeat\" title=\"Fatboy Slim and Riva Starr - Eat, Sleep, Rave, Repeat\" /></a>\n" +
    public static void main(String[] args)
        String regexPattern = "<img[^>]*alt=[\"]*([\\w\\s-.:\\/,]+)[\"]*[^>]*/>";
        Pattern p = Pattern.compile(regexPattern);
        Matcher m = p.matcher(testStrings);


Hope this was a quick help to get an idea how to use regex to retrieve info you want from raw HTML.