freeform

Can NetBeans auto-build java free-form (Ant) projects?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 18:01:02
问题 After every save I need to right-click on the project in the project browser and click on build . Is there a way to configure NetBeans to auto-build the project when I save a file? 回答1: See Compile on Save FAQ: http://wiki.netbeans.org/FaqCompileOnSave I don't use CoS myself, I highly recommend Jenkins for your auto-build needs (and so much more): http://jenkins-ci.org/ 回答2: The compile on save option is not available for free-form projects as of NetBeans version 8.0. And I don't think it

How to categorize and tabularize free-form answers to a question in a survey?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 00:33:00
问题 I want to analyze answers to a web survey (Git User's Survey 2008 if one is interested). Some of the questions were free-form questions, like "How did you hear about Git?". With more than 3,000 replies analyzing those replies entirely by hand is out of the question (especially that there is quite a bit of free-form questions in this survey). How can I group those replies (probably based on the key words used in response) into categories at least semi-automatically (i.e. program can ask for

How to crop only certain area using HTML5 + Javascript or server side language?

好久不见. 提交于 2019-12-07 13:40:16
问题 Before asking my question, I have a test page to make it everyone understand my question better. The URL is http://iamthemoon.com/crop/ You can move the red selection. I like to crop only the area of red selection. I thought it could be done easily in HTML5 canvas, but that was my mistake. First I googled about it 2 days, but I couldn't find a solution. There are many HTML5 based cropping tools, but they only have square selection. I then looked into PHP GD and imagemagick, but I couldn't

Lasso tool in html5 canvas

强颜欢笑 提交于 2019-11-29 08:05:46
I'm trying to build a freeform lasso tool to clip an image inside canvas. I'm using fabric.js to draw the shape. var canvas = document.getElementById('c'); var ctx = canvas.getContext('2d'); var img = document.createElement('IMG'); img.onload = function() { var OwnCanv = new fabric.Canvas('c', { isDrawingMode: true }); OwnCanv.freeDrawingBrush.color = "purple" OwnCanv.freeDrawingBrush.width = 4 ctx.clip(); ctx.drawImage(img, 0, 0); } img.src = "http://upload.wikimedia.org/wikipedia/commons/3/33/Jbassette4.jpg?uselang=fi"; <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery

Why doesn't the compiler report a missing semicolon?

此生再无相见时 提交于 2019-11-28 19:02:41
I have this simple program: #include <stdio.h> struct S { int i; }; void swap(struct S *a, struct S *b) { struct S temp; temp = *a /* Oops, missing a semicolon here... */ *a = *b; *b = temp; } int main(void) { struct S a = { 1 }; struct S b = { 2 }; swap(&a, &b); } As seen on e.g. ideone.com this gives an error: prog.c: In function 'swap': prog.c:12:5: error: invalid operands to binary * (have 'struct S' and 'struct S *') *a = *b; ^ Why doesn't the compiler detect the missing semicolon? Note: This question and its answer is motivated by this question . While there are other questions similar

Lasso tool in html5 canvas

喜欢而已 提交于 2019-11-28 01:24:58
问题 I'm trying to build a freeform lasso tool to clip an image inside canvas. I'm using fabric.js to draw the shape. var canvas = document.getElementById('c'); var ctx = canvas.getContext('2d'); var img = document.createElement('IMG'); img.onload = function() { var OwnCanv = new fabric.Canvas('c', { isDrawingMode: true }); OwnCanv.freeDrawingBrush.color = "purple" OwnCanv.freeDrawingBrush.width = 4 ctx.clip(); ctx.drawImage(img, 0, 0); } img.src = "http://upload.wikimedia.org/wikipedia/commons/3

Why doesn't the compiler report a missing semicolon?

寵の児 提交于 2019-11-27 11:50:11
问题 I have this simple program: #include <stdio.h> struct S { int i; }; void swap(struct S *a, struct S *b) { struct S temp; temp = *a /* Oops, missing a semicolon here... */ *a = *b; *b = temp; } int main(void) { struct S a = { 1 }; struct S b = { 2 }; swap(&a, &b); } As seen on e.g. ideone.com this gives an error: prog.c: In function 'swap': prog.c:12:5: error: invalid operands to binary * (have 'struct S' and 'struct S *') *a = *b; ^ Why doesn't the compiler detect the missing semicolon? Note: