pkg-config problem while using go get in GoLang

While I am using ‘go get’ command to install the libraries of GoLang, I get this error: # pkg-config –cflags libzmq libzmq libzmq libzmq exec: “pkg-config”: executable file not found in $PATH We need to install pkg-config to fix this problem. On Ubuntu, just use command: sudo apt-get install pkg-config It’s because that package (sdl) uses pkg-config to get necessary cflags and ldfalgs for compiler and linker, respectively.

Let Selmer Templates Cache On or Off

I am using Clojure & Compojure to write my webpages, and I am trying to use Selmer as template system for Clojure. Here is my template file structure: there is a basic template file base.tpl which defines basic header, footer or something else. And some other files like index.tpl, search.tpl to do the real job by including base.tpl template. The base.tpl file defines the common part of my site and changes few times during my project lifetime.

_CRT_SECURE_NO_WARNINGS warnings

While I am using Visual Studio 2008, there is an warning of this content: warning C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. There is also this kind of warnings when you are using sprintf etc.. We can use preprocessor _CRT_SECURE_NO_WARNINGS to shutdown this warning.

Using Filter in Clojure Selmer

I am using Clojure & Compojure to write my webpages, and I am trying to use Selmer as template system for Clojure. Today I find a strange thing in my template file. I used following code to take the position of real content: {{content}} Then I generate real html content in my clojure code like this: (defn index-render [params] “render file content of index.html” (let [basecon “to be done”] (render-file “.

Deploy Compojure Application as Tomcat Webapp

There are many basic startup code examples for Compojure on the web, but I don’t see any kind of deployment tutorial. Here are some basic collections if you want to use Clojure to start a web development. First, clone the code of compojure-example, and run it with the instructions on the page. If you can run it successfully by command lein ring server , then you can proceed to next step.