The Vaadin DateField uses the Calendar.getInstance(), (Gregorian calendar).
Is there a way to use Custom (e.g: Hijri) calendar system?
Thanks.
Not in standard java.util.*-classes based on Calendar. JDK only offers gregorian, thai-buddhist and japanese-imperial, not more.
You might consider ICU4J which offers an algorithmic variation of Hijri calendar. A similar but weaker solution is Joda Time (without real support for hijri month names).
A sighting-based calendar like umalqura-calendar will only be offered in Java 8 with the new date-time-api (JSR-310).
Related
In the regular web UI for Google Calendar, when I add an event, I can choose to make it a "reminder", rather than an "event".
I'm trying to replicate that with the Python API, but can't seem to find info on how to do that. All the documentation I'm finding pertains to reminders on events (i.e. "remind half an hour before the event"), rather than the "pure" reminders.
How does one add just a pure reminder?
Adding Reminders is not currently possible.
As Aaron suggested, there's an official Feature Request that can be upvoted.
I created a simple tool that does exactly that: google-reminders-cli
I have translated Jona's https://github.com/jonahar/google-reminders-cli from Python to:
JavaScript: https://github.com/Jinjinov/google-reminders-js
PHP: https://github.com/Jinjinov/google-reminders-php
I want to implement reservation system in my project which should display bookings available for a week (in week view)and users can select the slot which is not booked. I am completely new in drupal. Can anyone tell me how to do this and which module is suitable?
The trick in Drupal is to always search for modules that get you closer to what you want, since there are so many that can save you days of work. I would suggest starting by reviewing this comparison of Booking modules: https://groups.drupal.org/node/137544 before rolling your own.
If none of them suits you, the basic concept would be to have bookings created (a content type) and the some calendar that displays the available dates, then you could use Views for this last part.
The whole solution can be accomplish with a combination of Views and one of the Booking modules above.
Your question is rather general so review that comparison and you will find something you can use for sure.
I'm developing a site on Adobe Day CQ. My site should consist of many different components that can not be found in the standard library Day CQ. Are there any third-party component libraries for this CMS, or will I need to create them yourself?
Surprisingly not as many as one might expect--at least at present. It certainly seems like fertile ground for a startup. But here are a few if they happen to mesh with your particular needs:
Video component - http://www.brightcove.com/en/partners/cq5 and http://blog.brightcove.com/en/2011/12/brightcove-integrates-video-cloud-adobe%E2%80%99s-cq5-cms and http://coresecure.com/bc-cq5-component/
Google maps component - http://blogs.adobe.com/livecyclepost/2011/09/google-maps-component-for-adep-wemcq5/
Adobe third-party references - http://dev.day.com/docs/en/crx/current/developing/developers_getting_started.html#Third%20Party%20Libraries
There are consultants as well you could tap to create custom components. They likely have some libraries they have developed, but not (yet?) packaged for resale that they may be able to leverage:
http://www.headstandmedia.com/what-we-do/cms/adobe-cq5/cq5-development/
http://www.ensemble.com/expertise/digitalmarketing/cq5.shtml
My users despise the iPhone native date/datetime pickers (spinning wheels). I need to come up with another solution such as a custom UITableViewCell that allows direct input or a UIAlertView that is customized for input similar to the way Android handles date and time input. I'll obviously need to validate the input as they input it to ensure it is a valid date and time input, as I'm using MonoTouch I suppose I'll use RegEx to validate.
Before I do all this work I'm looking for any feedback from others that may have tried this or references to other implementations so I can learn from someone that's already created a system such as this.
What suggestions do you have for handling date/time input on an iPhone/iPad app that does NOT use the native UIDateTimePicker?
Thank you.
I ported/created a Calendar controller that works pretty much like the calendar app. One previous app that I worked on used it and the users really liked it: https://github.com/escoz/monotouch-controls/blob/master/UICatalog/CalendarMonthViewController.cs
That doesn't address time input, but it might be worthy taking a look.
I have seen countless forum posts complaining of issues in GWT when handling dates. I am still very unclear as to what is "wrong" with the date handling, what special considerations need to be made, and when/where/why methods like Date.setMinutes(int minutes) should not be used.
Does anybody have feedback?
Way back in the beginning of Java (i.e., Java 1.0), the date/time api largely (solely?) consisted of the Date class. The Java folks were aware that it lacked robustness, so they added the Calendar class in Java 1.1 and tried to change the Date class into a value object by deprecating most of it. Unfortunately, the Calendar class itself wasn't very well thought-out (see here) and we're stuck with what many consider to be a monstrosity.
Bringing us up to today, GWT supports Date because, well... how can you live without dates?, but doesn't support Calendar/GregorianCalendar/TimeZone because it's so ugly and surely there has to be a better answer. Sadly, no one's thought of it in over 3 years as Calendar support was requested way back in January of 2007 and marked as planned by April 2008.
In short, go ahead and use the the deprecated Date methods in your GWT code, if that will work for what you need to do.
EDIT: GWT's CalendarUtil class might also come in handy.