Turbogears 2.1 with mako - extensive tutorial - turbogears2

I am a python programmer.
For web-based solutions, I have started learning TG 2.1
By and large, the documentation on TG 2.1 official site is a work-in-process.
As regards to the templates, it tells how to go about Genshi.
I wish to go with mako.
Gone through the docs of mako (they are good).
But still, it would be better if I can get a tutorial explaining using TG 2.1 with mako.
(It will save me from re-inventing the wheel, if somebody has written docs on these lines).
Can anybody point to a tutorial for using TG 2.1 with mako.?
(I googled, but no convincing result was found).
Thanks,
Vineet.

When you run "paster quickstart" it should ask you if you want to proceed with genshi or mako. If you choose make the quickstart will set everything up for you and your project will be mako based.
If you want to add mako to an existing project to render only some templates with mako or for just for curiosity you can take a look at http://www.turbogears.org/2.1/docs/main/Templates/Mako.html to see how to add the mako renderer and render mako templates in TG2

Related

Choosing btw Scrapy V1.8 and V2.0

Hi I have wanted to learn Scrapy and use it to scrape dynamic data off of webpages, and use it in a website backend.
When I went to the official docs, I go to know that V.2.0 just came out.
Given that I'm new to scrappy, and plan to develop an autonomous hosted application, I was wondering whether I should choose v 1.8 over v 2.0 because bugs would've been worked out better and there'll be more tutorials etc. But on the other hand, I'll end up learning 2.0 anyway in the future, so maybe I should start with 2.0 itself.
So I have two questions:
Are there any major changes from v1.8 to v.2.0 (I am aware that there are release notes that accompany each version, but the only thing that I can really understand is that Python 2 support was removed; everything else uses terminology that I don't understand.)
I'd be grateful for your advice on which one I should opt for.
I have worked with Selenium & BeatifulSoup4 on 1 project before hand, which involved scraping stock price and relative strength index, and using that as a part of Flask backed web app.
Always use the latest Scrapy release for a new project, unless you cannot for some reason.
There are no major changes in how Scrapy works between 1.8 and 2.0; upgrading from 1.8 to 2.0 should be as easy as upgrading from 1.7 to 1.8.

Is there any guide for migrating Cocos2d-x 3.8 to 3.14?

I'm trying to migrate Cocos2d-x 3.8 to 3.14.
but when I tried to find a blog or a blog that explaining how to solve the Issues, I could not found it.
I can only found Cocos2d-x 2.X to 3.X
So, I ask for help here.
Could you give me some guide for migrating Cocos2d-x? I want solve Audio Engine Issue(Ogg File now playing well).
//I apologize for my strange speech.I am not good at English.
I've been looking into this myself recently. I am seeing this (posted here on the Cocos2d-x forum) to be the best way of keeping up to date with the versions:
Just discovered that cocos gen-libs exists in version 3.8+ for making prebuilts. Instead of the engine existing in a folder/subproject in your game, it can just sit in the root cocos folder and be added to the search path.
From this, you should be able to pre-build the game engine and then use the pre-built files in your games. This could also be good if you make any alterations to the engine yourself, you could perhaps keep a fork of the engine elsewhere, and whenever you make a change to it you can prebuilt it and then bring it into your own project.
While it may not be much help now and is probably more complicated than what you were looking for, it may be the best choice moving forward.

SCIM 2.0 implementations with good documentation

I just started exploring scim2.0. Following link provides me different implementations of scim2.0.
http://www.simplecloud.info/
Can some one suggest me, which one is easy to learn and has good documentation. It is helpful, if you suggest me some good tutorials about scim.....
If you're interested in a .NET / OWIN-based open source solution, please take a look at https://github.com/PowerDMS/Owin.Scim. Documentation is limited as the project is still in alpha, but there is a WIKI and sample project to help you get started.
Note: I am the lead developer on this project.
If you are looking for a reference Java/EE implementation of SCIM2 you can checkout Apache Directory SCIMple or SCIM 2 SDK | PingIdentity

Bigcommerce Stencil - What is Required and Help Setting Up

I just got access to the new Stencil beta and I have no idea what to do. I have reviewed all of the documentation on the BC developer website, but I don't know how to proceed. I am also not sure if I will even be able to create designs in Stencil since I don't know Handlbars or json - are those programming skills required or can we still rely on CSS and HTML for most design customization? BC told me there is no support for getting set up and to ask in this forum instead.
Normally I would look under the hood of an existing theme to see how it's built and try "learning on the job" but since I can't even get access to the files, I am at a loss. I created an account on GitHub but I have never used it so I don't know where to look for the files (I did a search but there are thousands of files there and I again couldn't figure out where to start). Can anyone point me in the right direction so I can determine if using Stencil is even feasible for my projects?
Handlebars compiles serverside as HTML. You do still have stylesheets, but we are using some SASS custom functions (documented in Stencil docs).
I'd recommend taking a look here: http://blog.teamtreehouse.com/getting-started-with-handlebars-js

Dojo build profile.layers vs. profile.dependencies.layers?

Wow, this is totally confusing and the dojo 1.8 documentation seems a complete clusterf**k around build layers. Anybody have a clue what's going on there?
In the build script example profiles, the example amd.profile.js has profile.layers["dojo/dojo"] and the tutorial follows this same syntax.
Besides the tutorial, in the 1.8 build documentation there is no mention of this kind of structure, but of profile.dependencies.layers[n].
The documentation also references non-AMD syntax and, just to add another "layer" of confusion, there's also a profile.dependencies.layers[n].dependencies.
Which should I be using? Is this actually documented anywhere with any consistency or clarity?
I have learned that the Dojo 1.8 Reference Guide contains obsolete information regarding build profiles, but that the Dojo 1.8 Build tutorial is current:
http://dojotoolkit.org/documentation/tutorials/1.8/build/
That tutorial recommends this blog post for more information about layers and build optimization: http://www.sitepen.com/blog/2012/06/11/dgrid-and-dojo-nano-build/