Saturday, December 28, 2013
Friday, December 20, 2013
Get Battery Status from Terminal
I wanted to trigger an application based on the current status of the battery, so I wanted to get the information about the current battery charge status.
Its fairly simple in Linux. 'acpi' is very handy for the purpose. If you haven't installed it yet (you can check it using the code below):
Its fairly simple in Linux. 'acpi' is very handy for the purpose. If you haven't installed it yet (you can check it using the code below):
rpm -qa acpiYou can install it easily using apt-get in Ubuntu or if your machine is rpm based like mine, you can look for it in web.
Tuesday, December 10, 2013
Completed my Particle Viewer App
Finally, my "Particle Viewer" Application is complete. I have been working on it for long and it really feels good to see it running. For those who don't know, its a 3D particle analysing tool that is used to study particle behaviour inside a container. The containers are the STL files which are also rendered using the application.
Particle Viewer |
Saturday, November 30, 2013
"Shaking Divs" using CSS
Here's the link to the implementation of the shake:
Saturday, November 23, 2013
Reflection, Refraction using CubeMapping.
Reflection, Refraction is fairly easy in OpenGL using both Shader and normal OpenGL pipeline. Today I tried both the classical method of Reflection Mapping and also using shaders.
The main objective of today's work was to render shiny Metals and Glass. The shiny metal needed a simple reflection mapping. The result is shown in the figure below:
Friday, November 22, 2013
Wednesday, November 20, 2013
Displaying Excel in Webpage. [Excel2HTML]
Working on my report generation project, today I tried to display Excel data in JSF powered pages using Java. First I looked for existing libraries/extension for Java that would help me display Excel data in HTML. I found a pretty good library too, called the ZKSpreadSheet. Here's the link : zkspreadsheet. It's very powerful, but not exactly what I had in mind.
Snapshot of Excel Display in HTML |
Monday, November 18, 2013
Metal Effect using GLSL in OpenGL.
Today I tried to produce a like-metal effect to objects in OpenGL using GLSL. I implemented Phong's Per pixel shading in GLSL on top of a Brushed Metal Texture. I set the metal's material property using references from the internet.
I haven't added reflection (cube mapping) here, as it looks fine and also because its just a simple STL viewing interface.
Here are some of the snapshots:
I haven't added reflection (cube mapping) here, as it looks fine and also because its just a simple STL viewing interface.
Here are some of the snapshots:
Saturday, November 16, 2013
Thursday, November 14, 2013
Automatic POI Excel Builder [Source Code]
Yesterday I blogged about my work on Excel Report Generation and how I thought of automating the report generation process. Blog link here.
Wednesday, November 13, 2013
Working on Excel Report Generation using Java (POI) [Automation]
I am currently working on a Java Project that automates Report Generation using POI. Given necessary parameters, it would extract data from database and construct an appropriate Excel table.
Sounds pretty straightforward, isn't it? Well, it certainly is not. A good table would require proper coloring of Cells, setting required Formulations, appropriate Merging of cells and even setting proper column width and many more.Tuesday, November 12, 2013
Understanding Delaunay Triangulation.
I have posted earlier about the Voronoi Diagrams. Well, simlar to that diagram there is another diagram called the Delaunay Triangulation.
Saturday, November 9, 2013
Monday, November 4, 2013
Made a Code Viewer For Blogger.
Today, I made a really simple Code Viewer that allows Blogger Template to render Source Code in an effective or rather attractive and readable form. It's not much of a big deal, but I was looking for a similar plugin for this blog some 2 days ago and realized how simple it is. So, I thought of making one.
Saturday, November 2, 2013
Friday, November 1, 2013
Wednesday, October 30, 2013
Understanding Voronoi Diagrams.
The Voronoi Diagram of a collection of geometric objects is a partition of space into cells, each of those cells consists of the set to points closer to one particular object that to any other.
Blogging Again :D
I haven't been working on my blogs lately. I have been quite busy to say the least. I have updated some blog post on my other blog TechTach.com, which is more of a technical blog. I am planning to allocate some time on this blog more often now.
Mostly I will be sharing what I am learning or trying to learn and also some works/projects I have completed. So, this will be my work dairy now onwards :D
Thank you for reading.