S Translator: lets you speak one language into the Galaxy S4, hit a button, and have the S4 repeat what you said in another language. It reminds me of the idea behind the " Mandarax" in Kurt Vonnegut's Galápagos .
Group Play: links together several S4s so that they play the same song, in sync. I'm not sure how useful this is, but I can see some potentially interesting uses for flash mobs or group activities.
There are a couple of notable things about …
3. Recompile and restart your application with the Java agent.
If you prefer annotations , this second option might be for you:
1. Set enable_custom_tracing to true in your newrelic.yml file. Be sure to add the flag if it does not already exist.
2. Add the newrelic-api.jar to your class path.
3. Add the Trace annotation to the method you want to monitor.
4. Recompile and restart your application with the Java agent.
If modifying the source code is not possible or …
Compiler flags
The first thing we're going to play around with is one of the least likely to blow up in your face. Compiler flags are used to define constants at build time, that can then be used in your code to do some tricky things to customize your code for specific build configurations.
There are 3 possible places to set these up:
OTHER CFLAGS (Other C Flags)
GCC PREPROCESSOR DEFINITIONS ( Preprocessor Macros)
INFOPLIST PREPROCESSOR DEFINITIONS ( Info.plist Preprocessor Definitions…
…OS X (including us!) have recently been suffering from problems with compiling Nginx. Compilation would fail with the error message that the symbol pcre_free_study is not found, within the context of the function pcre_free_studies in ngx_regex.o: src/core/ngx_regex.o: In function `ngx_pcre_free_studies': src/core/ngx_regex.c:307: undefined reference to `pcre_free_study' collect2: ld returned 1 exit status make[1]: *** [objs/nginx] Error 1
What is pcre_free_study ? A Google…
…Computer Language Engineering' and ‘ Multithreaded Parallelism Languages and Compilers' to anyone with an Internet connection who wishes to take them. University of California, Berkeley is another school that offers a large number of online programming courses . Their current list includes ‘ Java: Discovering Its Power' and ‘ PHP Programming for the Web'; the site also announces future term courses, such as ‘3-D Graphics and Game Engines…
Compilation might fail when one of the dependencies is using Quartz (i.e. ImageMagick) and the X11 directory isn't in the library load path. The easiest way to fix this is with a symlink: ln -s /opt/X11 /usr/X11
Reader questions
Javier Vázquez from Zürich, Switserland would like us to explain how to install PostgreSQL .
The easiest way is to install Postgres.app. You can download it from postgresapp.com . After that you configure it in config/database.yml …
An Experiment in Static Compilation of Ruby: FastRuby
Charles Nutter (of JRuby fame) shows off an experiment in doing static compilation of Ruby to Java. Short and sweet and leans on JRuby's parser and AST walker.
8 ( New) Steps for Fixing Other People's Code
Many moons ago, Dr Nic wrote a popular article about contributing to open source projects. Alex Grant builds on Dr Nic's work with a more up to date set of guidelines.
Rails …
Ruby Binary Build, Statically Compiled
This is the first work I did, a few months ago, with help from Michal Papis. I detailed the hard parts of making Ruby statically compiled in June's status update . Since then, Terence Lee (@hone02) has used the binary build at several Rails Girls events, dramatically reducing the time needed for Rails installation on OSX. In addition to the Tokaido binary build, Terence also precompiled a number of gems, and put built …
This is all coming from boostrap-responsive.css. Compiling from source actually turned out to be useful right away, because the LESS templates generate a lot of code for each of those layouts. You could remove them from the generated css file, but it would be a lot more code. With the LESS templates, you can comment out the wide layout in one line, and modify another and have it stop expanding beyond 768px wide:
diff --git a/less/responsive-768px-979px.less b/less/responsive-768px-979px.less …
Everything that happens between Heroku receiving push and Compiled slug size is 9.6MB is part of the buildpack. In order:
installing and running Bundler to manage gem dependencies,
injecting database configuration ,
and installing Heroku-specific plugins for logging and serving static assets.
The slug that results from this Rails-specific build process can now be …