The Internet of Things (IoT) is the network of physical objects, devices, vehicles, buildings and other items — embedded with electronics, software, sensors, and network connectivity that enables these objects to collect and exchange data.

The tourism industry is often viewed as a slower adopter of technology, but still continuously looks for the latest innovations, which would enable them to improve operational efficiencies and customer satisfaction.

How does IoT affect the tourism industry?

The adoption of IoT creates great opportunities and challenges. …


if you have a bulk operation: delete or update you can set the flush so it will occur every 1000 records updated.

def commitEvery = 1000
Domain.list().eachWithIndex{ obj, index ->
obj.property = new value
obj.save flush:0 == index % commitEvery
}
session = sessionFactory.getCurrentSession()
session.clear()

DB size :


SELECT table_schema "Data Base Name",
sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB",
sum( data_free )/ 1024 / 1024 "Free Space in MB"
FROM information_schema.TABLES
GROUP BY table_schema ;

specific DB each table size:

SELECT
table_schema as `Database`,
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM information_schema.TABLES
where table_schema = {your schema name}
ORDER BY (data_length + index_length) DESC

Groovy & Grails Israel User Group
Groovy & Grails Israel User Group

just establish today the new meetup group for the groovy & Grails community in Israel
so: “Meet other Groovy and Grails developers and share knowledge. We will talk about code, architecture, performance, testing, deployment & hosting. The group is Both for beginners and pros.”

please join in: http://www.meetup.com/Groovy-Grails-Israel-Meetup-Group/


from the CIO Magazine:

“Employers are paying premiums for certain development skills including Java, Ruby on Rails and Groovy/Grails.”

read the full artical


you want to test or check your domain model after setting your environment or creating some data on the bootStrap:

How to run the bootstrap from Grails console and set the ApplicationContext and the grailsApplication

from the Grails documentation:

Starts the Grails console, which is an extended version of the regular Groovy console. There are a couple of useful variables registered in the binding:
ctx — The Spring ApplicationContext instance
grailsApplication — The GrailsApplication instance

if you are using the ‘GrailsApplication’ in your bootstrap implement a setter for the grailsApplication
like:


def setGrailsApplication = { grailsApp->
grailsApplication = grailsApp
}

on the console write:


def b = new BootStrap()
b.setGrailsApplication(grailsApplication)
b.init(ctx.servletContext)

now you can write and run your code…


next week i’ll attend the yearly Groovy and Grails conf. in London.
2 days of talks, open-space discussions and brainstorming with core committers and leading experts, including Guillaume LaForge, Peter Ledbrook, Jeff Brown, Burt Beckwith and many others, to learn and share the latest innovative ideas, best tools and practices for enterprise web development with Groovy and Grails.


  1. add to all sessions

install the grails templates so you can edit the web.xml file:

grails install-templates

add to src/templates/war/web.xml


<session-config>
<session-timeout>600</session-timeout></session-config>

the value is in minutes.


2. programmatically to a specific session/user:

add in the controller code:

def sec = 3600 // 1 Hour in seconds
session.setMaxInactiveInterval(sec);

restart the server…

Meni Lubetkin

Entrepreneur, Software Development Leader

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store