Skip to content

Instantly share code, notes, and snippets.

package controllers
import play.api._
import play.api.mvc._
import org.opencv.core.Mat
import org.opencv.core.CvType
import play.api.Play.current
object Application extends Controller {
@shkhln
shkhln / commands.txt
Last active February 9, 2018 13:15
libchromiumcontent bulding notes (FreeBSD 9.3 / amd64)
cd $BUILDROOT
git clone https://github.com/gliaskos/freebsd-chromium.git
cd freebsd-chromium/www/chromium/
git checkout 418e996e3a
sudo make fetch
make extract
make patch
cd $BUILDROOT
ln -s `realpath freebsd-chromium/www/chromium/work/chromium-42.0.2311.135` chromium
import com.sun.btrace.AnyType;
import com.sun.btrace.annotations.*;
import static com.sun.btrace.BTraceUtils.*;
@BTrace
public class ChannelTrace {
@TLS static boolean subscribed = false;
@shkhln
shkhln / sbt output
Last active September 4, 2016 20:40
$ run
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
[info] application - ApplicationTimer demo: Starting application at 2016-09-04T17:27:58.148Z.
[info] play.api.Play - Application started (Dev)
diff --git a/framework/src/play-integration-test/src/test/resources/testassets/versioned/sub/fe80fe0ee8f27d99e7028d65d1464d20-foo.txt.md5 b/framework/src/play-integration-test/src/test/resources/testassets/versioned/sub/fe80fe0ee8f27d99e7028d65d1464d20-foo.txt.md5
index 3b9a54f..2c178ff 100644
--- a/framework/src/play-integration-test/src/test/resources/testassets/versioned/sub/fe80fe0ee8f27d99e7028d65d1464d20-foo.txt.md5
+++ b/framework/src/play-integration-test/src/test/resources/testassets/versioned/sub/fe80fe0ee8f27d99e7028d65d1464d20-foo.txt.md5
@@ -1 +1 @@
-fe80fe0ee8f27d99e7028d65d1464d20
\ No newline at end of file
+not used, we can infer the digest from the filename
\ No newline at end of file
diff --git a/framework/src/play/src/main/scala/play/api/controllers/Assets.scala b/framework/src/play/src/main/scala/play/api/controllers/Assets.scala
diff --git a/framework/src/play-server/src/main/scala/play/core/server/DevServerStart.scala b/framework/src/play-server/src/main/scala/play/core/server/DevServerStart.scala
index 5bb490950..8a146e8be 100644
--- a/framework/src/play-server/src/main/scala/play/core/server/DevServerStart.scala
+++ b/framework/src/play-server/src/main/scala/play/core/server/DevServerStart.scala
@@ -116,6 +116,9 @@ object DevServerStart {
* can be displayed in the user's browser. Failure is usually the result of a compilation error.
*/
def get: Try[Application] = {
+
+ Thread.dumpStack()
diff --git a/Mk/Uses/lib32.mk b/Mk/Uses/lib32.mk
new file mode 100644
index 000000000000..cd57d53b8ae5
--- /dev/null
+++ b/Mk/Uses/lib32.mk
@@ -0,0 +1,121 @@
+# $FreeBSD$
+#
+# Create a 'lib32-' companion port.
+#
import javax.inject.Inject
import scala.concurrent.Future
import play.api.{Configuration, Environment, Mode}
import play.api.inject.{ApplicationLifecycle, Binding, Module}
class DevModeWorkaroundsModule extends Module {
def bindings(environment: Environment, configuration: Configuration): Seq[Binding[_]] = {
Seq(bind[DevModeWorkarounds].toSelf.eagerly())
}
% mkdir build
% cd build
% env CC=/compat/linux/bin/cc CFLAGS="-m32 --sysroot=/compat/linux" cmake -DCMAKE_INSTALL_PREFIX=/compat/linux/usr -DCMAKE_BUILD_TYPE=Release ..
% make
1566819895.883 [apulse 50037] F pa_mainloop_new (void)
1566819895.883 [apulse 50037] F pa_mainloop_get_api m=0x1d489d0
1566819895.883 [apulse 50037] F pa_context_new mainloop_api=0x1d489d0, name=FMOD Ex Enumerator
1566819895.883 [apulse 50037] F pa_proplist_new (void)
1566819895.883 [apulse 50037] F pa_context_new_with_proplist mainloop_api=0x1d489d0, name=FMOD Ex Enumerator, proplist=0x1d2c910
1566819895.883 [apulse 50037] F pa_proplist_free p=0x1d2c910
1566819895.883 [apulse 50037] P pa_context_connect c=0x1d48aa0, server=(null), flags=0, api=(nil)
1566819895.883 [apulse 50037] F pa_context_ref c=0x1d48aa0
1566819895.883 [apulse 50037] F pa_context_ref c=0x1d48aa0
1566819895.884 [apulse 50037] F pa_context_unref c=0x1d48aa0