indian calendar needed - windows

I want a 100 years calendar which shows certain Indian special days like Amavasya and Poornima.
I want to find the day for Poornima or Amavasya for example - in the year 1936. When was Shivratri aur janmasthami. I want to find day according to these specifications.
If there is a program that can do this, please let me know.
Thank you.

The amavasya and poornima (New Moon and Full Moon) are calculated based on a complex formula defined in below wiki. You can try developing a small program out of that. :-)

Related

how to get current year date and the year count by passing a date in Laravel Carbon?

I'm using Carbon, I expect two functions in my application and I hope those can be done using any Carbon methods. I tried to find it on the internet and could not find an exact answer to my question. So I'm posting it here with the hope someone might help me. Thank you.
what are the functions I expect is:
for example, an event that happened on 2014-05-15
using above date I need to find the event date from current year and how many years for the event now as below,
event from the current year - 2021-05-15
years for the event - 7 years
is there a possible way to do these using any Carbon inbuilt functions?
(I expect this function to a big process in my code and here it's a simple example what should happen)
Use Carbon::diffInYears
$date = Carbon::parse('2021-05-15');
$diffYears = Carbon::now()->diffInYears($date);
Refer Carbon doc for more diff methods https://carbon.nesbot.com/docs/#api-difference

How to disable dates before today in DatePicker tool in Windows Phone? [duplicate]

First of, is there any real documentation of the toolkit ? What I would like is to specify a range of selectable dates. For example I don't want to display dates before today. If the user select a start date of Jan. 27th 2012, I want to allow only dates after these for the return date
Documentation is a little bit sparse for the toolkit - your best bet is to look in the source of the sample app but they don't cover all the scenarios.
The default control doesn't seem to support a minimum or maximum value for the selected date, but if you download the source you should be able to modify it according to your needs. The layout of the source is pretty straightforward and you should be able to find an acceptable place to add the code, the only thing you need to decide is how you handle it from a UI perspective. In my opinion, you are better off handling the range check once the control returns - if it is an invalid date, pop up a message and re-show the control.
I've found that in the absence of documentation, the WindowsPhoneGeek blog (in this specific case see link here) usually does a good job of explaining the Silverlight Toolkit components in their various articles.
These articles can be a great help when following ZombieSheep's advice of taking a look at the toolkit sample code.

text mining/analyse user commands/questions algorithm or library

I got a financial application and I wish to add to it the ability to get user command or input in textbox and then take the right action. for example, wish the user to write "show the revenue in the last 10 days" and it'll show the revenue to him/her - the point is that I wish it to really understand the meaning of the question, so the previus statement will bring the same results as "do I got any revenue in the last 10 days" or something like that - BI (something like the Wolfram|Alpha engine).
I wonder if there's any opensource library or algorithm books or whatever that I can use to learn the subject. Regards to opensource libraries - I don't mind which language it'll be written in.
I've read about this subject and saw many engines and services (OpenNLP, Apache UIMA, CoreNLP etc.) but did not figure out if they're right for my needs.
Any answer or suggestion is welcome.
Many thanks!
The field you're talking about is usually called "natural language processing". It's hard, and an active field of research. There are various libraries which you could consider based on your preferred programming language and use case:
http://en.wikipedia.org/wiki/List_of_natural_language_processing_toolkits
I've used NLTK a little bit. This field is seriously difficult to get right, so you might want to try to restrict your application to some small set of verbs and nouns such that people are using a controlled vocabulary in the first instance, and then try to extend it beyond that.

Limit date range in a DatePicker

First of, is there any real documentation of the toolkit ? What I would like is to specify a range of selectable dates. For example I don't want to display dates before today. If the user select a start date of Jan. 27th 2012, I want to allow only dates after these for the return date
Documentation is a little bit sparse for the toolkit - your best bet is to look in the source of the sample app but they don't cover all the scenarios.
The default control doesn't seem to support a minimum or maximum value for the selected date, but if you download the source you should be able to modify it according to your needs. The layout of the source is pretty straightforward and you should be able to find an acceptable place to add the code, the only thing you need to decide is how you handle it from a UI perspective. In my opinion, you are better off handling the range check once the control returns - if it is an invalid date, pop up a message and re-show the control.
I've found that in the absence of documentation, the WindowsPhoneGeek blog (in this specific case see link here) usually does a good job of explaining the Silverlight Toolkit components in their various articles.
These articles can be a great help when following ZombieSheep's advice of taking a look at the toolkit sample code.

Get country from timezone

i have a news script
and it multi language ..
i want detect automaticlly the language of the visitor ...
i found more questions here about get the country from javascript timezone
them problem was because more citis is Similar time
" I DONT WANT DETECT COUNTRY " <- if that hard to get it !
only language !
so , what is the best way to get the visitor language or country by javascript ?
i don't understand javascript ever ! , and can't know what you can do by javascript
my two ideas is ..
first idea
get the time of visitor
example
EG = 0300
and in php i make an array contain ('0200'=>'Egypt') and another array ('Egypt'=>'AR')
second idea
in my clock time zone box , i see
Time Zone : Cairo <- egypt
can we get the name ?
Thank you !
You do not want to use time zones to determine language. People in the same time zone can speak different languages.
One alternative is to check the accept-language header.
For a similar discussion see: How do you detect a website visitor's country (Specifically, US or not)?
You can't get the country or language from the time zone offset.
For example, take UTC+1 in winter time. This could be France, Spain, Norway, Germany, Belgium, etc. They're all in Central European Time.
If you can get an Olsen name such as "Europe/France" or "Europe/Germany" that clearly gives you a lot more information, but you can't get that just from the offset from UTC.
Generally this can work, kinda.
But you would not get an specific location.
Especially in Europe and Africa there can be a lot of countries in one time zone and you couldnt differ between them.
I hope this helps
anmother way to do it
ip location: http://www.geobytes.com/iplocator.htm?getlocation
http://jquery-howto.blogspot.com/2009/04/get-geographical-location-geolocation.html
from the ip you can find teh country and language would work for most countries except for canada etc...

Resources