Posts

Showing posts from August, 2015

javascript - Crossfilter can't filter one dimension by another -

I am trying to filter two dimensions in Crossfilter. I have an array which repeats a given object: { "bioguide_id": "O000167", "Prtham_nam": "Barack", "Last_Name": "Obama", " party ":" Democrat "," religion ":" United church of Christ "," Pisi_aidi ":" C -00404145 "," Pisi_nam ":" Mandokino county Democratic Central Committee "," Yogdan_kount ": 4," Yogdan_syuem " 1264, "Congress": 110} I have the following query of a crossfilter working perfectly: var yoga Dan = Data Dream (function (c) {return c. Contribution_user;}); Contribution (3) .for (function (p, i) {console.log (p.pac_name + "(" + p.congress + ")" + ": $" + p.contribution_sum);}); However, how can I get from Y Congress to top X contribution_sum ? You have not taken any advantage: var congress = data.dim...

jQuery append() script not working in Opera -

निम्न स्क्रिप्ट IE और Firefox में ठीक काम करता है, लेकिन ओपेरा में नहीं: jQuery ।कोई विवाद नहीं(); फ़ंक्शन (डेटा) {var contenido = jQuery (डेटा)। फ़ंड ("# contenido"); var myScript = "& lt; स्क्रिप्ट & gt; फ़ंक्शन पाग (n) {चेतावनी ( 'हैलो');} & lt; \ / स्क्रिप्ट & gt; "; jQuery (contenido) .append (myScript); jQuery (" # myDiv ")। Html (contenido);}, ...}); इसमें contenido ब्लॉक पहले से ही फ़ंक्शन है pag () परिभाषित है, जो मैं पूरा करने की कोशिश कर रहा हूं इस फ़ंक्शन को प्रतिस्थापित करना है एक नया। जेएस अलर्ट () को हर ब्राउज़र में निष्पादित किया जाता है लेकिन ओपेरा (अच्छी तरह से, मैंने क्रोम को ईमानदार होने की कोशिश नहीं की है)। मुझे लगता है कि मैं गलत क्या कर रहा हूं इस पर कोई सुझाव की सराहना करता हूं। अग्रिम धन्यवाद!

c++ - opencv DMatch imgIdx is greater than the size of the training set -

I have 1000 patterns (images that I want to see on a particular view), my current algorithm for each pattern descriptor Receives, stores them in vector and trains FlannbasedMatcher to use vector. If I do a knnm with k = 3 then I match with an imgIdx> 1000, the cause of this question (I have k = 2 and the same problem), I Could not get anything, could someone give me a hand with this. UPDATE: I was adding the pattern descriptor twice, that is why I was getting imgIdx above 1000, now I have the problem that k == 2 I get distance 0 and one with> 0, distance ratio is 0 and my theory is that I'm getting distance 0 because pattern matching is exactly like the scene, but when I do this without training, distance me 0 is not getting any ideas, why? This is basically the code that I am running const PTR & lieutenant; Flan :: Index Param & gt; & Amp; Index Mercury = New Flann :: KDTT Indipesparam (4); Constant PTR & lt; Flann :: SearchParams & gt; ...

c - Calculating several averages from a single Vegas Monte Carlo grid -

I am using Vegas (Value Sample) Monte Carlo Method, which is applicable in GSL library Evaluate the different parameters of i_i = int f (x) g_i (x) dx with different giI , but same f> 0 . Specifically, one of the g_i , g_0 is evenly called 1 , so its corresponding integral is that f . Any other I_i under g_i may be distributed more clearly, under the f distribution: I_i / I_0 = (int f (x) g_i (x) dx) / (int f (x) dx) = & lt; G_i & gt; _f The idea behind important sampling is to integrate according to its absolute value and accordingly, I wonder if integrating f It is possible to take advantage of a previously optimized customized grid (and valid) and after all G_I by setting the step = 3 option and in the call By changing GSL_Monet_Vegas_Integrate .

android - Imageview dosn't update -

I want to change the image view 3 times in a short time. I want to set this image, Sheldon "Boxing" Say, change the image directly after the audio is complete. And then I want to do this for the second time. Note that the first image is already set before calling this function: sound = MediaPlayer.create (this, R.raw.bazinga); Sound.start (); Page.setImageResource (R.drawable.counttotwofirst); While (sound.isPlaying ()) {} sound.start (); Page.setImageResource (R.drawable.counttotwosecond); While (sound.isPlaying ()) {} sound.release (); Page.setClickable (true); I have invalid (); Tried to use , but he could not work. Is anybody forced to update or at least the image view has been updated? If updates in image views take time? What other footage should I use instead? BR Think again that the design is a little bit. I'm guessing that you're running that code on your app's main (UI) thread. The problem is that although you are changing image proce...

datetime - PHP date format, AM and PM reversed -

I am echoing the date with the following code: If I add it at 1:50 then it shows: 1:50 am When the Prime Minister is echoed instead of showing it. I'm stumped on this one. Any ideas? Also entering dates in the form of a date: 'catch_date' = & gt; Date ('YMD H: I: S') You use the wrong format Are there. From: - One hour 12 hour format with H. zeros 01 to 12 h 14 hours leading with hour zero format 00 23 So you need to change your code: - 'catch_date' = & gt; Date ('Y-M-DH: I: S')

postgresql - Setting up PostGis on Amazon RDS -

OK, so I'm fairly new to RDS and AWS, but I can not do it for my life, my database I can get the Amazon RDS on my laptop, I took it to my test VPS and my desktop machine, there was no problem in it, even I have tried so far. Create Postgroup Extensions; Create extension fuzzystrmatch; Create Extensions Postgreat_tiger_joker; Create extension postg_tigology; Changing schema tiger master to rds_superuser; By changing the owner of schema topology rds_superuser; Turn On Function (Text) Return Text Language plpgsql Variable AS $ f $ IN EXECUTE $ 1; Return $ 1; End; $ F $; SELECT exec ('altern table' || quote_ident (s.nspname) || '. Quote_ident (s.relname) ||' owner to rds_superuser ') (select nspname, relname fg pg_class c JOIN pg_namespace n ON (c. Relnamespace = n.oid) where 's' ('R', 'S', 'V') by nspname and relkind = 'S' in ('tiger', 'topology') relkind; in order to relink all the privileges on the da...

java - Android, Trying to read through a file stored online. But file doesn't have a type tag -

I am trying to read through an online cached file, but the file does not have a type tag. What is happening with my code, and why do I need to change? Code: Click the Public Zero Button 1 (see View) The client throws Protocol Explanation, IOException {int countWords = 0; FileInputStream fstream = New FileInputStream ("http: // textfile / textfile"); DataInputStream = In New DataInputStream (fstream); BufferedReader br = new BufferedReader (new InputStreamReader (in)); String line = ""; While ((line = br.readline ())! = Tap {} in.close ();} When I run the code, it says, "Unfortunately, the test Closed "

jQuery radio button if statement -

How can I make a simple statement based on the radio button selection? So if the radio button is displayed inches, then div.inchesUser is shown (using .show) and vice versa for centimeters. This is what I have to do: $ ('. Div.inchesUser') show (200); This is my radio button code: & lt; Form id = "unitChooser" & gt; & Lt; Label & gt; Inch or centimeter? & Lt; / Label & gt; & Lt; Input class = "unitSelectInches" type = "radio" name = "units" value = "inch" /> Inch & lt; Input class = "select unit" "check" = "check" type = "radio" name = "units" value = "cm" /> Centimeter & lt; / Form & gt; Try it $ ("Input : Radio (name = units) ". (Function () {var value = $ (this) .val (); if (value == 'inch') $ ('div.centimetreUser'). Show (200) ;});

vb.net - Excel VBA socket connection -

I have used Google to try to find a solution to my problem but no solution can be found. I have a VB.NET application that successfully sends a string to the specified IP address and port using this code. On this remote computer, I can get this string and do I want to use it by using VB.NET , but I excel. Of public sub BroadcastData (ByVal need to be provided as a string toSend, use dim s as ByVal PortToSendTo) new socket (AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp) dim sendBUF byte as () = Encoding.ASCII.GetBytes (toSend) dim EP New IPEndPoint (MainForm.IPToBroadcastTo, PortToSendTo) as s.SendTo (sendBUF, as the EP) System.Diagnostics.Debug.WriteLine (s.SendTo ( SendBUF, EP) End Sub Where is the IPaddress of a remote computer on IPToBroadcstTo Local Network. I should calculate R to get the string, in Excel, to take the string and write it to a cell, then calculate with it. After the text "itemprop =" text "> The code you pos...

java - JodaTime String yyyy-mm-ddThh:mmss.Z to DateTime -

Hi, I am using Joda to convert my string dates to a datetime object. I currently have the following string: 2014-02-16T00: 17: 20.000Z I have it in a datetime object How to change I have tried: DateTime Former Formats = DateTime Format.Partin ("yyyy-MM-dd'HH: mm: ssZZZ"); Datetime DT = Format. Pursuit time ("2014-02-16T00: 17: 20.000Z"); But I'm getting the following error: java.lang.IllegalArgumentException: Invalid format: "2014-02-16T00: 17: 20.000Z" Any help is greatly appreciated p> future Simple solution for visitors: string date = "2014-02-16T00: 17: 20.000Z"; Date time date time = new date time (date);

javascript - when using $compile why do images take a long time to load? -

I am using an instruction that looks like an HTML file in angled page: . Directive ("injection", ['$ compile', 'toolsService', ($ compilation, tool service, type) - & gt; Scope: true link: (field, element, attrs) -> type = attrs WidgetType attrs $ $ "Template", (template) -> if display angular.isDefined (template) and "template" template # compiled the template against current scope el = $ compilation (template) # to empty The stupid way to add Element element.html "# # Template Content Elements. App L This works fine Yes but the problem is that an image inside the compiled html (indicating that the app is still calculating the values ​​going inside that part of the page) the way the page is delayed in the way of life. / P> If the HTML looks like this: Lieutenant !! - Compiled HTML -> gt; & lt; img src = "img / yellow-refresh-2" Gif "> - Compiled HTML -> gt; ng-init =" data.re...

sql server - How to create an alias to a report manager url -

We have just changed from SQL Server 2008 Reporting Services to SQL Server 2012 Reporting Services. The Report Manager URL for the new SQL Server instance is different from the old. Is there any way that I can map the new URL to the old so people can still use new reports with the old URL example: Old URL: DB 02 / Report New URL: DB 2012 / Report We no longer use the old server and I would like to map that URL to the new URL You have the following potential Favorites: Preferred option: Add a nickname "db02" to your DNS server which indicates that the IP address is the new "db2012" host () Add the mapping to the host file (located in C: \ WINDOWS \ system32 \ drivers \ etc), but it will require you to do all the client machines.

sql - Delete null values until first value is not null -

I have daily schedules for companies in datasets and use PostgreSQL. For every company, all the rows with zero in column 3 will be removed for this company until the first time the tap is entered in this column. Then all the constant missing values ​​are filled with the value of the value of the last value for this company which is not faucet. You can visualize the following example data: Date Company's column 3 1 2004-01-01 A5 2 2004-01-01 B null 3 2004 -01-01 c Nal 4 2004-01-02 A. Nal 5 2004-01-02 B 7 6 2004-01-02 Si Naul 7 2004-01-03 A6 8 2004-01-03 B97 2004-01 -03C910 2004-01-04 A null 11 2004-01-04 B. Noull 12 2004-01-04 Sea Null It would be nice if I write a query that delivers Date Company's column 3 1 2004-01-01 A5 2 2004-01-02 A5 3 2004-01-02 B 7 4 2004-01-03 A6 5 2004 -01-03 B 7 6 2004-01-03 C 9 7 2004-01-04 A6 8 2004-01-04 B97 2004-01-04 C 9 I Tried: SELECT a.date, a.company, COALESCE (a.column3, (SELECT b.column3) is not a null order by Mercant...

windows - sscanf skips capital 'N' letter -

I got a big letter sscanf problem in which the capital letter 'n' (maybe I am not right about something please understand me): Example 1: Four seboys [128]; Sscanf ("GUIDNameNENE", "% * [GUIDName]% 127s", cBuff); Return cBuff: ENE Example 2: Four cBuff [128]; Sscanf ("GUIDNamenENE", "% * [GUIDName]% 127s", cBuff); returns cBuff: nENE Example 3: four cBuff [128]; Sscanf ("GUIDNaMENE", "% * [GUIDNa]% 127s", seabf); Return cBuff: ENE I have tried many other forms but still leaves the Capital N always. where is the problem? Thank you in advance! % [GUIDName] is an exact string quoted and matched The odd way is that it will match which defines a set of characters. They will match in any order, and they will match again and again. The longest match for the set is % [GUIDName] in your input GUIDNameN . You sure % * [G]% * [U]% * [I]% * [D]% * [N]% * [a]% * [m]% * [E] and it wil...

c++ - Reverse header files / linking -

I have some beginner questions about C ++, I have downloaded Windows SDK and as per the documentation, all Bluetooth The use of traffic includes header files in winsock Windows SDK (.h) if I want to program a Bluetooth interface. a) This is a normal C ++ question: How is the header file winsock.h connected to a specific DLL? I have not specified any links How can I identify all the .dll associated with this header? Header file seems to include only the name of the work and the actual implementation in the DLL? I'm a little confused. My second goal is to modify the window winsock function by a modified version. I would like to keep the original functionality, unless a flag set by another application is set to true. In this case, I want to modify some functions. My approach is to create a new DLL, which will have the same function name, as the header file is shown in winsock.h. b) Let's assume that a function fff exists in the original winsock. I will replace it with a ...

lua - Converting decimal number to flag values -

I have some constraints, such as: hit = 0x1 = 0x2 remote_interested = 0x4 Remote_choose = 0x8 support_extensions = 0x10 local_connection = 0x20 handshake = 0x40 connecting = 0x80 queue = 0x100 on_parole = 0x200 seed = 0x400 optimist_choc = 0x800 rc4_encrypted = 0x100000 plain-text-encrypted = 0x200000 And the document tells me 'The flag characteristic tells you which state the peers are inside. It is set up for any combination of above ' so basically I call dll and it fills in decimal with the decimal number that represents the flag in the structure, some examples: 2086227 170 2098227 106 How do I set flags from decimals? To determine which flags were set, you need to perform operations (in Lua 5.2) Need to use. For example: is the function haslags (int, ...) local all = bit32.bor (...) return bit32.band (int, all) == if all the end is flags (2086227, interesting, local_connection) - Do something interesting and local_connection end

ios - I accidentally deleted LaunchImage from Xcassets help? How to restore LaunchImage to xcassets -

Image
I was editing some files in xsets and accidentally removed the launch image fileset. How do I get it back ?! I tried to see the target, and the option to use xassets, as the file containing the image is not present. I looked around a question which * was specifically addressed on this issue and one Li> Select "New Launch Image" This will bring the original launch image options back with many new, many new image sizes Xcode 5 I need iOS 7 like this:

c# - Generic extension methods in LINQ -

Public Stable Class LinqExtensions {Public Stable Dual Variance (This IList & Lt; Double & gt; Data) {Double sumSquares = 0; double average = data. Average (); Forex currency (different numbers in data) {sumSquares + = (num - avg * num - avg); } Refund Amount / Statement (Data No. 1); } Public fixed decimals? Version & lt; TSource & gt; (This IEnumerable & lt; TSource & gt; source, function & lt; TSource, decimal? & Gt; selector) {// Where to start implementing? }} I want to create some LINQ extensions for the common type. I know how LINQ can be expanded without using delegates, I have many-just-defined types, which have the properties, which I need to compute and there are some variations from it. How can I define my variance extension method, so does it take a representative? You can do this: Double Public Stabilize? Variance & lt; TSource & gt; (This IEnumerable & lt; TSource & gt; source, function & lt; TSource; do...

python - Flask 404 on Dreamhost -

I am using flask on Dreamhost. I (mostly) followed the instructions posted here. I can set up pages successfully and send the URL directly to those pages and so on. Now I want to be able to set up a 404 page. I set an error handler via an app. ARP handler is the only problem that if I go to a page on which the URL is not set then it just returns a standard Apache 500 error page. Is this because Dreamhost is Apache setup? The public (static) folder is at the top level, how can you fix it? You can try to create the file "missing.html" at the top level. Source: Edit: To deal with an error from the flask to the page, you do this: Flask imports from render_template @ App.errorhandler (404) def page_not_found (e): return render_template ('404.html'), 404 View: I think you are getting There are 500 errors because the flask / python is crashing. Do you have debugging? How is your routing setup?

iOS - UITableView - Rows mysteriously repeating themselves when scrolling quickly? (simulator) -

I am currently developing an iOS app using the Monochouch framework. I have a custom tableview source that uses custom cells, whose cell height is dynamically calculated When I run the project in the iOS simulator, if I Scroll down quickly or upwards, then the top cell changes down or vice versa - as if it was being mistakenly filmed or wrong cell fault? Just to clarify - if my cells are one two three four five If I scroll up from top to bottom, then my cells one two three four one Or if I slowly scroll down, and remain in the cell order, once I'll scroll quickly to the top of me five two three four five And if I scroll up and down sporadically, the cells can mix random May include. My table looks like a source: postmodel [] model; String cell identifier = "Feedsell"; Public FeedSource (PostModel [] Item) {Model = Item; } Public override int queues inquiry (UITableView tableview, int section) {Return models. Long; } Public override float GetHeig...

How to repeat each of the individual letters in a piece of text? in Java -

Number of times specified by the multiplier provided in a stutter, if the text was "Dean" and multiplier 3, the result would be "dddeeeaaannn " Will happen. public static zero repeatLetters () {string text = "dean"; Int n = 3; Stringbilder repeat = new stringbilder (text); For (int i = 0; i & lt; n; i ++) {repeat.append ("dean"); } System.out.println (text); } Not getting the required result Are you doing wrong? You are just appending the letter n for every latitude you repeat through the string And have to add each character n times. public static zero repeaters () {string text = "dean"; Int n = 3; Stringbinder repetition = new stringbiller (); For (int i = 0; i & lt; text.length (); i ++) {for (int j = 0; j & lt; n; j ++) {repeat.append (text.charAt (i )); }} System.out.println (repeat); } In addition, another solution would be to use regular expressions. public static zero repeatLetters () {string ...

javascript - commander.js not parsing input -

I set the commander to create a server start script with a -e flag .Jesus is using NODE_ENV but when I do .bin / start -e development , it returns the fact instead of the input code var program = (requires 'commander'); Var sh = Expected ('Sh'); Program Version ('1.0.0'). Option ('-, - Anti-Virus', 'Set NODE_ENV varible'). PRSE (process.argv); Console.log ('Running: NODE_ENV' + program.enviroment + 'node index.js'); Sh ('NODE_ENV' + program.enviroment + 'node index.js'); Add some class brackets to: They are used to determine the amount of arguments. div>

css3 - Css–selector for when a html-document is inside an iframe? -

I am trying to create a CSS-selector that specifies the appropriate places depending on the weather, Whether or not the html is inside an iframe I tried to do this: html: not (: root) body {background: black! Important; } I hope that if it is inside an iframe, then this body is background: black; to apply, but it is not so, why? And what are the CSS options? HTML is root so I can always check with javascript. IE8 not requierd support CSS is scotched only in one document. An IFrame is a complete document in itself, and therefore a CSS rule that applies to the page that contains if iframe can not be applied to the page that within That iframe This means that as far as HTML and CSS are concerned, html always : root (and therefore be : not (: root) ). Unless you are able to transfer this CSS from that page into the page within the iframe script for example), I do not believe that there is just one way to use CSS.

arrays - Mapping a function over all the letters of a token in python -

The purpose of this program is to read in an array of tokens, remove punctuation, change all letters lower case, And then print out the resulting array, ReadTokens and depunctuateTokens both work correctly. My problem is with decapitalizeTokens function when I run the program, I get this error: The name of the program is word.py ['hello', 'hello 1', 'hello 2'] Tracebacks (Lastest Call Final): File "words.py", line 41, & lt; Module & gt; Main () file "words.py", line 10, in the main words = decapitalizeTokens (cleantunes) file "words.py", line 35, decapitalizeTokens if (ord (ch) & lt; = ord ('Z')) : TypeError: required string of ord () length 1, but the list has found that the formal parameters should be inserted into the decapitalizeTokens function so that the user returned the array generated from the Talkence function Go, but lowercase with all the letters This is my program: Male import import s...

python - Clarification on how to use os.path.dirname with Django -

I am using Django 1.5 and Python 2.7. My project directory is normal: There is a project folder named Project Folder inside the project folder, there are two other folders: Prosefolder and Prozap My settings inside ProjFolder, init .py and urls.py. inside projApp are my models.py, views.py and my static folders that hold my templates. Now, in my settings .py file, I have the following: SITE_MEDIA_ROOT = os.path.join (os.path.dirname (__ file__), 'projApp /', 'static / ',' Site_media ') The above lines of code are perfectly fine and this is the following which I have read in the tutorial. However, it should not be SITE_MEDIA_ROOT = os.path.join (os.path.dirname (__ file__), '../', 'projApp /', 'static /', 'Site_media') ? From my understanding, os.path.dirname (__ file__) is the path to the directory that is in the current file, right? Then it will be projFolder because the settings.py is in projFolder. ...

Clojure can make alphabet list like Haskell? -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब हास्केल ऐसा कर सकते हैं: ['a' .. 'z'] क्या क्लोज़र की आसान अभिव्यक्ति हस्केल जैसी है? हास्केल की वाक्य-रचना के बराबर सीधा नहीं है, लेकिन कई विकल्प हैं, कुछ का उल्लेख करने के लिए: (मैप किसी भी तरह से, परिणाम हो जाएगा: (इंक (एएनएपी)) (सीईसी "एबीसीएफ़्घीजक्लम्नॉपकिरस्टवविक्स") (\ a \ b \ c \ d \ e \ f \ g \ h \ i \ j \ k \ l \ m \ n \ o \ p \ q \ r \ s \ t \ u \ v \ w \ X \ y \ z)

javascript - mouse position to isometric tile including height -

Image
Trouble translating the position of the mouse in place of tiles in my grid. When this is all flat, then math looks like this: this.position.x = Math.flur (((pos.y - 240) / 24) + ((pos.x - 320) / 48)); This.position.y = Math.flur (((pos.y - 240) / 24) - ((pos.x - 320) / 48)); Where pos.x and pos.y are the positions of the mouse, 240 and 320 are offset, in the 24 and 48 tile size position there are grid coordinates of the tile that I am hovering above It works great on a flat surface Now I am adding height, which does not take into consideration mathematics. This grid 2D grid It is noise, it's being translated into height and tile type height is actually just an adjustment for the tile's 'Y' position, so it is possible that two tiles can be dragged to one place. I do not know how to decide on which tile I'm slipping. Edit: Some progress made ... Before, I rely on the mouseover event to calculate the grid position. I have changed it to be ca...

html - Height or Width Media Query Not Working -

I'm trying to set some media queries in my HTML but I have a problem. I would like to see the device's width and height and query to use the appropriate stylesheet. It looks at the height, but not the width, as much as I can tell. Here's my code: & lt; Link rel = "stylesheet" media = 'screen and (minimum-width: 1500px), screen and (minimum height: 701px)' href = 'style.css "type =" text / css "/> gt; & lt; Link rel = "stylesheet" media = 'screen and (minimum-width: 1000px) and (max-width: 1499 px), screen and (minimum height: 501 px) and (max-height: 700px)' href = 'Tablet .css "type =" text / css "/> & Lt; Link rel = 'stylesheet' media = 'screen and (max-width: 99px), screen and (max-height: 500px)' href = 'mobile.css' type = 'text / css' /> With this code, you can have two stylesheets loaded at the same time. They can interfere with e...

bash - Maximum nested function level reached -

I have a directory hierarchy where the "root" directory contains a file named "text.txt". I want to search this "root" directory and since then it runs the command 'foo'. Here's what I currently have # root directory detects root () {local root #Findup directory looks through directory hierarchy I'm sure it works Root = $ (Research text 2 text & gt; & amp; / dev / null) If [[$? -a 0]] To resonate "Root Not Found" to resonate 1EF echo root # Root directory runFoo () {foo push $ myDir 1 & gt; from inside local myDir myDir = $ (locateRoot) & Amp; / Dev / null foo $ @ popd 1 & gt; & Amp; However, whenever I run this program I: reached the maximum nested function level / Pre> What's wrong with me? I hope foo works is positive. In the locateRoot function you just echo Only the content of root , which is incorrect and your script seems too long to do some simple tasks. I give you a s...

mysql - Rails 4 joining associated tables - sorting when some records don't have an association -

मैं निम्नलिखित का उपयोग कर रहा हूं: वाहन। Joins (: आपूर्तिकर्ता, मालिक, : मॉडल) .ऑर्डर ("# {sort_column} # {sort_direction}") जो मुझे 4 संबंधित मॉडलों में से किसी भी विशेषता में परिणाम देने का आदेश देता है। समस्या तब होती है जब एक विशिष्ट वाहन का कोई संघ नहीं होता है, उदाहरण के लिए एक आपूर्तिकर्ता, तो कोई परिणाम नहीं लौटा रहे हैं अगर सभी वाहनों में सभी 3 संगठन हों तो कोई भी परिणाम दिखाएगा। क्या कोई वैकल्पिक तरीका है जिसकी मुझे ज़रूरत होती है? पोस्ट टेक्स्ट "itemprop =" text "> डिफ़ॉल्ट रूप से रेल आंतरिक में शामिल होता है यही कारण है कि जब कोई संबंध नहीं होता है तो आपको अभिलेख नहीं दिखाई देता है। यदि आप चाहते हैं कि आप इसे स्पष्ट रूप से उल्लेख करके इसमें शामिल होने वाले प्रकार को बदल सकते हैं वाहन। "बाएं, वाहनों पर आपूर्तिकर्ताओं को शामिल करें। Supplier_id = suppliers.id") .जोखे ("वाहनों पर वाहनों को शामिल करें। वाहनधारक_आईडी = मालिकों।") .जोखे ("वाहनों पर बाएं जुड़िये मॉडल। मॉडेल_आईडी = मॉडल.आईडी")। ("# {S...

Can I make an Objective-C method inlined? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब हम एक सी समारोह को परिभाषित कर सकते हैं इनलाइन के रूप में लेकिन कैसे Obj-C तरीकों के बारे में? क्या मैं एक विधि "इनलाइन" एड बना सकता हूँ? उद्देश्य सी विधियों को कभी भी अनुक्रमित नहीं किया जा सकता है, दुर्भाग्य से बहुत सी चीजें हैं जो संदेश को भेजे जाने पर जो विधि लागू हो सकती है, और इसे रनटाइम पर बदल सकते हैं, इसलिए इनलाइनिंग संभव नहीं है। जावा को इस समस्या को कम करने के लिए "अंतिम" है लेकिन उद्देश्य सी का सीधा बराबर नहीं है इसके बजाय, आप समस्या को चकमा देने के लिए समय-महत्वपूर्ण स्थितियों में सादे सी फ़ंक्शन का उपयोग कर सकते हैं।

php - Download file in mobile device -

I downloaded the PC device to the following code $ file_url_source = " C: /test.xlsx "; $ File_url = "C: /test.xlsx"; Header ('Content-Type: Text / Jason; Charset = UTF-8;'); Header ('content-description: file transfer'); Header ('content-type: application / octet-stream'); Header ('content-dispute: attachment; filename =' '.bessname ($ file_url_source). "").' ''; '; Header ('content-transfer-encoding: binary'); Header ('expiration: 0'); Header ('Cash-Control: Required-Modified, Post Check = 0, Pre-Check = 0'); Header ('pragma: public'); Header ('content-length:'. Filesystem ($ file_url)); Ob_clean (); Flush (); Readfile ($ FILE_URL); But this is not working for mobile device (I just test in android mobile and it downloads the download.php file). How can I download files to mobile devices? You only need it: $ file_url = " Xxxxxx "; Head...

javascript - Skrollr Fading out of text -

I am trying to fade and fade a text using the scroller. Below is the code snippet & lt; Div id = "style" data-100 = "opacity: 0;" Data -600 = "opacity: 1;" Data -700 = "opacity: 0;" & Gt; Hauda World & lt; / Div & gt; CSS is as follows #style {font-size: 80px; White color; Text align: center; Status: fixed; } Feed in and fade out are working as expected, but the text is not connected to the center. Should I use the situation with data attributes to achieve it or where I am wrong. Because you have applied "status: fixed" to "div" will be presented. So you have to set "width" to 100% if you want to align the text on the document. #style {font-size: 80px; White color; Text align: center; Status: fixed; Width: 100%; } Hope this is useful.

javascript - Dynamically add/remove form fields -

I'm trying to add, and hopefully works once, when some dimension fields in a form The user clicks on a button then to input into a MySQL database, but I'm stuck getting anything to display. Javascript: var counter = 0; Function moreFields () {counter ++; Var newFields = document.getElementById ('redraw'). Clonnode (true); NewFields.id = ''; NewFields.style.display = 'block'; Var newField = newFields.childNodes; (Var i = 0; i & lt; newField.length; i ++) for (var name = newField [i] .name; if (theName) newField [i] .name = theName + counter;} var insertHere = Document.getElementById ('writeroot'); insertHere.parentNode.insertBefore (Newfields, insertHere);} Window.onload = moreFields; HTML: volume Length (cm) & gt; Input type = "button" value = "Add another text input" onClick = "moreFields ();" & gt; Any help is greatly appreciated, thanks Creating your JavaScript elements wo...

Change the colors of 'ls' when using CMD with cygwin -

Image
से संबंधित अपने सिस्टम पथ में साइगविन को जोड़कर, मैं cmd.exe में ls --color = auto के रंगों को बदल सकते हैं। फ़ाइलें और फ़ोल्डर्स, मैं लिनक्स पर .bashrc या .dircolors.db संपादित करूँगा। हालांकि, इन फ़ाइलों के साइगविन समतुलन को संपादित करना सीएमडी.एक्सए में आउटपुट पर कोई असर नहीं पड़ता है, हालांकि वे साइगविन खोल को प्रभावित करते हैं। क्या किसी को पता है कि सीएमएसडी में एलएस से आउटपुट के रंग को कैसे संपादित किया जाए? (इसके अलावा, मुझे लगता है कि यह उपयोगी होगा यदि कोई व्यक्ति उस प्रश्न का जवाब देने वाले व्यक्ति का ध्यान आकर्षित कर सकता है जो मैंने ऊपर लिखी है। उसके जवाब पर टिप्पणी करने के लिए पर्याप्त प्रतिष्ठा नहीं है, इसलिए यदि इसकी अनुमति है, तो यह बहुत अच्छा होगा अगर कोई अन्य हो।) दुर्भाग्यवश, सीएमडी केवल अपनी रंग योजना दिखा सकता है और इसे .bashrc या किसी अन्य तरीके से किसी भी अन्य साइगविन बात से नियंत्रित नहीं किया जा सकता है। अपनी रंग योजना बदलने के लिए, आप अपनी शीर्षक बार पर दाएं माउस बटन के साथ क्लिक कर सकते हैं, 'गुण' चुन सकते हैं और 'रंग' टैब ...

c++ - Copy map<double, tuple<double, double>> to map<double, double> without loop? -

मेरे पास फार्म का एक नक्शा है नक्शा & lt; डबल, टपले & lt; डबल, डबल & gt; & gt; एम 1 । क्या मैं इसे नक्शा और lt; डबल, डबल & gt; फ़ॉर्म के एक नक्शा में कॉपी कर सकता हूं। एम 2 जैसा कि चाबियाँ एक समान हैं, और एम 2 में मान प्राप्त करें & lt; 0 & gt; (एम 1- & gt; दूसरा) बिना किसी लूप का उपयोग है? धन्यवाद! क्या आपके लिए यह काम कुछ ऐसा होगा? vector & lt ; जोड़ी और लेफ्टिनेंट; डबल, डबल & gt; & gt; वी (m1.size ()); ऑटो लैम्ब्डा = [] (जोड़ी और लेफ्टिनेंट; डबल, ट्यूपल और लेफ्टिनेंट; डबल, डबल & gt; & gt; पी) {वापसी बनाने_पएयर (पी। फास्ट, लेफ्ट लेफ्टिफिकेशन; 0 & gt; (पी.सेकंड)); }; रूपांतरण (एम 1.बीजिन (), एम 1.एंड (), वी.बीजिन (), लैम्ब्डा); नक्शा & lt; डबल, डबल & gt; एम 2 (v.begin (), v.end ()); ध्यान दें कि हमने वास्तव में एक पाश नहीं छोड़ा है; हमने सिर्फ std :: transform हमारे लिए पाशन कर लिया है यदि अप्रत्यक्ष पाशन की अनुमति नहीं है, तो संभवतः आप क्या चाहते हैं एक ट्रांसफॉर्मिंग इटरेटर है देखें

How to get plid of specific portlet In Liferay velocity template -

I am developing MVC portlet and specific through the menu link through your portlet Want to open the page? In velocity template I have the portlet name of my portlet How can I get the plid of that portlet My code is as below:.? #set ($ my_name = $ portletURLFactory.create ($ request, "portletname_WAR_portletnameportlet", $ getterUtil.) GetLong ($ plid), "RENDER_PHASE")) $ myURL .setParameter ("view", "methodName") // Controller parameters & lt; A href = "$ myURL" & gt; $ Nav_item.getName () & lt; / A & gt; #END can add my parameters to its existing URL and remain on the current page. I've added my portlet to a page and tried using hard-coded plid, it works fine, but it will create problems for different servers. So, how can I get my portlets to use during the plid url in the VM file in the work time? We have maintained something else in the configuration .. I would like to store some things in t...

apache camel - Why we are not able to use getOut() of exchange in case of changing filename? -

Why can not we use getOut: Message-Exchange to change this code Are you Camel file name using Apache: string origFileName = (string) exchange.getIn (). GetHeader (exchange. FILE_NAME_CONSUMED); Println (origFileName); . Exchange.getIn () removeHeader (Exchange.OVERRULE_FILE_NAME); Exchange.getIn () setHeader (Exchange.FILE_NAME, "newFileName.xml") .; Check out this FAQ which tells you to use them vs. and you How should

pattern matching on String in Rust Language -

& lt; पथ & gt; भाग से GET / & lt; path & gt; पार्स करना संभव है ; split या टुकड़ा Div class = "post-text" itemprop = "text"> नहीं पैटर्न मिलान आंशिक स्ट्रिंग मिलान नहीं करता है विभाजन और टुकड़ा करने की क्रिया और पुनरावृत्त ही एकमात्र तरीका है कि आप इसे की सामग्री प्राप्त कर सकते हैं।

android - Change Actionbar Tabs Height -

I am trying to change the height of the tab under the action bar in Android. I have searched a lot for this and have tried many solutions such as applying the theme to the manifest and many more. Below is one of the few topics I have implemented, but there is no success. & lt; Style name = "custom actionben theme" original = "@ Android: Style / Theme. Hollow" & gt; & Lt; Item name = "Android: ActionBarbaby Style" & gt; @ Style / actionbarabet style & lt; / Item & gt; & Lt; Item name = "android: scrollHorizontally" & gt; Wrong & lt; / Item & gt; & Lt; Item name = "android: paddingleft" & gt; 0dp & lt; / Item & gt; & Lt; Item name = "Android: padding right" & gt; 0dp & lt; / Item & gt; & Lt; Item name = "Android: Actionbirds" & gt; 80dp & lt; / Item & gt; & Lt; Item name = "Actionbirds" & gt; 80dp & lt; ...

tomcat6 - How to remove the Port number from my url? -

I am using Apache Tomcat6.0. I am relatively new to the server. I want to remove my port number from my URL I searched for the listening port, it is "wampapache" example: localhost: 8080 / myname name / (this is like this) localhost / myappname (my requirement) Thnaks in Ed! The first console found the problem and then the listening service was stopped 1) Open CMD as admin (right click and you can find options). 2) Type "netstat -ano" in the console 3) Find services running on my required port "80" (80 here because I display the port number in the URL Do not have to) Note the PID number. 4) Open Task Manager, click on the Services tab. Find the Paid's service name. 5) Type "services.msc" in the run. There the service name is found and right click the service and disable it.

javascript - Enable/Disable form elements and changing the values of button at a time? -

requirement: text is a button with "disabled" when the page opens, then I want to disable it when the user clicks on button , I want to enable my form field and at the same time I want to change the value of my button to "enabled." I have an example of how the button's value, but how can I enable / disable it at the same time? & lt; H: form & gt; Please press this button & lt; H: command button id = "cb1" value = "# {ActionBean.buttonText}" instant = "true" functionalist = "# {ActionBean.processMyAction}" /> & Lt; / H: form & gt; My Bean class looks like this: / * action listener method * / public zeroes process my action (verb phenomenon) {disable =! Disable; System.out.println ("disable:" + disabled); If (buttonText.equals ("disable")) {buttonText = "enable"; System.out.println ("Button Type:" + Button); } Else {buttonText = "disable...

asp.net mvc - Custom "subdirectory" URLs by using MVC Routes in MVC4 -

I am working on an MVC4 project, but I like custom routing that says I have the following page structure (Preferred URL: / Settings / Email) - SMS (desired URL: / settings / sms) - Notifications (desired) Url: / settings / notification) is the controller, model and view of each page, as set Some of the GSA pages are quite complex. How do I get the desired url through routing? So far I have been able to appear under Everything under / settings / {PageName} , in which Home Page, which is clearly not good I have seen and searched online but I am not getting a clear example of how to achieve something like this when all of the pages There are different controllers. How can this be done? Thank you. You have to use strict coded routes like this. Is there any reason that you are using different controllers for each page? routes.MapRoute (name: "home", url: "home", default: new {controller = "home" action = "index"}); Routes.Ma...

php - file_get_contents working in HTTP but not under HTTPS -

$ newLogUrl = सर्वर यूआरएल पाथ $ opt = array ('http' = & gt; सरणी ('विधि' = & Gt; "पोस्ट", 'हैडर' = & gt; 'सामग्री-प्रकार: एप्लिकेशन / जेसन', 'सामग्री' = & gt; $ jsonCredenObj, 'समयबाह्य' = & gt; 4)); $ Context = stream_context_create ($ ऑप्ट); $ Response = file_get_contents ($ newLogUrl, गलत, $ संदर्भ); उपरोक्त कोड सामान्य http पर काम कर रहा है लेकिन सुरक्षित सर्वर में काम नहीं कर रहा है त्रुटि चेतावनी: file_get_contents (): स्ट्रीम खोलने में विफल: HTTP अनुरोध विफल हुआ! HTTP / 1.1 405 विधि को अनुमति नहीं है 405 पद्धति अनुमत नहीं है अनुरोध-यूआरआई द्वारा पहचाने गए संसाधन के लिए अनुरोध-रेखा में निर्दिष्ट विधि की अनुमति नहीं है। प्रतिक्रिया में जरूरी है कि अनुरोधित संसाधन के लिए मान्य तरीकों की एक सूची वाले शीर्षलेख की अनुमति दें। जैसा भी उल्लेख किया गया है, इसी यूआरएल को आप कनेक्ट कर रहे हैं जो POST विधि को स्वीकार नहीं करता है। हेडर के लिए हमेशा यूआरएल की जांच क्या तरीके वे स्वीकार...

r - How to find log likelihood of Gamma, Log normal and Weibull? -

I want to discover the possibility of logs of normal distributions in Gamma, Weibull and R. Have I already predicted related distribution parameters? Here's an example for gamma, the webul and log-normal follow the same process. set.seed (101) x Fitster A log-probability accessor Method: Logic (FF) ## 'Log Leak.' -13.14535 (DF = 2) Or you can do it by hand: sum (dgamma (x, shape = coef (ff) [ "# 1 [1] -13.14535 Or a little sugar / R-magic: rate = COF (" F "), log = true) (as.list (coef (ff)), sum (dgamma (x, shape = shape, rate = rate, log = TRUE))) Other distributions -> dweibull () -> dlnorm () In both cases the parameterizes / between the parameters between the match fitdistr and Related Density Functions.

android - Emulator Building in Landscape Mode Always? -

Anyone can please direct why I'm getting landscape mode in the following configuration: P> API 11, MDPI [config] avd.ini.encoding = ISO-8859-1 hw.dPad = no hw.lcd.density = 160 hw .cpu.arch = arm hw .device.hash = 1473123938 hw.camera.back = none disk.dataPartition.size = 200M skin. Path = 320x480 skin.dynamic = yes hw.keyboard.lid = yes hw.keyboard = yes hw .ramSize = 512 hw.device .Interformer = Generic HWSDCard = No HW Mackay = yes HW. Acilaromometer = yes skin Name = 320x480ABI Type = Arambei HWTrackball = no HW.Device Name = 3.2in HVGA slider (ADP 1) Acdblukbatri = Yes hw.sensors.proximity = yes image.sysdir.1 = platforms \ android-11 \ images \ hw.sensors.orientation = yes hw.audioInput = yes hw. Gps = yes vm.heapSize = 16 This is the device you are using Due to model name it is always in landscape mode when the keyboard is open. ;) hw.keyboard.lid = yes hw.keyboard = yes hw.device.name = 3.2in hvga slider (adp1)

php - organize nested mysql databse structure for Multilevel marketing system -

If someone has already created a nested database structure for multilevel marketing (MLM) system, please share your knowledge Because I'm stuck. I have two options: First is the old way, table structure like ID, name, parent_id etc, The second option is to sort out the data structure in MySQL, such as ID, name, LFT, RGT, etc., Well, the main thing is both professional and opposition, please advise me Your database design appears appearing in the classic anti-SQL pattern, which relative tree is known by name. I strongly recommend you review - the beginning section around Slide 48.

Python simple moving average class based -

OK, so I'm writing a class that will calculate the simple running average on the list of prices. It calculates the average N-day calculation with the first N-1 day that is what I have: class SimplemovingAverage (): def __init __ (self, nday, list_of_prices ): Self._Nday = Nday self._list_of_prices = list_of_prices Def def (self): Category (lane (self._list_of_prices)): If i & lt; Self._Nday: average = 0 alif I == self. _ Day: average = sum (self._l_l_l_production [: self ._d day]) / self ._ if other: average = sum (self. _l__st_prosus [i-self._Nday: i]) / itself ._day print (average) / Code> I tested it by creating a square object on the shell 'x = SimplemovingAverage (3, [1,2,3,4, 5,6,7,8,9,10 ] ' and then the output I received was calculated by' x.calculate 'method: 0 0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 then it can be calculated from the list of numbers to 7,8,9, the last number Class 9 must be because it 8 9 average of 10 and it should be N only...

ruby - Rails with Octopus gem. How to create db's defined in shards.yml with rake -

I need to configure my app to use several shards, and even many DB adapters I have seen that all rake commands like are working, and the results on shards defined in shards.yml, except rake db: create . It will be a real pain to make all manually. How can i work it My database. IML (I defined here, only my master shard) Development: Adapter: PostgreSQL host: Localhost encoding: Unicode database: db_workload_master_development pool: 5 Username: Password: Production: ...... My shards.yml Octopus: environment: - Production - Development development: shards : Mysql: host: localhost adapter: mysql2 database: db_workload_mysql_shard_development sqlite: host: localhost adapter: sqlite3 database: db_workload_sqlite_shard_development pg: host: localhost adapter: postgresql database: Db_workload_pg_shard_development pool: 5 Username: Password: Production: .... From database.yml, only the DB can get the rake-work Rack db: . I recommend creating my own rake work which is ...

android - How to resolve java.lang.NoClassDefFoundError UserAgentConfig$Callbacks with Twilio -

I am using the Twilio Client Android SDK, but I am failing this error when trying to run it: - By: java.lang.NoClassDefFoundError: Class "LCom / Tileio / Client / Info / Usageant / Config / UserAgentConfig $ Callback;" I have included twilioclient-android-1.1.2-3635733.jar, which has been done wrong what the order should be - the current order Android 4.4.2 Android Personal Library Android Dependency Project / Gene Project / src Try it: Project-> Config Build Path-> Order and Export-> Depend on dependent project And This error also occurs When you create an app using Google API (such as maps), but it does target the Android API to run on a device that.

objective c - How to store the data used in userinfo for google map in ios -

I am using GoogleMap for iOS in my new app. Here I have used GMSMapViewDelegate to show several markers on the map using a long press. Showing the click of the marker on the same latitude and longitude of that area. I want to add a custom user information and add some descriptive text to that information. My question is how can I identify those markers exclusively so that if I close the app and open it again, then it's data markers.

sql server - How To Find all Stored Procedure that are using a specific function -

Hi there is a way that I can easily find all the stored procedure in SQL Server which are using a specific function for the pre. Function fn_Test () ? I want to see all the stored procedures using this function. Thanks It should do after you should do it, any Returns the place with any other entry in the text: Separate SELECT so.name from syscomments sc INNER sysobjects, so that sc.id = so.id might be WHERE '% Fn_Test%' like sc.TEXT

user interface - Drawing a check mark in Qt -

I am working with simple QTreeView, each line of the tree inherited from one class EditorRow Found is a specific category. EditorRow These functions are: Virtual QVariant data (ColumnIndexEnum index, int role = Qt :: DisplayRole) const = 0; Virtual wide setdata (constant queue variant and data, column index number index, int roll = qt :: userroll); Virtual QWidget * getEditor (QWidget * parent) const; Each line has its own specific widget, which is shown in the right column when selecting that row. When the row is not selected, the data function returns the appropriate value for each row (Fu value which was selected in QComboBox). But in the case of a row, whose widget is QCheckBox, if the row is not selected, I must draw a check (or uncheck) checkbox. I have tried to use the role of decoration like this: if (Qt :: decorative == role) {if (ValueColumn == index) { QStyle * style = QApplication :: style (); QStyleOptionButton opt; Opt.state | = QStyle :: State_En...

php - Username instead of id in URL - yii-user -

I am using "yii-user" (module / user), now user url is mysite. Com / user / user / view / id / 1 and want to change me to mysite.com/profile/username User Controller: View Public Function Action () {$ Model = $ this- & gt; LoadModel (); $ This- & gt; Render ('view', array ('model' =>; $ models,)); } Public function loads () {if ($ this-> _model === faucet) {if (isset ($ _ GET ['id'])) $ this- & gt; _model = User :: model () - & gt; FindbyPk ($ _ [['ID']); If ($ this-> _model === faucet) Throw new CHttpException (404, 'The requested page does not exist.'); } $ $ -> Modell; } / ** * returns the data model based on the primary key given in GIT variable. * If a data model is not found, an HTTP exception will be raised. * @ PRM Integer Primary Key Value 'id' GET variable * / Public function loadUser ($ id = null) {if ($ this-> _model === faucet) {if ($ id! == null || isset $ _GET ['id...

mysql - Can you run database queries in a PHP cron job? -

I have tried to look around for an answer, and nothing to answer this specific question properly. guess not. Is it possible to setup a cron job for a PHP file that has MySQL database queries? As I currently understand, it is possible to execute a PHP file via a cron, but whether I have read some disputed posts or not that the PHP file contains MySQL queries or not. I have a site function where I am planning to, from time to time, a whole bunch of data from a database run through some PHP and need to know to be reinforced in the database with modifications . Cheers You can run any PHP file using Cron . Simply use a syntax to add a PHP file to the cron: 01 04 1 1 1 /var/www/somedirectory/somephpfile.php You can see more Option for CRON Then somephpfile.php can have a CRUD operation, which is supported by PHP. The less you can call the error-free in any PHP file and it will definitely run (if it runs when you try to run it directly in the browser) in

How to convert .docx to .odt with Libreoffice on Ubuntu bash -

DOCX is a problem to convert to PDF using LibreOffice. (In RTL documents), but changing the same document saved in the ODT format. "post-text" itemprop = "text"> Then you can use this command directly from the command line Libreoffice --headless --convert-to odt * .docx

cocos2d iphone - Using CCLabelBMFont gives error TextureCache: fileimage MUST not be nil -

I created the MyFont.fnt file and MyFont.png file. Ang has written the following code CCLLBMFont * Answer text = [CCLABBFF Label Labeling: @ "MyText" FTPFile: @ "MyFont.Funt"]; ReplyText.position = CCP (winSize.width / 2 + 20, winSize.height-200); [Self-linked: northwest z: index ++]; But this is giving and there is an error and I do not know why I have cleaned it and again the process has also been deleted files but there is no luck. Any help would be appreciated thanks to "post-text" itemprop = "text"> There was a problem after a few hours of seeing this silly issue. I had XML tags in my .fnt file and I did export it as text and it solved the problem.

python - Chrome Error code: ERR_UNSAFE_PORT - Bottle hello world app not showing in browser -

संपादित करें: मैंने क्रोम त्रुटि कोड को देखा और कहा: त्रुटि कोड: ERR_UNSAFE_PORT । मैंने बंदरगाह को 6001 में बदल दिया और यह ठीक काम करता है - ऐसा क्यों होता है, आम तौर पर 6000 एक बंदरगाह है जिसे आप किसी कारण के लिए स्थानीय विकास के लिए उपयोग नहीं कर सकते हैं? मैंने हैलो वर्ल्ड ऐप बनाया है (I बोतल आयात मार्ग से, @ रुटिंग ('/ हैलो') def हैलो (): वापसी "& lt; h1 & gt; हैलो वर्ल्ड! & Lt: ; / h1 & gt; " और मैं एक वहीअलएन्व सेटअप में app.py को उसी निर्देशिका स्तर पर बिन / के रूप में चलाता हूँ, इसमें शामिल / , और आभासी वातावरण से लिब / फ़ोल्डर्स। फ़ाइल को बोटलैप बिन के अंदर है / जब मैं अजगर app.py चलाता हूं, तो मुझे यह आउटपुट मिलता है: बोतल v0.12.3 सर्वर शुरू (WSGIRFServer ( )) ... http: // localhost: 6000 पर सुनना / छोड़ने के लिए Ctrl-C दबाएं लेकिन जब मैं http: // localhost: 6000 / हैलो पर जाता हूं तो मुझे क्रोम में "यह वेबसाइट उपलब्ध नहीं है" मिलता है। क्या मैंने मेरी फ़ाइलों को किसी तरह गलत बना दिया है? धन्यवाद! यह आ...

Change event not getting fired on model's 'set()' method with backbone.js -

I am new to backbone.js for my application, when a change event occurs in the model, then render me ' 'Function calls are needed. Somehow this is not happening, my code is here function (data) {warning (data); OTable.fnDestroy; Servers.get (.id) .on ('change', this.render, this); Server.get (UID) .Set ('serverStatus', position); Servers.get (.id) .off (); } It is very simple, but I am unable to understand why the event is not being removed.

How could I set 2 pictures at top left/right corners of the section without id or class attributes HTML CSS -

// I have been asked to create a web site without the ability to use aids or classes, Want to put two pictures on For example, I used two examples in the section html code. They will be small and up and change the title again - especially when I use IMG vertical-align-20 and section H1 margin top-30 in CSS. img {width: 200px; Vertical-alignment: -20px; } Section {background color: RGBA (255, 255, 255, 9.); Width: 1050px; Height: 1400 px; Margin-top: -119 px; Margin-left: 110px; Margin-down: 140px; Border: 2px solid red; Range radius: 10px; Box-shadow: 3px 3px 2px 2px black; } Section h1 {text-align: center; Font-size: 28px; Letter-spacing: 10px; Text-shadow: 1px 1px 1px red; Margin-top: -130px} & lt; Section & gt; & Lt; Img src = "canada.png" alt = "Canada" /> & Lt; Img src = "canada.giff" alt = "Canada" /> & Lt; H1 & gt; Title & lt; / H1> & Lt; / Section & gt; It is easy to just align HTML code...

auto trigger a function with .animate in jquery -

I am on a jQuery project and stuck at some point. I jQuery .animate () ie: $ ("planeid"). Animate ({top: '590px'}, 1000); where the top value is initially 0 top when the value of the property reaches > Yes , You can return the step call to the endem function. $ ("plane") (animate) ({top: '590px'}, {duration: 1000, phase: function (current value) {if (currentValue === 200} {// your code is here.}}});

java - Trigger Prolific Barcode Scanner device from Android -

Sorry for my bad english I am using a great tool for which I have to give commands and read the data. I want to read and write data to com port. I specify the code given in the PL 303 Drivers Library, which I got with the SDK provided here . If I scan something from the bar code scanner, then I can read that data from com port. If I write to write some data then it writes that the number of bytes in writing is quite large. There is no problem with that but I want to send the command to the device which will shine the bar code scanner and will scan the bar code. I use the USB Serial Terminal Light Application. If I run the command # 55 # 30 # 41 # AA, USB Serial Terminal Lite to Bar Code Scanner, then in the same way I want it in my application. I tried with the commands given in # 55 # 30 # 41 # aa, 0x55, 0x30, 0x41, 0xAA documents. But they do not work. I think I'm missing a special order that will trigger the bar code scanner. I am posting some code here. PL2303 driver ...

php - Inform web service If app is closed -

I have implemented the webservice, which is used by the Android application, this web service is used for login and signup from the Android app Is performed. Did I try? P> I countdown & amp; asynctask , to send requests to the web service as a ping-type message, it is sent from time to time, but I have not been sent after some time to check it for the webservice How can i manage So if I do not get that ping from the server side, then I can end the session. Web service is built in PHP Symphony I want to apply it because I can stop the services of an application so that I can log out of the web service immediately Can Android Side Have an Optional Solution to Do It? You can try one thing, When the app is closed in the device, you have to tell your webpage that the application is closed, and you can save the flags value in your web. Database. And if you want your desired webservice to fire on or off you will need to see the flag ..):

java - Spring MVC model attribute not displaying -

Output does not display "spring" to $ {message} Does anyone show the value of my message Dependence? I am already using Spring MVC but I have used XML configuration, am I being missed? Hope you can help me understand this. & lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; JUnit & lt; / Group & gt; & Lt; ArtifactId & gt; JUnit & lt; / ArtifactId> & Lt; Version & gt; 3.8.1 & lt; / Edition & gt; & Lt; Scope & gt; Trial & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Javax.servlet & lt; / Group & gt; & Lt; ArtifactId & gt; Javax.servlet-api & lt; / ArtifactId> & Lt; Version & gt; 3.1.0 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt ;! - Spring dependence - & gt; & Lt; Dependency & gt; ...