Mutually restricting begin and end date-times using p:calendar (no validation)

Preface: I don’t work with JSF, but there are a couple of things that might steer you back to where you want to be: a) when working with just the date portion of a dateTime in a standard calendar, consider using: someCalendar.set(Calendar.MILLISECOND, 0) b) consider using joda-time, as it seems to be frequently recommended (here, … Read more

Find first and last day for previous calendar month in SQL Server Reporting Services (VB.Net)

Randall, here are the VB expressions I found to work in SSRS to obtain the first and last days of any month, using the current month as a reference: First day of last month: =dateadd(“m”,-1,dateserial(year(Today),month(Today),1)) First day of this month: =dateadd(“m”,0,dateserial(year(Today),month(Today),1)) First day of next month: =dateadd(“m”,1,dateserial(year(Today),month(Today),1)) Last day of last month: =dateadd(“m”,0,dateserial(year(Today),month(Today),0)) Last day … Read more

webcal:// support on Android not working – is there a supported calendar feed alternative [closed]

As the webpage says Android phones do not support webcals. However, you can subscribe the calendars to Microsoft Outlook or Google Calendar and then synchronize GoogleCalendar with Android. Also, you can install ICSSync on your device and then add calendar links to that app. https://www.webcal.guru/en-US/help?question_id=subscribe

d3.js: Align text labels between ticks on the axis

I ended up with one of the Lars Kotthoff’s advices. Every time when I call(axis) I also adjust text labels. Here is simplified code: function renderAxis() { axisContainer .transition().duration(300) .call(axis) // draw the standart d3 axis .call(adjustTextLabels); // adjusts text labels on the axis } function adjustTextLabels(selection) { selection.selectAll(‘.major text’) .attr(‘transform’, ‘translate(‘ + daysToPixels(1) / … Read more

Recurring Events in FullCalendar

Simple Repeating Events To add a simple alternative to those listed here, Fullcalendar now (somewhat) supports weekly recurring events. So if you only need something like: [Every Monday and Thursday from 10:00am to 02:00pm], you can use the following: events: [{ title:”My repeating event”, start: ’10:00′, // a start time (10am in this example) end: … Read more

How to get localized short day-in-week name (Mo/Tu/We/Th…)

The best way is with java.text.DateFormatSymbols DateFormatSymbols symbols = new DateFormatSymbols(new Locale(“it”)); // for the current Locale : // DateFormatSymbols symbols = new DateFormatSymbols(); String[] dayNames = symbols.getShortWeekdays(); for (String s : dayNames) { System.out.print(s + ” “); } // output : dom lun mar mer gio ven sab

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)