Pages

Wednesday, May 4, 2011

ExtJS -=- DateField popup takes all screen width with Safari & Chrome

Hi!

There's a little issue with the DateField component with Safari. My version of ExtJS is 2.3.

My DateField component takes 100% of the screen's width and it is unusable...

In order to correct this, you just have to add this CSS class to your stylesheets

.x-date-menu {
   width: 175;
}

ExtJS -=- ComboBox TypeAHead useful hack

Hi

Here is a useful hack that disable the auto selection of the first record while searching data in a combo box with the Type Ahead functionnality.

If there is only one record, the combo will automatically selects the first record. You just need to add this override to your code.




/**
 * When we are looking for an item in a combo box by typing data in the combo
 * box, the combo usually used to take the first record and replace the actual
 * typed data. This override disable this functionnality so we can enter data
 * and use the filters.
 *
 * If there is only one result, the combo automatically selects the first record.
 *
 */
Ext.override(Ext.form.ComboBox, {
    onTypeAhead : function(){
        if(this.store.getCount() === 1){
            var r = this.store.getAt(0);
            var newValue = r.data[this.displayField];
            var len = newValue.length;
            var selStart = this.getRawValue().length;
            if(selStart != len){
                this.setRawValue(newValue);
                this.selectText(selStart, newValue.length);
            }
        }
    }
});

Tuesday, May 3, 2011

New PuTTY Mirror

Hi!

I've started a new mirror of the well known PuTTY software. You can get it by going to http://putty.icebergsofts.com

Yann

Friday, April 29, 2011

Java -=- How to copy file using Apache IOUtils

Here is a code snippet that explain how to copy a file using IOUtils. You can get Apache IOUtils at http://commons.apache.org/io/download_io.cgi

InputStream in = null;
OutputStream out = null;

try {
    // Ensure folder is created
    FileUtils.forceMkdir(new File("/Users/yann/myfolder"));

    in = new FileInputStream(new File("/Users/yann/from.txt"));
    out = new FileOutputStream(new File("/Users/yann/myfolder", "to.txt"));

    IOUtils.copy(in, out);

} finally {
    IOUtils.closeQuietly(in);
    IOUtils.closeQuietly(out);
}

Wednesday, April 27, 2011

Good site to find free favicons

Here's a good site to find free favicons

http://www.freefavicon.com/

JAD Java Decompiler Download Mirror

Since http://www.kpdus.com/ is not available anymore, JAD is now hard to find.

Here's a mirror containing all the versions of JAD. This article is a copy of Tomas Varaneckas's site (http://www.varaneckas.com/jad).

 

Installation

Unzip jad.zip file into any appropriate directory on your hard drive.
This will create two files:
  • an executable file named 'jad.exe' (Windows 9x/NT/2000) or 'jad' (UNIX)
  • README file 'Readme.txt', which contains the short user's manual
For UNIX users: make 'jad' executable: chmod a+x jad
No further setup is required.

Disclaimer

JAD is Copyright 1997-2001 Pavel Kouznetsov. All rights reserved. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE SOFTWARE IS NOT DESIGNED OR INTENDED FOR USE IN ON-LINE CONTROL OF AIRCRAFT, AIR TRAFFIC, AIRCRAFT NAVIGATION OR AIRCRAFT COMMUNICATIONS; OR IN THE DESIGN, CONSTRUCTION, OPERATION OR MAINTENANCE OF ANY NUCLEAR FACILITY. THE AUTHOR DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OFFITNESS FOR SUCH USES. YOU MUST REPRESENT AND WARRANT THAT YOU WILL NOT USE THE SOFTWARE FOR SUCH PURPOSES

Monday, April 18, 2011

[RSA] Install Cicso AnyConnect on Mac OS X Snow Leopard

Hi!

There is a bug with the version of Cisco AnyConnect 2.3 that made impossible to install the VPN client on Mac OS X Snow Leopard.

To be able to install it, we must download a newer version (2.4 and later).

You can get the client by connecting to the Cisco Web Site (http://www.cisco.com/cisco/software/navigator.html) and download it. You need a username / password.

If you do not have an account on the Cisco's Web Site, you can download a copy of the software here:
at  http://unf.net/snowleopard/anyconnect-macosx-i386-2.4.0154-k9-BETA.zip


Download and install the client. After that, connect yourself to the RSA servers. The AnyConnect client will be automatically updated.

You must be ready to use AnyConnect Client with Snow Leopard.