Posts

javascript - Why fill() property overwittern in canvas? -

I learn the html5 canvas when I try to draw 2 circles (a circle inside a circle). When I draw a circle and fill it, then it works when I attract the other circle and fill it, it turns into the first circle with the second type of style. I try to make orange circle in a gray circle. I try it many times to solve it but by all means it gets the problem. Please check my code and tell me whether I am wrong or what to fix this problem To do. > I have the following code & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script src = "http://code.jquery.com/jquery-latest.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Style & gt; Body {} #mycanvas {boundary: 1 px solid # 000; Margin: 0 px auto; Display area; } # Mycanvas1 {boundary: 1px solid # 000; Margin: 0 px auto; Display area; } & Lt; / Style & gt; & lt; Body & gt; & Lt; Canvas id = "mycanvas...

javascript - Force Chrome (38) to exit full screen mode -

I have a webpage that uses the History API to navigate between pages without refreshing the whole page. This works great on desktop and mobile till end chrome update (38.0.2125.102) on Android. The problem is with the browser's full screen mode: When a user comes to our site there is a link to a video gallery, he clicks it and opens a lightbox with a vimeo embedded video in it Then he taps to watch the video and it goes completely (a message appears above the browser which is in full screen mode). If the user closes like a video suggestion (as pulling up from the bottom) everything works as expected, but if that device taps the 'back' button, then the browser can send a few videos (I still can hear it somewhere) Actually leave the full screen mode (when the user stole from the top, the stuff is messing up). I have come to know that when the user has taped that button, and my question is, can I force the browser to leave the fullscreen mode via javascript? Thanks ...

design patterns - Passing config data to concrete implementation of a DAO in Java -

I'm trying to implement a Data Access Object pattern with abstract factory to multiple data sources from the client code Access I refer to the link below. My question is - I can make your client code configuration data (such as how the solid performance of data or file path) pass my DAO? The link I pasted above, for example 9.2, is an example of a concrete implementation, where they are using hard-coded DBRLL and drivers. What would happen if both of these have to be passed from the client code shown in 9, 6? Plus Add a Knekshnparaj object parameter DAOFactory.getDAOFactory function (for example, where the connection URL, User, the store, etc.) and then can pass the constructor of your Deforintik Filusn use Knekshnparm to make your DAOFactory connection then. The connection method should not be set in this connection. Connectionpam object can be like this: ` public class connection form {private string URL; Private string pass; Private string file; / * Getters...

perl - Comparing FILE1 value to FILE2 range and printing matches -

I am very new to Pearl and I am working on a bioinformatics project at the university. I have a list of conditions in FILE1, in format: 99269 550 100 126477 1700 and format in the FILE2: 517 1878 forward 700 2500 forward 2156 3289 forward 99000 100000 forward 22000 23000 backward I want to compare the values ​​in FILE1 to each position at FILE2, and if the situation If I fall into any of the categories, I want to print the position, boundary and direction. Then my expected output would be: 99269 99000 100000 forward 550 517 1878 forward 1700 517 1878 forward Will not run with errors, but it does not produce any information, so I'm unsure where I'm going wrong! When I divide the last 'if' rule, then it will only work if the situation is at the exact same line. My code is as follows: #! Strict use of USR / Bin / Pearl; Use warnings; My $ outputfile = "/ user / adverb / documents / CC 22 CDSTPT"; Open FILE1, "/ User / EdwardTechn...

sql server - XPATH Get list item with ID held in sibling -

To use XPath in T-SQL, I am trying to get an attribute value from the option list where the ID is to select the correct list. I / O Any help would be appreciated. inserted into my mytable table (pk int primary key identification (1,1), myXML xml) into the @myTable values ​​('Fields & gt; & lt; Field ID = " 1111 "& gt; Details & gt; Now Brown Cow & lt; / description & gt; value & gt; 3 & lt; / pricing & gt; & lt; option & gt; & lt; Option & gt; Option; OptionContent = "Select one" OptionID = "- 1" /> Option Option OptionContent = "Pluto" optionID = "2" /> option> OptionContent = "Saturn" optionID = "3" /> gt; & lt; / option & gt; & lt; / Field & Lt; Field ID = "2222" & gt; & lt; Details & gt; Foo Bar & lt; / descript ion & gt; & lt; VALUE & gt; 2 & lt; / pricing & gt; LT; Option ...

CakePHP AuthComponent find source for SQL query? -

I am using CakePHP 2.3. I have used AuthComponent for login certification. I want to know the source of the query SELECT now. I know that the user is an Ethiopian fire skeleton query for investigation, but to know where it is the source for it. I tried to find it but found no success. Does anyone know how this file exists? In general, you can initialize a GIT repository and "GIT grape [string]" You can go to the files of your project. This is an easy way to locate the string you were looking for.

android - libdvm.so Error. Please fix -

माइक्रोसॉफ्ट विंडोज [संस्करण 6.1.7601] कॉपीराइट (c) 200 9 Microsoft Corporation सर्वाधिकार सुरक्षित। C: \ Windows \ system32 & gt; सीडी C: \ एंड्रॉयड \ ADT-बंडल-windows-x86-20140702 \ ADT-बंडल जीत dows-x86-20140702 \ एसडीके \ मंच उपकरण C: \ एंड्रॉयड \ ADT-बंडल-Windows- x86-20140702 \ ADT-बंडल-windows-x86-20140702 \ एसडीके \ p latform उपकरण & gt; एडीबी उपकरणों उपकरणों की सूची संलग्न एमुलेटर-5554 डिवाइस एमुलेटर-5556 डिवाइस एमुलेटर-5558 डिवाइस C: \ एंड्रॉयड \ ADT-बंडल-Windows- x86-20140702 \ ADT-बंडल-windows-x86-20140702 \ एसडीके \ p latform उपकरण & gt; एडीबी शुरू सर्वर C: \ एंड्रॉयड \ ADT-बंडल-windows-x86-20140702 \ ADT-बंडल-windows-x86-20140702 \ एसडीके \ p latform उपकरण & gt; एडीबी उपकरणों उपकरणों की सूची संलग्न एमुलेटर-5554 डिवाइस एमुलेटर-5556 डिवाइस एमुलेटर-5558 डिवाइस C: \ एंड्रॉयड \ ADT-बंडल-windows-x86-20140702 \ ADT-बंडल-windows-x86-20140702 \ एसडीके \ पी लॉटफॉर्म-टूल्स & gt; एडीबी-एस इम्यूलेटर -5558 फेसबुक.एपक 53 KB / s (142.847 एस में 785 9 530 बाइट्स) ...