Skip to main content

Update to "Solat Malaysia"

Alhamdullillah finally I have done it. I have finally took enough time to upgrade the "Solat Malaysia" app to save the solat schedule for a whole month from e-solat.gov.my. So now it would update to the current day schedule even though the site is currently down (which it comes down a lot, and people start blaming the app for not updating). To be fair, it could be that the app was "part" of the reason the website kept on going down considering that there was thousands of "Solat Malaysia" users at least updating their app every single day (and every single solat schedule app that uses the same update model). It kept on going down so many times that I even though about proposing to JAKIM to let me have a go at properly setting up their server to cache, balance and handle such traffic for free. But never got round to that and finally just upgraded my own software to play nice instead.

Apart from the all important downloading the whole month schedule update, the azan works properly now too. At least properly on my experia active. Before this it relied on a running service to check when it was time to sound the azan, which usually the service gets killed and never start again, causing the azan to not happen. I've finally fixed it to properly set and use an alarm manager and thus there is no background service which might be killed to rely on. Truth be told I have no idea what I was thinking early on when I used the service approach. It is quite silly.

Other things which have improved a bit (but just a bit though) is I spent a little time on streamlining the process to change area and a bit of cosmetic touch up. Finally I've actually aligned the text in the widget.

And as always, the most important part for me from "Solat Malaysia" is learning how to program for the android and it's all still available for the public at https://github.com/abdza/solatmalaysia. Some of it like I said is a little bit embarrassing (like why on earth did I use a service for the azan) but it's also encouraging that I am actually improving my android coding and understanding. Finally I can put this to rest for a while and concentrate on my other projects. Thank you all for the support you gave even when the software really sucked and even I couldn't recommend it to my friends. But now I finally can recommend it to my friends, so Shazman, if you're reading this, install it NOW... :P

Comments

kamarul said…
This comment has been removed by the author.
kamarul said…
Salam Abdullah,

Is it possible to create a server where it cache info from Jakim. You apps then retrieve from that server, similar to mirror server?

Popular posts from this blog

haproxy on Centos 7 with SELinux

Setting up haproxy and varnish with reference to the configuration from these sites: http://sharadchhetri.com/2014/12/20/how-to-install-varnish-4-version-on-centos-7-rhel-7/ https://www.upcloud.com/support/haproxy-load-balancer-centos/ And finally can access plone on the server. But when I check the haproxy status, only client1 can be accessed. All other clients were down with general socket error, permission denied. Googling a bit I finally found out it was due to SELinux. Refer to this page: http://stackoverflow.com/questions/26420729/haproxy-health-check-permission-denied With the solution from that page, I installed policycoreutils-python and tried to run the command given: semanage port --add --type http_port_t --proto tcp 8081 But that command failed with the error that the port was already defined. When I looked it up using: semanage port -l | grep 8081 It belonged to some other type (transproxy_port_t). When I tried to delete the type using: semanage port -d -t transpro…

Installing Centos 7 on HP G7 Server

When I first initially tried it, the installer cannot detect any local hard disk to install to. After much googling found out that it was because a certain driver for the Smart Array Controller is no longer available on Centos 7. To allow for use of the new driver on old hardware, you need to enable the option. Once the DVD has booted and on the first menu screen, highlight the first option and then press tab which would bring you to a command line where you can add additional parameters to boot. Add the following parameters: hpsa.hpsa_allow_any=1 hpsa.hpsa_simple_mode=1 And then press enter to boot. You should now be able to install as you wish. After installation, on the first boot, make sure at the menu, press 'e' to edit the parameters and add them again. Then once booted, go to /boot/grub2/grub.cfg to permanently add the parameters to the menu. Refer to http://serverfault.com/questions/611182/centos-7-x64-and-hp-proliant-dl360-g5-scsi-controller-compatibility and it&#…

Me and my sleep apnea

I have been suffering from sleep apnea for quite a few years already. It started to show when I was still with OSCC some 6 years back when I would sometimes "accidentally" sleep at my cubicle. Early on I just dismissed it as because I was growing fat (we ate a lot at OSCC.. :P and I barely went anywhere except my cubicle) and also because of babies. Oh babies.. those cute little things that keeps you awake at night so that they can be so cute and charming when your friends and relatives come over the next day. So it was dismissed. Later on I got more and more used to sleeping at work, started associating it with my lack of motivation and sometimes feeling of downright depression. And I kept growing fatter and fatter, which I assumed was the reason why I was getting more and more tired.

But then around 2 years ago a friend of mine suggested maybe I've got sleep apnea. And a few other people suggested I go to a sleep clinic and all that. Put it off for quite a while. Until…