schedule

How to hide time-slots in “agendaWeek” View of FullCalendar/Primefaces <p:schedule>?

a 夏天 提交于 2019-12-24 09:19:11
问题 Is it possible to hide the time-slots in "agendaWeek" View? I'm using Primefaces <p:schedule> which based on the FullCalendar. I only add AllDay-Events to this specfic schedule, so my client decided to hide the time-slots. I hope there is a way. Best regards 回答1: not sure if that's what you mean but to hide the first column in schedule try this css selector (remove formID\3A if you got prependId = "false" in your form that contains the scheduler ) #formID\3A scheduleID th.fc-agenda-axis{

Scheduling jobs on windows

℡╲_俬逩灬. 提交于 2019-12-24 08:47:37
问题 What is the best way of scheduling simple batch jobs on windows? My current need is to dump some SVN repositories each night and FTP the dumps to our external FTP side and then e-mail one or more people that the backup has completed/failed. This sounds like the sort of thing I would usually do in a unix script + cron. Is that possible on windows? Perhaps using Cygwin? 回答1: Windows Scheduled Tasks. This area is available through the control panel and may require administrative rights. It's

SQL Anywhere 11 - Check if event exists

六眼飞鱼酱① 提交于 2019-12-24 04:25:06
问题 I have an SQL script which creates a scheduled event: CREATE EVENT "Daily_1200PM" SCHEDULE "Daily_1200PM" START TIME '12:00' EVERY 24 HOURS HANDLER begin -- Blah blah, do some stuff here end; I would like to remove this event, if it exists. I know I can remove the event with the following: DROP EVENT "Daily_1200PM" But for some databases, the the event doesn't actually exist, so an error is thrown. How do I delete the event only if it exists? 回答1: if exists( select * from sys.sysevent where

Fnd consecutive dates withing a defined span where a Trainer is available to schedule

隐身守侯 提交于 2019-12-23 22:03:31
问题 We have a table used for assigning trainers to planned customer installations. In the table, there is a record for each trainer, for each day of the year. (We can, and sometimes do, work weekends.) I am building a search tool that allows our schedulers to search for a trainer that is available X number of days between dates Y and Z. Table mySchedule Trainer Date Dirty (Bit) ------------------------------------------------ Joe 06/01/2013 0 Jessica 06/01/2013 0 Alan 06/01/2013 0 Heather 06/01

ActiveMQ Override scheduled message

ぐ巨炮叔叔 提交于 2019-12-23 20:25:46
问题 I am trying to implement delayed queue with overriding of messages using Active MQ. Each message is scheduled to be delivered with delay of x (say 60 seconds) In between if same message is received again it should override previous message. So even if I receive 10 messages say in x seconds. Only one message should be processed. Is there clean way to accomplish this? 回答1: The question has two parts that need to be addressed separately: Can a message be delayed in ActiveMQ? Yes - see Delay and

Any approach to show threads switch?

為{幸葍}努か 提交于 2019-12-23 18:52:10
问题 all, Is there any approach or tools to show the process of thread switch, that is, I can know at any specific time, the CPU is taken by which thread, as well as the time context switch costs, thanks 回答1: SystemTap is useful for this kind of thing. There's a canned example sched_switch.stp for this. It doesn't measure the elapsed time of the switch, though. That seems tricky for at least a couple reasons. First, you'd have to decide an appropriate probe for the entry and exit to measure a

@Schedule can´t inject EJB

只愿长相守 提交于 2019-12-23 17:23:48
问题 I´m using JBoss AS 7.1.1. I need some jobs to run in a specific date and time, so instead of using Quartz, I´m trying to use the @Schedule annotation. When I was testing, it worked just fine, but when I started implementing my real business, my real problems started. so, that´s my scenario: I have 1 component, for loggin and utils porposes, I use it in a lot of projects and it works fine, that would be something like it: My log ejb (it works fine in a lot of other components, basically all of

Java EE 7: Get @Schedule date when is set to persistent = true

倖福魔咒の 提交于 2019-12-22 06:32:31
问题 In my Java EE 7 application I have created a persistent Schedule task that runs every hour. I have used @Schedule annotation. When this job is called I want to perform some actions on events that have happened from the last hour until NOW. To obtain NOW I use "new Date()". This @Schedule has the default persistent attribute to "true", which is great because if the server stops during hours I want to perform these tasks when it restarts. The problem is that, if the server has been stopped

How to find first free time in reservations table in PostgreSql

≯℡__Kan透↙ 提交于 2019-12-21 20:15:20
问题 Reservation table contains reservations start dates, start hours and durations. Start hour is by half hour increments in working hours 8:00 .. 18:00 in work days. Duration is also by half hour increments in day. CREATE TABLE reservation ( startdate date not null, -- start date starthour numeric(4,1) not null , -- start hour 8 8.5 9 9.5 .. 16.5 17 17.5 duration Numeric(3,1) not null, -- duration by hours 0.5 1 1.5 .. 9 9.5 10 primary key (startdate, starthour) ); table structure can changed if

How to create a scheduled job in SQL server 2008 via T-SQL?

旧街凉风 提交于 2019-12-20 13:58:02
问题 I want to create a job which deletes records from a database after a period of time has passed. For example I have a field in news table Time Stamp and each month a SQL query runs like a scheduled job against my database and deletes news where the time stamp is two month old. Generally I want to delete news for 2 month ago and older to not let my table become a large table. How can I accomplish this? 回答1: you should create a job in SQL below is a sample T-SQL for create a job via SQL agent