Skip to main content

Apple is now giving away its iWork and iLife apps:Free to iPhone, iPad, Mac users

You can now get Apple's iWork Office rival and iLife apps for free.

Popular posts from this blog

Simple EJB timer exposed as REST resource

@Path("timers") @StatelesspublicclassTimerResource { privatestaticfinalLogger logger =Logger.getLogger(TimerResource.class.getName()); @ResourceprivateTimerService timerService; @Timeoutpublicvoidrun() { logger.info("Timer triggered at "+newDate()); } @POSTpublicStringstartTimer() { timerService.createTimer(10000, 10000, "triggers every 10 seconds"); logger.info("Timer scheduled to fire every 10 seconds"); return"Timer scheduled to fire every 10 seconds"; } } Download the war file from Download

simpleEJBtimerForTesting

String functions in JSF EL (JSF Expression Language)

Add JSTL functions namespace in Facelets XHTML:

xmlns:fn="http://java.sun.com/jsp/jstl/functions"
Example1:

#{fn:startsWith(beanName.fieldName,'PREFIX_')}

Example 2:
<c:forEachitems="${contacts}"var="contact">
<c:iftest="${not fn:containsIgnoreCase(contact, 'i88.ca')}"> <p>Doesn't contain 'i88.ca'</p>
</c:if>
</c:forEach> Other functions:toUpperCase, toLowerCase: Changes the capitalization of a stringsubstring, substringBefore, substringAfter: Gets a subset of a stringtrim: Trims white space from a stringreplace: Replaces characters in a stringindexOf, startsWith, endsWith, contains, containsIgnoreCase: Checks whether a string contains another stringsplit: Splits a string into an arrayjoin: Joins a collection into a stringescapeXml: Escapes XML characters in a stringlength: Returns the number of items in a collection, or the number of characters in a stringSee also:
http://docs.…

PowerShell is an automation platform and scripting language for Windows and Windows Server

PowerShell allows you to simplify the management of your systems. Unlike other text-based shells, PowerShell harnesses the power of the .NET Framework, providing rich objects and a massive set of built-in functionality for taking control of your Windows environments. 
PowerShell.org, a community-owned and -operated site dedicated to education, assistance, and development. 

PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and CIM enabling management of remote Linux systems and network devices. Initially a Windows component only, PowerShell was made open-source and cross-platform on 18 August 2016.