How to Disable Scheduler Service on Windows 2008 Server

Working with vulnerabilities scanning might force you to disable the scheduler service. if you go to windows services applet to disable it you will find it greyed and feel yourself helpless because few most important windows service require this service. You won’t be able to stop or disable this service directly from windows services applet. … Read more

How to Open applications in Windows 8

To Open Any application in windows 8 one way is to Press windows button after that you want to open Skype just press Starting alphabet which in my case is “s”  Application search bar is open on your right side choose and double click on that app to open it . Second way to Open … Read more

Domain Promo Codes

Promo code can be a big source to save few very precious dollars but find good and working promo code is really very hard and requires good searching skills. There are lots of promotion codes available on the internet to give you relief about the price of domain name and almost every time you can … Read more

Windows XP Mode in Windows 7

Windows 7 is still not the most popular operating system in Microsoft family. Till today, many people find it very hard to use it because of the compatibility of old devices and drivers with it. Microsoft Windows XP mode can be very good choice for those who like to work with legacy devices and applications. … Read more

How to close applications in windows 8

There are two ways to close applications in windows 8 . first way is to press windows + tab button all open applications are shown at left side of windows move your mouse  at any application Right click on any app it will give different Options . select close to close it . Second one … Read more

Concatenation of Javascript And Css files

<target name=”js.concatenate”
description=”Concatenates specified JavaScript files”>
<concat destfile=”WebContent/resources/js/minify_jsFile.js”>
<filelist id=”files” dir=”WebContent/resources/*.js”>
</filelist>
</concat>
<echo>Done!</echo>
</target>

You can also give individual file Names :

<target name=”js.concatenate”
description=”Concatenates specified JavaScript files”>
<concat destfile=”WebContent/resources/js/minify_jsFile.js”>
<filelist id=”files” dir=”WebContent/resources/js”>
<file name=”component.js” />
<file name=”functions.min.js” />
<file name=”jquery_custom.js” />
<file name=”jquery.autocomplete.js” />
<file name=”jquery-1.7.1.min.js” />
<file name=”slideshow.js” />
<file name=”util.js” />
<file name=”IE8.js” />
<file name=”time_adjustment.js” />
</filelist>
</concat>
<echo>Done!</echo>
</target>

Read more

Minify Javascript and CSS through Apache ant

First configure apache ant in your IDE Eclipse and then create a file with extension .xml

e.g In this Example I create file Build.xml File .

This xml file is the apache ant build file through which ant commands can run although Ant commands can also run from command prompt .

The first thing to do in this file is place a root tag <project></project> and write all code inside this tag . <target> tag is the main tag in which we define our tasks that is to be performed when we run this build file .

Now start Tutorial with the help of some example :

Minify js files :

  1. download yui compresser.jar file  from this link download YUI Compresser.
  2. place it in a directory you want .

<target name=”Minify javascript File”  >
<java jar=”D:\yuicompressor-2.4.6.jar” fork=”true”>
<arg value=”Input-File-name.js” />
<arg value=”-o” />
<arg value=”OutputFile-name.js” />
</java>
</target>

Read more