Template Integration - chat

I am following one reference to create demo chat app in elixir and understood very well how is it working. But i am not so sure how can i create templates in Elixir to implement the same chat room in UI rather than terminal. Can anybody suggest something on this.

I think, if I'm understanding your question, you want to look at EEx, the tool for evaluating code embedded in a string.
Check on Phoenix as well because I believe Phoenix uses EEx too. Specifically check this: https://github.com/phoenixframework/phoenix#template-engine-configuration
Hope it helps.

Related

How to use GPGS in a web-libgdx game?

sorry for my English.
How to use GPGS in a web-libgdx game?
If I understand correctly, I need to use RestAPI and javascript(I do not have enough skills in JS) with GWT in libgdx. But I don`t know how to relate everything.
I have not find examples or articles on this topic so I will be grateful for any help.
REST API is an option for this though, but there are various other options to choose from. One of the easiest way is to use the platform specific code via interfacing
Everything that doesn't get integrated directly with libGDX won't work the "write once, run anywhere" way - this applies for achievements, leaderboards.
So what you do is to add the library dependencies to the projects you generate. Then implement a generic interface, AchievementHandler with methods like unlockAchievement(String achievementId). You can then implement this via AndroidAchievementHandler which in-turn uses GPGS.
A sample application demonstrating how this can be achieved is available on github here.
Hope this helps!

Proper designer-first reall world app example in Scala Lift

Trying to learn lift, and i'm looking for a somehow bigger example than HelloWorld (something like spring pet-clinic).
Especially i'm looking at advanced templating in designer friendly manner (as less code in snippets as possible).
I tried to look at example Lift apps https://github.com/lift/examples
But they heavily mix html in their snippets https://github.com/lift/examples/blob/master/nuggets/skittr/src/main/scala/com/skittr/snippet/UserMgt.scala
So can anyone link me to a source of real world app that uses designer-friendly templating?
Hmmm. My hobbie project partially corresponds to what you ask, I think.) https://github.com/vn971/roboCup
It's not all good, I started it when only learning Scala and I see now that it has poor decision choises in some places. But, for example, you can see code-free templates here:
https://github.com/vn971/roboCup/blob/master/src/main/webapp/swiss.html
Ajax bindings can be seen here:
https://github.com/vn971/roboCup/blob/master/src/main/webapp/admin.html
It unfortunately uses html in the code somewhere, too. It's also very little, uses actors (both lift's and akka), has no database at all (only the state of the tournament matters and it's not persisted).
try lift in action book , there is a build of a big web app almost step by step and the project is also on github so you can download it also from there

Has anyone made explorercanvas work with GWT?

Has anyone made explorercanvas work with GWT? Can you share the exact code?
I see a lot of references to explorercanvas with GWT. For example: http://code.google.com/p/explorercanvas/wiki/Instructions But these are always filled with caveats and complaints. I haven't seen any complete solutions.
Yeah I have done so for a project. I created a module which you can inherit and use in your gwt application and use the GWT Canvas class to write your code. You can see the details in my blog.
http://ummeessa.blogspot.com/2011/09/gwtcanvas-on-ie7-and-8.html
Hope the blog will help you creating your own module.
I have used my module in a project to create charts using canvas. It works fine in IE7/8 and I am sure there should be no issues. Everything which is supported by excanvas works in my module.

Advice on how to simplify things for user

I'm making a very simple cms for a client. I am working on adding/editing articles and i wanted advice on how to make it as simple as possible for him to add images to an article. I was thinking of using some sort of bbcode [img] [/img] Any suggestions ?
*I'm using codeigniter as a framework
what are you coding in? I have used FreeTextBox.com and it has a built in image manager that is quite simple to use.

iPhone Coverflow

I need to implement cover flow functionality to our iPhone application. I tried to find sample code online to get started with it, but I didn't have any luck. Can anyone tell me how to implement cover flow functionality or give me a sample?
Thanks In Advance!
Try FlowCover at
http://www.chaosinmotion.com/flowcover.m
the source code provides you with a FlowCoverView realizing the coverflow effect.
You simply need to customize a few delegate methods. Take a look at the example source code, customizing it to suit your needs should be straightforward.
You might also want to check out a library I released at iPhoneDevCamp -- OpenFlow. http://apparentlogic.com/openflow
It is all core animation-based, so it's easy to understand and customize to your needs. AFOpenFlowView is a subclass of UIView.
I included a demo application, and check out the blog entry on my personal website for a bit more information about its use. fajkowski.com
Drop me a line if you have any questions or comments!
-Alex
This one looks promising:
https://github.com/nicklockwood/iCarousel
Seems to be more actively maintained than the other two suggested above.