Skip to content

Instantly share code, notes, and snippets.

View samidalouche's full-sized avatar

Sami Dalouche samidalouche

View GitHub Profile
import java.io.File
import sbt._
import de.element34.sbteclipsify._
class Project(info: ProjectInfo) extends ParentProject(info) with IdeaProject {
//lazy val mavenLocal = "Local Maven Repository" at "file://"+Path.userHome+"/.m2/repository"
lazy val geotoolsRepository = "Open Source Geospatial Foundation Repository" at "http://download.osgeo.org/webdav/geotools/"
lazy val javanetRepository = "Java.net Repository" at "http://download.java.net/maven/2"
lazy val iglootoolsRepository = "Iglootools Releases Repository" at "http://developers.sirika.com/maven2/releases/"
import java.io.File
import sbt._
class Project(info: ProjectInfo) extends ParentProject(info) with IdeaProject {
lazy val mavenLocal = "Local Maven Repository" at "file://"+Path.userHome+"/.m2/repository"
lazy val geotoolsRepository = "Open Source Geospatial Foundation Repository" at "http://download.osgeo.org/webdav/geotools/"
lazy val javanetRepository = "Java.net Repository" at "http://download.java.net/maven/2"
lazy val iglootoolsRepository = "Iglootools Releases Repository" at "http://developers.sirika.com/maven2/releases/"
lazy val jbossRepository = "JBoss Releases Repository" at "https://repository.jboss.org/nexus/content/groups/public-jboss"
lazy val hibernateSpatial = "Hibernate Spatial Repository" at "http://www.hibernatespatial.org/repository"
2011-03-01 11:11:17
Full thread dump Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode):
"RMI TCP Connection(idle)" daemon prio=10 tid=0x0000000042eac000 nid=0x13d5 waiting on condition [0x00007f78548f4000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000f7104a58> (a java.util.concurrent.SynchronousQueue$TransferStack)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:424)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)
2011-03-01 11:20:15
Full thread dump Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode):
"Attach Listener" daemon prio=10 tid=0x0000000041625000 nid=0x1d7d waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Thread-37" prio=10 tid=0x0000000041452000 nid=0x1cef in Object.wait() [0x00007f239d10a000]
java.lang.Thread.State: RUNNABLE
at javax.measure.unit.Unit.<clinit>(Unit.java:60)
at javax.measure.unit.SI.<clinit>(SI.java:72)
@samidalouche
samidalouche / hadoop-capacity-scheduler.xml
Created October 19, 2011 19:48
Queues configuration
<?xml version="1.0"?>
<!-- This is the configuration file for the resource manager in Hadoop. -->
<!-- You can configure various scheduling parameters related to queues. -->
<!-- The properties for a queue follow a naming convention,such as, -->
<!-- mapred.capacity-scheduler.queue.<queue-name>.property-name. -->
<configuration>
<property>
@samidalouche
samidalouche / capacity-scheduler.xml
Created October 19, 2011 20:04
capacity-scheduler.xml
<?xml version="1.0"?>
<!-- This is the configuration file for the resource manager in Hadoop. -->
<!-- You can configure various scheduling parameters related to queues. -->
<!-- The properties for a queue follow a naming convention,such as, -->
<!-- mapred.capacity-scheduler.queue.<queue-name>.property-name. -->
<configuration>
<property>
{"inhalationStartedEvents":[{"volume":5000.5,"name":"InhalationStartedEvent","timestamp":"2013-10-03 18:40:52 +0000"}],"breathingCycleDetectedEvents":[{"volumeOnInhalationStart":2000,"inhalationEnd":"2013-10-03 18:40:53 +0000","name":"BreathingCycleDetectedEvent","exhalationEnd":"2013-10-03 18:41:01 +0000","volumeOnExhalationStart":500,"inhalationStart":"2013-10-03 18:40:52 +0000","exhalationStart":"2013-10-03 18:40:55 +0000"}],"breathingQualitySampledEvents":[{"end":"2013-10-03 18:40:53 +0000","ok":true,"noisyAbdominalBelt":false,"abdominalBeltBaselineShift":false,"name":"BreathingQualitySampledEvent","abdominalBeltDisconnected":false,"thoracicBeltBaselineShift":true,"thoracicBeltDisconnected":true,"start":"2013-10-03 18:40:52 +0000","noisyThoracicBelt":true}],"stepDetectedEvents":[{"name":"StepDetectedEvent","timestamp":"2013-10-03 18:40:52 +0000"},{"name":"StepDetectedEvent","timestamp":"2013-10-03 18:40:53 +0000"}],"sessionStartedEvents":[{"hexoskinSerialNumber":"XV1","hexoskinHardwareVersion":"V23","shir
def bucketHourOpenClosed : joda.Interval = {
val hourTruncated = dateTime.withTime(dateTime.getHourOfDay, 0, 0, 0)
if(dateTime == hourTruncated){
new joda.Interval(dateTime.minusHours(1),dateTime)
} else {
new joda.Interval(hourTruncated,hourTruncated.plusHours(1))
}
}
____ _ _
| _ \ ___ ___ ___(_) __| | ___ _ __
| |_) / _ \/ __|/ _ \ |/ _` |/ _ \| '_ \
| __/ (_) \__ \ __/ | (_| | (_) | | | |
|_| \___/|___/\___|_|\__,_|\___/|_| |_|
case class SdkSignInCommand(accountId: UUID, appId: String, deviceId: String)
case class SdkSignInConfirmation(
accountId: UUID,
firstName: String,
lastName: String,
email: String,
pairingKey: Int,
sdkId: UUID,
isSdkLinkedToAccount: Boolean,
boxLink: Option[DisplayableBoxLink]