Does Project Lombok offer any benefit compared to code templates / code generation in Eclipse? Are there any downsides (apart from including the .jar)?.
I'm thinking about converting a few usercontrols to use templates instead. One of these is my own UC which contains some controls, one of which is a repeater. Is it possible to specifcy a template for the second level usercontrol from the template for the first (which would be on the page)?
What part of the C++ specification restricts argument dependent lookup from finding function templates in the set of associated namespaces? In other words, why won't the following compile?
namespace ns {
struct foo {};
template<int i> void frob(foo const&) {}
}
int main() {
ns::foo f;
frob<0>(f);
}
I periodically get this problem where all of a sudden mako is using old versions of templates, and it's not until I manually go and update the template files that they'll use the current version. I'm using
./manage.py runserver
I think it's usually after I update using source control, but it's intermittent, and I can't reliably reproduce the problem.
In one of my Django templates, I have a chunk of HTML which repeats at several places in the page. Is there a way I could use another template for this chunk alone and "instantiate" the template where required?
I find the repetition of sets of controls for each of the EditItemTemplate, InsertItemTemplate, and ItemTemplate templates of a FormView to be tedious and risky, in terms duplicating layout and code etc. I would much rather create a xxxDetails user control, and use this in each template, cutting layout and code location down to one location.
However, this introduces several complexities for data binding scenarios. Are there any extablished patterns or practice guides for using user controls in these scenarios?
I'm using django orm and templates to create a background service that is ran as management command.
Do you know if django is thread safe?
I'd like to use threads to speed up processing.
The processing is blocked by I/O not CPU so I don't care about performance hit caused by GIL.
I am wondering what the idiomatic way to render special language characters is using Handlebars.js templates. When I render the normal html I can use something like the Spanish lowercase e, é, and it renders as expected. When I pass the same text as a string to my Handlebars template I just see the characters é.
I have tried creating a Handlebars helper that used jquery to render the text using .html() then returning the .html() of the tmp element and I get the same results.
Can you recommend any good open source editor/display templates (mostly editor), preferrably utilising jQuery.
Like AutoComplete, datePicker, color picker, multi-select, grids, trees etc.
Thanks in advance
Hi
Does anybody know once you install the prism templates vs2010 where are they Installed?
I cannot find in anywhere.
I am using windows 7
Thanks a lot
Hi
I would like to use Jasper reports and build the report without templates. How can i get started? I have all the necessary libraries but I don't know how to start and I couldn't find anything.
Thanks
So I can add new templates for single files, but I want Xcode to uses these files when setting up the new project (most noticeably the Controller and Delegate .h and .m files). How do I do that?
Hello,
only with a certain .Net 4.0 project I can not add a new Window item to my project in the solution explorer. In the installed Templates for WPF there is only the UserControl ?
What happened?
I have installed xcode 3.2 with iphone SDK. (without Mac OS 10.4 SDK). WHen i create new project i only got these options for Mac OS
-- Application
-- Framework and Library
-- Application plugin
-- System plugin
--Other
But a book named: Programming Object C 2.0. From which i am learning object C. Its showing XCode with these templates for Mac OS
--Application
--Audio Units
--Automater actions
--Bundles
--Command Line Utility
--dynamic library
--Framework
--Java
--Kernal Extensions
--Standard Apple plugin
--Static Library
--Other
I need the Command Line Utility template so that can create sample projects mentioned in book.
Where can I find good templates for svn commit emails?
Google led me to this. Even though it was much better than the default post-commit, I didn’t find it very useful.
Help much appreciated.
I am looking fr someone to make me two website templates for my site for free.
Here is a quick design of what I want:(Took me 2 minutes in Paint)
http:/ /i50.tinypic.com/33p9aut.jpg (You have to push backspace on the first link to join up the http:/ and the other /)and http://i50.tinypic.com/2qmogoo.jpg
Email me at [email protected] or [email protected] for more information
I'm looking for a template engine. Requirements:
Runs on a JVM. Java is good; Jython, JRuby and the like, too...
Can be used outside of servlets (unlike JSP)
Is flexible wrt. to where the templates are stored (JSP and a lot of people require the templates to be stored in the FS). It should provide a template loading interface which one can implement or something like that
Easy inclusion of parameterized templates- I really like JSP's tag fragments
Good docs, nice code, etc., the usual suspects
I've looked at JSP- it's nearly perfect except for the servlet and filesystem coupling, Stringtemplate- I love the template syntax, but it fails on the filesystem coupling, the documentation is lacking and template groups and stuff are confusing, GXP, TAL, etc.
Ideas, thoughts?
Alex
Hi,
I’ve throughout the last couple of years downloaded a lot of templates for websites and these are now starting to become chaotic in the different folders so I’m starting to get a overview of the different templates.
Regarding to this I was thinking about the way that WordPress displays the different themes installed in the themes folder. It provides a small overview (thumbnail) of the theme and a possibility to preview the theme. Of cause, I don’t need or want such a advanced system as Wordpress but I’m attractive to the idea of displaying my templates in the same kind of manner and without using a Database.
I’ve played around with different directory management scripts and tools for PHP but the best result I’ve got so fare is just to display the different content in the different folders but not create a preview which in each preview it will use the webpage itself and it’s stylesheets, images, etc.
Does anyone have an idea how to create such a script or have a link to a already existing script. Of cause is all the main pages named index.htm / .html
Sincere
Mestika
Brand new to droid programming, but would love to learn as much as possible, so I finally got my emulator working correctly, I even got a hello world button to work,
I'm attempting to make this button display a random number, I've googled this and came up with this code:
Random generator = new Random();
int n = generator.nextInt(n);
I fixed the Random function by including some Random java utility.
I'm assuming this code above goes in the .java file of the project, so my button code looks as follows (tested and works):
PopUpText.makeText(v.getContext(), "Hello World",
PopUpText.LENGTH_LONG).show();
I figured I could replace "Hello World" with n to display the number in the box, however the following error is stopping the compile:
The local variable n may not have been initialized
Any ideas why this is happening? Any advice would be hugely appreciated.
I'm math challenged today :(
I want to generate random numbers with a range (n to m, eg 100 to 150), but instead of purely random I want the results to be based on the normal distribution.
By this I mean that in general I want the numbers "clustered" around 125.
I've found this random number package that seems to have a lot of what I need: http://beta.codeproject.com/KB/recipes/Random.aspx
It supports a variety of random generators (include mersiene twister) and can apply the generator to a distribution.
But I'm confused... if I use a normal distribution generator the random numbers are from roughly -6 to +8 (apparently the true range is float.min to float.max).
How do a scale that to my required range?
I'm looking for a template engine. Requirements:
Runs on a JVM. Java is good; Jython, JRuby and the like, too...
Can be used outside of servlets (unlike JSP)
Is flexible wrt. to where the templates are stored (JSP and a lot of people require the templates to be stored in the FS). It should provide a template loading interface which one can implement or something like that
Easy inclusion of parameterized templates- I really like JSP's tag fragments
Good docs, nice code, etc., the usual suspects
I've looked at JSP- it's nearly perfect except for the servlet and filesystem coupling, Stringtemplate- I love the template syntax, but it fails on the filesystem coupling, the documentation is lacking and template groups and stuff are confusing, GXP, TAL, etc.
Ideas, thoughts?
Alex
Background
MySQL Workbench can produce appealing and high-quality ERDs such as:
Research
I have not found a tool that even comes close for PostgreSQL. Tools I have found:
dbVisualizer - Yellow squares.
AquaFold - Yellow squares.
SQL Developer - Coloured squares.
Dia - Coloured squares.
SchemaBank - Can't export to PNG; looks okay, nothing stellar.
SchemaSpy - XML export makes it possible to write an XSL skin...
Gliffy - Incompatible Flash version.
Druid - No.
pgAdmin3 - Not applicable?
phpPgAdmin - Couldn't login without a 30-minute configuration battle.
Requirements
Looking for an ERD tool:
Visually stunning by default
Can reverse-engineer a PostgreSQL (or JDBC-compliant) database
Runs on Linux (or under WINE)
Export high-resolution PNG (or SVG)
FOSS
I am using JDO or JPA on GAE plugin in Eclipse.
I am using smartgwt datasource, accepting an xsd.
I would like to be educated how to generate an XSD from my jdo/jpa entity, vice versa.
Is there a tool to do it?
While datanucleas does all its magic enhancing in the Eclipse background, would I be able to somehow operate in a mode that would generate XSDs for me?
Can Hibernate operate in an offline mode, to solely help me generate XSDs which I could use in GWT without deploying hibernate with my web-app? Can Hibernate even be capable of generating XSDs from entities, vice versa?
Currently, I am about to write a utility to generate an xsd, given an entity class - but I am hoping I don't have to reinvent the wheel if it already exists.
I am hoping people here could educate me on any available tools to ease my XSD generation.
But btw, I am very wary of anything that uses Maven, because most people (like Spring) who write the Maven scripts and pom don't have the expertise to write it in a way that would spew out messages and verbosity appropriately to make it easy for me to locate model errors.
Is there any existing library or script I can use to generate the BIC code from an IBAN bank account number (and other necessary information)?
I've searched the web, but found only IBAN generators.
Thanks in advance!
Edit: Solution for Belgian IBAN's
There exists a webservice for Belgian iban numbers, it's very easy to get the bic from the iban bank account number.
$client = new SoapClient('http://www.ibanbic.be/IBANBIC.asmx?WSDL');
$bban = $client->getBelgianBBAN(array('Value' => $iban))->getBelgianBBANResult;
$bic = $client->BBANtoBIC(array('Value' => $bban))->BBANtoBICResult;
I've searched for a dutch webservice aswell, but I couldn't find one. But you can always make one yourself with the data from http://www.betaalvereniging.nl/europees-betalen/sepa-documentatie/bic-afleiden-uit-iban/