Tuesday, January 13, 2009

LiveCycle Form Designer quits on opening a dynamic form


A weird solution to a weird problem. My LiveCycle Designer was working fine and then all of a sudden, it started quitting the moment a dynamic form was opened. The error message was standard application crash one saying



"Adobe LiveCycle Designer ES has encountered a problem and needs to close. We are sorry for the inconvenience."



 Googling led to the Adobe forums and there found this solution - Delete the folder "Designer" residing in your User folder "Appplication Data\Adobe". Usually that should be "C:\Documents and Settings\YOUR USER NAME\Application Data\Adobe". Just delete the folder names "Designer" and when you start the LiveCycle Designer, it will be created again and this time there should be no problem opening a form. Apparently this may also be caused if you have SQL 2008 installed on your system. If thats is the problem in your case, follw this link



http://www.adobe.com/go/kb407823



 

Tomato Basil Risotto

Ingredients:




8 cup chicken broth
1/8 tsp. saffron threads
1/4 cup Olive oil
4 tbsp. butter (preferably unsalted)
1/4 cup chopped onion
3 cup choopped plum tomatoes
2 cup Arborio rice
1/4 cup. chopped fresh basil
1/2 cup grated Parmesan cheese
1/3 cup white wine
1/2 tsp. (or to taste) pepper (preferably freshly ground)
Salt to taste




Directions:



In a medium saucepan, bring th stock to a simmer and crumble in the saffron threads. Maintain simmer over low heat.



In a large thick base saucepan, heat the oil and 2 tbsp. butter over medium heat. Add the onion and cook until the onion is translucent, about 2 minutes. Add the rice and stir for about 2 minutes until coated with oil. Add tomato and cook for another 2 minutes, stirring constantly. Add the wine and cook, stirring, until it evaporates.




Add 1/2 cup of the stock and cook, stirring constantly, until the rice has absorbed most of the liquid. Gradually add stock, 1/2 c. at a time, cook, stirring constantly, until the rice is almost tender but still slightly crunchy, about 20-25 minutes.

Add the cheese and season with salt and pepper. Cook, stirring and adding stock as necessary, 1/4 cup at a time, until the rice is tender but still firm with a creamy sauce, about 5-6 minutes longer. Stir in remaining 2 tbsp. butter, chopped basil, and remaining ingredients. Serve hot.

Wednesday, September 3, 2008

How to remove Bonjour Service


Dont you hate it when are installing some software and later on you find out that it installed something else too without even asking. Way to go Adobe .. grrrrrrrrrr...



Recently I installed Adobe CS3 and a few days later while looking at my service panel, i see a strnage service named "##Id_String2.6844F930_1628_4223_B5CC_5BB94B879762##". Wondering what it is, I looked at its properties and see that it is Bonjour service given a cryptic name. Googling it told me that CS3 uses it for the CUE server. Its objective is to provide zero-configuration connectivity between Version Cue server and the suite’s other applications.



One, I did not like the cryptic name, and two, I did not even install Cue server and why the hell did the installer install this unnecessary service into my ststem. You may also find this service installed on your computer if you have installed Safari or iTunes. Anyways, I find it a totally useless service, so here is how to rename/ remove it.



If you are using Version Cue, you can correct the service name just by running two commands in a command window (Start -> Run -> cmd):



    "%PROGRAMFILES%\Bonjour\mDNSResponder.exe" -remove
    "%PROGRAMFILES%\Bonjour\mDNSResponder.exe" -install



If your program file folder path is different, please update the path accordingly. The commands are to be run with the quotes as there is space in the path to the file. If you do not have space in the path to Bonjour directory, you can omit the quotes in the command. If you are running Windows Vista, ensure that the command window is opened as Adminsitrator, else these command will not work at all.  



Now you will have correct name for the service in the services panel.



In case you do not have Cue server installed like me and wish to remove this service from your system, here is how to do that.



First stop the service if it is running. Now open the command window (Start -> Run -> cmd) and run this command:



"%PROGRAMFILES%\Bonjour\mDNSResponder.exe" -remove



Restart your computer and if everything seems to be working fine browse to the "%PROGRAMFILES%\" and delete the "Bonjour" folder. You are advised to delete the Bonjor folder after restart as if there are any problems becuase of removing this service you can re-install it. And just in case you have deleted it and for some reason you want to reinstall it, you can download it from http://www.apple.com/support/downloads/bonjourforwindows.html and install it again. Personally I have never felt the need to.



 

Tomcat does not start as service


You have installed JDK latest version, and now you installed Tomcat, configfured to run as service but when you try and start it, it fails. Looking into the logs you see an error like his :



[2008-08-06 22:24:50] [info] Procrun (2.0.4.0) started
[2008-08-06 22:24:50] [info] Running Service...
[2008-08-06 22:24:50] [info] Starting service...
[2008-08-06 22:24:50] [174  javajni.c] [error] The specified module could not be found.
[2008-08-06 22:24:50] [994  prunsrv.c] [error] Failed creating java %JAVA_HOME%\jre1.6\bin\client\jvm.dll
[2008-08-06 22:24:50] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-08-06 22:24:50] [info] Run service finished.
[2008-08-06 22:24:50] [info] Procrun finished.
Tomcat startup eerrro as service 



 And that typo "eerrro" is not my doing Embarassed, it is tomcat only throwing this garbage into the log.



Most of the times, this is caused because of missing "msvcr71.dll". You can get it from http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71



Copy it into your system directory, usually C:\windows\system32 and ensure that file has execute permission set. Tomcat should be able to run as service now.

Tuesday, September 2, 2008

Getting rid of the "This page contains both secure and nonsecure items" warning?


Sometimes while you are visiting a secure site, you may see your IE show this warning message "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?"



 



Secure nonsecure




As a user this is not only inconvenient but some may find it a bit scary as well.



As a developer you must ensure that your users do not get any such warning, there are few things you must keep in mind. Most of the time such warnings are generated as result of including a non secure content like an image or stylesheet in the secure page with absolute URL which is using standard http protocol to get the content.



say "http://www.example.com" has an image "image.jpg" included in the page. The secure site, "https://www.example.com" is using the same image but the image source attribute is set as "http://www.example.com/image.jpg". here is your problem content. Copy the logo to the secure site and load it from there. All you need to do here is use "https://www.example.com/image.jpg" as the image source attribute and the user will no longer get the warning message about mixed content.



Sometimes this warning is also generated because of IFRAME tags in your page. If you have an IFRAME in your page, ensure that its source attribute is set. If there is no source attribute set for the IFRAME, or set to null, user will be displayed this warning message. When you set the src, make sure it points to a real file.



If you are unable to find the culprit content, try debugging it in Firefox, using the Web Developer extension or Firebug. These extensions allows you to look at detailed information including the paths of various objects/ contents in the page.