Posts

d3.js - drag circle copies from different svgs to another svg in d3 -

I have different skiubs (SVG1-SVG4), with many circles drawn on them. I can choose these circles individually so that they change in their appearance (fill color). They have also been added to the class. Selected. Now I would like to draw them semi-transparent copies in a new SVG. The original boards should stay where they are. I would like to give the interactive power of pulling several circles on that SVG5 to create a new object on another SVG (SVG5). When they are removed, the copies of the circles should be removed and an indication where users can give more information about new objects in SVG5 should be opened. So I got a new SVG (called SVGcric). On SvgCircles, I have added a group, where I add a circle copy when a circle is selected. I have also added a drag version to the group, which calls a function, where I will change the position of the G element / circle copy. My question is now: Where should I place the status of STVG so that drag-event can be seen and call...

Equivalent of AspectJ call pointcut in PostSharp -

Is Aspex call point in postspark? Concrete: The method foo () on both classes and classbie call classes I only want to block calls from A to C, ATP to C, as it happens in Eptex, Inbound calls can be obtained from: call (* ClassC.foo ()) & amp; ; & Amp; This method is not directly possible as extension calls to a method does not apply to the site itself And such signals will only be able to filter methods, not call sites For possible solutions, two aspects must be cooperated - one will manage a thread-fixed variable, the second, either execute the lost method or do some additional work. However, this is not an ideal solution.

PHP - How to keep a Command Shell open for executing multiple commands? -

Hi, I'm trying to execute several commands using a PHP machine on a Windows machine. I tried this code: & lt ;? Php $ output = shell_exec ("powershell.exe"); $ Output2 = shell_exec ("Writing Host Gokul"); Shell_exec ('departure'); Echo ('& lt; east & gt;'); Echo ($ output); Echo ($ output2); Echo ('& lt; / pre & gt;'); ? & Gt; PHP executes each command with a new shell and closes when it is complete! I think every 'shell_exec' creates a new shell and the control waits until command execution is complete. How can I turn it off until it opens in the background Is not it sure whether 'proc_open' or 'popen' can help? UPDATE When I use PROC_OPEN () $ descriptorspec = array (0 = & gt; array ("pipe", "r") , // stdin, a pipe that will be read from 1 => array ("pipe", "W"), // stadout is a pipe that has a child 2 => array (...

c++ - Fully transparent torus in OpenGL -

Image
I have a Torres provided by OpenGL and can map a texture; There is no problem till the texture is not opaque. But when I make the color selectively transparent, it does not work. Or rather: this works but only in some areas based on the order of the triangle in the top buffer; See the difference with the outer equator Torus should be equally covered by spots . The source image will be PNG, however for now I work with BMP because it is easy to load (Texture loading is part of the tutorial tutorial). The white background of the image and above it is the different color spots; It is not transparent, with the desired result spots, there is almost transparent torus. Both the front and rear side spots should appear. Rendering will be offline, so I do not need speed; I need to create an image of Torus with an image of its surface. So far my code looks like this (it's a merge of two examples): The piece is cinematographer: #Version 330 core / Interpolated value with peak shad...

Reading multiple Excel worksheets inside a single xlsx using c# -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर सी # का उपयोग मैं सफलतापूर्वक खोल सकता हूँ एक एक्सेल दस्तावेज़ और नीचे दिए गए कोड के साथ पहले वर्कशीट में डेटा पढ़ें। हालांकि, मेरे .xlsx में एकाधिक कार्यपत्रक हैं इसलिए मैं कार्यपत्रक संग्रह के माध्यम से प्रत्येक कार्यपत्रक का नाम हार्ड कोडिंग के बजाय लूप करना चाहता हूं। बहुत धन्यवाद। स्ट्रिंग पथ = "सी: \ एक्स्ट्रैक्ट \ एक्सट्रैक्ट. एक्सएलएसएक्स"; स्ट्रिंग connStr = "प्रदाता = Microsoft.ACE.OLEDB.12.0; डेटा स्रोत =" + पथ + "; विस्तारित गुण = Excel 12.0;"; स्ट्रिंग एसक्यूएल = "SELECT * FROM [Sheet1 $]"; (OleDbDataAdapter एडाप्टर = नया OleDbDataAdapter (sql, connStr)) का उपयोग करना {DataSet ds = new DataSet (); adaptor.Fill (डी एस); डाटाटाइल डीटी = डीएसटीबल्स [0]; } मैं लगभग एक ही समस्या पर काम करने वाला हूँ मैं काफी उपयोगी में गाइड पाया। संक्षेप में, वर्कशीट नंबर को खोलने के लिए 3, Excel कार्यपुस्तिका खोलने के बाद निम्न कोड जोड़ें: var कार्यपत्रक = कार्यपुस्तिका। वर्कशीट [3] क...

netbeans - How to let user specify pdf location using iText? -

I have created a program that will generate a report allowing the user to save that report in a PDF file format. I want to know how to specify the location of the user to save that file. I am using iText on Netbeans. Thanks :)

php - Error creating children relationship in Laravel 4 Eloquent ORM -

I have found a structure with 2 models like this: spreads class contenuti eloquent Has been {public event dettaglio () {return $ this-> Hone ('ContenutiDettaglio', 'contenuto_id'); }} Class ContenutiDettaglio Expands the legendary {public celebration contenuto ()) {Return $ this- & gt; BelongTo ('Contenuti', 'contenuto_id', 'Id'); }} When I am creating a containant, I am trying to extend the content of the container on the content element to always add content. I have written my expanse like this: Public Fixed Work findOrNew ($ id, $ coloumns = array ()) {$ obj = parent :: findOrNew $ Id); If (! Isset ($ obj-> Ditaglio (- -> ID)) {$ obj- & gt; Save (); $ Dettaglio = ContenutiDettaglio :: Creating (array ('titolo' => 'Nuovo contenuto')); $ Dettaglio-> Contenuto () - & gt; Associate ($ obj); $ Obj = Contenuti :: findOrFail ($ obj-> ID); Dd ($ obj-> dettaglio ()); } Return $ obj; } T...