Showing posts from September, 2013

How to scan document in zul using TWAIN

Download sample provided by Dyansoft here

<zk xmlns:x="xhtml" xmlns:zk="zk" >

<window   title="scan" closable="true" width="600px" height="400px" mode="modal" popup="true" border="normal" apply="org.zkoss.bind.BindComposer"
        viewModel="@id('vm') @init('com.csdcsystems.amanda.jems.web.viewmodel.ScanToInsertAttachmentViewModel')" >

 <script type="text/javascript">


            var DWObject;
            var seed;
            function pageonload() {
                     seed = setInterval(initControl, 500);//Wait 500ms after opening the webpage, call “ControlDetect” function

            function initControl() {
                if (DWObject) {
                    if (DWObject.ErrorCode == 0) {

Solving “Too many pattern attempts” problem in Samsung Galaxy

So you might have one of those friends who just likes to play with the lock pattern on your android phone. And then he/she might enter a wrong pattern 20 times! What happens as a result of this is not pleasant. You will be asked to sign in with your Google account. But that won’t work. You will repeatedly see this message: “Invalid username or password” even though you are sure you are entering a correct username and password. I tried different solutions given  on youtube and other forums but none worked. Well except one where a “sucky” but working solution was provided. By sucky I mean having to factory reset your phone. That seems to be the only solution.
To reset your phone these are the steps. (I speak on behalf of Samsung Galaxy Pocket S5300 only though)
1. Power off your phone.
2. Press your volume-up button, your home button and your power button till your System Recover Screen comes up.
3. Scroll down to “wipe data/factory reset”and press the home button to select t…