Skip to content

Check amazon account credit

Check amazon account Digital Music Credit:

http://www.amazon.co.uk/gp/feature.html?ie=UTF8&docId=1000706783

Check amazon gift voucher Credit:

https://www.amazon.co.uk/gp/css/gc/balance/ref=cu_cfss_acnt_bal?

IE6, IE7, IE8, IE9, IE10, IE11 Offline Installers Download Links

Direct download links to IE6:

Internet Explorer 6 along with SP1 and language packs download links

Direct download links to IE7:

IE7 for Windows XP SP2

Windows Server 2003 32-bit

Windows Server 2003 64-bit

Windows Server 2003 ia64-bit

Direct download links to IE8:

IE8 for Windows XP

IE8 for Windows Server 2003 32-bit

IE8 for Windows Server 2003 64-bit

IE8 for Windows Vista and Windows Server 2008 32-bit

IE8 for Windows Vista and Windows Server 2008 64-bit

Direct download links to IE9:

IE9 for Windows Vista and Windows Server 2008 32-bit

IE9 for Windows Vista and Windows Server 2008 64-bit

IE9 for Windows 7 32-bit

IE9 for Windows 7 64-bit

Direct download links to IE10:

IE10 for Windows 7 32-bit

IE10 for Windows 7 64-bit

IE10 for Windows Server 2008 64-bit

Direct download links to IE11:

IE11 offline installers

IE6, IE7, IE8, IE9, IE10, IE11 Offline Installers Download Links

P.S – to turn off Chrome Framework from IE:

go to “HKEY_LOCAL_MACHINE (or CURRENT_USER)\SOFTWARE\Microsoft\Windows\CurrentVersion \Internet Settings\User Agent\Post Platform” and delete “chromeframe” entry if it’s there

2016 new year’s resolution

https://wordpress.com/stats/day/edisonideas.wordpress.com

Ways to debug js in IE when the developer tool isn’t working

I spent a whole day trying to figure out how to get the developer tool work in IEv11 yesterday but couldn’t. All I wanted was to see the user-agent string from the browser session (I’ve logged the string to window.console). In the end I just gave up and dump the string to a local txt file on C:\ drive, here’s the simple code:

 var fso = new window.ActiveXObject("Scripting.FileSystemObject");
 var fh = fso.OpenTextFile("c:\\datadata.txt", 8, false, 0);
 fh.WriteLine(navigator.userAgent);
 fh.Close();

Just make sure you created an empty text file c:\datadata.txt before you run the code.

Alternatively you can write a simple html page that calls js methods to check the output:

<html>
    <head>
       
          function detectUserAgent() {
             document.write(navigator.userAgent);
          }
      
    </head>
   <body>
       
          detectUserAgent()
       
    </body>
  </html>

Happy debugging 🙂

Ways to refer to angularJS script source in web pages

  1. If you have a pure html page, can refer to the scripts from angularJS site directly

https://code.angularjs.org/1.2.9/angular.min.js

https://code.angularjs.org/1.2.9/angular-route.min.js

https://code.angularjs.org/1.2.9/angular-resource.min.js

  1. If you have a mavenised project, can download the angularJS jar from maven and refer to the scripts from jsp page like this

http://${pageContext.request.contextPath}/webjars/angularjs/1.2.9/angular.min.js

http://${pageContext.request.contextPath}/webjars/angularjs/1.2.9/angular-route.min.js

http://${pageContext.request.contextPath}/webjars/angularjs/1.2.9/angular-resource.min.js

Pom.xml

<dependency>
<groupId>org.webjars</groupId>
<artifactId>angularjs</artifactId>
<version>1.2.9</version>
</dependency>

 

 

Proper JAVA date conversion

http://stackoverflow.com/questions/2580925/simpledateformat-parsing-date-with-z-literal

ISO 8601 Standard

Your String complies with the ISO 8601 standard (of which the mentioned RFC 3339 is a profile).

Avoid j.u.Date

The java.util.Date and .Calendar classes bundled with Java are notoriously troublesome. Avoid them.

Instead use either the Joda-Time library or the new java.time package in Java 8. Both use ISO 8601 as their defaults for parsing and generating string representations of date-time values.

You can simply and conveniently pass your string to their constructors.

Joda-Time

Example in Joda-Time 2.5.

DateTimeZone timeZone = DateTimeZone.forID( "Europe/Paris" ):
DateTime dateTime = new DateTime( "2010-04-05T17:16:00Z", timeZone );

Convert to UTC.

DateTime dateTimeUtc = dateTime.withZone( DateTimeZone.UTC );

Convert to a java.util.Date if necessary.

java.util.Date date = dateTime.toDate();

Solving Prize-Collecting Traveling Salesman Problem

http://link.springer.com/chapter/10.1007%2F978-3-540-72393-6_9