maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1) (https://talk.maemo.org/showthread.php?t=72166)

Joseph9560 2011-04-15 04:04

[Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
5 Attachment(s)
What is Nepali Calendar?
Nepali Calendar (nepcal) is a simple application to display Bikram Samabat calendar system. Bikram Sambat is a calendar system followed in Nepal just like AD in USA, Europe and many other countries. Nepal Sambat has been declared as official Nepali Calendar system while Bikram Sambat is still in actual use.

Features:
* Nepali month view,
* Easy navigation between months and years straight from main view using Previous Month ( < Month), Next Month (Month >), Previous Year (< Year), Next year (Year >),
* Displayed Month, Year as well as current date are displayed right in the main view,
* Goto month corresponding to today,
* Option to choose if only days of current month is to be displayed or days of current as well as neighboring months are to be displayed,
* Option to show or hide English date,
* Option to goto certain English or Nepali date,
* Option to convert Nepali date to English and vice versa,
* Option to choose Nepali Interface (Restarting program required for complete language switch),
* Persistant storage of preferences (unlike in previous versions),
* Experimental portrait view: if program loads at forced rotation on in cssu then it will fit portrait mode else it will fit in landscape but in either case it won't look nice in other mode,

Limitations:
* No English month view
* Available data is from 2064 to 2075 (you can add data yourself see /home/user/.NepaliCalendar/nepCal.dta file to add more data, if anybody is interested then do help me compiling more data),
* No auto rotation of the program,
* Tithis are out of my knowledge so no tithis in the calendar

History:
There were few insances where I disperately needed Nepali Date but I have no choice but to use slow gprs of Nepal Telecom. There was a j2me app to display Nepali Calendar but it didn't even loaded in microemulator inside n900. I even tried to tweak multi-date-cal widget based on python without success. So I was left with no choice but to develop my own calendar application. Thanks for reading, most probably this app won't be of much use for people other than Nepalese although if calendar system in your country is also different then you can modify the data and use it for your own calendar system.

Version History:

**nepcal 0.0.1
* Initial release,
* Displays today's date in a simple label widget,
* Never released for public

**nepcal 0.0.2
* Added feature: Displays calendar form in table,
* Added feature: Can browse through months and years,
* Displays today's date in small label aside

**nepcal 0.0.3
* Added feature: Goto Today in Menu,
* Added feature: Show / Hide English Date and Days of previous and next month,
* Added feature: Highlight today and same day of other months,
* Added: About and About QT,
* Added feature: Showing current Nepali and English month being displayed at top,
* User data file if kept in the same folder as nepcal executables, is read but it still needs modifications since all data are not readed from datafile,
* Trim text is used and probably there won't be any error because of the whitespaces in datafile,
* Change: Redesigned UI,
* Bugfix: Some months were skipped while browsing through months

**nepcal 0.1.0
* First major release
* Almost complete rewrite of the program,
* Added data limit check for upper range,
* Full data file format so that user can use their own data file in case default one comes to be erroreneous (file nepCal.dta should be kept in /home/usr/.NepaliCalendar/),
* Settings are now saved and hence is persistant,
* Added Nepali Interface option,
* Added date convertor from Nepali to English and vice versa,
* Added goto Nepali or English Date
* Only today or converted date is highlighted (I thought that would be better choice than same day of all months)
* Debug messages in x-term

**TODO LIST(IMPORTANT)
* I believe all my important to do list are completed, now only minor unimportant things are left which I am not much interested in or don't know how to do it.

**TODO LIST(UNIMPORTANT) (I have no idea how those things can be done or those features are not much required)
* Shortcuts doesn't work (eg Ctrl+T) in maemo while it works in desktop
* Status menu applet or desktop widget version-somewhat interested but no idea how to do those things
* Display numbers in Nepali as well
* Showing English dates in subscript instead of in bracket-seems impossible to me
* Easy navigation for months and years using checkbox or whatever (Since we already have goto date this seems unnecessary)
* Disable column resize (I have tried it for quite some time without success plus its not quite important)
* Cute Interface and portrait mode support (Seems like I am bad in coding and too bad in UI design)
* English month view as major view and hence Nepali Date in bracket

Note:
* Check the data of 2066 BS: days in Falgun and Chaitra are 29 and 31 respectively in my data while Nepali Calendar by Poudel and Poudel (one which shows green widget in win oses) shows those to be 30 and 30. Any reference as well as verification will be appreciated regarding those months. And yes thanks to Ishwori Kandel for providing me those data.
* I think I am done with Nepali Calendar, this version seems to work well as well as feature rich engough. I have GRE to prepare for and I am kind of wasting my precious time developing this application. So don't expect newer versions (sooner or later) except if there are major flaw in the system which I might take a look at and replease minor patched versions. Another reason being this app is useful only to handful of peoples, might release symbian version some day.
* Application needs to be run as root as in other case the application can not save its configuration file.

Latest version 0.1.0 is in devel now. Usual warning applies if you want to try anything from devel.

somedude 2011-04-15 04:36

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
a great way to start a new year eh?
Happy new year to you.

Joseph9560 2011-04-15 06:21

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
@somedude Thanks a lot, but how did you came to know yesterday was a first day of Nepali New Year. I tried to create and upload the package yesterday (as soon as new year begins) but qt's "No folder with spaces bug" made it impossible and I was just wondering what went wrong. Finally figured it out yesterday and we have new version of the calendar.

Anyways, I have requested to upload it to devels as well, maybe it will go to devel (and never come out of it) soon.

jaeezzy 2011-04-15 07:02

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
Quote:

Originally Posted by Joseph9560 (Post 988753)
What is Nepali Calendar?
Nepali Calendar aka nepcal is a simple application to display Bikram Samabat Calendar. Bikram Sambat is a calendar system just like AD in English. Bikram Sambat is still in actual use in Nepal while the official calendar system of Nepal has already been changed to Nepal Sambat. There were few insances where I disperately needed Nepali Date but I have no choice but to use slow gprs of Nepal Telecom. There was a j2me app for to display Nepali Calendar but it didn't even loaded in microemulator inside n900. So I was left with no choice but to develop my own calendar application. Thanks for reading, most probably this app won't be of any use for people other than Nepalese.

Version History:

**nepcal 0.01
* Initial release
* Displays today's date in a simple label widget
* Never released for public

**nepcal 0.0.2
* Added feature: Displays calendar form in table
* Added feature: Can browse through months and years
* Displays today's date in small label aside

**nepcal 0.0.3
* Added feature: Goto Today in Menu
* Added feature: Show / Hide English Date and Days of previous and next month
* Added feature: Highlight today and same day of other months
* Added: About and About QT
* Added feature: Showing current Nepali and English month being displayed at top
* User data file if kept in the same folder as nepcal executables, is read but it still needs modifications since all data are not readed from datafile
* Trim text is used and probably there won't be any error because of the whitespaces in datafile
* Change: Redesigned UI
* Bugfix: Some months were skipped while browsing through months

**TODO LIST(IMPORTANT)
(What can be expected in next version if I continue the project again)
* Full data file format so that user can use their own data file in case default one comes to be erroreneous
* Separate Config file to store preferences
* Upper limit of database is not yet checked and hence there is unusual behaviour if user is browsing above the available data limit (anybody can help me: Is there a way to read the number of lines directly after reading a fie with QStreamText things? How to resize an array of integers?)
* Resizing the array storing the days in month record for upper limit check and hence to avoid unusual behaviour
* date converter is not yet there(probably goto some English date will be there in next version, again anybody can help me: how to add or create some user input form for inputing English date as in About like windows)

**TODO LIST(UNIMPORTANT) (I have no idea how those things can be done or those features are not much required)
* Showing English dates in subscript (anybody: how to create table item with normal and subscript text in same item)
* Easy navigation for months and years using checkbox or whatever (Lets see if I could make it)
* Disable column resize (there is a disable resize thing in the property window of the table but it doesn't seems to do the job)
* Happy new year wish message if user run the application in Nepali or English new year day (I thought I would keep this secret, should be easy to do)
* user defined background color of various cells-impossible(whatever color I set in table item, it appears same in mobile though different in pc version)
* Cute Interface and portrait mode support (Seems like I am bad in coding and too bad in UI design)

awesome ;) now I'll have nepalese calendar always with me tooo..

EDIT: Happy new year btw.. glad to see nepalese dev here..

Joseph9560 2011-04-15 07:07

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
@jaeezzy just wondering if you are Nepali (I can see Australia as your location). Just a quick note I have kept data of only three year for now (probably upto 2069). Will add data of few decade later, maybe in next version.

c:drive 2011-04-15 07:21

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
DhanyaBad cha app Dev lai 4 Nice Callender,Now i don't have to look 4 vittay Patro,Bytheway Happy New Year 2068""""""

Jagat4webber 2011-04-15 07:29

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
Good to see Nepali guys here. Thanks for the app.

Jagat4webber 2011-04-15 07:30

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
Happy new year by the way.

midflow 2011-04-15 08:10

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
is this like lunar calendar?

jaeezzy 2011-04-15 08:47

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
Quote:

Originally Posted by Joseph9560 (Post 988814)
@jaeezzy just wondering if you are Nepali (I can see Australia as your location). Just a quick note I have kept data of only three year for now (probably upto 2069). Will add data of few decade later, maybe in next version.

Ya I'm Nepali in Australia :) Three yrs is enough ;)

somedude 2011-04-15 14:17

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
wow didnt know we had a pretty good chunk of nepali lads in the forum.
yeah three years of data is plenty... i think...
i am quite certain that everyone would have a different device in 3 yrs from now.
its good that you took QT for the programming if someday meego takes off, shouldnt be that hard to compile for it right? i am not that bright on the programming.
oh yeah i knew because i am from Nepal too.

Joseph9560 2011-04-19 10:53

Re: [Announcement] Nepali Calendar aka nepcal 0.0.3
 
Quote:

Originally Posted by midflow (Post 988846)
is this like lunar calendar?

Yes it is one of the lunar calendar and there is no hard and fast rule to calculate number of days in given month or at least I don't know it.

Quote:

Originally Posted by somedude (Post 989096)
wow didnt know we had a pretty good chunk of nepali lads in the forum.
yeah three years of data is plenty... i think...
i am quite certain that everyone would have a different device in 3 yrs from now.
its good that you took QT for the programming if someday meego takes off, shouldnt be that hard to compile for it right? i am not that bright on the programming.
oh yeah i knew because i am from Nepal too.

I expected for at least 5 other guys(excluding me), we are all total five. Not that bad. :-)

Any comments, suggestions, bug reports are welcomed.

Btw I was confused with somedude and somebody (developer of someplayer), thought somedude was Russian. :-)

Joseph9560 2011-05-16 06:31

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
New version is out and probably will be final version. Just noticed that I should have aligned the text in middle rather than default left.

somedude 2011-05-18 04:57

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
will try
................

Xagoln 2011-05-18 13:25

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
I cycled through Nepal a few months ago, and really loved it. Such wonderful people!

I am trying to encourage more localisation of Maemo apps, so if anybody wants to do Nepali translations, hopefully some other devs will come forward and add localisation support to their apps - it's really not difficult.

@Somedude, didn't you write Someplayer?

Joseph9560 2011-05-22 06:44

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
@Xangoln Thanks for visiting Nepal. Hope (and seems) you enjoyed Nepal. We are celebrating Nepal Tourism Year 2011. I did thought to include Nepal Tourism Year 2011 info in about page of the app, but forgot to do so.

About localization of more maemo apps, you already saw how many maemo users are there :-) . On one hand there are too few Nepalese here, on the others those who carry n900 shouldn't have problems with normal English, at last it was/is a high end device. And Nepali translation was among most boring and/or hard part of the app development. I don't know how to use Qt Linguistic, all I did was conditional statement to change the displayed text, even harder part was I required to convert Nepali unicode text into unicode numbers (something like \320\240\255 ) and paste those numbers in the code. I don't know if there's any other way but that's what I knew and that's what I did.

And no its SomeDUDE not SomeBODY. I got confused as well.

rasik_35 2011-07-26 13:19

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
thanks a lot to joseph9560. mobile ma nepali calendar liyera hinna ramailai hun6

Joseph9560 2011-07-27 07:50

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
@rasik_35 welcomed, nice to see one more user of my app. Might probably make auto rotation possible and center align the text in the calender cells, not anytime sooner though. My GRE date is approaching and I am totally unprepared :-)

rasik_35 2011-07-27 08:02

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
jos...
one problem, the app is not opening. when i tap on the menu icon then it shows busy for a while then nothing opens at all. what's the fault?

Joseph9560 2011-07-27 08:06

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
Hmm, the app is coded in qt, I guess qt comes by default in n900. Which are you using PR 1.3 (or even newer CSSU) or are you with old version of the os? Make sure your other qt apps are working, download and install qt packages if problem is not yet soloved.

rasik_35 2011-07-27 08:42

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
i've pr 1.3 other qt are working. even i'm confused why this is not working

Joseph9560 2011-07-27 08:47

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
try /opt/usr/bin/nepcal from terminal, some useful info might pop up except the issues related to background image stretch etc etc. Did you get
Code:

Configuration file read successfully
Data reading successful lines.


rasik_35 2011-07-27 09:02

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
Quote:

Originally Posted by Joseph9560 (Post 1059141)
try /opt/usr/bin/nepcal from terminal, some useful info might pop up except the issues related to background image stretch etc etc. Did you get
Code:

Configuration file read successfully
Data reading successful lines.


here's the result:
maemo applications must be run with the run-standalone.sh script!
QGtkStyle was unable to detect the current GTK+ theme.
configuration file read successfully
data reading successful
segmentation fault

Joseph9560 2011-07-27 09:49

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
Try doing
Code:

sudo run-standalone.sh /opt/usr/bin/nepcal
then, hopefully it would work.

rasik_35 2011-07-27 09:52

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
Quote:

Originally Posted by Joseph9560 (Post 1059159)
Try doing
Code:

sudo run-standalone.sh /opt/usr/bin/nepcal
then, hopefully it would work.

it worked but do i have to use this code everytime to launch the program

Joseph9560 2011-07-27 10:04

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
I don't know why its not working from menu, .desktop file got the same code.

Goto /usr/share/applications/hildon/ and open nepcal.desktop

Check if the content of the file is same as below:

Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=nepcal
Exec=sudo run-standalone.sh /opt/usr/bin/nepcal
Icon=nepcal
X-Window-Icon=nepcal
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

I don't see any other reason for it not to work if the contents are same.

Try rebooting the phone, might do the job.

rasik_35 2011-07-27 10:32

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
Quote:

Originally Posted by Joseph9560 (Post 1059163)
open nepcal.desktop

.

well don't get upset. i've reached the location now how to open nepcal.desktop.
by the way rebooting didn't help

Joseph9560 2011-07-27 10:35

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
what app are you using to for browsing to the location?

Download filebox as a file manager and leafpad as text editor, combo of those two apps should do the job.

rasik_35 2011-07-27 10:39

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
can't do with xterminal?

Joseph9560 2011-07-27 11:44

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
try osso_notes nepcal.desktop then

rasik_35 2011-07-27 13:09

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
the content is the same as mentioned....:p

Joseph9560 2011-07-28 05:01

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
Quote:

Originally Posted by rasik_35 (Post 1059160)
it worked but do i have to use this code everytime to launch the program

Which one actually worked?

Code:

sudo run-standalone.sh /opt/usr/bin/nepcal
or

Code:

run-standalone.sh /opt/usr/bin/nepcal
previously I wrote the second one, may be you tried that one which I later edited and added sudo. Sudo is required to be able to edit and save the preference file. If second one was what you tried worked then get rootsh from repository. It should work then. If first one worked from x-term then I have no idea what went wrong, basically clicking on menu and typing first command should do the same thing.

rasik_35 2011-07-28 05:37

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
Quote:

Originally Posted by Joseph9560 (Post 1059703)
Which one actually worked?

Code:

sudo run-standalone.sh /opt/usr/bin/nepcal
or

Code:

run-standalone.sh /opt/usr/bin/nepcal
previously I wrote the second one, may be you tried that one which I later edited and added sudo. Sudo is required to be able to edit and save the preference file. If second one was what you tried worked then get rootsh from repository. It should work then. If first one worked from x-term then I have no idea what went wrong, basically clicking on menu and typing first command should do the same thing.

i already have root enabled. when i entered the code with sudo it asked for a password...what the hell is going on

Joseph9560 2011-07-28 05:52

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
How are you assuming that you already have root enabled? If you have fapman, check the installed package list (all category including hidden libraries), I think you don't think you would see rootsh there.

If its asking for password while doing sudo then maybe you have some other app such as sudoser or something but not rootsh. Geto rootsh and problem should be solved.

rasik_35 2011-07-28 07:48

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
i do have rootsh. this time when i typed apt-get install rootsh it says rootsh is already the newest version. it means that rootsh is already installed, doesn't it?



i still can't believe i can't use it easily. the app looks get when i opened with the code ( without sudo of course). congrats.... when's ur gre? best of luck....

Joseph9560 2011-07-28 09:47

Re: [Now In Devel] Nepali Calendar aka nepcal 0.1.0 (2011 May 15 or 2068 Jestha 1)
 
For now what you should do is get leafpad and open the .desktop file with leafpad and remove the sudo from the code. That way the app should work but it won't be able to save preferences.

Oh wait, you won't be able to do anything without root access, the .desktop file can't be saved. I don't know what to suggest.

My guess is you are missing dependencies that is causing rootsh not to work properly, if rootsh was installed properly it wouldn't ask for password while trying to execute any command with root access and checking for missing dependencies would require you root access:

apt-get -f install
or
apt-get check

etc can't be executed without root.

Few more ways I am aware of is to transfer edited .desktop file using putty or filezilla but that would need mad developer and I guess it depends upton rootsh or alike.

I would say remove rootsh and reinstall it using application manager.


All times are GMT. The time now is 07:06.

vBulletin® Version 3.8.8