Posts

Showing posts from March, 2013

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 बाइट्स) ...

Changing text color with Swift -

I want to change the color of the text of a cell in my table view. If I do this it is not working in Xcode6 Beta 1 but this is not working on the last version of Xcode 6. code: selgra.txtcolare = UIColor.whiteColor () Error: 'TextCall' is unavailable : Deprecated APIs as iOS 7 and above are unavailable in SWIFT What is a UITBEL scan? In that case use: - selgra.txt labels? .textcore = UIColor.whiteColor ()

eclipse - How to test screen rotation in Android Emulator? -

Image
इस सवाल का पहले से ही एक उत्तर है: 5 जवाब अगर मैं एक ब्राउज़र खोलता हूं एमुलेटर और Ctrl + F11 या F9 या Ctrl + F11 दबाएं, स्क्रीन घूमता है लेकिन ब्राउज़र नहीं करता है परीक्षण करने के लिए मैं एक देशी ऐप डाउनलोड कर अपने इम्यूलेटर पर फोन लगाया और दोनों फोन को स्थापित किया। ऐप फोन के रोटेशन को पकड़ता है लेकिन इम्यूलेटर पर ऐसा ही हुआ। मैंने इसे googled और Stackoverflow पर कुछ पोस्ट पढ़ा, मुझे पता चला कि यह विशेष संस्करण के एमुलेटर में एक बग है। कोड> एक्लिप्स (जूनो) इसके साथ एलेप्से में अंडोआर्ड एसडीके प्रबंधक है, जिसने मुझे नवीनतम एपीआई, एसडीके उपकरण इत्यादि को चुनने में मदद की। मैंने उनको डाउनलोड किया, मैंने क्या याद किया जो रोटेशन का समर्थन नहीं करता। मैंने यह भी पढ़ा है कि यदि मैं अनचेक हार्डवेयर कीबोर्ड वर्तमान है, तो यह मैंने भी होस्ट GPU , कोई भाग्य अनचेक करके भी कोशिश की। अंत में मुझे बताया गया था कि एंड्रॉयड मैनिफ़ेस्ट.एक्सएमएल है, मैं दोनों लैंडस्केप और चित्र दोनों का समर्थन करना चाहता हूं। लेकिन मैंने एक्लिप्स में कोई भी and...

javascript - checkboxes behave like radiobuttons with different names -

I have a problem, which can be easy for you Im new in jQuery and selectboxes, check boxes and 3 radiobuttons (3 Trying to do a form (calculator) with the same name, just one or any other can be checkable). When I submit a form (at least for the first time), the value of each input remains the same as I wanted but when I submit it without refresh / reset the second time, check the radiobutton disappears first In which, and even when I reclick a radiobutton without refreshing and submit it, the value can not be maintained by php. So I decided to change the radio button to the checkbox, and this is where I need your help. I need 3 checkboxes, which can be selected "Anyone" with only one or a different name. & lt; Input type = "checkbox" id = "checkbox8" value = "1" name = "8" to & lt ;? Php if (isset ($ _ post ['8']) & amp; amp; $ _POST ['8'] == '1') echo 'check' = "check" ...

MSGestureHold event not trigerred in Windows 8.1 -

मेरा ऐप सिल्वरलाइट 8.0 एसडीके, विंडोज 8 पर एमएसजीस्टेरहोल्ड इवेंट काम करता है, लेकिन अगर 8.1 पर परीक्षण किया गया है, इस घटना को ट्रिगर नहीं किया गया है। क्या कोई भी समाधान सुझा सकता है? "post-text" itemprop = "text"> इस कोड को वेबफ़ेन्ड में डब्लूफ़ो 8.1 8.1 के लिए ठीक काम करता है: var init = function () {var myState = // संदर्भ var target = // DOM variable target var msg = new MSGesture ( ); Msg.target = लक्ष्य; Target.addEventListener ("MSGestureHold", फ़ंक्शन (evt) {buttonTactileListener.apply (myState, [evt, msg]);}, झूठे); Target.addEventListener ("पॉइंटरडाउन", फ़ंक्शन (ईवीटी) {बटनटैक्टाइललाइस्टर। एपली (माइस्टेट, [ईवीटी, msg]);}, झूठी); Target.addEventListener ("MSGestureEnd", फ़ंक्शन (evt) {buttonTactileListener.apply (myState, [evt, msg]);}, गलत); } Var बटनटैक्टाइल लास्टनर = फंक्शन (ईवीटी, ईमेस्ट्रेस) {var myState = this; अगर (evt.type == "पॉइंटरडाउन") {msgesture.addPointer (evt.pointerId); वापसी; } अगर ...

python - wxPhyton error loading a image failed to load image from file -

I have an error on wxPhyton. When I try to load and try the image it gives me this error: "Failed to load image from file 14: 25: 14: 'About Resources / PlightSoft 255b. BMP can not open the file 'about resource' / flatplutest255bbmp '(error 0: correct for doing the right thing.) 14:25:14: image "About PlotTotal 255 bbp of resources / image" Failed to load. I try to change jpeg I do not work on changing the size and resolution of PNG, BMP. Any ideas? Resolve, The problem was the path to the image file. Why not me, but I can not get the absolute path to show some images.

Chrome "Inspect" Rulers - Disable -

Image
Since I "observe" in Chrome, this morning I have seen this unpleasant change. > I do not like any of these , And would love to know how to turn off this "feature" I like the old microscopic inspection mode, which changes any additional accessories into the page breaks. Please close this feature, where you can disable this feature by clicking the "Device Mode" button Can see.

sql - Suppress repeating values on subsequent rows -

item_no पैरेंट आइटम_no_child item_name text 123 3 xxx आइटम पानी के लिए प्रतिरोधी है 123 5 yyy आइटम गर्मी प्रतिरोधी है 123 6 zzz आइटम है .... मैं माता-पिता के आइटम को इनपुट के रूप में दे रहा हूँ और बाल आइटम नंबर को पुनः प्राप्त कर रहा हूं। अब मुझे प्रत्येक बच्चे की वस्तु की पाठ्य जांचनी होगी और यदि उनके पास एक ही पाठ है तो मुझे आइटम_नाम को प्रदर्शित नहीं करना चाहिए और मुझे चाहिए। विश्लेषणात्मक कार्य ऐसे विशिष्ट प्रश्नों को लागू करने का एक सुव्यवस्थित तरीका है: SELECT item_name से (SELECT item_name, ROW_NUMBER () पर (पाठ के अनुसार क्रम 1 से) आइटम से आर.एन. जहां आइटम_को मूल = 123) जहां आरएन = 1 संपादित करें: कुछ स्पष्टीकरण, जैसा कि टिप्पणियों में अनुरोध किया गया है - row_number एक विश्लेषणात्मक कार्य है (कभी-कभी इसे एक विंडोिंग फ़ंक्शन कहा जाता है) यह इनपुट की प्रति पंक्ति एक परिणाम देता है (जैसे कि एक पंक्ति फ़ंक्शन), लेकिन सभी अन्य पंक्तियों को भी ध्यान में रखता है (जैसे एक समग्र कार्य)। इस स्थिति में, row_number बस वर्तमान पंक्ति की संख्या देता है (यानी, एक सरल ...

.net - C#, Skipping Console.ReadLine(); Console.Read(); while in loop -

If I run my code and insert the correct value for the first time, then it does the job and it works, But if I input incorrectly, allow loop to spin the second time, it leaves the path = console. Readline (); but it does not leave the j = (char) console. Read (); The same thing continues through the rest of the code. {Console.WriteLine ("Insert path:"); Path = console. Readline (); Temp1 = checkpath (path); // Check if the inserted value is valid (temp1 == incorrect) {Console.WriteLine ("\ nDo you want to skip this step (default directory will be set to desktop) Y / N"); Jammu = (four) console Read (); If (J. Ecklace ('Y')) J.Aklav ('Y')) {Path = Environment Gatefolder Path (environment specialfolder.com desktoptop); Temp1 = true; }} // User Input wi / wi loop will expire and will end with the route chosen by the user or desktop path; While (! Temp1); path = console.readlines (); Skipping if the user fails to insert the correct path. I...

c# - How to write a DbContext Class. -

If I have a database named STOREitems, and I have that table heading values ​​in the table, and the name of the model will be value Can I write something like this? Public class STOREitemsDBContext: DbContext {public DbSet I have worked through an MVC tutorial and now I am trying to work on my own with the already existing database, which I have access to The tutorial did not make it clear how to write the DB reference class, he just gave it to me and said what it does. If you are going to use an existing database, then you have to close your database unprecedented. Reference Public category StoreItemsContext: DbContext {Public StoreItemsContext (): Support ("YourConnectionStringName") {Database.SetInitializer & LT; StoreItemsContext & gt; (Zero); } // DBSet publishes DBSET and Lieutenant here; Price & gt; Prices {Get; Set; }} Note: Class and property names should be camel-seated with firstly cached characters. If your table name doesn not...

swift - Edit Style of UITableViewCell -

I want to add a new function to my MyTableView.swift file, but I get an error: Overriding method with selector 'initWithStyle: reuseIdentifier:' Incompatible Type '(UITableViewCellStyle, String) - & gt; MyTableViewCell ' This is the code that I want to add: init (style: UITableViewCellStyle, ReuseIdentifier: String) {super.init (style: UITableViewCellStyle.Subtitle, reuseIdentifier: reuseIdentifier)} The code MyTableView.swift file: import UIKit class MyTableViewCell: UITableViewCell {to medColor: UIColor = UIColor (red: 0.973; green: 0.388, blue: 0.173 Alpha: 1) {super.init (style: UITableViewCellStyle.Subtitle, reuseIdentifier: reuseIdentifier)} awakeFromNib function overrides () {(: UITableViewCellStyle, reuseIdentifier string style) init super. AwakeFromNib () // Start Code} setSelected Function Override (Selected: Bull, Animated D: Boole) {super.setSelected (selected, animated: animated) // view configured for selected state}} it says ...

Change text svg JavaScript -

How can the text with "txtcercle" change in javascript? My object is below: & lt; Svg width = "100" height = "100" id = "svgcercle" & gt; & Lt; Rect id = "cercle1" x = "5" y = "25" width = "50" height = "50" stroke = "# 0a" style = "fill: red; stroke-width: 1" /> & Lt; Text id = txtcercle x = "5" y = "35" font-family = "verdana" font-size = "11" full = "white" & gt; Read 1 & lt; / Text & gt; & Lt; / Svg & gt; I also want to change the text (id = 'rect1') by typing the desired text with javascript. You can do this var elem = document.getElementById ('Txtcercle'); Elem ['indtext' in AMM? "Internal text": "text content"] = "some value";

asp.net mvc 5 - GetService in NinjectDependencyResolver not getting hit -

I am using a custom dependency resolver - Resident Dependency Resolver: Audacity Resolver. Here is the code: using the system; Using System.Collections.Generic; Using System.Web.Mvc; Using EssentialTools.Models; Using Ninject; Namespace EssentialTools.Instructure {Public Class Ninject dependencyResolver: Freedom Resolver {Private IKernel kernel; Public Nondesigned Dependency Resolver (IKernel Kernel Param) {kernel = kernelParam; AddBindings (); } Public Object GetService (type service type) {return kernel.TryGet (serviceType); } Public IEnumerable & lt; Object & gt; GetServices (type service type) {return kernel.GetAll (serviceType); } Private Zero AddBindings () {kernel.Bind & lt; IValueCalculator & gt; (). & Lt; LinqValueCalculator & gt; (); }}} I registered a resolver in the webmaster of the resident. And I know that my AddBindings are getting hit because I can set breakpoints and hit and inspect. Or write debug statement in the output window. B...

svg - Grunticon For Ruby on Rails -

What is the equivalent of graniticon for rail? While researching the fonts of SVG images for dynamic colored images, I think that trade dislikes fairly manage PNG with fallback. But I am using ROR and this node. Based on JS, unless I say no wrong, it's not going to work for me. Does anyone know of a similar type of service to handle dynamically customizable images in the train beautifully? p.s I am currently using a font-based approach.

c# - How should I separate a string which contains slashes with a single slash? -

यह एक स्टिंग है: string a = "c: \ folder1 \ folder2 \ folder3 "; मैं '\' के साथ स्ट्रिंग को अलग करना चाहता हूं, इसलिए इस तरह से लिखें: सूची & lt; string & gt; परिणाम = a.Split ('\\')। ToList (); लेकिन, परिणाम में केवल एक सदस्य शामिल हैं: {C: पुराने 1 पुराने 2 पुराने 3} मैं चाहता हूं परिणाम में 4 सदस्य हैं: {C:, folder1, folder2, folder3} तो, मैं इसे कैसे करूँ? समस्या यह है कि आपके नमूना स्ट्रिंग में बैकस्लैश नहीं है। इस स्ट्रिंग में तीन हैं: स्ट्रिंग ए = "सी: \\ folder1 \\ folder2 \\ folder3"; या यह: स्ट्रिंग a = @ "C: \ folder1 \ folder2 \ folder3"; // Google: शब्दशः स्ट्रिंग शब्दशः \ f एक फॉर्मफ़ीड के लिए है।

haskell - Sum Type Vs Record of Maybes -

While designing the data type in Haskell, I am facing a problem often, or it may be that the type or records used by the intritor may be used. Fx will be a simple example for operation, spot or forwarding, where the only difference is the presence of "maturation" or not (on one side there must be a certain type of use which is clearly specified. Is a place or forward. data amount = amount {amount :: double, currency :: string} data Fx = Spot {tranDate :: day, quantity sold: amount, purchased money :: Zodiac} | Next {Trandet :: Days, Amount Paid: Zodiac, Purchase Hammount :: Zodiac, Maturity :: Day} Another method is that only maturity can be as a 'may' data Fx = Fx {tranDate :: day, sold quantity :: amount, purchased atmount :: amount, maturity (probably day)} or anything S = "post-text" itemprop = "text"> I do not recommend working with types of types that are named field that are unsafe for the accessers Are on any one of ...

Periodic backgroud task in JMeter -

Requests in my test plan use an authorization token that I know of ending in 1 hour. I need to request a token for every 59 minutes until the end of the test. I can suggest the best method for that - looks with the controller, when the test does not end in the loop endlessly Happen. Add another one to your testing plan. Configure to run (or have enough loops for sufficient time) Add group to that second thread, put it in the "> 3540000 in the input field for every 59 minutes Place your "token-received" argument under the timer. If your token is being stored as a property - the main thread It will be able to use it. If it is a variable then you will need to convert it to a property, so it is only limited to the current thread group. Hope it helps

Multiplication of three numbers in c give a wrong results? -

I can not give credit to whatever happened in my program double Den = 180 * 3600 * 1000; This value was found in debugging -2109934592.0000000 Any help please ??? You can try this simple code # include & lt; Stdio.h & gt; # Include & lt; Math.h> Int main (int argc, char * argv) {double divisor = 10000 * 180 * 3600; Printf ("% f \ n", divisor); Return 0; } With full code in question we can now see that this integer is overflow 10000 * 180 * 3600 = 6,480,000,000 This is greater than 2,147,483,648 which is the maximum value of 32-bit signed int. The results of multiplication are overflow to -2,0 9, 34, 592 and then it is repeated. Repeat one of the numbers to get the correct number before multiplying: 10000.0 * 180 * 3600

android - Problems with alignment of listview item -

I have a problem with the alignment of the various fields in each row of the list view what B under anyone know that B Go, c under c, etc .. thanks !! Since I can not post screenshots, I try to create an image AAAAAAA BBBBBB CCCCCC Dddddd (This is my title) aaa bbb ccc ddd (This is my ListView Item Is) How can I align it? I recommend that you use tables for such things. You can define a layout that will be set to the Each line in your ListView. In this line there will be 4 parts with the same width and the list should be in the same line and equal to one another. & lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; TableLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" Android: stretchColumns = "*" Android: weightSum = "4" & Gt; & Lt; TableRow android: layout_width = "w...

Using Codenvy to OAuth Google with php -

I am quite new to codenvy and php, but I have checked the following two times, I am not called in when I launch it with the following code. I have followed the instructions here to make any clear mistakes in the bottom? & lt; Php require_once 'src / Google / Client.php'; Need_once 'src / Google / Service / Analytics.php'; Session_start (); $ Client = new Google_Client (); $ Client- & gt; Set Application Name ('Hello Analytics API Sample'); // To generate your client client, visit https://console.developers.google.com/ and register your redirects. $ Client- & gt; SetClientId ('confirmed this is correct'); $ Client- & gt; SetClientSecret ('confirmed it is correct'); $ Customer & gt; SetRedirectUri ('https://codenvycorp.com/api/oauth/callback'); $ Client- & gt; SetDeveloperKey ('confirmed this is correct'); $ Customer & gt; SetScopes (array ('https://www.googleapis.com/auth/analytics.readonly...

c - Why &a is illegal l-value and why it is used in scanf() function then -

I'm studying pointers in C, and I'm really confusing some topics. I searched Google and this particular site was also not understood. I have questions about form variables: 1) one = 2 and & amp; A = 2? 2) Why the & amp; Is an illegal use as a L-val? As far as I understand, and A = 2; is invalid & amp; An illegal L-value is because & amp; Memory address is not memory content and since the memory address is in the form of integer we can not assume the integer. 3) What happens in Scanf () function then? I mean if we do scanf ("% d", & amp; a); take an example like why & amp; A is used here, why not * (& amp; a) does the compiler not show any type of error? Please Please & amp; One , because & amp; A indicates address where the variable is a stored, and that address is determined once and for all, the program can start and it can not be changed. When using scanf , you want one or ...

javascript - Reactify, Browserify and Gulp: TypeError: Object #<Transform> has no method 'transform' -

यह त्रुटि है, जब कमांड लाइन के माध्यम से, मैं gulp scripts करता हूँ: प्रकार त्रुटि: ऑब्जेक्ट # & lt; ट्रांसफ़ॉर्म> कोई भी तरीका 'ट्रांसफ़ॉर्मेशन' नहीं है यह gulpfile.js : var gulp = require ('gulp' ), ब्राउजरफ़ाइल = की आवश्यकता होती है ('गुलप्ले-ब्राउजरिफ़'), स्रोत = की आवश्यकता होती है ('vinyl-source-stream'), प्रतिक्रिया = आवश्यकता होती है ('प्रतिक्रिया'); Gulp.task ('स्क्रिप्ट', फ़ंक्शन () (ब्राउज़र। ('। / Assets / js / main.js')। ट्रांसंसफ़ॉर्म (प्रतिक्रिया)। बंडल () .पाइप (स्रोत ('main.js')) .पाइप ( Gulp.dest ('। / Static / js'));}); Gulp.task ('डिफ़ॉल्ट', ['स्क्रिप्ट']); मुझे यह नहीं पता कि यह कैसे ठीक करें। मैंने इंटरनेट पर खोज की, लेकिन मुझे कुछ भी नहीं मिला, मेरी विशिष्ट त्रुटि के करीब आई। कुछ समस्याएं हैं अपने काम के साथ। सबसे पहले, आपको अपना main.js फ़ाइल प्राप्त करने के लिए gulp.src का उपयोग करना होगा। दूसरा, परिवर्तन gulp-browserify का एक विकल्प ...

Javascript Regex - \\d works but not \d -

This is why I am trying to exclude some real regx for the first time and I am told that ' \ D 'indicates matching of one digit. Please someone can explain why only one pattern below works with a double back slash " \\ d ", t. After viewing in the JavaScript Regular Expressions documentation, it includes a wicked back slash while following you. var str = "123456", pattern1 = new RegExp ("^ \\ d {6} $"), pattern 2 = new RegExp ("^ \ d {6} $") ; If (pattern1.test (str)) {Warning ('Pattern 1 match!'); } And {warnings ('Pattern 1 no match!'); } If (pattern2.test (str)) {Warning ('Pattern Match 2!'); } And {warnings ('Pattern 2 is no match!'); } You do not need to wrap a regular expression in quotes if you go ahead Grow and end / Pattern 2 = New RegExp (/ ^ \ d {6} $ /); Additional \ is required because it is in other \

neo4j - Cypher: what parts of a pattern can be bound to a variable? -

I can get all users nodes in this way: MATCH (N: User) Returns N In this case, the n is linked to the node. But suppose I want to write a cipher query with the code name with the label code of every code node user and the key name , and it's Return the username as I write: MATCH (n: user {name: username}) returns user name but it does not seem possible: the cipher does not parser Is the identifier usernames accepted at that place of the pattern? Is there another way to do this? Which positions of a pattern are possible to keep an identifier? Just nodes and relationships? (Yes, I know that I can bind to the node, check that there is no name property, and if so, remove that value. Pattern is more elegant to match.) To answer the question in the headline: MATCH P = (N) - [ Specifically, paths, nodes, and relationships MATCH R] - (M) After the match section, the combination of with section In the field, any identifier can be compelled...

javascript - Mongoose Query Using Multiple ObjectIds (with 'ref') -

Is it possible to do a query in Mimosa, in which two search criteria are ObjectIds (a referee)? For example, the following schemas are given: var objectID = mongosse Sema Object ID; Var fooSchema = new Mongoose Sema ({...}); Schema Fu = mongos Model ("Foo", Fushama, "Foo"); Var barSchema = New mongosse Sema ({Fuide: {Object, Ref: "Foo"}, ...}); Schema Bars = Mongos Model ("bar", barshma, "bar"); I hope to do this work: schemas.Bar.find ({_id: mongoose.Types.ObjectId (req.params.barId) , FooId: mongoose.Types.ObjectId (req.params.fooId)}, function (fault, result) {...}); But it gives an empty set. Oddly, if I remove one or the other criterion, then it works. schema.barfund ({_id: mongoose.Types.ObjectId (req.params.barId)}, .. ..); or ... schemas.Bar.find ({fooId: mongoose.Types.ObjectId (req.params.fooId)}, .. .); What am I doing wrong here? I can see raw data in the database, even if the objects in the que...

c++ - gluLookAt function won't work -

I am trying to change the position of the camera / view angle in one scene, but there is nothing The default view set in my salvage function (below) which I input into shows myReshape zero (int w, int h) {glViewport (0,0, w, h); GlMatrixMode (GL_PROJECTION); GlLoadIdentity (); Glu Perspective (40, W / H, .5, 1000); GlMatrixMode (GL_MODELVIEW); GlLoadIdentity (); } Every other problem with this function is usually the result of an inappropriate push-pop matrix or it is doing translation / rotation before or before calling it. I do not think I have any of these issues, though. This is my display function. myDisplay void () {glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); GlMatrixMode (GL_MODELVIEW); GlLoadIdentity (); GluLookAt (0.0, 0.0, 0.0, 5.0, 5.0, 5.0, 0, 1, 0); Printf ("Error:% x", glGetError ()); GlPushMatrix (); // Current matrix glododent (); // Start a new temporary matrix for identification glTranslatef (0.0.0.0, -20); // Transfer the original laye...

Connect database in MS Access with Android -

I will start developing an application on Android and I need access to database in MS Access. Is it possible to create a connection between MS Access and Android? how? You can try to start a pure service that enables you to build relationships between your Application and your server (where is your DB). There are so many articles in it that how to make it, here is an example for a Microsoft SQL Server (which can be useful to connect to your MS Access): Hope it helps

c# - WPF Expander overlay used in ItemsControl -

I've been searching for a while, but all the solutions I can only deal with parts of my issue. With an item control, which includes the expansion, upon expansion, the content of the extensioner should be shown as an item which is overlapping the other item in the item control and not taking them down. The following XAML-code is actually a big problem: the content of the expansion does not overlap other objects but is hidden behind them, I think it is because of ZIndex because the following in ItemsControl Items are added after expander content. I managed to set a single spreader's ZIndex 99 style triggers, but it appears to be very complicated and error-prone solution any thoughts? & lt; Window x: orbit = "wpfTest.MainWindow" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/ Xaml "title =" main window "height =" 350 "width =" 525 "...

css - Stop body scrolling under overlay -

I have an overlay menu that displays on content on mobile. I can add content to the content by scrolling under the menu on iOS or Android. Can not stop. Everywhere I see the overflow to use: hide; On the body ... which I have done and it is not working. I have a site on staging here: Any ideas would be appreciated. > Cheers On touch devices, you must touchmove To prevent unwanted scrolls under element.addEventListener ('touchmove', function (e) {e.preventDefault ()) to stop. ; }, false); or use of jQuery: $ (element) .on ('touchmove', function (e) {e.preventDefault ();}) ;

static - Checking symmetry in a grid with java -

I need help with a game: The game is low, two players, 'B 'And' N 'is a grid of characters. Both players take a four (B or N depending on who they are) on the grid to move each time they place a place, I have to check whether There is a symmetry. for example. Different types of symmetric are horizontal and vertical in every 2 * 2, 3 * 3 and 4 * 4 squares, which were simply placed here. 3 * 3 In case of symmetry, the middle row or column are not in symmetry. I have done everything till now except Simmithree. It is difficult for me to do something, I have an idea how to do it personally, None of you know how I can do symmetry in a system? Java code for some, as you have described for the N-size grid, Will be: Boolean hashzynty symmetric (four [] [] grid, int n) {int across = n / 2; {Int right = 0 (int byte = 0; left and left ++) for {i.e. i A similar type of thing will be required for the vertical symmetry function.

Java Double Trouble - How can I ensure 4.45 is 4.45 without using BigDecimal? -

इस सवाल का पहले से ही एक उत्तर है: 30 उत्तरों ऐसा: // aValue = 4.45 // bValue = 4.35 // maxValueDiff = 0.1 // a - b = 0.1 का पूर्ण मान (गणित.एब्स (एवल्यू - बीवल्यू) & lt; = maxValueDiff) वापस सत्य; Logger.info ("valueDiffCheck ए:" + aValue + "b:" + bValue + "e1:" + maxValueDiff); मैं अपने लॉग में यह क्यों देखता हूं: valueDiffCheck a: 4.45 b: 4.35 e1: 0.1 > संदेह यह है कि दुर्घटना में इसकी गलतताओं के साथ डबल दर्द है, लेकिन अगर ऐसा होता है तो मुझे देखना नहीं चाहिए? जैसे इसे प्रिंट करना चाहिए 0.1 वास्तव में 0.10000000111 या कुछ और है? ... या क्या प्रिंटिंग प्रारूप के बारे में कुछ परेशानी है? लक्ष्य कोड बहुत अधिक डेटा के साथ उच्च प्रदर्शन है, इसलिए हम बिगडीक्यूमल का उपयोग नहीं करना चाहते हैं यह सुनिश्चित करने के लिए अगले सबसे अच्छी बात क्या है कि 0.44 0.44 है? ठीक है मुझे स्पष्ट रूप से बताएं कि हमें केवल दो दशमलव स्थानों की आवश्यकता है BigDecimal उपयोग करने में शामिल सटीकता प्रमुख अतिरेक है मैं उन जगहों पर एक त्रुटि ...

Clojure keyword argument default depending on other keyword argument? -

I'm trying to get an optional keyword parameter that depends on other alternative keyword parameters for its value. Example function: (defan printab [& amp;;: keys [ab]: or {: a 5: b 200}}] (println "a is "A" b is "b)) The default value of : b should be : a . Is there a way to do this within the defn macro, or should I give a to handle this behavior? The function below, the way I have hoped, does not work: (defan print & [: keys [ab]: or {: a 5: ba}] (println "a is" a "b is" b) It is possible to get one without using it. One part of the problem is the colon prefix in the map of default, which should be left. I think you will also need a reference to the entire map of the arguments to work. The following appears to be: (defn printab [& amp;;: keys [ab]: as mi: or {a 5b (: 5m}}}] (println "A" a "b is" b "))

jquery - Invoice footer is not printing on bottom -

Image
I am trying to use an invoice with the default window.print () Issue: The invoice is printing printing but the footer is not printed on the bottom of the page printed like the original invoice. I want: footer should If the invoice is longer, the footer should come down on the last page. JS Bellal: I am using Twitter Bootstrap layout Invoice sample code try it @ media print {. Invoicefuter {status: fixed; Bottom: 0; }} edit # just got it

php - SWiFT + TWIG loop different senders -

We have a script that monitors the database. JSON data and senamas and e-mails are stored in the database. If the handled timestamp is zero then the email will still have to be sent. So we have created a chronabage which monitors the column on handling. Email should be sent if it is zero. Our script works fine, though it is a bit slow, so I was thinking that we are doing it properly. Receive all emails that should be sent foreach ($ result security key as $ key = & gt; $ value) {require_once '../library / Twig / autoloader php '; Twig_Autoloader :: Register (); $ Loader = new Twig_Loader_String (); $ Twig = new Twig_Environment ($ loader, array ('cache' = & gt; '// mp / cache /')); $ Content = $ toggle- & gt; Render (StripSlash ($ templates ['Template HTML']), $ EData; $ Subject = $ twig- & gt; Render ($ Templ ['templateSubject']), $ EData; $ writeFile = FOPAN ( 'Log /' .pdf file .html ',' w '); Fwri...

parsing - Parsed symbolic differentiation in C++ -

I found these two libraries: - Mupers - Symbolic C ++ Before doing a skilled parsing Enabled mathematical expression, so that by wrapping the minimum I can create a parser object so that parser my_parar ("1/2 * x ^ 2"); The court's & lt; & Lt; Myparser (2) & lt; & Lt; Endl; The result will be printed 2.0. It's amazing, but it works only with doubles, okay? The second one implements the symbolic object so that I can do something like this: Symbolic x ("X"); Symbolic x2 = x ^ 2; Cout & lt; & Lt; Df (x2, x) & lt; & Lt; Endl; Results in 2.0 * x. So it is able to differentiate the expressions, which is fine. What I have to do, is a mixture of two! I need a function and it can be isolated, so that I can do something like this: cout & lt; & Lt; Df ("1/2 * x ^ 2", "x") & lt; & Lt; Endl; And I would also like to print it 2.0 * x Is it possible to do something like this? ...

php - phpunit extend test suite -

मैंने सेटअप और अधोलोक मिथोड को अधिलेखित करने के लिए PHPUnit_Framework_TestSuite विस्तारित किया है क्योंकि मुझे परीक्षण के एक सूट के पहले और बाद में कुछ ऑपरेशन करने के लिए PHPUnit की आवश्यकता है। (परीक्षण कई टेस्टसीज़ क्लास में हैं।) वर्ग MyTestSuite PHPUnit_Framework_TestSuite का विस्तार करता है {सुरक्षित फ़ंक्शन सेटअप ()} {सभी परीक्षणों से पहले कुछ सामान चला रहे हैं} संरक्षित फ़ंक्शन टायरडाउन () {// सभी परीक्षण चलाए जाने के बाद कुछ सामान करें}} कैसे मैं एक XML config फाइल में phpunit को इस TestSuite वर्ग का उपयोग करने के लिए कहूं और फिर testcase वर्ग को उस पर बाध्य कर सकता हूं? मुझे जो मिल सकता है वह सब ऐसा उदाहरण है जो यह निर्दिष्ट नहीं करता कि कौन से परीक्षण सुइट वर्ग phpunit का उपयोग करेगा। & lt; phpunit & gt; & LT; testsuites & gt; & Lt; testuite name = "money" & gt; & LT; फ़ाइल & gt; परीक्षण / IntlFormatterTest.php & lt; / फ़ाइल & gt; & LT; फ़ाइल & gt; परीक्षण / MoneyTest.php & lt; / फ़ाइल & gt; & ...

javascript - Enumerating data-targets in ng-repeat -

I have an account in HTML which is dynamically populated like this - & Lt; Div class = "accordion" & gt; & Lt; Div class = "accordion-panel" & gt; & Lt; Div class = "accordion-heading"> a data-target = "# fall" data-toggle = "fall" & gt; {{xheadhead}} & lt; / a & gt; & lt; / div & Lt; div id = "collapse" class = "adrenal body" & gt; .... The problem is that Data-Target remains constant. That's why all the open / close buttons only open one piece! The goal is based on / id s $ index , but I do not know how to do it. Is there a way to calculate the properties in the method? Can I use another solution? Simply replace data-target with the body's {{$ index}} and id 'code with the code #collepse - {code} > 'Fall - {{$ index}}' Hope this can be helpful for you !!

java - Gradle - Shared project dependencies as jar -

I have a project, which is a service (SOA). There are some classes in this project, such as DTO and rapper I would like to share with the client-project (UI) So I want to make a jar to share with the project. I tried this: // authorization - api.jar function apiJar (type: jar) {from (sourceSets.main.output) {Include "com / company / signature / authorization / Two problems: First, I want to change the name of the jar (need to be simple, need to be searched). Second, the jar was created with empty (folders (com / company / sig ...), but without squares Was: ("SourceSets.main.output") is estimating. Should help: work apiece (type: jar) {from (sourceSets.main.output) {"com / company / sig / authorization / dto / **"} archiveName = 'api .jar '} As you can see, you are quite close :)

pentaho PDI(kettle) output not found and input not complete -

When I click on the spoon, then I have a problem with PDI (Kettle). I can not get output in tab design (version 5.2) There is only one element in the input, other elements such as I xml or XLS can not be found. I try with other versions, but the same problem. I have found a solution "Tools -> Options -> Fook and Fail" and change the language in English .

ios - Apple Push Notifications from WebApi app -

, But the same code transferred to the WebApi app on the same computer does not work. I have given the certificate and private key to personal (via MMC) private (private key is allowed, IIS_USRS is allowed) and reliable Root Certification Authorities Has been installed. The code is clear, but just in case: var push = PushBroker (); Var applecert = file Read AllBytes ("C: \ Users \ Documents \ Certificates \ Push.p12"); Push. Registration Apple Service (New Push Essar Apple Apple Push Channel Settings (Wrong, Apple Kart, "PWD")); Pushpip Apple Apple Notification Notif = New Pushpip Apple Apple Notification (.) Device Talkon ("xxx"). Alert ("updated ..."). With Badge (1) Sound ("default"); Push.QueueNotification (notif); // Wait for the queue to finish pushing. Close all services (true); No errors / exceptions, not just its iPhone device gets notifications when it starts in the webapp app. Have you ch...

highcharts column datalabels position gets cut off -

I have field here with highcharts.js demo. Data labels go beyond X-XI need to write formatters or any suggestions? series: {boundary border: 0, "data labels": {enabled: true, format: '{point.y: .1f}%', rotation: -90, align: 'Right', X: 4, Y: 15, crop: false, overflow: 'none'}}

drawable - Navigation drawer (menudrawer) Android 5 (lollipop) style -

Image
I am using the Menudrawar Library in my project (this one :). I am updating my app to be compatible with API 21 (Android 5 Lollipop) and Material Design. When you use this Library with the API21 menu drawer look bad. I want to get the transition you can see in the new Play Store (new menu for arrow arrow icon). What's the Best Way do that? Is it possible with the library? At this time I am thinking that the only solution is a custom driver but maybe I can use it in any way? OK I spend a few hours with the new API and I think my best for me To rewrite the original drawer layout with lip. But it may be useful to anyone with similar problems. I have created Test Project with DrerelayLayout (new project with Android Studio -> MenuDrawer). And then I saw the same problem Wrong icon If you want to see fancy animation and good icons for Android 5.0, make sure that you are using: Import android.support. ** v7 **. App.ActionBarDrawerToggle; Note on v7 By defa...

wordpress - Loop through html files, get file name and insert into each file -

I am migrating a website to WordPress ... The old website uses a custom-built posting system where one PHP Templates There are many posts to migrate a call to separate static HTML files for each post (over 1000). I am using a plugin that can import HTML files and can convert everyone into Wordpress post but it is important that the original date for each post is set correctly. , The plugin allows me to select the date from each HTML file in each file for each file. My problem is that the date files are in file names, files themselves do not file, all the names are yy-mm-dd, but there is no dash, so they look like this: "130726.htm" (for July 26, 2013) "121025.htm" (for October 25, 2012) So the original By the way, I want a way of loop through the directory of these files and for each one - get the file name, add a slash and & lt; Body & gt; Insert it into the file after ; / Code> I'm not sure that the best way to go about this .....

Change image canvas size in Matlab -

I have a picture in the canvas / shape and I can increase the height and width of the canvas / shape without resizing the photo Want (for example, display the image in a big "canvas") How can I do this? Thank you. Use the above comments borrowed in response to Luis Mendo, you say it like that, seeing that Your image is stored in im : out = padarray (im, [colle cols], padval, 'both'); Set the rows and the cols pixel border that you want the pad in your image, which will match the The account flag padval is the value that you want to keep on the border, when you are moving the canvas size, you can either make any price that corresponds to the type of image you have Believe it. For example, you can type 0 for black, 255 for white, white and 128 . For example, if you want a 10 pixel wide border for rows and a 5-pixel wide border of gray for your column, do this: Exclude = Pader (IM, [10 5]], 128, 'both'); This is an example in ...

python - lxml iterparse fills memory despite on clear -

I am trying to parse XML before it works correctly, but to fill the second memory If you remove the first installers, nothing will change XML is valid. def clear_element (e): e.clear () while e.getprevious () nobody is: del e.getparent () [0] def import_xml (request): for event f = 'File.xml' offers = etree.iterparse (f, events = ('end',), tag = 'offer'), offers in the offer: # processing # correctly for clear_advertisement (offers) categories = entry event Categories: Categories in category: # Memory Speed_Element (Category) by using XML: & lt; Shop & gt; & Lt; Categories & gt; & Lt; Category & gt; Name & lt; / Category & gt; & Lt; Category & gt; Name & lt; / Category & gt; & Lt; Category & gt; Name & lt; / Category & gt; ~ 1000 categories & lt; / Categories & gt; & Lt; Proposals & gt; & Lt; Offer & gt; & Lt; Inner_tag & gt; Data & lt; / Inner_tag ...

model view controller - Url.Action Does Not Show Data -

I'm trying to get back to see a ActionResult to a string controller public action GetName (string id) {string returnName; ReturnName = m_DB.UserProfiles.Find (id). first name; Return content (refund name); } View & lt; Li & gt; @ Url.Action ( "GetName", "UserProfile", new {id = User.Identity.GetUserId ()}) & lt; / Li & gt; When I run, it only shows it in this view / UserProfile / GETNAM / 7781341a-ab1b-4b1d-b75b-853376690bf4 I want to show all the user's first name. What am I doing wrong? Please help. I appreciate your contribution I I think the method you're looking for is @ html.RenderAction or @ html.action @ html.RenderAction ( "GetName", "UserProfile", new {id = User .Identity.GetUserId ()}) or @ Html.Action ( "GetName", "UserProfile", new {id = User.Identity .GetUserId ()}) @ Url.Action while you take those parameters which you provide it and create...

excel - VBA, cmdBarButton not executing entire Sub -

For some reason sub head () is not fully executed when my menu button However, if I execute sub head () from the editor with F5 manually, then it should work as soon as I click on my "P Wave" button If I click on, only update call runs, can someone explain this? This is very confusing. There is my code in module 1. Private sub workbook_on () Private sub head () 'Run all the necessary subways to process the spreadsheet Call parasaysiv call call resize columns call updateCell call hideColumns End Sub personal sub hideColumns ()' uneccessary Hide the column ActiveSheet.Range. ("E: F, L: V, X: AdWords, AY: BD, BI: BK, BM: CB, CF1") EntireColumn.Hidden = True End Sub Personal Sub-resizeColumns () 'Fit to Data ActiveSheet.Columns.AutoFit ActiveSheet.Range ("A1"). EntireColumn.ColumnWidth = 10 ActiveSheet.Range ("B1"). Change the size of EntireColumn.ColumnWidth = 5 ActiveSheet cells. Range ("C1") EntireColumn.Column...

for loop - How replace a phrase using charAt()? -

I'm having trouble with this method to get this sentence (word) and dang With #! This works in some cases, but when the input "Dang Boom Dang" is output #! Boom da #! . Does anyone have any suggestions on how to fix this? Here is my code: public static string DeleteDang (string word) {stringbuffer word sb = new stringbuffer (word); Int length = Word SB Long (); For (int i = 0; i & lt; length; i ++) {if (word.charAt (i) == 'D'} word.charAt (i) == 'D') If (word. CharAt (i + 1) == 'a' || words (i + 1) == 'a') if (words, chit (i + 2) == 'n' || words (i + 2) == 'n') If (word chaat (i + 3) == 'g' is the word word.charAt (i + 3) == 'g') wordSB = wordSB.replace (i, i + 4, "#!"); Length = word sb.line (); } String newWord = wordSB.toString (); New word returns; } Replace all references to the word with wordSB in your loop Delete Public String String Dang (String word) {Stringb...

svn - Cannot merge back into trunk, must be ancestrally related. But they *are* related as far as I understand -

Image
So I'm trying to merge back into my trunk, but I'm getting errors saying that I Because they are not related to the ancestors but I am not clear why this is why. Here is the graph generated by TartiSesWN The trunk is at the bottom left (14698) Currently, I am starting with the merger in the trunk (15 9 7 9) from the top right, this is an example which claims that it is not related to the ancestors, some disparities in it That is what a coworker presented, and I'm not sure it could be the reason for this. If you notice, in the right middle, the branch with modification number 15406 actually divides a tag. It seems incredibly wrong to me, but I'm not sure. A few months ago the coworker did this (he does not work here anymore). However, they should be related to all ancestors because they come from all trunk, right? If this is true, then why am I getting this error? Will a tag be divided? The head of the trunk is 16063 (as per the figure), 14698 merge-s...

sql server - Weird behavior of Try-Catch in a Stored Procedure -

I have a stored procedure where I need some kind of, but I do not know if the artist will succeed. In a compulsory language, I will use some type of "TryCast" pattern I thought it would be equivalent to T-SQL: Try Cast (some type of Try some value in the form of the end) Finally try to catch the end of the catch On the surface, it looks equal. If @SomeTypeVar does not begin and the cast fails, then I get the NULL to work with it; The true value is if the artist succeeds. I have used this code in a stored procedure, but this results in an error: message 2812, level 16, state 62, line 20. Current transaction can not be committed and Operation log file that you write can not support it. Roll back the transaction. Some research has led me to this question on stack overflow and other times when try-catch fails in T-SQL: Alerts or informational messages which have a severity of 10 or less Errors whose intensity is 20 or more That is, the SQL Server Databa...

jsonp - Loading json from an external domain -

I am trying all day to load a JSON object cross domain. I was using json for jsonp service at jsonp.nodejitsu.com but it has reduced all day and I have to do it for myself. This is where I've got so far: $ GetJSON ("https://cex.io/api/ticker/WDC/BTC/?callback=", function (data) {console.log (data);}?); Can anyone explain to me why this is not working? I am very disappointed I thought it should be easy!