Software / Technology Tips

Easy way to create web services in Java

This tip demonstrates how to create a web application in Java. Let us start with creating a webservice with the name web_service_demo. After creating the application , we need to create a package. For creating package right-click on the application project name ,than click on package link. It will show you a pop-up box where…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Dead Code Stripping. Its usage in Adobe InDesign

Let me first explain what dead code is Dead – Code ( Unreachable code ) :- It is the part of the program that is never executed, because the control flow never reaches it. Example of Dead Code :- int f (int x, int y) { return x+y; int z=x*y; }. In this code “int…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Hooking a message box in VC++

Sometimes we need to display message boxes with customized or user defined button caption. There are two ways to implement the same : HHOOK hMsgBoxHook; LRESULT CALLBACK MsgBoxProc(int nCode, WPARAM wParam, LPARAM lParam) { TCHAR ach; HWND hwnd; HWND YES; HWND NO; HWND CANCEL; if(nCode < 0) return CallNextHookEx(hMsgBoxHook, nCode, wParam, lParam); switch(nCode) { case…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Creating A Console Command Operation On Symfony2

I guess most of the users of Symfony2/Zend2 would have used various list of commands for your bundle/module with your app, it may be for installing web assets or generating entity classes for your propel/Doctrine ORM etc.. In my application, we had to start with a new module which doesnt have any pre-defined data in…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

New Adobe In-design Functionality of Alternate layouts

Alternate Layouts Functionality The Adobe Indesign CS6 introduce the new functionality of Alternates layouts which help us to create a document with different or multiple orientations. For any tablet say I-pad, Zoom,Galaxy or so on, We can see the same layout or document in portrait(Vertical) and Landscape(Horizontal) view. If User create a layout in Landscape…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Intensity Calculator | Mindfire Solutions

Sound intensity is the measure of amplitude at a particular instance of time from a 16 bit .wav file. This is a sample program to demonstrate the calculation of intensity. Step 1: Read the input wav file AVIStreamOpenFromFile (PAVISTREAMobj,lpszWavFilePath,streamtypeAUDIO,0, OF_READ, NULL)) Step 2: Get the raw stream data AVIStreamInfo (PAVISTREAMobj,objAVISTREAMINFO,sizeof(objAVISTREAMINFO)) Step 3: Read stream format…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to target a Wicket component by event handlers using WicketAjaxBehavior ?

Wicket Framework provides its own implementation class for using AJAX with Web Application. It Provides some normal components like AjaxFallBackLink,AjaxSubmitButton etc with AJAX behavior. Here I am going to discuss how to use the “AbstractDefaultAjaxBehavior” class for targetting any component by clicking that component. I am taking “Label” as a component here for example to…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to use CreateInstall Free to build an installer package

We can download it for free from “ Let us discuss the necessary steps to use CreateInstall Free for building an installer package ( assuming that CreateInstall Free has been downloaded from the above given URL and has been installed in the system.Tese steps are for CreateInstall Free version – 4.14 )::– 1. Firstly we…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Dependency Injection in Spring Framework

In this tip we will look at what Dependency Injection is and how this design pattern can be helpful. While working on different projects we sometimes come across situations where Java components are tightly coupled. In such cases the component looses its reusability. Using Dependency Injection(DI) we can decouple the components and increase the chance…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How To Restrict An Image File(or A Jar File) From Being Downloaded Through The Browser

So the solution is keep it in your WEB-INF folder so that browser is not able to access it.Simple and steady. That is one part of the story.Beacuse everything cant be kept in the WEB-INF. Other part is – We can also do it by the servlet mapping. Lets take an example and learn it…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!