Posts

Africa- part1 - Livingstone - Victoria Falls

Image
The best trip of 2014 When: August 2014 Where  : Zambia->Livingstone-VictoriaFalls->South Luangwa national park->Zanzibar We flew from Geneva via Frankfurt-Ethiopia (Addis Ababa airport) by Ethiopian Airlines. The Addis Ababa airport was very small, we had 2 hour halt while going and 4 hour halt while coming back. We flew into Lusaka , where we stayed there just for a night. From Lusaka, next day, we took Proflight Zambia flight, a 30 seater, 1 hour flight to Livingstone. They served amazing muffins and sandwiches in the flight as well ;) :D. In Livingstone , we stayed in the center at Fawlty Towers ( 216s Musi o Tunya Road). Its a backpackers place and we loved it. Location was perfect, just opposite to the supermarkets and restaurants, and only 15 mins from the airport. The place was really nice, calm, extremely clean, with a nice swimming pool. Every afternoon at 3 pm they used to give free pancakes ( actually crepes ;) , which were a treat with coffee. T...

Africa!

Image
The best trip of 2014. Here are some pics from the safari... Details of the trip coming really soon!

Create New File Type resolver and associate the data type in Netbeans

1. make a new xml Document ( eg, PdbResolver) 2.choose DTD Constrained Documenton the second page of the new Xml Document wizard 3. On third page, in the DTD Public Id, choose, -//NetBeans//DTD MIME Resolver 1.0//EN,  from the drop down menu 4. save it 5. make a new java file , call it as DataObject ( eg: PdbDataObject), write ur code... 6. save it, and add  @MIMEResolver.Registration(displayName = "PdbResolver", resource = "/alifea/gui/PdbResolver.xml") for registering the mime tyoe to the data object file 7. In the layer file add                 <folder name="x-pdb">  <folder name="Factories">                     <file name="PdbDataLoader.instance">                    ...

Understanding Bayesian Belief Networks, and their Inference

Amazing lecture series from IIT Kharagpur for understanding Bayesian Networks, Bayesian Belief Networks, and their Inference. http://www.youtube.com/watch?v=P1b9Y4aacOE&list=PLAED5C0CF1D9BA622

Create a Floating/Undocked Non-sigleton Window in Netbeans

first of all some really useful links on this topic: http://netbeans.dzone.com/news/secrets-netbeans-window-system https://blogs.oracle.com/geertjan/entry/case_study_customizing_the_netbeans http://forums.netbeans.org/ptopic15413.html To create a TopComponent which is undocked by default, one need to define an undock (or floating ) mode. To do so, create a new XML file and call it "newModeUnDock.xml" Wriet following in the file: <?xml version="1.0" encoding="UTF-8"?> <mode version="2.3">     <name unique="newModeUnDock" />     <kind type="editor" />     <state type="separated" />     <constraints>         <path orientation="vertical" number="0" weight="0.5"/>         <path orientation="horizontal" number="1" weight="0.5"/>     </constraints>     <b...

to make custom configuration file for distributed netbeans java project

followed the blog at : https://blogs.oracle.com/geertjan/entry/support_for_custom_configuration_files steps: 1. clean and build the project 2. package the project as Mac Os X Application. 3. copy the  project/build/launcher/etc/app.config file to a new file at project/nbproject/ and rename it as my.config. 4. Now, change/add the wanted arguments in a new my.config file. for example, add J-d64 -J-Xms512m -J-Xmx2G to the default_options in the new my.config file. and save it. 5. Add app.conf=nbproject/my.conf to the project.properties file. 6. clean and build the project and package as Mac Os X Application, again. 7. check the project/build/launcher/etc/app.config file. It will have the default options overridden .

add/ remove fast action by double clicking the project node

in layer.xml file <folder name="Analysis">                 <folder name="Actions">                       <folder name="PreferredAction"> add following : <file name="alifea-gui-actions-AddAnalysisAction.shadow">                         <attr name="originalFile" stringvalue="Actions/AddAnalysis/alifea-gui-actions-AddAnalysisAction.instance"/>                     </file> if you want to open the action by double clicking the project node and delete if you do not wnat that