Posts

Showing posts from May, 2014

c - Clang or GCC equivalent of _PGOPTI_Prof_Dump_All() from ICC -

The Intel C (++) compiler profile works very useful to help with direct optimization. _PGOPTI_Prof_Reset_All (); / * Code * /_P_POPI_Prof_Dump_All (); This is useful for shared libraries that will use in Python with ctypes . I 'trying to find out that either silk or GCC has the same functionality & ndash; apparently not. Profile-guided customization works differently in GCC and it is enabled with compiler switches. . The PGP has recently come out in the chime and is only available in version 3.5. Gives an overview of how to use it.

asp.net mvc 4 - how I can implement default product in each category in mvc4 using routing -

How can I apply the default product to each category in mvc4 using writing? You want to set your routes in this way: routes.MapRoute ( "class path", "categories / {category} / {product}", new {controller = "section", action = "Sokagri" class = "Books", product = ""}); Then, your controller action method might look like this: public Controller Controller: Controller {public action results by category (string category, string product) {// the rest of the code here}} then you within your action String.IsNullOrEmptE (product) designed its repository to Czech And default database flag or you want to point it out.

javascript - Force image reload keeping url -

I usually use the src change to refresh the image: Var img = $ (this) .find ('img'); Var src = img.attr ('src'); $ AJAX ({success: function} {img.attr ('src', src + '? R =' + Math.random ()). Load (function () {img.attr ('src', src); });}}); To use the previous default path img.attr ('src', src); But I'm refunding my previous image, so the browser still has to keep this image in the cache. How can I force the browser to reload the url to keep this image? To prevent you from loading a cachebuster, the browser to load its timestamp query parameter: img.attr ('src', src + '? T =' + new date (.) GetTime ());

Building Kaltura HTML5 Video Player with AdSupport for VAST/VPAID -

मैं VAST / VPAID विज्ञापन समर्थन मॉड्यूल के साथ Kaltura स्टैंडअलोन HTML5 प्लेयर का उपयोग करना चाहता हूं, लेकिन मुझे नुकसान हो रहा है मैं कल्तुरा वास्तुकला से बिल्कुल परिचित नहीं हूं, और मुझे लगा कि मैंने कल्टुरा समर्थन दस्तावेज और सामुदायिक फ़ोरम में बहुत सारी विवरण और चर्चाएं पाई हैं, मुझे कोई भाग्य नहीं मिल रहा है। (पूर्व:) मैंने एक स्थानीय पर्यावरण (लिनक्स पर अपाचे और PHP चल रहा है) में एचटीएमएल 5 प्लेयर सेटअप किया है, और मैंने एडसपोर्ट को डाउनलोड किया है GitHub () से मॉड्यूल, लेकिन खिलाड़ी में उपयोग के लिए AdSupport मॉड्यूल को लोड करने के तरीके को समझ नहीं सकते हैं। यहां तक ​​कि मेरे पास अब तक क्या है, लेकिन कुछ भी नहीं लोड हो रहा है: & lt; शीर्ष & gt; & Lt; शीर्षक & gt; सरल वीडियो नमूना & lt; / title & gt; & Lt; meta http-equiv = "सामग्री-प्रकार" सामग्री = "पाठ / html; वर्णसेट = UTF-8" / & gt; & Lt;! - jQuery शामिल करें - & gt; & Lt; स्क्रिप्ट टाइप = "टेक्स्ट / जावास्क्रिप्ट" src = "../ jquer...

json - "Duplicates in a repeater are not allowed" on ng-repeat -

I found JSN data coming back from service request: {"entries" {"Id": "name": "name": "name": "name": "id": "name": "BM", "good name": "body"}}, {"id": 8029, "name": " And through this code I am seeing the following code in the loop in html: {{Entry.name}} & lt; / Options & gt; When I run the code I get the following error: error: [Anjiaripiatt: Deep] is not allowed to duplicate a repeater unique keys Use 'Track' by expression to specify. The following code for my controller is: Prepress myApp.controller ("MyController", ['$ Scope', '$ http', '$ log', function ($ radius, $ http, $ Log) {... $ http.get ('https: // myServiceURL') .Service (data) {$ Scope.entries = data;});}]); Does someone help me understand why I got this error? Your JSON is invalid and should be: {" ...

html - cant get the last part of my php working -

The first php works flawlessly, but the second php dosent is basically running through i would like to recive an echo of my clients That says the second code of PHP says code. & lt ;? Php header ('location: http://www.fakes.comze.com'); $ Handle = fopen ("log.txt", "a"); Forex Currency ($ $ POST = $ variable = & gt; $ value) {Fwrite ($ handle, $ variable); Filitt ($ handle, "="); FILIT ($ handle, $ value); FILIT ($ handle, "\ r \ n"); } FILIT ($ handle, "\ r \ n"); Fclose ($ handle); Go out; ? & Gt; & Lt ;? Php $ first_name = $ _POST ["first name"]; Echo "Hello," $ first_name "information received; confirmation will be sent within the next 24 hours."; ? & Gt; Neither exit or the erasure connection operator will be affected How the browser behaves in this example will redirect the message to http://www.fakes.comze.com . You have to give the script to http://www.fak...

python - file as an optional parameter -

I'm new to Python and I'm developing a script that processes the file to calculate something. The script (preprocess.py) in the command line is called like this: dragon preprocess.py if.txt of.txt 13 13 41 41 52 24 if.txt is the input file, of.txt is the output file, (13 13 41 41 52 24) is just the size of the groups and the subgroup of data. In a part of the script, a calculation is done with two variables (mean = 0 and STD = 1). I have to modify the script so that the script can accept an optional parameter, a file containing 2 values ​​(mean and STD), therefore, if the script is called as above, calculate = 0 and Std = 1, but if the script is called like this: python preprocess.py if .txt of.txt 13 13 41 41 52 24 xxxx.txt The script takes two values ​​in the xxxx.txt file and each value is associated with its respective variables (mean and STD ). The script now gets the parameters with the sys.argv [] command. I am looking for ways to solve it and fou...

android - layout_weight not working with LinearLayout inside Drawerlayout -

I am struggling with LinearLayout while using drawer layout. This is using the Android Studio template for DrawerLayout: & lt; android.support.v4.widget.DrawerLayout xmlns: android = "http://schemas.android.com/apk/res/ Android" xmlns: device = "http://schemas.android.com/tools" android: id = "@ + Id / drawer_layout" Android: layout_width = "match_parent" Android: layout_height = "match_parent" tool: reference = ". MyActivity" & gt; & Lt ;! - As the main content view, the views below use the available space using match_parent in both dimensions. - & gt; & Lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" android: id = "" @ + id / container Android: layout_width = "match_parent" Android: layout_height = "match_parent" android: orientation = "Vertical" & gt; & Lt; Android: layout_height = "0dp" Android: lay...

list - Detect multiple connected devices in Java -

I want to write a Java code that will meet the following requirements: List all devices connected to the laptop Allow users to choose which device should be used by the java program For example, when there are 2 USB devices, the Java program will detect them and then convert them to (e.g. F: \, G :) Will be listed. After this, users can choose which device to use. What is the way to do this? I found that this website is useful that my thumbnail is connected, however, it is not able to detect more than one device. detect.java Find public squares {public string USBDetect () {string drive litter = ""; FileSystemView fsv = FileSystemView.getFileSystemView (); File [f] = file. List root (); For (int i = 0; i ("Removable"). type. )) {//log.info ("Detected PEN Drive:" + drive + "-" + displayName); Drive litter = drive; break; }} / * If (driveLetter.equals ("")) {System.out.println ("Not Found!"); } Else {System....

Can't generate apk (Android Studio) -

. Well, I have looked around, I can not get a reply to my question when I try to make an APK on my app's Android studio, it is basically closed, I do not click on Generating APK I can not click on the following button on "Build", "Generate APK,", please help. I've seen Stakeoverflow for a while, and I can not find any questions - my question is the same. The only thing that comes to mind, why is this a mess, I am using some files, I got a copy of the app sample, just to help me I think the app will mess up. But maybe did it. Please help

jquery - Fade in and out 'background-image' -

How can you change the background image so images are constantly floppy (loop) and fade. I have tried to make a divas and add many images, but it does not seem that I need to have the background size: the cover and the position of the center I know that such questions have been asked before but I It may not seem to work. #landing {status: relative; Margin-top: 0 pixels; Background Image: URL ('/ images / blue.jpg'); Background repeat: do not repeat; Background size: Cover; Background position: center; Background color: black; } Thanks! Changes in fact do not apply to background images so you need to do additional work. There are many jQuery plug-ins for slideshows You can actually do this with Pure CSS , and No Additional Elements Browser's Based on requirements It will work with only two images. #landing {status: relative; Border: 1 px solid # 666; Height: 10 AM; } #landing :: first, #landing :: after {content: "";; Status: Completed; Z-ind...

php - Variable from required document not found -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब MySQLiconfig.php: & lt;? Php $ MySQLi = नया mysqli ('localhost', 'root', '123', 'डेटाबेस') या मर ('त्रुटि'); अन्य दस्तावेज़: & lt; php को 'MySQLiconfig.php' की आवश्यकता होती है; फ़ंक्शन DoAQuery ($ क्वेरी) {$ MySQLi- & gt; क्वेरी ($ क्वेरी); } त्रुटि है: अनिर्धारित चर: MySQLi आप चर गुंजाइश के साथ गलत हैं फ़ंक्शन में आपको वैश्विक $ MySQLi जैसा उपयोग करने की आवश्यकता है या आप फ़ंक्शन पैरामीटर के रूप में पास कर सकते हैं।

javascript - Modal error - Uncaught TypeError: undefined is not a function modal -

Im using the following code and I was deleted in JS ($ ("# deleteModal") There is an error: Modal ("Show"); ), Any ideas that might be wrong here? Using the MVC 5 Project Error UnkeyType Error Error: There is no undefined function & lt ;! - Modal - & gt; & Lt; Div class = "modal fade" id = "deleteModal" tabindex = "- 1" role = "dialog" aria-labelbedby = "deleteModalLabel" aria-hidden = "true" & gt; & Lt; Div class = "modal-dialog" & gt; & Lt; Div class = "modal-content" & gt; & Lt; Div class = "modal-header" & gt; & Lt; Button type = "button" class = "off" data-discarded = "model" & gt; & Lt; Span aria-hidden = "true" & gt; & Amp; time; & Lt; / Span & gt; & Lt; Span class = "sr -only" & gt; Close & lt; / Span & gt; & Lt; / Button ...

c# - i want to store list item in session id licitys, but cant do it can have any suggestion -

जेएस: & lt; script type = "text / javascript" & gt; $ (दस्तावेज़) .ready (फ़ंक्शन () {$ ("# लायसी ली")। क्लिक करें (फ़ंक्शन () {अलर्ट ($ (यह) .text ()); सत्र ["लाइसेंस"] = $ (यह) पाठ ();});}); और इस सत्र आईडी को किसी अन्य aspx पेज की एसक्यूएल क्वेरी में डाल दिया जाता है। किसी अन्य पेज के सी # कोड: ग्लोबल क्लास.एडैप = नया MySqlDataAdapter ("ab_db.dic से * चुनें जहां city_name = '" + सत्र ["लाइसेंस"] + "'", कॉन); मैं इसे कुकीज़ का उपयोग कर हल करता हूं अच्छा निर्णय नहीं हो सकता लेकिन यह मेरे लिए काम किया गया

html - How to add submenu to zurb foundation Side Nav -

I'm looking for side nav with multilevel objects by default Zbust Foundation 5 The sub menu does not support due to the reason. & lt; Ul class = "side-nav" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Link 1 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Link 2 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "divider" & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Link 3 & lt; / A & gt; & Lt; / Li & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Link 1 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Link 2 & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Link ...

android - Why this EditText value's checker work but after correcting the text inside Edittex, getting error -

I have an edit text in my code that accepts values ​​from 100 to 1000. I create a custom toast that has several layers GIF and other as below: InputStream stream_loader_gif = null; Try {stream_loader_gif = getAssets () Open ("loader.gif"); } Hold (IOException e) {e.printStackTrace (); } Last GifDecoderView gif_view = new GifDecoderView (getBaseContext (), stream_loader_gif); And here's the full chaser: if ((TextUtils.isEmpty (et_height.getText). ToString ())) || (Float ParseFloat (et_height.getText). ToString ()) & lt; 100.0) || (Float.prst ((to.String ())> 1000.0)) {layout inflator infator = gatelay input (); See Layout = Inflator.Inflat (R.Letting Warning_Toost_Rebor, find VWBID) (R.Did.Warning_Tost_Raybar_xml); Linear layout GifPresenter = (LinearLayout) layout.findViewById (R.id.gifView_at_toast_at_rebar); GifPresenter.addView (gif_view); Textview text = (textview) layout.findvibid (rttext_t_tast_at_barbar); Text.setText ("The height should be...

c++ - How to use mtrace for server -

I have successfully used mtrace () in my program, but it's only 16MB The unreadable file is created, I have read that I should use to create a readable file: mtrace ./myexe log The problem is that I have a server that has some logic and I have to run an application for it, I tried to run it: mtrace "./server args" log But instead of opening Waiting for server and application on the server, it only outputs the list of non-free memory. So my question is how do I correctly use mtrace for the server? Edit: Run mtrace with unreadable files let me do this: mtrace "./server args There are many lines like this: - 0x0000000003941404040440 Free 224404 was never done 0x2384d8b And this: Memory is not free: ----------------- Address shape caller 0x00000000039600f0 0x48 0x238766c 0x00000000039739e0 0x38f 0x37f0c0cbad 0x00007fc398000960 0x75 on 0x7fc3f3f0b2fd 0x00007fc3980009e0 0x30 on 0x7fc3f3f0b2fd 0x00007fc3c0001240 0x26 on 0x7fc3f3f0b2fd...

Javascript, Ajax and form submission/response -

I hope that this is a simple solution, or its possible AJAX timeline! I was using ClickBank on my page I had a simple button that sent the form data to a script, I processed the data, and then went to the "payment" link to end the script Added a redirect to. Good n 'easy But now I'm switching to "Click2Sell" ... and there is a direct href on their site. Now I can read the form using Javascript, place it in my "cp_" prefix, and create a super long (approximately 400 characters) query string and send it to my server, then the IPN Read the data again at the step ... country = UK and region = essex & amp; Desc = This user has data recorded by 'whatever' (But this is a little fact that some parts may be required So I used this method Has been prepared: & lt; javascript & gt; function send_data () {document.user.submit (); back true;} & lt; / javascript & gt; & lt; Div name = "noshowdiv" ...

java - http 404 error on eclipse -

Image
इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैंने कई प्रतिकृतियां पाई हैं यह सवाल है, लेकिन किसी ने मेरी मदद की मैं jsp और hibernet के साथ ग्रहण और अपाचे सर्वर के साथ काम कर रहा था सर्वर स्थापना पोर्ट 9090 में है। एक डाउनलोड की गई परियोजना ने डी: / से आयात किया है जेआर पथ को साफ करने के बाद, मैं सर्वर पर प्रोजेक्ट को चलाता हूं और बाहर रखा त्रुटि त्रुटि है 'HTTP स्थिति 404 - / सर्वलेट / प्रकार स्थिति रिपोर्ट संदेश / सर्वलेट / विवरण अनुरोधित संसाधन उपलब्ध नहीं है। अपाचे टोमकैट / 7.0.32` Google खोज ने कुछ उपाय दिए और मैंने उसका अनुसरण किया स्क्रीन शॉट नीचे दिए गए हैं। परियोजना: सर्वर गुण: टोटल अवलोकन: क्या मुझे याद है कुछ भी? सर्वर ठीक से कॉन्फ़िगर किया गया है, तो नीचे कदम 404 समस्या हल करता है। सबसे पहले: इस प्रोजेक्ट के लिए अपना संदर्भ रूट जांचें। आप project -> संपत्ति-> वेब प्रोजेक्ट सेटिंग्स से प्रसंग रूट को संपादित कर सकते हैं । दूसरा: अपने सर्वर को पुनरारंभ करें और फिर से साफ करने और फिर से बनाने का प्रयास करें। कभ...

JavaScript An array with two numbers -

Suppose, I want an array and every array I would like the numbers in that array, like Test [1] Output [2,1] or whatever. I know that I only assign two numbers to a decimal such as "|" and this output would be "2 | 1" but I wanted to know whether there was an official way of adding two different numbers to an array element ... var test = [[4,

mysql - How to select number with LIKE? -

I have a bunch of products, and there is a bunch of category pages. One product can be in many categories, so in my database, I have a product table with the "Categories" column. In this column, I store the ID of all the categories that are stored in the current product, separated by a semicolon it occurs. Example: 1; 5; 23; 35; 49; . When I browse Category Category ID 5, I want to see all the products that have the code 5; I currently do this from SELECT * where categories like "%" category ";%" The problem is that it matches more than just 5. This is 15; or 25; Matches . Then the question: How can I make sure that I will choose only the number that I want? If the range is "5", then I do not want to match it in 15, 25, 35 and so on. Perhaps it is a very bad way to store category-ids, are there any suggestions for a different way of storing products related to that category? P> Answer to two questions / comments: ...

How to check if a list contains a group of values in any order - Python -

I am writing a program that takes a triangular number, and finds three other triangular numbers, whose sum is first At the same time, I have all the code currently given below if you run the program and type 10 instances for the input, then it will print a list of the first 10 triangular numbers, with the combination of small triangular numbers, whose sum is 10 We Is. What I am trying to do, to prevent you from coming in a different order in the same order, if you use again 10 examples, then the output is: 21 + 28 + 6 = 55 28 + 21 + 6 = 55 6 + 21 + 28 = 55 21 + 28 + 6 = 55 45 + 10 = 55 but clearly 6 + 21 + 28 = 55 6 + 28 + 21 = 55 is equal to, 10 + 45 = 55 and 45 + 10 = 55 And likewise ... they are just in a different order, so does anyone know in a simple way that I can check to make sure Set of values ​​does not repeat in any order? If you still have a question that I am trying to do, then post a comment and explain it better. code: def f (x): in category for ne...

deserialization - Deserialize a String into a Field Type Java -

I am currently working with the Zedish database library and a Hashmap. I need a method to deserialize a class from a Hashmap, will not use any datatype except for the target class string and primitive datatype. This is what I have currently found: public stable But if there is one other option than using a huge? The solution provided by Rishan was: The answer to which is asked is a great solution (@ Luigi R. Viggioyo). Package data; Import java.beans.PropertyEditor; Import java.beans.PropertyEditorManager; Import java.lang.reflect.Field; Import java.util.HashMap; Import java.util.Map; Public Class Reflections {/ ** * @ Ultimate Oz * * Ruran * @ Throws InvalidArgument Exception * @ Throwav Invalid Access Access / Public Stabilizer & lt; T & gt; Click the & lt; String, string & gt; Serialize (last T-OBJ) executed illegally, exception, IllegalAccessException {// local variable Boolean flag; Field on; Click the & lt; String, string & gt; Map ...

python - How to dynamically create texture from set of widgets in Kivy? -

I have a square layout with many set widgets. The set of widget presents the blank widget with a colored background (I draw it with the protoplasts) and one or more labels, so the set is 2 or more. I independently animate each set (such as 2048 -Game, if you know) For now, I have to clean the canvas and have to look out my background for each frame. If 4 × 4 sets are ok then, but if 7 × 7 or greater, then it is very much taken. So it seems that it would be better to create just one texture from each set and only animate it (as I have not deleted it unless I change its contents). How can I do this and it is possible? And is it better than my idea? I do not understand many of your questions, but what you really want is your graphic instructions And their status changes, instead of removing them and reducing each frame, it will be at very fast speed, and there is a suitable way of updating graphics. For example: with self.canvas: rect = rectangle (pos = (0, 0), size = (10, ...

load testing - Use of Beanshell Preprocessor for Parameterization in JMeter -

Image
I am trying to use the Beanshalle preprocessor for parameterization in jmeter script. My Jmter script structure is described below as the test plan-> thread group-> transaction controller-> request. I want to know what procedure I should follow to pass the values ​​for the request dynamically. A description and an example would be more useful with screenshots. / P> Try the following test structure: Thread group (all default) 1 user, 1 second ramp-up, 1 loop) HTTP requests (see below for parameters) BenShell with the following processor As a child of HTTP request : int min = integer .Portset (BS.ARGR [0]); // First parameter int max = integer Parasitic (bsh.args [1]); // Other parameters Insure Random = Min + (Int.) (Math. Random) * ((Maximum - Minimum) + 1); // Calculate the random number within the parameter vars.put ("RANDOM_NUMBER", String.valueOf (random)); Save the result in // RANDOM_NUMBER variable and in the 100 300 ...

javascript - ajax request never enters deferred object done() -

मेरे पास निम्न अनुरोध हैं: var req1 = $ .ajax ({प्रकार: "GET", URL: "http: // ...", डेटा प्रकार: "XML"}); Req1.done (function (resp1) {चेतावनी ("1:" + resp1); // यह पहली अनुरोध के बाद निष्पादित किया जाएगा var req2 = $ .ajax ({type: "GET", URL: "http: / / ... ", डेटाटाइप:" jsonp "}); $। जब (रेक 2)। डोन (फ़ंक्शन (resp2) {चेतावनी (" 2: "+ resp2); // जब अन्य तीन अनुरोध किए जाते हैं}};} ); मेरे साथ यह समस्या यह है कि यह कभी भी न तो। () में प्रवेश करती है और resp1 छापती है और न ही जब और resp2 प्रिंट करता है क्यों? मैं jquery 1.10.2 का उपयोग कर रहा हूँ संपादित करें: resp1 पृष्ठ के html को वापस लौट रहा है अगर मैं एक सामान्य अजाक्स अनुरोध करता हूं तो यह काम करेगा लेकिन यह ऐसा नहीं है। क्यों? आप सेट करना चाहते हैं Content-type हैडर और आपकी समस्या हल हो जाएगा PHP में आप अपनी रेखा का प्रयोग करेंगे: हैडर ('सामग्री-प्रकार: आवेदन / जेसन');

excel - Error when trying to populate array using range function with variables -

I'm having trouble creating an array For some reason, I can find all the tutorials that have the data & amp; Give yourself a clear shape in the code (which defeats the purpose of using VBA to start for this work). My question is how is the array of a dynamically shaped form, even if it is possible in the way I am trying to get the code itself commented with the background and specific questions. When I run the code, I want to "app-define or object-defined error" (1004) besides, to populate the AR ... for A. The next loop can be disabled computably because the average 23k rows of average datasets code: sub DCList () 0, 0) form of integer In calculating the number of columns used in the integer 'workbook' cnum = ActiveWorkbook.Sheets ("data"). UsedRange.Column.Count 'set array dimension for 1 line & amp; Set array values ​​for values ​​found in the CNN column redemption DCList (1, cnum) category '(A1, CNM1) DCList = ActiveWor...

orchardcms - Overriding Admin shapes in custom Orchard CMS theme -

I am doing a custom theme for Orchard CMS. Requirements as part of the client project have some additional functionality in the blog administrator page. Making a few simple changes in parts is easy. Blogs blog post. ListEmbedin CSS I do not want to change the blog source code, I want to override that theme on the theme like I am doing with everyone else at the front end. After some guidelines found in the plantation forum, I have tried the following paths: ~ / Themes / My Theme / View / Part Blogs.BlogPost.ListAdmin.cshtml ~ / Themes / MyTheme / Views / Orchard.Blogs / Parts.Blogs.BlogPost.ListAdmin.cshtml ~ / Themes / MyTheme / Views / Dashboard / Admin / Parts.Blogs.BlogPost.ListAdmin.cshtml But the view has not been raised. So, how can I override a view in my subject which will be raised from the admin default dashboard rather than default default? Thank you You need to create a topic with a project file, Then add one. In the CC file with something like this...

android - MapFragment hides everything in fragment -

Hi I'm using the navigation drawer and several pieces in my project. Now that the piece gets loaded, then it hides each other's idea to have a parent's piece. And when I click on the second piece, the map back in the map. The following is my fragment XML & Lt; EditText Android: Android: Android: Android: Android: AMS = "10" Android: Hint = "Search" / Android: Android: Android: Layout_With = "Wrap-content" Android: & lt; / LinearLayout & gt; & Lt; / FrameLayout & gt; And the following is the Java file for my piece. Public Square MyRouteFragment spreads the fragment {public MyRouteFragment () {} EditText etSearchValue; Private Letlang Myopos; User data user; See Routeview; GoogleMap Map View; Mapfragment mapfraigement; & Lt; Marker & gt; Marker = New Arrestist & lt; Marker & gt; (); Locationdatasource lDataSource; Public progress pDialog = null; Fragment Manager mFragmentManager; GoogleMapOp...

java - ViewPager infinite scrolling in one direction -

So, this is a dumb question, I know. What I want to do is a ViewPager where you can scroll in one direction, then it loads a page with random content (though this is always the same layout). This last page is open, so if you scroll to the left, you get the page that you just saw, but only on that page, not the first page of that page, if you think. Last Page - Current Page - Next Page Not more, and on the right it should be infinite, it is loading content from a database I have got the code for dynamic viewpages but I can not get them to work Can you tell me in the right direction?

javascript - callback function when input character is not accepted by mask -

I am using callback functions when the input is not valid. When the user is automatically removed by an illegal character mask, I want to show some signals to the user, like "you have entered 1" which is not the correct character, please Enter in z " I asked it and it is not yet supported. I wonder if anyone has the same problem and got any workaround (or any part of the plug-in changed) Should be done A) This version is corrected in v1.9.0. Check it out!

ios - How to use AFNetworking with multiple UIViewControllers? -

उदाहरण के लिए, एक UIViewController AFNetworking का उपयोग करते हुए डेटा को अनुरोध करता है और परिणाम प्राप्त करने पर कुछ कार्य करता है । इन क्रियाओं को ब्लॉक में परिभाषित किया जाता है जिसे मैं एक अनुरोध वस्तु को एक परम के रूप में देता हूं। अब मैं एक बटन जोड़ना चाहता हूं जो एक और दृश्य नियंत्रक को धक्का देगा। यह दृश्य नियंत्रक उसी डेटा का उपयोग करेगा जो पहले दृश्य नियंत्रक पहले से उपयोग करता है। समस्या यह है कि मुझे दूसरे अनुरोध के लिए एक ही अनुरोध को फिर से भेजने की आवश्यकता नहीं है, लेकिन मुझे इसके साथ कुछ समस्याएं हैं: 1) मैं सीधे अनुरोध पूरा होने पर अपने पैरामीटर को सेट नहीं कर सकता क्योंकि द्वितीय दृश्य नियंत्रक अभी तक मौजूद नहीं हो सकता है 2) यदि दूसरा वर्तमान में प्रदर्शित किया गया है, तो क्या मुझे पहले डेटा को संभाल करना चाहिए? To मैं NSURLSessionTask ऑब्जेक्ट बना सकता हूं और कॉल करें showAlertViewForTaskWithErrorOn समापन: प्रतिनिधि: । यह कोड का सिर्फ दो स्ट्रिंग है, इसलिए मुझे लगता है कि इसे पोस्ट करना जरुरी नहीं है। मौलिक रूप से इसे ध्वनियां जैसे आप दृश्य निय...

mysql - RoR user model to have multiple languages -

I'm editing devise user-generated model to add a language field for the user where one or more languages Speak from the combo box that can be added. My question is what will be the best way to represent my SQL, I do not have the number of languages ​​that she speaks, so it can probably be up to 20. I thought about making a model of a language which is Bhashaind, the language and language code and then use has_and_belongs_to_many with user model I'm not sure That this is the right approach for this problem. Any suggestions? While you can do a Sirijlaijd array and selected all of a string on your user model languages Can Store It depends on if you plan to use them stored language-user data, if you want to use them as search parameters, it means that you represent it To be an HABT should be If you only have data to show on a user show page, and nothing else, then store it on a string or text attribute and serialize & lt; - de-serialize can work when necess...

bamboo not downloading PHP files -

I only need bamboo, it's artisan and composer Which is in the / folder. It just wont do this. My pattern is: ** / *. * and the folder is / . Unable to download artificially shared artifacts: What to do?

javascript - how to loop through an object and test for if it's the only key present -

इस सवाल का पहले से ही एक उत्तर है: 9 जवाब मैं jQuery का उपयोग कर रहा हूँ धारावाहिक जेएसओएन () मूल रूप से, मेरे पास एक ऐसा फ़ॉर्म है: & lt; इनपुट नाम = 'स्टोर [उत्पाद] [] [प्रकार]' प्रकार = 'टेक्स्ट' मान = 'टेबलशेव' / & gt; & Lt; textarea name = 'स्टोर [उत्पाद] [] [विवरण]' & gt; & lt; / textarea & gt; & Lt; textarea नाम = 'स्टोर [उत्पाद] [] [कीमत]' & gt; & lt; / textarea & gt; जब सीरियल किए गए दिखते हैं: {"store": {"products": [{"प्रकार": "टेबलशेव", "विवरण" : "वाकई अच्छा दिखता है, उसे खरीदना चाहिए", "मूल्य": "20.99"}]}} उपयोगकर्ता / विवरण, मूल्य, और अन्य विशेषताओं को बदल / हटा सकता है। मूल रूप से, अब यह ऐसा दिखता है: {"store": {"products": [{ "प्रकार": "टेबलशेव"}]}} // बस टाइप डीबी को भेजा गया है मैं जो चाहता / चाहती हूं लेकिन जो मैं हासिल करने की कोशिश कर रहा...

javascript - Do I really need to use ajax for non-page-loading website? -

Image
To talk directly, I'm preparing an online test series (/ objective exam) website with PHP. Let me tell you that, I want to load the entire test series at one time, so that after starting the test, the user will not have to wait for the next or previous questions. (I'm trying to do this with AJAX). I also keep a 'question map' for tracking and tell the user about the questions that are being tried as a related demo GUI picture. Now I have There are 2 questions. 1) Is this really possible? To maintain the question map, if the system is loading the next page without calling the database (as is the Ajax) 2) How to do and whether I really need to use AJAX template for my purpose Note: I want all new questions to be loaded with no minimum / minimum page load, but proper DB calls should be maintained. Any suggestions are appreciated or any new way of getting it ?? First of all, you are a bit confused about AJAX. The AJAX primary method for client side calls is ...

javascript - Node.js event loop not making sense to me -

I am new to node. Js. I am Jim R. Wilson is working his way through "nod.js the rayed way" and i am working in a paradox in the book (and myself in node. Js?) That i do not match any amount of googling With my satisfaction for In this book and in other resources duplication has been said that I have seen online that node If the call runs in response to some event line-by-line until JS is complete, then the event loop does the revenue with the waiting for the next callback or with the volume. And because Node.js is doing anything with a single-threaded (and clearly cluster module, it also runs as a single process), my understanding is that most, only a Segment Javascript code execution at one time. Am I properly understanding? Here is the paradox (in my mind) if this is the case then the node. How is JS so much concurrent? Here is an example that shows my confusion, it is to run a directory of several thousands of XML files and to remove each relevant bits in a JSO...

python - Django Failed to install index for? -

मेरी डीजेन्सी साइट को फेडोरा सर्वर पर माइग्रेट करने और Python manage.py syncdb / test परिणाम निम्न में चलाने का प्रयास करते समय त्रुटियों। मुझे यह तय करने के लिए कैसे आगे बढ़ना चाहिए कि ये त्रुटियां क्या हैं? सिरेमिक @ astro1: ~ / tmn_project & gt; & gt; Python manage.py test alias 'default' के लिए टेस्ट डेटाबेस बना रहा है ... admin.LogEntry मॉडल के लिए इन्स्टॉलेशन इंस्टॉल करने में विफल रहा है: (1, "/ tmp / ibj971An '(एर्रकोोड: 2) फ़ाइल में बना / लिखना नहीं कर सकता" ) Auth.Permission मॉडल के लिए सूचकांक स्थापित करने में विफल रहा है: (1, "/ / tmp / iboMFLon '(त्रुटि कोड: 2) फ़ाइल में बना / लिखना नहीं कर सकता) auth.Group_permissions मॉडल के लिए सूचकांक स्थापित करने में विफल: (1," '/ Tmp / ibIrTwdn' (एर्रोड: 2) '' फ़ाइल बनाने / लिखने में असमर्थ। Auth.User_groups मॉडल के लिए सूचकांक स्थापित करने में असफल: (1, "फाइल / टीएमपी / ib0aTc3m '(फाइल को बना / लिखना नहीं) त्रुटि: 2) "auth.User_user_permissions मॉडल के ल...

Retrieving Multiple Result sets with stored procedure in php/mysqli -

मेरे पास एक संग्रहीत प्रक्रिया है जिसमें एकाधिक परिणाम सेट हैं I प्रक्रिया के गुणकों को बनाने (param1 INT, param2 INT) मैं उन परिणामों को प्राप्त करने के लिए mysqli में निर्धारित दूसरे परिणाम के लिए कैसे आगे बढ़ूं? ) शुरू से चुनें तालिका 1 WHERE आईडी = param1; SELECT * table2 WHERE id = param2; एंड $ $ PHP कुछ ऐसा है: $ stmt = mysqli_prepare ($ db, 'कॉल गुणक (?,?)'); Mysqli_stmt_bind_param ($ stmt, 'ii', $ परम 1, $ परम 2); Mysqli_stmt_execute ($ stmt); Mysqli_stmt_bind_result ($ stmt, $ id); तो यह वह हिस्सा है जो मुझे काम करने के लिए नहीं मिल सकता है। मैंने अगले परिणाम सेट पर जाने के लिए mysqli_next_result का उपयोग करने की कोशिश की है, लेकिन इसे काम करने के लिए नहीं मिल सकता है हम इसे mysqli_store_result और mysqli_stetch_assoc / array / row के साथ काम करने के लिए प्राप्त कर चुके हैं, लेकिन कुछ कारणों से सभी इन्ट्स रिक्त स्ट्रिंग के रूप में लौटाए जाते हैं। क्या कोई भी इस पर पहुंचता है और इसका कोई समाधान है? मुझे लगता है कि आप यहाँ कुछ याद कर रहे ...

Opencart modules and vqmod not working on custom templates -

I recently started a shop operated by opencart I bought a custom template for my store. All have gone well for this - I thought I bought some modules and they are not working on a custom theme. I've switched back to the default theme and everything works perfectly so I thought it was only due to the module. So I went ahead and bought another module and it was on my custom theme Does not even work. Also, vqmods do not work on my custom theme too. Here's my site: Scroll down to see the "Exploding past" module, they do not behave as they should be 3 of them: the list of side , Carousel and wall of images on the right. I have also installed a vqmod for this page that displays all the images, it works for the default but not for my custom: I would like to know Why is that so? Is it because custom templates have their own settings and need to configure modules to fit custom templates? If I was using these modules on a different subject, would they have to ad...

c - Touch sensor not working -

I am trying to create a very simple program in RobotSee. In this program the robot will proceed until the touch sensor is killed. #pragma config (sensor, s2, touch sensor, sensor touch) zero setmotor (int a, int b) {motor [motor a] = a; Motor [motor b] = b; } Work Main () {wait1Msec (100); // wait for the sensor of setMotors init (50, 50); While (sensor (touchscreen) == 0) {// nothing} setmators (0, 0); } This code should be forwarded to the robot until the touch sensor is triggered. Whenever I try to do anything with touch sensor, it does not work. When I output output to the debug log, it shows 180 is pressed and 1024 is issued. I have verified that it is working normally on the brick by looking at the value. Robot C Edition: 4.0 Apparently, your touch sensor is Not clear - I can get it from the document - how it can be fixed in the code, but the sensor will be clearly put in raw mode around a work (if the situation varies in the future), and then calculate the boole...

path - ThreeJS Curving Stream Animation -

I am new on this, so please forgive me if I am not providing enough information about anything, but .. I'm trying to make a type of cueing stream, like water from a fountain, with more distinct particles than just a continuous stream. I accept, I do not know that three JSOsO Where in the form of documents, it seems incomplete. Actually, I want to take the particles out of one point and move on towards the other. I think I can use the trump card or something (as far as I know) I can specify a curve with a ridiculous number (starting and ending the curve, rotation, and center) The distance to Apex?) And then I think that there is a direct way of taking some steps with a path. If you have a limited amount of objects that you want to move with the path, 0 to 1 To use some type of function, / Li> Pass the code easy with Curve.getPoint (distance) or by using some kind of physical particle engine, such as Add some randomity at this point or

php - Laravel 4.0 Using Codesleeve Asset Pipeline Downloding all Assets on Each Refresh -

We have got Kodhaave's asset pipeline - up is running on our server, but for some reason it is completely The ignoring of the Htaccess header and your cache settings config files look like this: 'cache' = & gt; Array ('output'), 'cache_services' = & gt; New Acetic \ cache \ filesystem cache (App :: Mac ('path.storage'). '/ Cache / asset-pipeline'), 'cache_client' = & gt; Any help will be highly appreciated - App is online test mode = "post -The text "itemproc =" text "> PHP also does not know about your .htaccess file. PHP allows content in your server (in this case Apache), and the server parses the .htaccess file to determine the appropriate headers. You can set the header in PHP, but if your server is actually sent to the last message and any header attribute can like it. The problem with this is that the .htaccess file is not configured correctly, or the content is being s...

python - string recursion problems -

I'm relatively new to Python and especially recursive. I am trying to solve this problem for a little while, but I have been made better so far I have to create a function that takes 2 strings and see if The elements of the first string are the second string, if this happens, then it returns true if it is not wrong, then "carpool" and "prolo" or "elephant" and "xf" in the first case the recurring logic will return the truth and the second Matters It would be wrong. / P> This is what I am trying to do. I have calculated a number that if I match the elements then I can increase it and in the end if this is equal to the lane (str2), then i print 2. The big problem runs separately from 2 strings, how should I know this? Compare DRF (SR1, SR2): count = 0 if str1 == str2: return "true" aliha str1 [0] == str2 [0]: Count = count + 1 return LetCheck (str1 [1:], str2) elif str1 [0]! = Str2 [0]: Return LetCheck (str1 [1:], str2)...

c++ - SDL2 / SDL Image strange PNG behavior with RGB values -

I have found an interesting thing that I am not able to debug but I want to solve because it is for development Important I need a small device. Actually, all reduce the fact that I have a PNG load in SDL_Surface IMG_Load ("filename.png") . The skeleton of the code is surface = IMG_Load ("filename.png"); Then apply this tool to pixels by a pixel by implementing a color map (which is a unordered_map gt; ) Should copy. It works basically, but there are slight changes in the RGB values ​​of several pixels, so this replacement fails. For example, when a pixel 255,255,255 is correctly stored in the form of 0xFFFFFFFF in the surface, another pixel, let's become 81, 60,48 82,62,51, I thought of gamma correction, but the image itself Because the color switch is applied before two surfaces, and later pulled on any texture. Any clues? I am not interested in finding a second solution to my problem because I should be able to make accurate pixel color swi...

In ASP.net C# is there a way I can pass control to my CS from Javascript? -

I am trying to implement Facebook login in my application as per following this guide: The Facebook stuff are all working fine :) However after the completion of Facebook authentication, I will be redirected to the next part of the sign up before entering the webpage I want to pass all the appropriate variables in the C # code process. I know how to use HTML tags like HTML tags: & lt; Asp: ImageButton id = ctrlNext runat = "server" imageUrl = "Btn_Next.gif" onclick = "ctrlNext_Click" & gt; & Lt; / Asp: ImageButton & gt; But if there is currently control within a javascript function after the completion of Facebook - then I do not want the user to manually click on a button to continue - Ideally they click the Facebook login button, call the Facebook API, and then redirect the page to store the information. Make sure to include the following by using the statement: using System.Web.Services; Your page method will...

java - Null pointer occurs when removing listview item -

मेरे ListView से कोई आइटम निकालने का प्रयास करते समय मुझे एक शून्य सूचक अपवाद मिलता है। मेरा मानना ​​है कि ऐसा इसलिए है क्योंकि मेरी सूची दृश्य मौजूद बच्चे के विचारों को प्राप्त करने की कोशिश कर रहा है, लेकिन मुझे नहीं पता कि यह कैसे रोकना है क्योंकि मेरे विस्तार योग्य LISTView को बच्चे के विचारों की आवश्यकता होती है। java.lang.NullPointerException Com.hello.ExpandableListAdapter.getChildrenCount (एंड्रॉइड) पर एंड्रॉइड। एक्सडिएंट लिस्ट कनेक्टर। रीफ़्रेश एक्सपग्रुप मेटाडेटालिस्ट (एक्सपेंडेबल लिनक्स कनेक्टर। जेवा 63) और एंड्रॉइड.विदेट। एक्सपेंडेबल लिस्ट कनेक्टर। एक्सेस $ 000 (एक्सपैंडबल लिनक्स कनेक्टर। जावा) एंड्रॉइड। ExpandableListConnector $ MyDataSetObserver.on Changed (ExpandableListConnector.java:857) android.database.DataSetObservable.notifyChanged (DataSetObservable.java37) पर android.widget.BaseExpandableListAdapter.NotifyDataSetChanged (BaseExpandableListAdapter.java:56) com.hello.MainActivity.InactiveAlarmSorter3000 पर (मुख्य गतिविधि.जावा: 301) com.hello.MainActivity.d...

Android device doesn't wake up from Activity postponed action (FLAG_TURN_SCREEN_ON set but nothing happens) -

My app receives walkcock, but can not wake device from activity this is my code : create on public zeros (super.onCreate (); // Acquisition Wakelock Logic Here the new timer (). Schedule (New Timer Task) {@ Override Public Wired Run () {mHandler.obtainMessage (). SendToTarget ();}}, 30000); .....} Public handler mHandler = new handler () {Public Zero Handle Message (Message Message) {turnScreenOn (); }} Private Zero Turnscreen () {Log.i ("main activity", "current screen"); GetWindow () AddFlags (WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | Window Manager. LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); } In the log I see that the turn screen is executed but the screen is still closed when I am performing this method with the CREATE () and service activity - everything is fine But I want to execute it with activity. I have not received any information that is forbidden, I do not see any error in the logs. Is i...

visual studio 2010 - How do I set my palette to grayscale in c++ -

Image
I am reading a live feed from a mono camera and need to take a snapshot when pressing a button. If I convert, the camera sends me a bitmap (8 bpp) for further image processing, so the color becomes all odd in this way I'm guessing because I use bitmap Is not set correctly, so I googled something and came in some code in VB, which sets the bitmap color palette for Gray Scale, I want to do the same in C ++ under Visual Studio 2010, only The constructor of the color palette has been turned off in C ++, thus I have no way of declaring a new grayscale palette and then assign it to my bitmap. Below I have the example code written in Visual Basic: Dim BMPB as the system in the form of Bitmap DIIL Pal. Drawing Imaging Coloreplet pal = BMPob Palette I = 0 to 255 pal.Entries (i) = Color.FromArgb (i, i, i) Next bmpobj.Palette = pal So what I am asking is this: By the way Also set my bitmap palette to grayscale? I think, by changing just the color palette, your image will...

jquery - Conditional Flag/event marker in highchart -

मैं उच्च चार्चे में एक घटना पर एक सशर्त आधारित फ़्लैग मार्कर की तलाश कर रहा हूं। वास्तव में मैं क्या कर रहा हूं: सीएसवी से डेटा प्राप्त करना और चार्ट को प्रतिपादित करना, यदि यह विशेष मान से परे है, तो मुझे उन घटनाओं को ध्वज करने की आवश्यकता है ताकि उपयोगकर्ता आसानी से एक बड़ी रेंज में देख सकें। / P> Ex: इस मामले में, डेटा सीएसवी से लोड किया जाता है, और उन घटनाओं को चिह्नित करना होगा जो कि बेयर्न 75 / इस तरह से चलाए जाते हैं। मैंने अन्य संदर्भ / उदाहरण के साथ कोशिश की है। JQuery में स्थिर / कड़ी कोडित का उपयोग करके, वे सशर्त आधारित झंडे का उपयोग नहीं कर रहे हैं। शुरुआत वाले झंडे पर केवल highstock.js में उपलब्ध हैं। आपको इस प्रकार के साथ additonal serie जोड़ने की आवश्यकता है, उदाहरण के लिए कॉलबैक (एडसरीर विधि) में।

android - Activity not working -

Image
So I'm using BaseGameUtils to try and get Google Sign in to sign up. Now I've changed my activity, but I'm getting some compilation errors with some setContentView () or whatever uses the original activity, it looks like this, Error image: unused activity / import: BaseGame activity loader activity expands and spreads loader activity activity Ui is So, if you've already BaseGameActivity import, you do not need to import Android .app.Activity. If you use Eclipse, simply remove [ Ctrl + Shift + O ] to remove unused files.

find and replace with multiple for loops in Python -

I want to update a text file so that all the letters have a space between the letters. loops of for import sys, fileinput ActiveFileR = open ('text.txt', 'r') while reading the file line Cap 'alphabet' ['A', 'B', 'C', 'D', 'E', 'F', 'G']; Active FileW = Open ('textW.txt', 'w' , 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T For line in ActiveFileR: 'U', 'V', 'W', 'X', 'Y', 'Z'] in: Capelfabet for ReChr1: Capelfbite in ReChr2 for: ActiveFileW.write (line Location (ReChr1 + ReChr2, ReChr1h However, as a result of 676 (26 * 26) lines in the output file for each line in the input file) I understand why this happened, but I do not know how to fix it All the places have been added before I go to the next line until you want...

javascript - AngularJS reevaluate directives on change of $location -

I am trying to write an nav menu that is hidden / displayed information based on the path of the URL . So far, I have the following: {// Remove the first part of the path. Used to match against the menu list. Var currentPath = /^\/?([^/]+)/.exec($ location.path ()) [1]; // Check to see if the path is similar to the attribute if (attrs.jkSection.toUpperCase () == current path.uppressive ()) element.show (); Else element.hide ();}; Return {Restrict: "A", Link: Linker};}); Although this page works on load, when I change the location, the instruction is not reused. I thought I needed to add a watch at $ location, but I'm not sure what kind of callback I need, so that my instructions can be re-evaluated. I think the part of the issue is that the use of HTML jk-section instructions (views viewed in the sidebar) is ng-view Not part of the component. But at this time, I do not want to refactor my layout $ route object? You do not want to use ng- Hyde ...