Posts

Showing posts from February, 2010

sql - SSIS-handling non English characters-Truncation error -

Load non-English characters such as ??, è, à ??, a ?? SSIS Flat File Connection Manager throws data transaction errors with the data type from the UTF-8 encoded text file with the formatted data type, however the number of characters in the flat file is similar to that defined in the SQL table field < P> Example: As it is said that there are 20 non-English characters, even though the table is defined as varchar (20), this transgression throws error is. Any idea to solve this issue You can insert unicode characters in the worker field, if If it works at all, then it will corrupt them. Use instead

android - File > Open file is not working with me or I dont know how -

I remove the eclipse and add it again to remove the blank screen, it works, but the previous The project is in my C: In the workspace, I did "File> Open File" in that folder and I could not bring the folder into any idea? / P> Change your default workspace Copy the whole project into another drive or folder. 2 Just click on the File tab on Eclipse Click on Import Android-> Browse the existing code in your worksheet to browse your project. Follow the screen instructions (i.e. most often the next) and then you have the Projektin Eclipse

c# - Usage of WriteFile function produces a 1(success), yet return an error code of 87 -

I am currently using WriteFile function to restrict the watchdog expires in embedded systems. The function actually works, but it also returns the error code 87. Tried to debug the parameter in the function, I still get the error code. marshalling part: [DllImport ( "Coredllkdll", SetLastError = True)] private static extern int WriteFile (IntPtr hwnd, byte [] lpInBuffer, uint nNumberOfBytesToWrite, ref uint lpNumberOfBytesWritten, IntPtr lpOverlapped ); Uses: Byte [] Logic = New Byte [1]; Arg [0] = 0x87; UIT written byte = 0; Int returnWatchDogTouch = 0; ReturnWatchDogTouch = WriteFile (InitDevices.DeviceHandleWDT, Arg, 1, rewritten, IntPtr.Zero); Int error = Marshal.GetLastWin32Error (); // Getting error value 87 in this line The return value of the return is WatchDogTouch 1, and the error code of 87 is back in line after any help is appreciated, Thank you. GetLastError is not set up necessary actions when they are successful, some functions In that case, se

java - Array confusion -

I am not a programmer and I am having problems with my code. I get an error: `java.lang.ArrayIndexOutOfBoundsException: 0` Some help would be appreciated. Thank you. My code: Import java.util.Scanner; Public grade gradebook 1d {public static zero main (string [] args) {scanner input = new scanner (System.in); Int [] ID = new int [0]; Double [] quiz 1 = new double [0]; Double [] quiz 2 = new double [0]; Double [quiz 3 = new double [0]; Int idStudent = 0; System.out.print ("Enter how students are in your class:"); IdStudent = input.nextInt (); Double [] yoga = new double [0]; {System.out.println ("Enter student ID") for (Int id = 0; I & lt; idStudent; i ++); Id [i] = input.nextInt (); System.out.print ("Enter the score for quiz 1"); Quiz 1 [I] = Input NXIT (); System.out.print ("Enter the score for quiz 2"); Quiz 2 [i] = input.nextInt (); System.out.print ("Enter the score for quiz 3"); Quiz 3 [i] = input.nextInt (); Yo

java - BindException thrown instead of MethodArgumentNotValidException in REST application -

I have a simple spring rest controller with some validation. I understand that verification failure will throw a MethodArgumentNotValidException though, my Code throws a BindException instead. In debug messages, I return the app to an empty model Endview. Why does a rest controller throws BindException or an empty ModelAndView? Note: I am testing my web application to curl and create an HTTP post curl -x post http: // localhost: 8080 / work I deliberately delete the "name" parameter is a required field marked with a @TotNull and @NotBlank annotation My Controller: @RestController Public Sector Task Controller {Private Static Logger Logger = Logger. Tagologer (Efficient Controller Category); @Autowired Private MessageSource messageSource; @ Authorized Intermediary Verifier; Protecting the secure In-In-Binder (WebDetBinker Binder) @InInBinder {binder.setValidator (this.validator); } @RequestMapping (value = "/ task", method = RequestMethod.POST) publi

ios - generating the square wave with pulses -

I am trying to modify the method of creating square wave Can generate different pulse width with 0.3ms each delay in one per period I have seen that sampleBuffer is responsible for generating pulse signals, but I'm not sure how to do the pulse function for such a specific pattern Can you please make me tell that pulse What is the Library function on AudioTrack.h? Below is my code zero generated square (SInt16 * sampleBuffer, int numframes, float sample rate, float frequency, float amp) {if (amp & gt; ; 1) amp = 1; If (amp & lt; 0) amp = 0; Amp = amp * SHRT_MAX; Float samplesPerCycle = sampleRate / frequency; For (Int i = 0; I 0.5) {Sample Buffer [I] = amp; } And {sample buffer [i] = -1 * amp; } SquareIndex = squareIndex + 1; If (squareindx> = cycler at the sample) squareindex- = samayperecyclical; }} Here's my solution for the same problem My issues I make pulse with 1 mms width, which I am modifying with the fill value till +/- 0.5ms. According to

c++ - Error: Use of class template requires template argument list -

When I try to run my program, this error "C2955 error:" Fourth "shows: Class templates Use template logic is required for the list " #include & lt; Iostream & gt; using namespace std; Template & lt; Square t, int n & gt; Class IV {Private: TA [N]; Public: Zero ReadData (); Zero performance data (); }; Around :: Zero: ReadData () {for (int i = 0; i & lt; n; ++ i) cin & gt; One. [I]; } Zero four :: performance data (for (int i = 0; i Do I have a template To type again? The members of the template class itself are the owner of the template class. When such a member is defined outside of his or her class, then it should be clearly declared as a template. So you need a change. minus four :: ReadData () to template n>: ReadData () and DisplayData function. and some other errors are: ReadData , change cin> in the function & Gt; A. [I]; to cin> & Gt; A [i]; and DisplayData , cin &a

How to get param value from java servlet -

I am trying to pass the absolute values ​​for the Java Servlet, but the returned string is not correct. Consolidating the values ​​and checking whether the key exists or not. Map Params; Parameters = request.getParameterMap (); String id = params.get ("id"). ToString (); String data = params.get ("data"). ToString (); System.out.println (+ ID with "Streaming" + Data + "ID); However, if I use http: // localhost: 8080 / Serv / stream / data = hereisdata and ID = if you call this servicelet through my output looks like this: streaming [ljava.lang.String; @ [Ljava.lang.String; @ 36314ab8] What am I missing? Edit: The suggested answers are not working I am covering the whole class because I have some fort in class I am growing: java.util. * Import javax.servlet.http.HttpServletRequest; import engine streamer; public class analyzer controller {private map params; personal string pathInfo; private HttpServletRequest Request; Public Anal

regex - Refining Re Search -

मुझे नियमित अभिव्यक्ति के बारे में सहायता की आवश्यकता है। line = "नडिया कारसन नडिया @ जीमेल ऊपर दिए गए उदाहरणों में, ' wxwwwgg ' में से एक के ऊपर मुझे स्ट्रिंग निकालने की जरूरत है, । स्ट्रिंग ईमेल के ठीक बाद और संख्या से पहले आती है। मैंने कोशिश की: & gt; & gt; & gt; A = re.search (r '\ s \ w + \ s \ d', रेखा)> gt; & gt; & gt; एक & lt; _sre.SRE_Match ऑब्जेक्ट 0x0271F640 & gt; & Gt; & gt; & gt; A.group () 'wxwwwgg 1' क्या कोई ऐसा तरीका नहीं है जहां मैं अपने मैचसमूह में संख्यात्मक वर्ण को छोड़ सकता हूं। उपरोक्त उदाहरण में मुझे 'codex' के बजाय नियमित अभिव्यक्ति में उपयोग किए गए किसी भी खोज पैटर्न की सहायता से 'wxwwwgg' मिल सकता है। !! धन्यवाद। इसके लिए उपयोग करें a = re.search (r ') यह सुनिश्चित करने के लिए कि एक (उप) मैच वास्तविक स्थिति के उन submatches भाग के बिना वर्तमान स्थिति में संभव है: (? & Lt; = \ s) \ w + (? = \ S \ d) ', रेखा)

Uncaught TypeError: undefined is not a function in javascript -

HTML: & lt; body & gt; & Lt; div id = "मुख्य" & gt; & Lt; span id = "msg" & gt; क्या आप वाकई आगे बढ़ना चाहते हैं? & Lt; / span & gt; & lt; br & gt; & lt; br & gt; & Lt; इनपुट प्रकार = बटन आईडी = "हां" मान = "हाँ" & gt; & Lt; इनपुट प्रकार = बटन आईडी = "नहीं" मान = "नहीं" & gt; & Lt; / div & gt; & Lt; / body & gt; जावास्क्रिप्ट: फ़ंक्शन doTask () {...} function doNothing () {...} var do = function () {doTask ( );} Var nothing = function () {doNothing ();} document.getELementById ("हां")। AddEventListener ("क्लिक करें", करें); । Document.getElementById ( "नहीं") addEventListener ( "क्लिक", कुछ भी नहीं); जब मैं दस्तावेज़ चलाता हूं, तो कंसोल अनक्यूट टाइपएरर को दिखाता है: अनिर्धारित दस्तावेज़.getElementById ("हां") ... फ़ंक्शन त्रुटि पर नहीं है। ऐसा क्यों नहीं? । document.getElemen

c# - Regex get error in textbox when having space at the end -

I am using the following regex to verify the numbers which are working properly. The problem is that if you enter the text box press a few valid numbers and then space , the expression is no longer valid. How do I ignore the empty space at the end of the value entered by regex handling? @ "^ [0-9] + $" @ "^ [0-9] + \s * $" In this way, you can take the position of zero or more at the end. * is a quantifier for this particular purpose

php - PDO queries do not return all results with hyphens -

set I have a website that reads the location from the url and runs the database query on it Is the place. For most places this is not the cause of any problem, but there are some places that fail to search. All these places have one or more hyphens in these places, but there is a large number of places that hyphen works. Check In the investigation of this issue, I found a lot of surprises, first of all if I execute the query from the command line or the SQLite manager then the query returns the right row But if I run a query through PDO then no results will come out, even if I ask a question like 'w%', it will fail to return the line with the correct value (although That a number of the other rows will be returned. Code $ db = New connection $ $ string = $ string =; $ query = "Choose Name, From Page Stations Page = 'Warugul- (blue-answer)' "$ sql = $ db-> Ready ($ query); if (! $ Sql) {$ error = $ db-> errorInfo (); New Exception $ Error [

Sending a HTTP request in Scala -

How can I send an HTTP request ? This JSON formatted response in Scala and Paras. Thank you in advance. Here is an example Dispatch and JSON4s .import default by import. _ Import org.json4s._ JsonMethods._ val translateAPI = url (based on " As well as the string.) Val json = parse (response ()) // () Dispatches and forces are added to wait for the result forever == Wait. Results (feedback, forever) To get the libraries you need to add the following to your buildfile. : Examples for SBT libraryDependencies + = "org.json4s" %% "json4s-jackson"% "3.2.8" library depression + = "net databender dyspatch" %% "dispatch-core "%" 0.11.0 " You have done without the URL parameters and credentials in the example, without which you will get a 400-error but if you can fix that problem , Then he should work.

r - Single error bar on stacked bar plot ggplot -

Image
I'm trying every success without having to make a stacked bar plot with an error bar at any one time For each section within the Yes Bar, I can attract all error bars for each section, but there is no solution to attract a single error bar. Here the data frame is df SP type or rate se 1h below the district 14.5454545 8.0403025 2h district top 2.7272727 1.9 403407 3h district WP 0.9 9 9.99.99 5.4545455 1.4845392 5h that top 15.4545455 5.0797135 6H WP 0.0000000 0.0000000 7h Heads down 9.090 9 091 3.8330638 8H Heads Top 8.1818182 4.1659779 9H Heads WP 3.6363636 2.0100756 10 N Dist Bottom 19.0909091 8.932 9 715 11 N Dish Top 0.0000000 0.0000000 12 NDP 0.0000000 0.0000000 13 N He Down 22.7272727 7.07,43,137 14 N He Top 0.0000000 0.0000000 15 N He WP 3.63,63,636 2.77,73,186 16 Ann HeDis 14.5454545 5.28,35,13 9 17 N HeDis Top 10.0000000 4.38,08,583 18 Ann HeDis WP 0.0000000 0.0000000 Here is the script (every error bar's position is not correct, but it does not matter beca

Creating Windows phone 8 Local Database Dynamically after retrieving metadata from server -

How to dynamically move the Windows Phone Local DB, I get data contexts and tables at runtime after retrieving the metadata from the server I want to make schema. Dynamic database will only create once during the first part of the application This tutorial describes how to create a local database How should be prepared I used it and it proved to be very useful

successor arithmetics - What are the steps that Prolog follows with the definition of natural numbers? -

I am learning how to program in prologue and I got the next program that defines natural numbers and their amount: / p> yoga (succ (x), y, succ (jade)): - zodiac (x, y, z). Amount (0, X, X)? - Yoga (succ (succ (0)), succ (succ (succ (0)), answer). Answer = succ (succ (succ (succ (succ (succ (succ (0))) (found) The problem is that I struggled with execution I do not know what this does for the flow of this program. How can Prolog find the value of the answer? It helps to understand how Prolog works to detect a current masterpiece, or when someone makes a new design when you make a query like : sum (succ (succ (0)), succ (succ (succ (0)), answer). Prolog facts and rules sum (_ , _, _) ( sum / 3 ) and select first a match in which the rules are in place: (1) Yoga (succ (x), y, succ (z)): - zodiac (x, y, z). (2) zodiac (0, x, x). If you look at the query, then it clearly matches the pattern of rule # 1. Remember that in Prologue, a variable can be starte

exponent - Why can we not use a variable as value of e in C -

My compiler keeps this error in error that I need to use one digit for this: Xek Where R is the power for the rendering function such as X, such as X: double x; For (int k = 1; k & lt; 10; k ++) {x = 4ek; } e for the floating point number in C It has the special code specification % e and % E , which is to print a temporary point number in e notation. But neither the exponents nor the Mantissa can be variable. . x = 4.0e7; Completely okay. But for variable power, you need to use the standard math library function exp or pow . x = pow (4, k); or x = 4 * exp (k); The way you are using it in a loop, you can customize it by assuming the last count value as follows: ( x is being started on 1 .) x = x * 4; Each time the loop runs x is multiplied by 4 , so basically k th Loop run x = 4 * exp (k); .

autocomplete - copying bash completion (without copying the actual code) -

Suppose I have an order git-local (this is a bad function or a binary / usr / local / bin ) and find that I git to complete the same tab as the git-local command At the end, suppose I am skilled (read lazy) and I should not get the code which uses git to manually compile and blows me. .bashrc (or whatever external file I paste it in and the source), what is git ? : If the -p option is provided, or if no option is given, then the existing completion is printed in specifications, a method that allows them to be reused as input something like $ (full-p git | awk '$ nf = "git-local"') ? Example: $ full-p foobar -bash: complete: blubber: no flood No specifications $ full-p traceroute full-F _known_hosts traceroute $ $ (full-p traceroute | awk '$ nf = "foobar") $ full-p foobar full-f_known_hosts foobar < / Div>

Can I refer a drl file from a different drools projects? -

I currently have a requirement under which I have a common set of DRL files in a Drools project in Eclipse and some Other DRL files are required to refer to these, especially the process flow is it possible? For the former, I have a process flow called Project A. Process 1.bmpn process 1.bpmn, which requires reference to Rule1.brl in ProjectB Is it possible? I am the reason for this scenario because I am migrating from IOLG and I want to keep the same project in ILOG. For example, I have test1.drl in Project A Test1.drl package declares com.mycompany.drools.types for example: isCheckVar: boolean end I have test2.drl in ProjectB package com.mycompany.drools .rules import com.mycompany.drools.types.CheckVariable; Rule "Hello World" then system.out.printline ("hello"); End I'm getting under errors: Rule compilation error: only one type of import can be done Com.mycompany.drools.types .CheckVariable package fixes import error: 'com.mycompa

olap cube - How to add MDX where clause? -

Hi Everyone is so new in MDX. How to add a clause to this query? [TBL VS Master Data Count]} column, non empty {([TBL VS Master Data]. [Financier]. [Financier] .ALLMEBERS * [Tbl VS Master Data]. [Down Payment]. [Down Payment]. MEMEMBERS)} DIMENSION PROPERTIES MEMBER_CAPTION, [vehicle sales] number of cell properties, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS This query builder uses Query Builder Is produced by You entered your code immediately after where FROM [vehicle sales] For example, if you want to see this year only, then you can add one such section: select nonimity [measures]. [TBL VS Master Data Calculation]} column, non-doubtless ([TBL VS Master Data]. [Financier]. [Financier] .Americus * [TBL VS Master Data]. [Down Payment]. [Down Payment] .MEMEMBERS DIMENSION PROPERTIES MEMBER_CAPTION, [vehicle sales] on MEMBER_UNIQUE_NAME roles WHERE ([Date]. [Year]. & Amp; {2014]) Cell properties VALUE, BACK_COLOR, FORE

knockout.js - Knockout observable variable not changing its value on click -

I do not know why my currentTitle is not changing on click viewModel = {article: ko.observableArray ([{id: 1, title: "Article One", Content: "Content for an article."}, {ID: 2, Title: "Article two" Content: "Content for article two."}, {ID: 3, title: "Article three", content: "Content for article three."}})), Currenttitle: korseous ("old")} ; & Lt; Div data-bind = "foreach: viewModel.articles ()" & gt; & Lt; div data-bind = "text: title, click: getTitle" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; div data-bound = "text: visualmodel.crtitle" & gt; & Lt; / Div & gt; getTitle = function () {viewModel.currentTitle = "title"; } Ko.applyBindings (viewModel); My code was posted here: Your getTitle Try: getTitle = function () {viewModel.currentTitle ("title"); }

Mocha test report customize xunit reporter -

In the XueNet Reporter of Mocha, this feature generates reports for tests, failures, skips, errors. But I also want to delay the morale, decline and block the report. Are these reports generated through XYUET? We may customize the XYNet Reporter to generate a report of test cases which has been blocked. Please help me find solutions for this. It seems that this is a known problem and pending tests have been added to the xunit reporter. First of all, are you using the latest version of Mocha? The bridge request has been merged with the latest version of Mocha and should include pending requests in XYnet? You can always open and edit lib / reporters / xunit.js and add runner.on ('omitted', function (test) { Tests.push (test);}); Runner.on ('blocked', function (test) {tests.push (test);}); Or instead of stopping the Mocha, make a copy of Xunit and create a custom Motion reporter. You can use it as a template

database - Linq contains() -

I am implementing a search button that pulls all the products containing the word that a user can enter in a text box Will be recorded. The keywords below can be given in any of the columns below. Var products = DB in x Products where x.SupplierId == Login user & amp; (X.States.testrestring). This includes (Search Certificates). X Splpler Code. Caitans (Search Serbia) || X Product Id. ToString () This includes (Search Serbia) || X Barcode Includes (Search Serratia) || X (Search Carter) X.ProposedActiveDate.ToString (). This includes (Search Serbia). X.VATRate.ToString (). Include (Search Certifa)) Select X; The problem? I did not find any product from the database (there is a product in the database). What did I do wrong? I think the order is wrong ... If the user By typing shoes, shoes you need to split the search term "shoes" and "boot" and add them to a list & lt; & Gt; And then do the following SearchTermsList.Contai

java - Maven/Removing timestamps from build -

शायद थोड़ा असामान्य सवाल, शायद। मैं apache-log4j-1.2.17 का निर्माण कर रहा हूँ सूत्र, और सब कुछ ठीक काम करता है, लेकिन मैं इस प्रक्रिया को थोड़ा बदलना चाहूंगा और मुझे पता नहीं है कि कैसे। अर्थात्, मैं Bnd-LastModified संपत्ति को निकालना चाहूंगा pom.properties फ़ाइल से मैनिफ़ेस्ट फ़ाइल और टाइमस्टैम्प टिप्पणी से क्या मुझे कोई याद आती है? मैं उन्हें "मैन्युअल" (शैल स्क्रिप्ट) निकाल सकता हूं, लेकिन यह सिर्फ गलत लगता है। मेरे पास है वही समस्या मुझे Google पर हेडर समस्या का उत्तर मिला। मुझे पता है कि यह आपके लिए एक वर्ष या बहुत देर है। & lt; प्लगइन & gt; & LT; ग्रुप & gt; org.apache.felix & lt; / ग्रुप & gt; & LT; artifactId & gt; Maven गठरी-प्लगइन & lt; / artifactId & gt; & LT; विन्यास & gt; & LT; संग्रह & gt; & LT; addMavenDescriptor & gt; झूठी & lt; / addMavenDescriptor & gt; & Lt; / संग्रह & gt; & LT; निर्देश & gt; & LT; _removeheaders & gt; BND-LastModified &

c# - Querying the write model for duplicated aggregate root property -

I am implementing the CursS pattern with Event Outsourcing, I connect between NSWers, NewventStore and NES (NSB and AvestStore) I am using). . My application will regularly check a web service to download and process any file. When a file is received, a command (download file) is sent to the bus, and the file is received by the commandhandler, which creates a new parallel root file and handles the message. file total route now) I must check that the content of the file does not match any other file content (since the web service guarantee that only the name of the file is unique, and the content Can be duplicated with different names), comparing it and comparing it to the list of hashed content. The question is, do I have to save the list of hash codes? Is it allowed to check the model of reading it? Public class file: Kulbase {public file (downloadable file CMD, IFile service file download service, IKlamicRealizer service service provider, IBIS bus): It () {// Download the c

android - dagger simple example gives IllegalStateException -

I'm experimenting with the dagger. Now I do not fully understand how everything works. So I wrote a test project. This is my main activity: extension of the main activity of the public square (Personal Object Graph mActivityGraph; @ injection vehicle; @ Override protected void create (Bundle saved Instansstet) {Suprknkret (saved Instensstet); setContentView (R.layout.activity_main); mActivityGraph = Objektgrafksent (new Gtividhimodul ()); mActivityGraph.validate (); mActivityGraph.inject (this);}} This is my activity module: @module (injects = {vehicle class, main activity class, wheels} class}} increases the public class activity module application {@Provides WheelsWheels (new wheels (4, "X12");}} < / pre> In my manifest I added activity module as a module on activism. This is my vehicle class: @ module (Wheels category Included) public-class vehicle {@ injection wheels; personal string type; public vehicle (stri Type type} {this.type = type;}

How to compare a field with another in Mongodb aggregation? -

I have several levels in the pipeline, now I would like to compare two areas as follows: db.collection.aggregate ({...}, {$ match: {firstfield: {$ gte: "$ secondfield"}}}) How to write this question? Close, but the actual greeting is slightly different: {code> db.collection.aggregate ({{" first project ": {" firstfield ": 1," secondfield ": 1," difference ": {" $ gte ": [" $ firstfield " , "$ secondfield"]}}}, {"$ match": {"difference": true}}] for a slightly different invitation, (or possibly) On field comparison, a true | False the value can be returned. This allows you to filter later with the phase Pipeline to present the "Include Include" results depending on the logical state.

prevent sql injection attack in dynamic query grails -

मेरे पास क्वेरी है: def selectQuery = "select ins" def fromQuery = " InstituteStudent ins "def whereQuery =" जहां ins.institution =: inst "def compareQuery = [inst: inst] और अन्य क्वेरी के रूप में: यदि (params.p.Address! = "") {WhereQuery + = "और ins.address = '" + + पता + "' 'डीईफ़ चेक = इंस्टीट्यूशनट्यूडेंट। एक्सएक्यूट (" इन्स्टिट्यूशन इंस्टीट्यूशन्स से चयन करेंइंटरसइन्स्टेसशन =: इंस्ट एंड आईएस .address = '"+ पता +"' ", [inst: inst])} अग्रिम खोज क्वेरी का परिणाम def allQuery = selectQuery + FromQuery + whereQuery def finalQuery = InstitutionStudent.executeQuery (allQuery.toString (), तुलना करें) लेकिन इंजेक्शन हमले की संभावना है ताकि इसे रोकने के लिए इस क्वेरी से पैरामीटरेटेड क्वेरी को कैसे पारित किया जाए? आप सामान्य नामित पैरामीटर का उपयोग कर सकते हैं: यदि (पैरामीटर PAddress! = "") {WhereQ Uery + = "और ins.address =: पता" compareQuery.addre

coordinate systems - Difference between layerX and offsetX in JavaScript -

There is a separate coordinate system for javascript, like e.clientX, e.screenX. I understand them both well, but some E. Layer X and E. Offset X are not very clear to me Can someone explain both of those coordinates for me? offset x / offset y Microsoft's Mouse Event Objects is a clean extension, and this means the position of the mouse pointer to the target element. Sadly, they are not implemented by Firefox, and there is an inequality among other browsers that what the original point should be: IE thinks this is the content box, while Chrome, Opera and Safari Padding layerX / layerY are the properties of code> Mouse Event objects which are Gecko-based browsers (Firefox et al. .) Are defined by Some people say that they are the choice for offsetX / offset y - they are not. They are relatively mouse positions for "the closest element", that is, an element whose position style property is not static is not a target element if it is in

how to work on offline 3d maps using nutiteq in android -

Image
I am sorry if this question has been asked before. But I'm getting worried while working on the offline 3D map. I've downloaded source code from Github: It's working well but nothing happens on its offline activity, the map does not work. Please find me a lot, but no working code was found. If any of you have a working code then it has been highly appreciated. thank you in advanced ..! The following screenshot is asking for .nml or .dae file. After selecting any of the files, the .nmldb image is shown on the map (a man here). If the internet connection is on, it shows 3D maps and if the connection is closed only. Nml image is shown. The errors I am receiving are the following: com.nutiteq.rasterdatasources.HTTPRasterDataSource: Failed to load the tile. Unable to resolve host "otile1.mqcdn.com": No address associated with hostname DataSourceFetchTask: Any tile data This is the code that is working fine if the Internet Connectivity is ON and OFF

php - Yii CjuiAutoComplete Not Working how to solve this error -

View.php फ़ाइल में मेरा विजेट & lt; div class = "modal- शरीर "id =" test_modal "शैली =" प्रदर्शन: कोई नहीं; "& gt; & Lt;? Php $ recipeModel = नया नुस्खा (); $ Form = $ this- & gt; startWidget ('CActiveForm', सरणी ('आईडी' = & gt; 'उपयोगकर्ता-प्रपत्र', 'सक्षम एजेक्स मान्यीकरण' = & gt; सच, // 'फ़ोकस' = & gt; सरणी ($ मॉडल, पहला नाम'), )); $ ModelCat = नया वर्ग; $ इस- & gt; विजेट ('zii.widgets.jui.CJuiAutoComplete', ऐरे ('मॉडल' = & gt; $ मॉडल कैट, 'नाम' = & gt; 'cat_name', 'source' = & gt; 'श्रेणी / getsearchcats' 'विकल्प' = & gt; सरणी ('मिनलाँग' = & gt; '1',), 'htmlOptions' = & gt; सरणी ('शैली' = & gt; 'ऊंचाई: 20px;',),)); // गूंज & lt; p id = "getdatevalue" & gt; एक ठीक शरीर ... & lt; / p & gt; '; $ इस- & gt; endWidg

ruby on rails - Prevent Only Devise confirmation email while creating user through nested attributes -

I'm alternatively creating users with Nested attributes I just want to leave the confirmation email but < Previous> class ShipperOrder & lt; ActiveRecord :: Base is_to: User accepts_assist_edit_data: User and class user & lt; ActiveRecord :: Base is_my: shipper_orders and controller class ShipperOrdersController & lt; ApplicationController def @shipper_order = ShipperOrder.new (order_params) if @shipper_order.save flash [: notice] = "create shaft order" and flash Now [: warning] = @ shipper_order.errors.full_messages.join (",") render: error end end personal def order_param params.quare (: shipper_order). Passit ({user_group: [: first_name,: email, last_name, : Mobile_Phone, Password: Terms__f_service, password_setset_record}},: end of end I am now making an order and if the user wants to give this order to the user who is in the database not available. Then I am making that user with the help of Nested_Adit. Everything works fin

java - programmatically get base url from inside google app engine endpoint method -

I am creating a Google Appengine Endpoint API. In one endpoint method, I have to find the base url. How can I do this in Java? According to the document, you can type in injection API methods; For example, if you use the HTTPServletRequest object as your API You can inject the method After you have the request object, you can get the base URL as necessary. For example stringbuffer url = req.getRequestURL (); String uri = rick Jatrquensturai (); String ctx = req.getContextPath (); String base = url.substring (0, url.length () - uri.length () + ctx.length ()) + "/";

c# - TempData is empty after RedirectToAction in catch block. What could be the reason? -

I've been using TempData for a long time and I'm facing a weird problem for me. The scenario is: Make [http post] Make public analytical (ProductContodelNewsprint) {// and try to upload the product to DB / External site. Try {UploadProductToEbay (newProduct); } Hold {TempData ["error"] = "error"; Return Redirect Action ("Edit", newProduct.Id); } ...} [HTPGet] edit public action result (id) {var error = tempdata ["error"]; // Temporary data collection is empty at this point and it has no idea why ...} The upload fails and returns the redirection tie ("Edit" , New product ID); The execution of the line is "TempData [" error "] =" UPDATE: when I use , error " ; RedirectToAction (...); Block out Hold Everything is fine, the temporary data value is moved to the edit operation. It seems that the problem is return redirect action ("edit", newProduct.Id); is in the stateme

How to I set which side the numbers go on in a scale using tkinter on python? -

I am using the scale in the tanker and I have two scales next to each other. I want to go to the upper part. This is the code I am using: # import from IMPORTS tkinter * import time #USER INPUT user = input ("Please enter your username") time.sleep (0.4) pass_ = imput ("Please enter your password") time.sleep (0.6) #definitions #STUFF master = Tk () #LEFT left = scale (master, from_ = 0, to = 24 9, Lb = 550, width = 25, tickirtilal = 152, slider_length = 30) left.pack () left.set (152) left.grid (line = 0, column = 3) # right = scale (master, from_ = 0, To = 24 9, length = 550, width = 25, titillation = 152, slider_length = 30) correct. () Shikset (152) right. Send grid (line = 0, column = 6) # button button = (master, text = "send to bot", command = send) send.pack () Send. Grid (line = 15, column = 4) # RUIN canvas menloof () I want to put the numbers to the right and numbers on the left on the right scale and left to keep the number on the l

linux - Install ssh server on embedded device -

I am trying to connect to an embedded device via ssh . However, when trying to connect, I always receive a connection denied message, whenever I try to change the port number I have tried to resolve this issue, To change the file in code> / etc / ssh / , sudo iptables -a INPUT -p tcp --dport ssh -J ACCEPT to accept the specific port number. After reading some comments, it came to me that probably is a problem that I do not have ssh installed on my embedded device. So, how can I install SSH on embedded devices? I am working with a ATML AT91SAM9G20 with a Fox G20V board. I would appreciate any help because I have been stuck on this problem for several days now. You have to compile OpenSSH for your embedded device, follow the steps given below Download OpenSSH < / P> Copy sshd from the compiled source and download it to your embedded device and turn it on / path / sshd < P> Your embedded device

c# - ASP.NET button not running code behind -

I am working with asp.net I have some pages and many ASP.Net buttons. Everything was working fine the other day and now the ASP buttons are not running code behind it. I put the break point in code, so I know they are not running. I have looked around the Internet and I have found a few things, such as cleaning cleaning, clearing cache and cookies. I also added a new button and it will not run the code It seems that all the buttons on that page Having problems with These buttons are and Why return the error to the client Lt; ASP: Button ID = "B1" Runat = "Server" Onclic = "B1_Click1" text = "Target" OnClientClick = "ChangeGL (); Return Back;" CssClass = "Button" & gt; & Lt; / ASP: Button & gt; & Lt; ASP: Button ID = "B2" Run = "Server" OnClick = "b2_Click" text = "Habits" OnClientClick = "ChangeBabits (); Return Return;" CssClass = "Button

jquery - Replace the text using javascript -

I am using code below to change the text within the h1 tag, but it is not being affected I want to change "sample" to "new sample" am I doing wrong? & lt; Div class = "content" & gt; & Lt; H2 & gt; Sample & lt; / H2 & gt; & Lt; / Div & gt; Var t = jQuery ('. Content'); T. Hair ("H2") Each (function () {var content = jQuery (this) .contents (); jQuery (this) .replaceWith (new sample);}); If you want to change some of the contents, try it out: jQuery ('. Content H2'). Replace each (function (i, v) {$ v = $ (v); $ v.html ($ v.html (). ('Sample', 'new sample'));};

objective c - Support newer features in older versions of OS X SDK -

I'm learning more about coco, purpose-c, and xcode by contributing to the open-source project (); The project basically supports OS X 10.5. In my hurry it seems that I have elements of SDK ( NSJSONSerialization and @autoreleasepool compiler instructions) which are not supported by old SDK NSJSANASialisation - I think now, I am trying to determine what I can do to restore support for 10.5 I can @autoreleasepool {} -? @properties - can add @synthesize and IVARs question: < / p> If there is a way to use the new SDK elements then the OS supports (compiler's instruction?) if necessary? If so, is it better to reapply the functionality in this version-specific methods (like getJSONlegacy , getJSON )? Is it better to have the original project as a separate branch (can it be extended)? Various attributes include different OS components, which defines the use of a feature How can it be done in many OS X versions? Here's my rough classif

regex - Redirect all request to subfolders .htaccess -

यह मेरे वर्तमान में है RewriteEngine On RewriteCond% {REQUEST_FILENAME}! -f RewriteCond% {REQUEST_FILENAME}! -d रिवेराइट्यूल (। *) Index.html [एल] तो गैर-मौजूद फ़ाइलों के सभी अनुरोध index.html फ़ाइल पर समाप्त हो जाते हैं। लेकिन मैं केवल यह चाहता हूं कि शीर्ष स्तर के अनुरोधों के लिए हो, उदा। "" या ""। जैसे अनुरोधों और आदि। मैं एक 404 त्रुटि फेंकना चाहता हूं। संपादित करें: अनुरोधित पथ "/ एबीसी / डीईफ़" कुछ भी हो सकता है इसके लिए आपको अपने यूआरआई मेलिंग regex को थोड़ी जरूरत है: RewriteEngine On RewriteCond% {REQUEST_FILENAME}! -f पुनर्लेखनकंड% {REQUEST_FILENAME}! -डी रिवेराइटियम ^ [^ /] + /? $ Index.html [एल]

SQL Server: Ordering rows before select -

My head around this one can not be enough, I have to select all the records where the supply is about to end The order was ordered. For example, if a person orders a supply of 30 days to 1/1/2014 and is ordered to supply 30 days before 25% of the supply, then it is considered a duplicate order. Do I now select a Nest: Use duplicates_2014 to check order from petsnmore * Where (selection exists * from command to ou where a.ID = b.ID and a. B.dos between claim_num = b.claim_num and a.service_id = b.service_id and a.visit_num = b.visit_num and a.dos and dateADD (day, floor (a.days_supply * .25), a.dos)) Rows returned are not expected and I think the reason for this is that the rows have not been compared in the proper order. I need this: claim_num asc, service_id asc, dos asc, order_num order by DESC The curriculum only commands the SQL Server in the outside world By choosing to choose. I know that any ideas should be a better way? Thanks You can use a table variable

validation - Rails 4 model scope to created_at == current_month -

मेरे रेल 4 मॉडल में, मेरे पास यह है: class PhoneContact & lt; ActiveRecord :: बेस मान्य: फोन_एनम्बर, विशिष्टता: {स्कोर:: call_type} यह विचार यह सुनिश्चित करना है कि मेरे PhoneContact मॉडल पर प्रत्येक फ़ोन नंबर अद्वितीय है, Call_type द्वारा। मैं भी एक कदम आगे जाना चाहता हूं और "इस मॉडल को इस माह बनाया गया था" तो, मेरा फोन_एनम्बर call_type और created_at == Time.now.month द्वारा अनूठा होना चाहिए। मैं कैसे कर सकता हूं < आप इसके लिए conditions विकल्प का उपयोग कर सकते हैं: P> मान्य: फोन_एनम्बर, विशिष्टता: {दायरा:: call_type, शर्तें: - & gt; के लिए उपलब्ध विकल्पों की जांच करें {where (created_at: Time.now.month)}}

javascript - SyntaxError: Invalid regular expression: missing / -

According to my reqx it seems to work, but when I implement it in my javascript var prefix = hash.replace (/ \ / | # / g, ''); I will get the following error: Syntax Error: Invalid Regular Expression: Missing / Psychic Debugging: Your code is not in plain JavaScript or HTML file, but from a scripting language Is being printed. which is a comment character # / g, ''); The piece is considered as a comment in your script. You must add some quotation to ensure that the whole line is printed. / P>

java - Hibernate String Primary Key with Annotation -

I am trying to create a priority class with an annotation whose primary key is inserting the string, I will assign from Therefore there is no need for hibernate to generate value for it. I'm trying to do something like this: @ id @ generatedValue (generator = "assigned") @ column (name = "ROLE_NAME", nullable = false) Private string role name ; but throws exceptions with: by reason: org.hibernate.AnnotationException: unknown Id.generator: specified How do I configure a string primary key with annotations? Since roleName is not auto-generated, @ generatedValue : "" ROLE_NAME ", nullable = false) Private string roles;

powershell - How to catch specific start-bitstransfer "Proxy authentication is required" exception? -

No matter what I do, I can not catch exceptions like this: Start -Bit transfer: HTTP status 407: Proxy authentication is required. On-line: 4 char: 6 + Start BitsTransfer source $ url -Destination $ fullpath + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo: InvalidOperation: (:) [START- BitsTransfer], except + FullyQualifiedErrorId: StartBitsTransferCOMException, Microsoft.BackgroundIntelligentTransfer.Management. NewBitsTransferCommand I can not use "invoke-command" and [System.Management.Automation.RuntimeException] (PSRemotingTransportException) because bits when remote scriptblock is not supported running. How to do this? There is no direct answer to your question, but to view it as a pre-effective solution Check whether proxy authentication is necessary before starting your BITS transfers. It will not catch that error, but it will effectively test for the same condition and allow you to compensate for it. What can you do a Sys

regex - How to Filter special characters or anything that doesn't matches the search String in MVC -

I want to enter the search string in a way that it does not accept anything except the matched string for the search Does. Here is my controller code: Public Functional Search Product (String Searchstrassing) {FlipkartDbCTXTTAT DB = New FlipkartDBCCTs (); If (ModelState.IsValid) {// if ModelStat true string noResult = "search result not found"; Var Products = P in DB Select product p; If (! String.IsNullOrEmpty (search-string). Trim ())) {products = products.Where (s = & gt; s.ProductName.Contains (SearchString)); See Return (products.ToList ()); } And {ViewBag.Message = noResult; See refund (new list & lt; product & gt; ()); }} Other {ModelState.AddModelError ("", "Search is not successful"); } See Return (); } "Search result not found" is being displayed for blank entry only..but I want to display it for any other characters that do not match the search string. . How do I do this? Try it out: if (ModelState.IsVali

regex - regexp: FirstName.LastName or FirstName.Letter.LastName -

I want to make a regular expression, but unfortunately my thoughts do not work. Regular expressions should only allow entry A string consisting of parts: Part one: letter (az) and dot part two: only one letter and dot (this part is not required but tolerant) Part two: Dot and letters (az) Valid example: john.shmith john.a.smith harry.x.doe test.y.acme E matches Example: John. Smith John Smith John. Esith John. X.Smith John.y.smith Jen.Ismith. Mary-Kate. A potential solution: ^ [ Az] + \. ([Az] \.)? [Az] + $ In more detail: ^ ---> Match starts [a-z] + \. --- & gt; The first part (the letters [a-z] and one dot) ([a-z] \.)? --- & gt; Optional part (only one letter and one point) [a-z] + --- & gt; Second part (letter [a-z]) $ --- & gt; Match end

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

Image
I'm only using annotation configuration, the server starts, but when I use some pages error is displayed: Warning: no mapping found for HTTP request with URI [/WEB-INF/view/main.jsp] name 'org.springframework.web.servlet.DispatcherServlet -D7259e with DispatcherServlet in Controller mapping works fine, but no JSP page is full. I am using Jetty 9.2.0.M0 and Spring MVC 4.0.4 release. JetTyP Config: Private Static Last String CONTEXT_PATH = "/"; Private Static Last String MAPPING_URL = "/ *"; Private Zero Server (Int port) throws exceptions {server server = new server (port); Server.addLifeCycleListener (New LifeCycleListener ()); Server.setHandler (getServletContextHandler (getContext ())); Server.start (); Server.join (); } Private static ServletContextHandler getServletContextHandler (WebApplicationContext context) throws IOException {LOGGER.info ( "ServletContextHandler is ready"); CircleContaxHandler themeHandler = new circactont

javascript - Backbone access a View from model in another Collection -

I am learning the vertebra and I love it. At the moment I am stuck in a problem, I am not sure how to solve it. I have two collections of items: In the item list In the shopping list Each collection is associated with each model because they are the same product, but I am making it a new model for managing it separately for each handle. So when I remove an item from the shopping list, it does not remove it from the item list The problem occurs when I add an element to the shopping list from the item list. At this point, I see the color of the cover visually that it has been added. But then when I remove it from the shopping list, I do not know how to model in the shopping list in the list of items in the list of items, there is a new one from the same product. You will help in understanding. Can you suggest how to use a scene from a model, or link a scene? Instead of creating a new model for shopping list collection, you can share the same model and You can use

javascript - Check multiple checkboxes in knockout.js binded by JSON -

I am new to JSON and knockout I am facing a problem that I have a dataset in JSON For example, 10 bootens have been defined. E.g. IsHappy = true; IsSad = false; IsAngry = true; etc. My view model is made from JSON string, and I bind values ​​to the checkbox in such a way as: - & lt; Input type = "checkbox" data-bind = "checked: hashish" /> & lt; Input type = "checkbox" data-bind = "checked: ISAD" /> & Lt; Input type = "checkbox" data-bind = "checked: iseri" /> I convert ViewModel back to JSON and save it on server to Ajax. All this works well, but I can not understand that 'Select All' feature. I have read through the examples (online), in which to generate an observable array and see IsSelected (), but in my case how do I map different JSON attributes to the IsSelected () attribute, And similarly how IsSelected () the original JSON attribute can be viewed. I just tried to set a

javascript - Is it really helpful to load data from local database creating using pouchDB? -

Is it really helpful to load data from a local database that uses PouchBD? Please share the experience if you use PochDB I have a website that loads 100,000 records on page load, and then performs many queries on this data , What did I do: Create a database using your initial guide: Is it possible to do wild card queries on this? For 1,000,000 documents that the user is just inquiring, the client is synchronizing them all before It is as if it can be overkill. That is why there is a large amount of data to wait for in the beginning of your application page. You may be interested in trying documents, however, storing your data on CouchDB, doing a remote CouchDB query, and then choosing what is needed by the filtering replication client is. It really depends on how badly you need to sync, though, and if the user is ever going to modify those documents and they need to sync back.

objective c - Can't send Video to MFMessageComposeViewController -

Image
I have to send a video through the message I attached a video of 30 KB in size but warns that "the video is too long "I mentioned the code to send the video through the message below. NSString * message = [NSString stringWithFormat: @ "Download This Video!"]; MFMessageComposeViewController * messaging controller = [[MFMessageComposeViewController alloc] init]; MessageController.messageComposeDelegate = self; [Message controller set-up: message]; If ([MFMessageComposeViewController canSendAttachments]) {NSLog (@ "attachments may be sent to."); NSString * file path = [mURL absoluteString]; NSDTa * VideoData = [NSDATA DATAVITY content of URL: [NSD URL URL with string: FilePath]]; BOOL didAttachVideo = [messageControllerAddachmentData: videoData typeIdentifier: @ "public.movie" file name: filePath]; If (That is Etch Video) {NSLog (@ "Video Attachment."); } Other {nslog (@ "video could not be attached"); }} [Self-present Vie

subclass - What is the difference between Super thing = new Sub() and Sub thing = new Sub()? -

super comma = new sub (); Subject = new sub (); What is the difference between talking and what can I do with it? The difference is that variabele super chess is assigned to any other subclass Can be done which implements super while sub-item can be assigned only to any other sub class. He said, new sub () to super thing polynomiality and overriding Uses, from which you can find a good tutorial. You can call only the methods defined in the class super if one of the subtracted (read: redefined) subpages on these methods, polymorphism ensures that the class super In the method instead of the override method is called.

memory - Write huge amount of data to device' hard disk within seconds in iOS? -

Has anyone seen the battery doctor app? This increases the amount of disk used in excessive amounts in a few seconds. Suppose, if my 16 GB iPhone has 9 GB free space and I run a scan with that app, then it increases the used space for 16 GB in 6-8 seconds, the location used for the device Gets 16 GB and becomes free space 0. At the same speed, it removes all the data from the device and the space decreases by 9 GB. How is this possible? Even when we write data to the device with Bluetooth or USB, it takes a lot of time, and this app is doing within 10 seconds. cache system junk / Strong> Trash left log . If you ever try to delete data stored on the device such as pictures, take the movies for a long time .. I'm using Clear my Mac And it does the same thing ...

jquery - Attach Image to the input of type file using javascript -

I want users to take a photo or upload photos from the webcam. If he chooses to take a picture, he should load it into the uploaded file. I do not even know that this is all possible. I am open to suggestions. // I have an image & lt; Img id = "photo" & gt; // I'm getting this from the webcam // and I have the input of type file upload & lt; Input type = "file" name = "uploadedFile" id = "uploadedFile" accept = "image / *" & gt; // File should now go to upload this image data in the file. Is this possible? This is not possible. You can either encode the data in the form of text (such as base 64) and store it in hidden input, or you send it to the server using XMLHttpRequest object instead of sending it to the form You can.

c++ - MATLAB .m file to .mex file using Matlab Compiler -

I know that it can speak as a very famous topic, but something that helps me with it Not found This scenario is: I have my functions function, no matter what's inside, it's a generic function that may depend on other toolboxes. Does. Has input and output; I want to generate the same myFun.mex function; : Lib myFun This way I get some new files: libmyfun.c libmyfun.dll Libmyfun.exp libmyfun.exports libmyfun .h libmyfun.lib Reading around and I think that Creating a myfun.cpp that is very famous is included: / * gateway function * / zero max function (ent NLHS, MXARRA * PLS [], int NRHS, CONST M Xeray * PHS []) Here is the Variable Deals * / / * code here * /} I have tried to do this and are called Regular of Max Generation: Max ('- v', 'myfun.cpp') But I get many errors, and I should say that my myfun.cpp copy / Paste Function is where I have a lot of doubts ... especially on input / output management. My q

apache - How to write htaccess to visit public folders without index.html in Laravel Application? -

मैं अपने .htaccess अंदर निम्नलिखित है । & Lt; IfModule mod_rewrite.c & gt; & Lt; ifModule mod_negotiation.c & gt; विकल्प -मल्टी दृश्य & lt; / ifModule & gt; # पुनर्निर्देशन पीछे स्लैश RewriteEngine चालू ... RewriteRule ^ (। *) / $ / $ 1 [एल, आर = 301] # हैंडल मोर्चा नियंत्रक ... RewriteCond% {REQUEST_FILENAME}! -d RewriteCond% {REQUEST_FILENAME}! -f RewriteRule ^ Index.php [एल] & lt; / ifModule & gt; मेरे सार्वजनिक फ़ोल्डर इस तरह Laravel से संबंधित नहीं। / var / laravel / सार्वजनिक / फ़ोल्डर 1 / सूचकांक अन्य सार्वजनिक सुलभ फ़ोल्डरों की जरूरत है। Html मेरी समस्या तब होती है जब मैं एप्लिकेशन www.myapp.com/folder1/index.html तक पहुँचता हूं लेकिन बिना index.html इस तरह www.myapp.com/folder1 काम नहीं करता है ब्राउज़र "रीडायरेक्ट लूप" कह रहा है। मैंने भी DocumentIndex index.html अपाचे कॉन्फ़िग में सेट किया है लेकिन अभी भी काम नहीं कर रहा है यहाँ एक हल्का गहरा के लिए धन्यवाद। आप को रीराइट नियम जोड़कर Laravel के पुनर्लेखन

php - laravel 4 - how to show and hide components in blade? -

I have breadcrumbs in the master.blade.php file and I want to use breadcrumbs everywhere but the homepage Blade Php. Just like this, I add links to breadcrumbs in other pages like "About". About.blade.php: @section ('breadcrumbs') @ parent & lt; Li class = "last-breadcrumb" & gt; & Lt; / Li & gt; About @stop : in Master.blade.php < Div class = "container" & gt; & Lt; Div class = "breadcrumbs-container" & gt; & Lt; Ul class = "breadcrumb" & gt; @part ('breadcrumb') & lt; Li & gt; & Lt; A href = "/ homepage" "title =" homepage "& gt; homepage & lt; / a & gt; & lt; / li & gt; @ show & lt; / ul & gt; & lt; / div & gt; ; & Lt; / div & gt; But I do not want to display the breadcrumb code exactly when homepage.blade is used. Every about Copying the code for .blade / x.blade files look like a

eclipse - Ubuntu is not detecting my android device -

I'm new to Android. I've just downloaded and installed Android SDK. Now when I run an app from Apple, my The device is not detected. I was googled and brought in with this as my solution, but she did not even work. Here is the 51-android.rules SUBSYSTEMS == "usb", ATTR {idProduct} == "0BB4", ATTR {idProduct} == " 0c03 ", MODE =" 0666 ", GROUP =" plugindev ", OWNER =" & lt; username "; After that I rebooted my laptop, and it ran the command: laptop name: username / ~ / Android / adt-bundle / Sdk / platform-tools $ Adb device I get this output: * daemon is not running Now start at 5037 port * Started * List of attached equipment No permission edit If I run lsusb , then when the device is plugged in I get the following output just 002 Device 004: ID 0bb4: 0c03 HTC (High Tech Computer Corp) Bus 002 Device 002: ID 8087: 0024 Intel Corp Integrated Rate Match Hub Just 002 Device 001: ID1d6b: 0002