Archive for January, 2008
Minor patch: Bringing labels closer
When I looked at a freshly compiled version of KStars after a long time, and zoomed in on M31, the label that read ‘M31′ was far, far away from the Galaxy, as if it were labeling the empty sky! (The separation was about 2 degrees between the left top corner of the label and the center of M31) Same was the case with M33 – this time the labeling was 50 arcminutes away.
After some tinkering around, it was pretty obvious that the offset of the label was calculated by taking the major axis of the object and scaling it by various zoom factors and adding an additional constant displacement. Now, the correct solution is to find out the actual distance of the bottom left portion of the object’s boundary from the center, so that the label is just placed outside the object to it’s bottom left. I didn’t know how to calculate that, because I don’t know the angle at which the major axis of the ellipse / rectangle is inclined. So I tried changing the computation to take the average of the major and minor axes. Now it looks a little more decent, but as is expected, there are times when the label comes too close (or maybe penetrates into) the object boundary!
Anybody willing to do a better computation should help KStars by letting the devel mailing list know!
The patch is on SVN commit #768419 to the Trunk. I know it is really a dumb patch, but makes things look better.
Here’s a copy of the patch:
— trunk/KDE/kdeedu/kstars/kstars/deepskyobject.cpp #768418:768419
@@ -328,8 +328,12 @@
double DeepSkyObject::labelOffset() const {
//Calculate object size in pixels
double majorAxis = a();
- if ( majorAxis == 0.0 && type() == 1 ) majorAxis = 1.0; //catalog stars
+ double minorAxis = b();
+ if ( majorAxis == 0.0 && type() == 1 ) { //catalog stars
+ majorAxis = 1.0;
+ minorAxis = 1.0;
+ }
double scale = SkyMap::Instance()->scale();
- double size = majorAxis * scale * dms::PI * Options::zoomFactor()/10800.0;
+ double size = ((majorAxis + minorAxis) / 2.0 ) * scale * dms::PI * Options::zoomFactor()/10800.0;
return 0.5*size + 4.;
}
Add comment January 30, 2008
Concert by VVS, Saarang 2008 Classical Nite.
(23rd Jan 2008)
This time, Saarang 2008’s classical nite was a concert by Violin Maestro Prof. V. V. Subramaniam accompanied by his son and disciple Sri V V S Murari on the Violin, Sri Tiruvarur M Bhaktavatsalam on the mRdaNgam, and Vykom Sri Gopalakrishnan on the ghaTam.
Prof VVS initially played light songs like vAtApi (hamsadhwani), parAtpara (vAcaspati). On of the best pieces was janani ninnuvinA in rItigauLe. The main piece, SrI vaLLi dEvasenApatE in naTabhairavi was excellent. The taniyAvartanam was very good, needless to say.
There was a nice kRti in bEhAg followed by a KavaLi cindu and finally a sindhubhairavi kRti.
It was nice to listen to a concert at the OAT!
Add comment January 28, 2008
Photographing Saturn on Linux!
We used my friend Dr. Suresh’s Philips ToUcam webcam with minor modifications to photograph Saturn through our institute’s 8″ Celestron GT Advanced telescope!
A bit of googling told me how to use a Webcam with Linux – there’s the Linux Webcam HOWTO that has more than you’ll ever need.
The kernel happened to be very nice and detected the webcam and provided a /dev/video0 device – so I didn’t have to break my head over that. A bit of software that was available on the Debian repositories called ‘camstream’ helped me view the webcam image and take snapshots at 1 fps (which is rather slow
). The Webcam HOWTO also talked of this CLI program called ’streamer’ (this was on the Debian repos as well) which could capture from the webcam in AVI format!
My friend and me processed the photos using Registax v4 (No! this is not Open Source X-( ) on WINE and then with The GIMP. Registax is not open source and is rather limited in functionality – it can’t handle more than 500 still image files at a time, couldn’t read the AVI format we captured in, and most importantly doesn’t run natively on Linux. This has inspired us to think of writing a FOSS stacking software. I have no idea how we’ll do that because nobody knows anything about stacking here! If somebody is interested in helping out, please drop a comment or contact me on IRC etc etc.
Our photos are available here:
http://www.bas.org.in/Home/index.php?q=gallery&g2_itemId=1136
And as is expected of true open source fanatics, we release them to Public Domain. No rights reserved
6 comments January 28, 2008
Compiling KDE from SVN sources…
…is a major pain.
I encountered quite some trouble and still amn’t through.
It looks like a spotted a bug http://bugs.kde.org/show_bug.cgi?id=156791 with the detection of Xine libs in Revision 767273 (I guess) on the way, and while I wait for feedback on the bug, I decided to compile without Multimedia support.
We work behind a HTTP Proxy in our institute, which does not permit “svn://…” URLs. So I end up having to torify all SVN checkouts and updates, which makes life even more miserable because the way tor works, it ends up taking ages to transfer even small amounts of data – and the connection keeps cutting off. It’s like downloading KDE4 sources with a dialup connection!
Even as I type this post, I have a torify svn co running in the background. I’m trying to look for help on how we can get the proxy to permit SVN. If anyone knows how to do this, please do leave a comment, and we’ll see if we can request the Computer Center here to implement such a feature.
6 comments January 28, 2008
Yet another concert…
Yes, a blog post after long time.
This time I attended Sangeeta Kalanidhi Prof. T. N. Krishnan’s concert at Hamsadhwani in Indira Nagar on 26th Jan 2008, Republic Day.
He started with Vatapi Ganapathim (Hamsadhwani, M. Deekshitar) as a tribute to Founder Secretary of Hamsadhwani who organized the concert. This was followed by some krtis in kAMbODhi and dhanyAsi, which I am unfamiliar with. The Main piece was nannu pAlimpa (mOhanam, tyAgarAjar). The main piece was followed by various songs to mark the occasion of Republic Day like raghupati rAghava rAjA rAm, vandE mAtaram (dES) and vaiSNo-something (behAg).
Prof T N Krishnan was accompanied by his daughter and disciple Smt. Viji Krishnan Natarajan on the violin, by Thiruvarur M Bhaktavatsalam on the mRdaNgam, and by Vykom Sri Gopalakrishnan on the Ghatam. Needless to say, the taniyAvartanam was marvellous.
The acoustics at Hamsadhwani was the major turnoff.
Add comment January 28, 2008