Posts

Varying a stroke width of a curve in JavaFX -

Image
is there way create curve in javafx varying stroke width? example, starting @ 10 point , end @ 1 point. you can't vary stroke width. you can simulate behavior though, creating path layers multiple curves, start @ different starting positions converge single point. import javafx.application.application; import javafx.scene.group; import javafx.scene.scene; import javafx.scene.paint.color; import javafx.scene.shape.*; import javafx.stage.stage; import java.util.random; public class dividedpath extends application { private static final double width = 400, height = 400; private static final random random = new random(42); @override public void start(stage stage) { cubiccurve curve = randomcurve(width, height); path path = new path(); (int = -5; <= +5; i++) { path.getelements().addall( new moveto(curve.getstartx() + i, curve.getstarty()), new cubiccurveto( ...

angularjs - How to delay running logic for directive until ui-route is resolved? -

i using angularjs ui-router. attempting make use of angularjs pdf directive available @ https://github.com/sayanee/angularjs-pdf . i'm having make changes example given because not have url pdf right off bat. however, ran problem. because pass id value associated pdf route, have wait resolve parameter until route change has been successful. accomplished guidance @ https://github.com/angular-ui/ui-router/wiki under resolve section. but, when, visit page, before of resolved, , before make query api id resolve url of file, find myself clicking through directive. of course, haven't populated scope of directive values since route hasn't returned resolve promise yet, null value, give me error in pdf.js url isn't populated. how can delay executing logic within directive until scope has been appropriately populated require? so don't have download directive linked @ top, here's i'm working with: (function () { 'use strict'; angular.mo...

liferay 6 - Can't set action in aui:form although I named the action in MVCPortlet -

i'm having bit of problem tracing error comes from, in jsp have form set this: <jsp:usebean id="usuario" type="com.cide.cajavirtual.econtinua.model.estudiantes" scope="request"> </jsp:usebean> <jsp:usebean id="compras" type="com.cide.cajavirtual.econtinua.model.estudiantescompras" scope="request"> </jsp:usebean> <% calendar = calendarfactoryutil.getcalendar(); %> <portlet:actionurl name="registrarcompra" var="registrarcompraurl"> <aui:form name="fmcompra" action="<%=registrarcompraurl.tostring() %>" method="post"> then in portlet class have: public class cajavirtualportlet extends mvcportlet { /* * el portlet registrousuarioscomprasportlet permite los estudiantes llenar la forma * de registro y hacer una compra de la oferta de educación continua * */ public void addcompra(actionrequest request, action...

android - Change a ListView Item's Height based off it's location on the screen -

i'm trying make listview size of items in list view enlarged scroll up. have been looking ways buti'm having trouble finding how modify listview's scroll. thanks help. so after working @ while made discoveries. resizing size of each item computationaly rediculousely expensive. don't, once. this lead new approach. instead resize things inside view. has same effect drastically faster. this can done creating custom listitemview extends listview , overriding drawchild method. hope helps tries similar.

osx - Closing an App on Mac using Ruby code -

i can open app using file_to_open = "/applications/revu.app" system %{open "#{file_to_open}"} but i'm not sure how write code close using ruby. appreciated. shell out applescript: system %{ osascript -e 'tell application "revu" quit'}

Android Activities for Chat Application: Which flags or lauchmodes for Contact List (Roster) and Chat Conversation? -

i'm making chat app using asmack , i'm using activity login, b contact list , c conversation activity(where chat). is: a → b → c on activity b i've set android:launchmode ="singletask" dosen't create new instance everytime press button on activity c , far works. my goal create new instances of c , @ same time not destroy instances when go b. normal chats do. example: a → b → c1 a → c1 → b → c2 and able call c1 , not create new instance. example: a → c2 → b → c1 i've try using different intent flags , launchmodes , far failed. idea on how achieve this?

javascript - my html selecting code select all the html boxs -

i made jquery code can click link on top of "htmlbox" select inside "htmlbox" <p class="selecthtmlcode">إضغط هنا لتحديد النص أسفله</p> <textarea readonly="" class="htmlcode">&lt;div id='allinantiadblock'&gt; </textarea> $(document).ready(function(){ $( ".selecthtmlcode").click(function() { $( ".htmlcode" ).select(); }); }); but problem when have more 1 "htmlbox" (every 1 have selecting link on top of it), select last "htmlbox" simply want every link select "htmlbox" not last 1 or of them here link have problem http://showtime-info.blogspot.com/2014/04/24-anti-adblock.html by way "إضغط هنا لتحديد النص أسفله" means "click here select below text" you want select next .htmlcode element: $(".selecthtmlcode").click(function() { $(this).next(".htmlcode").select(); }); ...