Posts

Showing posts from July, 2012

c# - Cookies Response Issue With AutoPostBack -

I did not know how to keep the title because I could not describe the problem, here is the problem. . (This is the only problem in the short term) I have to say that two checkboxes set for autopost back = true secured zero cbPop_CheckedChanged ( Object sender, event ergues e) {response. Cookies ["User Restrictions"]. Value = request Cookies ["User Reference"]. Value + "1"; Label1.Text = Request.Cookies ["UserPreferences"]. Value.Length.ToString (); } Secure Zero cbDown_CheckedChanged (Object Sender, EventArgs e) {Response.Cookies ["UserPreferences"]. Value = Request.Cookies ["UserPreferences"]. Value + "2"; Label1.Text = Request.Cookies ["UserPreferences"]. Value.Length.ToString (); } What do I expect here: I hope the text of the label will show "1" when I check the first checkbox And to show "2" when I second check box What do I get here: I get "1" twic...

nested directives in angularjs -

I have an instruction with an instruction in it detail of parent instruction (extension tile) (a CSS class Clicking on the nested directive (click address) will close the expanded tile (hypothetically, to remove the CSS class animation by adding the animation + the boolean is expanded, adding tiles to the truth), and to expand the parent directive Tile + Ulian wrong extended tile) I am unable to correctly this problem, and nested instructions how angular. Any advice appreciated. & lt; Li class = "gallery-tile" extension-tile & gt; & Lt; Section square = "inner-tile" & gt; & Lt ;! - Not expanded - & gt; & Lt; P class = "tile-title" ng-if = "extended tile" & gt; Not Extended & lt; / P & gt; & Lt ;! - Expanded - & gt; & Lt; Section ng-if = "extended tile" & gt; & Lt; P & gt; Extended tiles & lt; / P & gt; & Lt; Div id = "CloseBtn" ng-click = ...

html - Cannot pull webpage into an iframe? -

Image
I am trying to drag a webpage into an iframe on another webpage but it is giving me a blank box. Any idea why this is not working? My page: () Iframe code: & lt; Iframe src = "https: //www.identifix.com/FOTW/FixFrame.aspx" width = "700" height = "600" scrolling = "no" id = "infra-spam" frameborder = "0" & ​​gt; & Lt; / Iframe & gt; www.identifix.com using external domains Their block site in an iframe. You can see here that they have set up X-Frame-Options: SAMEORIGIN which iframing all external domains on their site. Read more .

go - What's the proper way to convert a json.RawMessage to a struct? -

मेरे पास यह struct प्रकार SyncInfo struct {लक्ष्य है स्ट्रिंग} अब मैं ElasticSearch से कुछ json डेटा पूछता हूं। स्रोत प्रकार का है json.RawMessage । मैं चाहता हूं कि मेरे स्रोत को मेरे SyncInfo पर मैप करना है, जिसके लिए मैंने चर mySyncInfo बनाया है। मैंने सोचा भी यह कैसे करना है ... लेकिन यह अजीब लगता है मैं पहली बार मार्शलजसन () को [] बाइट प्राप्त करने के लिए कॉल करता हूं और फिर उसे json.Unmarshal () पर फ़ीड करता है और मेरे स्ट्रक्चर के लिए एक सूचक। यह ठीक काम करता है लेकिन ऐसा लगता है जैसे मैं अतिरिक्त हॉप कर रहा हूं क्या मुझे कुछ याद आ रही है या यह कि json.RawMessage से struct ? var mySyncInfo SyncInfo jsonStr से प्राप्त करने का इच्छित तरीका है, _: = Out.Hits.Hits [0]। स्रोत। मिर्सलजसन () json.Unmarshal (jsonStr, और mySyncInfo) fmt.Print (mySyncInfo.Target) जैसा कि कहा गया है, अंतर्निहित प्रकार json.RawMessage है [] बाइट , ताकि आप json.Unmarshal के लिए डेटा पैरामीटर के रूप में json.RawMessage का उपयोग कर सकते हैं हालांकि, आपकी स...

c# - Absolute path string has characters that break URL -

I am trying to get a full path and running a local HTML file in a web browser control. string exeFile = (new system.URI (Assembly.Net Entry (assembly). CodeBase). AbsolutePath; string exeDir = path.getDirectoryName (exeFile); string full path = path.combin (xidir , "Html \\ indexom"); This.webBrowser1.Url = new system.URI (fullpath, system.yurikind.assolute); This is not working because full path ends Happens: c: \ users \ tunnelld2 \ documents \ visual% 20studio% 202012 \ Projects \ qTab2 \ qTab2 \ bin \ debug \ HTML \ index.html I have several times Where This path appears true: View% 20studio% 202012 If I use the string manually: "c: \ users \ tunnelld2 \ Documents \ visual studio 2012 \ projects \ qTab2 \ QTab2 \ bin \ debug \ html \ index.html " This works fine how to remove% 20 from my string, so that I present the HTML page string exeFile = (new system.URI (assembly.gate entryassumband). Codebase, true)). AbsolutePath; You can spec...

Strange difference when running a Python file directly or packed with py2exe -

I create an application that, when running on Windows, % USERPROFILE% \ AppData \ roaming Directories for different types of files - otherwise, on Linux, only the $ HOME directory should be used: and % USERPROFILE% \ documents Problem: My code controls the shell.SHGetFolderPath () function differently, depending on whether I run the .py file directly or py2exe Is packed by. I am using this function if it is on Windows (or not), then there is a way to program it to know. When running the .py file directly, everything is the same. When running the packaged .py file via Py2exe, the generated .exe file assumes that this is a non-Windows system and the % USERPROFILE% directory for both codes is directly $ HOME , except for this difference, the rest of the program runs fine (each version is in accordance with its different paths successfully). Question 1: What could be the reason for this? Question 2: Is there a better way to detect Windows / non-Windows environments? I t...

What does addChild/removeChild do to memory in Actionscript 3? -

I do not understand how memory works in Epistula 3. I prepare several buttons and store each one of them in an array, those buttons are used to play different music files, and I want to see that one is a special color (red) and The rest are playing to be white I call the following code when the currently selected button should be replaced with a different button: removeChild (songSelectButton [currSong]); Var Songs Selvight: Button = New Button (empty, "Picture / Track Button nose .jpg", TRACK_SELECT_WIDTH, TRACK_SELECT_HEIGHT); Song cheek button [karasong] = lyrics white; This allows the array to have the right buttons, however, I am worried whether I am wasting memory or not. Does garbage collection take care of this or do I need a better approach? In most cases, the garbage collection is very clever and can clear whatever makes a mess . But it can take around its time, and it can actually bind the CPU when it decides that it is to talk so careful management ...

user interface - Python's tkinter Buttons - How to get return values of functions from other buttons? -

I am working on a typewriter interface for an assignment that opens a file, reads and modifies it , Then it's a new file. I have such buttons that, when clicking, allow the user to browse their computer for the proper file. Those different functions return the filename ("Random InputFile.txt") My problem is that I have a third button, which should take those two values ​​and then use them in the process of reading / writing should do. I'm not sure how to give input / output filenames as a parameter to read / write tasks. Should I pass the file name as a Global variable within the corresponding function? Tkinter.filedialog import from askopenfilename to tkinter.filedialog import askaveasfilename def openGUI (): wn = Tk () wn.title ("homework 10 - CSIS 153") openFileButton = button (wn, text = "open") Command = openFile) openFileButton.pack () openFileButton.place (bordermode = out, height = 90, width = 90) saveFileButton = button (wn, text...

What is the difference between the InRange method in opencv with python/cv2 and c#/emgu? -

I'm trying to convert a small opencv dragon script to emgu with c #. Code in Python COLOR_MIN = np.array ([104, 34, 255], np.uint8) COLOR_MAX = np.array ([124, 34, 255] ], Np.uit 8) frame_ thrashed = cv2.inRange (hsv_img, COLOR_MIN, COLOR_MAX) cv2.imshow ("frame threshold", frame_ threaded) correctly image threshold Which is displayed by cv2.imshow. I changed the code to C # as: var min = new HSV (104, 34, 255); Var max = new HSV (124, 34, 255); Var thresh = hsvImg.InRange (minimum, maximum); CvInvoke.cvShowImage ("thresh", thresh); Here only one black image has been created - nothing seems to match that threshold. In both cases, I am using the same PNG file as input. I have written the Python Code on the OSX and the .net code is running inside the win8 VM - can this be something with Color Profiles? Any tips or tricks to try working .net version is very much appreciated !! Thanks! The issue seems to be that I am using the old versio...

ruby on rails - Sign Out working locally, but not working on Heroku -

So I'm planning for logout / logout I have noticed that my sign_out link is working locally well , But I did not work on Hiroko even after adding, committed and pushing. Here is what I see in my beat log 2014-04-23T22: 16: 09.987029 + 00: 00 Heroko [router]: on = info method = Path = / user / sign-out host = peaceful-toll -4795.herokuapp.com request_id = 16559a9f -0cff-4179-8aeb-d393ae44de38 fwd = "108.233.86.201" dyno = web.1 connect = 60ms service = 34ms position = 404 bytes = 1616 Note that it tries to use when it should be DELETE Get the method of signing out when using the GET method when my paths are correct Huh? Rack path: prefix verb URI pattern controller # operation new_user_session GET / user / sign-in (.format :) / devise / Session # new user_session POST / Users / Sign-In (.: Format) devise / sessions # create_user_session DELETE /users/sign_out(.:format) devise / sessions # user_password POST / users / password (.format :) format / passwor...

ios - Temporary disable physics from CCSprite -

I am currently searching for cocos 2D in combination with SpriteBuilder and I am bouncing stuff around. It is quite fun:) I am trying to find out the following: - On the Spruthbugler, I make a CCSpract, and for this I enable physics. - I can add it to XCode, and whatever I want with it, in addition to it, the phantom is reacting according to the applied physical science settings. great. Now, what I would like to do, is to disable physics from this phantom in code. I'm not getting any way in the cocus 2D API which does the trick. Can you help me? Thank you for your time and support;) I write the correct answer then : sprite.physicsBody.sensor = TRUE;

php - Get last ID after SQL insert -

Below this code, some data is included in a MySQL database. After inserting the page is loaded on this record , But the variable ($ insertion) I'm trying to load is at the top. Can anyone help? $ pdo = Database :: connect (); $ Pdo- & gt; Set Attribution (PDO :: ATTRRAMOD, PDO :: ERMMDMEXEPEPS); $ Sql ​​= "Rider (first name, second name, email, mobile, landline, dub, adressline 1, city, county, postcode) values ​​(?,?,?,?,?,?,?,?,?,?,?, ?) "; $ Q = $ pdo- & gt; Ready ($ sql); $ Q- & gt; Execute (array ($ firstname, $ secondname, $ email, $ mobile, $ landline, $ birth date, $ streetaddress, $ city, $ county, $ postcode)); $ Insert = mysql_insert_id (); Database :: Disconnect (); Header ("Place: .add.php ID = $ insert"); Use $ pdo-> LastInsertId () is getting the last id after inserting SQL.

How to serialize Scala Map to Json in PlayFramework? -

It seems that the game Jason Library is unable to serial Scala archive. Is there any alternative? I just need to dump the data out of the map. Import Slaal. Converter._import play.api.libs.ws.edu._ import scala.concurrent.executionContext.Implicits.global import drama. Libsson object is temporary {// true serializing wal javaMap = new java.util.HashMap [string, string] () javaMap.put ("abc", "def") // output: res1: string = {"abc": " Def "} Jason.Stringes (Jason. Tojson (Java Map)) / False Serialization Val ScaleMap = Map (" ABC "->" Def ") // & gt; ScalaMap: Scala.collection.immutable.Map [String, String] = Map (ABC -> Def) / Output: Ridge 2: string = {"blank": incorrect, "traceableAugain": true} Jason.Stringes (Jason ToJson (scalaMap)) // & gt; Res2: string = {"empty": incorrect, "traceable_again": true}} You are importing the wrong JSON library. Import pl...

c++ - Implementing a template Linked List class using arrow (->) -

I have a problem with implementing a template linked list class. I have created previously linked lists, but the form of a template Not in In the .CP file (implementation) it seems that members are not recognized as indicator variables and - & gt; These pointers do not work after using . There is no drawing of syntax error anywhere near this issue, but when I highlight the variable, the details are "unknown" and the description of the variable (Anyone who is a stranger is nothing that can get under syntax error.) // list linked .h #include & lt; Iostream & gt; using namespace std; Template & lt; typename DataType & gt; Class list {private: structure list node {datatype datatum; ListNode * Next; }; ListNode * head; ListNode * Cursor; Public: list (underlying = 0); List (const list and others); In the list & amp; Operator = (const list and other); ~ List (); Enter zero (constant datatype and newditim); Zero removal (); In place of zero (const...

Oracle Char exceeds 255 -

Is it possible to create a table with four (300) in Oracle? I read around and found it "The length of a chart column has been fixed, when you make the table, you declare any length from 0 to 255 May be. "" But I found out that CRAR (500) was created with. I have a problem "The field in the data file is more than the maximum length" and the string to insert the length is 499. Edit: Contents of control file: option (leave = 1, errors = 99 99 99, receivers = 61640000, bindsaj = 61640000, rows = 2000) Load data infel 'hour'_04 csv' 'badfile' hours_04.bad 'table ends in xd_hours field ";" '' (Name is four, wydatai date, "yyyy-mm-dd", hour decimal decimal, external letter (500), app four, bell type, work integer externality, subproduct integer external, project integer external, function character, organization Well, the length of CHAR in Oracle can be between 1 to 2000 bytes. Maybe you read it ...

Programaticaly simulate user interaction for Unit Testing in Google Dart -

I'm trying to write some unit tests for complex menus in one place and I simulate user interaction with that menu Want to do I've found that it is possible to simulate a click with the query code selector ("# myElement"). () , but I would like to be able to trigger more complex events like mouseDown document , mouseMove , TouchStart and touchEnd in a particular place. , e.t.c. I found a way to do this. It's still not perfect or not right, but it provides anything I need. import 'dart: html'; Import 'dart: async'; Zero main () {// Create target element DivElement menuSprite = new DivElement () .. style. Hight = "50px" .. style.wind = "50px" .. style.bird = "1px solid black"; document.body.children.add (menuSprite); // Esine Event Listener MenuSprite ..onMouseDown.listen ((E) => MenuSprite.style.backgroundColor = "red") ..onMouseUp.listen ((E) => Menu Sprite.style.backgroundColor = ...

xml - Struts2 The requested resource is not available -

Image
मैं struts के लिए नया हूँ मेरी निर्देशिका संरचना है: struts.xml & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "UTF-8"? & Gt; & Lt;! DOCTYPE स्ट्रट्स PUBLIC "- // अपाचे सॉफ्टवेयर फाउंडेशन // डीटीडी स्ट्रट्स कॉन्फिगरेशन 2.0 / एन" "http://struts.apache.org/dtds/struts-2.3.dtd"> & LT; struts & gt; & lt;! - उत्पादन में इन निरंतर तत्वों को हटा दें - & gt; & Lt; निरंतर नाम = "struts.enable.DynamicMethodInvocation" मान = "गलत" / & gt; & lt; निरंतर नाम = "struts.devMode" मान = "सही" / & gt; & Lt; पैकेज का नाम = "ऐप02 ए" नाम स्थान = "" विस्तारित करता है "" स्ट्रैट्स-डिफॉल्ट "& gt; & lt; एक्शन नेम = "उत्पाद_इनपुट" & gt; & LT; gt परिणाम और; /jsp/Product.jsp< / परिणाम & gt; & Lt; / कार्रवाई & gt; & Lt; एक्शन नेम = "उत्पाद_सहेव" वर्ग = "ऐप02 ए। उत्पाद" विधि = "...

user interface - Basic Multiply and Divide Java GUI -

I am trying to find the number in which the user divides the input by 2 times the number of frames or 3 Depending on which button they decide to click I have a hard time trying to do this, I know that it is necessary to be in the methodology system. import javax.swing. *; Import java.awt. *; Import java.awt.event. *; Public Square Quiz4 Extends JFrame ActionListener {// Global Variable Declaration // Our List Input Fields Private Jellabal Values ​​Labels = New JLABEL ("Enter Value Between 1 and 20"); Private JTextField valueField = new JTextField (25); // Create Action Button Personal Zabetan Multibutan = New Pocket ("x2"); Personal Zebton Divide Button = New Pocket ("/ 3"); Private JScrollPane displayScrollPane; Private JTextArea display = new JTextArea (10,5); // input number private BufferedReader infirst; // Output Number Private Number Exited; Public Quiz 4 () {// Super ("List Transfer Tool"); GetContentPane () setLayout (new border l...

Nginx proxy pass append request parameter to upstream -

ये मेरी साइट है - अपस्ट्रीम डेमो {server server1: 31337; सर्वर सर्वर 2: 31338; सर्वर सर्वर 3: 3133 9; सर्वर सर्वर 4: 31340; 64 पालवलिव; } सर्वर {80; Server_name www.site.org; पुनर्लेखन करें ^ https: // $ server_name $ request_uri? स्थायी; स्थान / {proxy_redirect बंद; Proxy_set_header एक्स-रीयल-आईपी $ दूरस्थ_एडर; Proxy_set_header X- अग्रेषित- $ proxy_add_x_forwarded_for; प्रॉक्सी_सेट_हेडर एक्स-फॉरवर्ड-प्रॉटो $ स्कीम; Proxy_set_header होस्ट $ http_host; Proxy_set_header X-NginX- प्रॉक्सी सच; प्रॉक्सी_सेट_हेडर कनेक्शन ""; प्रॉक्सी_http_version 1.1; Proxy_set_header $ http_upgrade अपग्रेड करें; प्रॉक्सी_सेट_हेडर कनेक्शन $ connection_upgrade; Proxy_cache एक; proxy_cache_key sfs $ request_uri $ योजना; प्रॉक्सी_पास http: // डेमो; }} मुझे लगता है जब मैं www.site.org को खोलता हूं, तो उसे किसी भी अपस्ट्रीम सर्वर से प्रॉक्सी सर्वर 2: 31337 / mysite के रूप में पास करना चाहिए मैं कैसे जोड़ूं / Mysite अनुरोध पैरामीटर? क्या आप यह कोशिश कर सकते हैं स्थान / {Proxy_redirect...

Context does not reach the pagein python-django from views.py -

I have a Django app and I am trying to send some context views.py on a specific page: Pre> but the reference does not reach Newsample.html. Is there any mistake in code syntax? Profile form () There is some way in my forms which I think is nothing to do with reference. Any help? The templates presenting the context are 3 parameters, so you should give your code to Returns (request, "sample / news", context) html>

java - tdd steps to write junit tests for decorator pattern -

क्या निम्न कार्यक्षमता के लिए इकाई परीक्षण लिखना संभव है? या, क्या टीडीडी का उपयोग करके कार्यक्षमता के टुकड़े को नीचे विकसित करना संभव है? सार्वजनिक ज़िप इनपुटपृष्ठ स्ट्रीमिंग (फ़ाइल ज़िपफ़ाइल) फ़ाइलनोटफ़ोल्डर एक्सपशन {ZipInputStream ZipInputStream = नया ज़िपइन्प्रॉस्टस्ट्रीम (नया फ़ाइलइनपुटस्ट्रीम (ज़िपफ़ाइल)); ज़िप इन्पुटस्ट्रीम वापसी; } मुझे पता है कि यह सवाल मूर्खतापूर्ण लग सकता है, लेकिन टीटीडी के लिए एक नौसिखिया के रूप में, मैं ऊपर दिए गए किसी भी समाधान का समाधान नहीं पा रहा हूं।)। आपने एक से दो सवाल पूछे हैं। क्या नीचे के भाग के लिए यूनिट परीक्षण लिखना संभव है कार्यक्षमता का? ज्यादातर लोग इस कार्यक्षमता के लिए एक परीक्षण "यूनिट परीक्षण" नहीं मानेंगे, क्योंकि उसे फाइल सिस्टम से इंटरैक्ट करना पड़ता है। इसलिए यह एक इकाई परीक्षण से एकीकरण परीक्षण का अधिक है। हालांकि, यह संभव है या नहीं, यह वास्तव में एक अच्छा विचार नहीं है। यहां लायक परीक्षण के लिए कुछ भी नहीं है इस विधि का अपना कोई तर्क नहीं है, इसलिए इसका परीक्षण करने में कोई लाभ नहीं है। आप ...

android - Programatically LinearLayout Weight -

Image
I'm trying to grow like a grid, but using LinearLayout . I want to read 3 images after the images in a row and exact below. What I have tried : LinearLayout layout = new LinearLayout (reference); Layout.setOrientation (LinearLayout.VERTICAL); ImageView icon = New ImageView (reference); Item item = getItem (page, index); Logs. E ("tag", item .getDrawable ()); imageLoader.displayImage (item.getDrawable (), icon, R.drawable.ic_launcher); Icon.setPadding (15, 15, 15, 15); Layout.addView (icon); Textview label = new textview (reference); Label.setTag ("text"); Label.setText (item.getName ()); Label.setTextColor (Color.BLACK); the label. Setgravity (Gravity tapes | Gravity CNTAROSISOSOA); Label.setLayoutParams (new layout paragraph (layout paramount. MATCH_PARENT, paragraph layout. WRAP_CONTENT)); Layout.setLayoutParams (New LinearLayout.LayoutParams (Layout P.WRAP_CONTENT, Layout Para. WRAP_CONTENT)); layout.setWeightSum (3F); Layout.addView (label); ...

add image url in CSV in magento -

I have to use the URL of the images to customize product CSV and upload images to Magento. Can someone advise me how to do this? Thank you I know that you do not use the URL using the normal CSV import method (s) Can. Use it instead, it's worth learning.

bash - Write the script to check remote host services running or not -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब यह स्क्रिप्ट है लेकिन आउटपुट गलत है, अपाचे भी इसके शो स्टॉप चल रहा है। मैं Ubuntu 12.04 का उपयोग कर रहा हूँ। ssh -qn रूट @ आईपी if ps aux | Grep [एच] टीटीपीडी & gt; / Dev / null फिर "एपीकेच चल रहा है" एको गूंज "एपीके चल नहीं रहा है" एफई निम्न प्रयास करें: यदि ssh -qn रूट @ ip pidof httpd & amp;;; / dev / null; फिर गूंज "अपाचे चल रहा है"; 0 से बाहर निकलें; Else गूंज "अपाचे नहीं चल रहा है"; बाहर निकलें 1; फाई ये exit आदेश सही EXIT_SUCCESS और EXIT_FAILURE भेज देंगे (विस्तार करने के लिए उपयोगी होगा भविष्य में यह स्क्रिप्ट, अगर आपको ज़रूरत है)। लेकिन एक सलाह: ssh खाते पर sudoer उपयोगकर्ता के साथ चलने के लिए एक दूरस्थ प्रक्रिया के रूप में स्क्रिप्ट को बेहतर करना

java - Why js frameworkss size so small comparing to jar files? -

I'm just curious why the size of the JS framework is very small (usually under 100k), but if you see something There are normally several megabytes of Java framework packages (jar files), or even 100 megabytes. What is making them so different? For one, javascript frameworks are just javascript files (this is just plain text Binaries unlike JARs) So they are just packing as Secondly, they are generally useless and compressed so that the customer can be sent efficiently, while Jar servers only live in servers, so its size is one Less than the problem.

algorithm - Knuth-Morris-Pratt Fail table -

I am studying for an exam and I am looking at the Nun-Morris-Prat algorithm. What is the test table and DFA construction in the exam? I understand DFA construction, but I do not really understand how to make the failed table. If I have an example of a pattern "abababc" then how do I create an unsuccessful table from it? The solution is: Failed Table: 0 1 2 3 4 5 6 7 0 0 0 1 2 3 4 0 But how do I get it? No code understands how to get it. In the unsuccessful table for the value of the cell i s is defined as: take the subcodes of s which is located on i , and the value in cell is the longest of this sub-base Appropriate (not complete string) is the length of Sufi, which is equal to its prefix of the same length. Let's take your example and 6 . The length of the sub Code of s is 6 ababab . It has 6 suffixes: baba , abab , bab , ab and b On the other hand, its proper prefixes are ababa , abab , aba , ab and a . It is now easy to s...

forms - Is HTML5 localstorage appropriate to store input field values? -

I have a question, how to store the local values ​​of some form fields. In my website, users use the keypad to keep the number of items counted. The objects they compute can enter a label for them. The problem is that each user applies different labels to their needs - and, whenever they go to the labels, they are empty. My sites are running through site44.com, which is the server side php. So, in me, I think that using HTML5 local storage can allow the user to keep the label after leaving the site? Is this the right interpretation? Can someone give me a guide if I have 3 inputs - with different IDs - how to set the script? You can use local storage like this: On fn = document.getElementById. ("firstname") value; LocalStorage.setItem ("first name", fn); Var ln = document.getElementById ("lastname") value; LocalStorage.setItem ("Last Name", ln); Var em = document.getElementById ("email"). Values; LocalStorage.setItem ...

product - Cannot initialize the indexer process in magento 1.8 -

I've installed the extension below then did not index it to get the following error "The indexing process can not be started." Please help me solve this problem. Thanks Yasmeen Tariq first app code / community / organic internet / Simple configurable product / catalog / model / resource / eva / mikosul 4 / product / pointer / value / configurable .php file

android - How to work a button inside a fragment -

I have used a piece (which has two buttons inside), but I have no way to do this button. . Keep in mind that I use an activity that is linked to a specific piece. Does anyone know a button to open the button in the Android SDK device? This sample will help you do not forget to make a layout with buttons for this piece public square sampleframe fragment extension {personal button mButton = null; Public Sample Fragment () {} @ Override Public Zero on Destroyview () {super.onDestroyView (); } @ Override Crate on Public Zero (Bundle Saved Instantstate) {Super.Nought (Saved Instantstate); } @ Override Public View Crate View (LayoutInflator Inflator, View Group Container, Bundle Saved InstantState) {View View = inflater.inflate (R.layout.sample_fragment, Container, Incorrect); MButton = (TextView) view.findViewById (R.id.button1); mButton.setOnClickListener (New View.OnClickListener () {@Override Click Public Zero (see V) {// button your buttons on action}}); Return view; }}

disabling Windows phone map control -

My quesiton is: I have a Windows Phone 8 app - it has map controls on the page that reflects the user's status. is. > div> I will just pull a control over the map with the semitransparent background. In this way all the touch events will get stuck in the control, but the map will still be visible under it.

WPF Web browser is not showing an html page -

I am using a web browser wpf control to show an html page. This page looks fine in Chrome and other browsers (not being loaded properly in IE), but the web browser is showing an empty page in control. Please help here I am using the html page. & lt ;! DOCTYPE html & gt; & Lt ;! - saved from url = (0023) http://www.google.com/ - & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Google Maps offers many markers & lt; / Title & gt; & Lt; script src = "http://maps.google.com/maps/api/js?sensor=false" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "map" style = "width: 900px; height: 700px;" & Gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; V...

osx - Analyze CPU or Memory Usage on OS X with XCode Instruments, other possibilities? -

मैं XCode उपकरण का उपयोग कर रहा हूँ ICP और स्मृति । जब मैं उपयोग को रिकॉर्ड करता हूं, खासकर "2 मिनट" के लिए, मुझे "120" / Strong> प्रत्येक प्रक्रिया के cpu / memory उपयोग के मूल्यों (2min x 60sec, 1 मूल्य हर दूसरे) के मूल्य क्या "cpu / memory" उपयोग के "120" मूल्यों के बारे में प्रत्येक प्रक्रिया के लिए औसत मूल्य प्राप्त करना संभव है? XCode उपकरण एक .trace फ़ाइल में लॉग को सहेजते हैं, क्या किसी मानव में सभी मान प्राप्त करने के लिए लॉग को टेक्स्ट फ़ाइल में सहेजना संभव है? पठनीय फ़ाइल? क्या मेरी समस्या हल करने का कोई दूसरा तरीका है? संभवत: अजगर स्क्रिप्ट के साथ मैं चाहता हूं कि सभी को चयनित के cpu और स्मृति का औसत प्रतिशत मान है एक समय अंतराल में प्रक्रिया उदाहरण के लिए, मैं "10" मिनटों के लिए Google क्रोम का उपयोग कर रहा हूं, अब मैं cpu और स्मृति के औसत प्रतिशत मान इस "10" मिनट मैं लॉग को सहेजने के बारे में आपके प्रश्न का उत्तर दे सकता हूं। कुछ उपकरण आपको सीएसवी प्रारूप में ...

voip - asterisk dialplan, forward call to gateway/pstn -

I have a VoIP infrastructure in the company, last digit can dial mobile number in this case: 9 ... they wait for PSTN dial tones ... after dial tones they can dial their number. I do it like this: exten = & gt; 9,1, Dial (SIP / 8003) Witch CIP / 8003 is a SIP account that is connected to FXO Gateway and from Asterisk through SIT trunk joined. I want to do this: End point dial: 909121111111 instead of 9 ... followed by dialton .... 09121111111 Generally, what you can do, in an accessible context, one way to dial the whole thing - and then use a substrings to break some parts of it. exten = & gt; _9XXXXXXXXXX, 1, Dial (SIP / 8003 / $ {EXTEN: 1}) The first part of the extension matches a 9-digit number 9-digit: _9XXXXXXXXXX . See the article on the next, on our dial application, what do we dial your SIP device, but, we pass it back the dialed extensions, but pay attention to the colon? Like $ {EXTEN: 1} is to strip this data. That is, it ad...

css - Input's position won't budge -

One way I am trying to move an input element is to "popup" (div) I must say that it is upset. I prepared a bella point to tell forward, this is also the input that I'm talking about: & Lt; / Form & gt; & Lt; / Div & gt; Https://jsfiddle.net/WKkL5/ Honestly I almost threw my laptop from the window, any help would be greatly appreciated. you status: relative at & Lt; P & gt; / Code> and & lt; Input & gt; to get your layout to the elements. I recommend using default position (static) and using margin so that you do not overlay the element.

ios - Keeping selected section / row after UiTableView reloadData -

मेरे पास एक UITableView मिला है जब UITableViewCell I का चयन करते समय नया डेटा लाने के लिए एक वेब सेवा कॉल करें और फिर नए डेटा के साथ UITableView को पुनः लोड करें अब, चयनित पंक्ति हमेशा नए डेटा का हिस्सा होगी जो वापस आती है। हालांकि एक खंड में पंक्तियों की संख्या लगातार नहीं होगी मैं तालिका दृश्य को फिर से लोड करने के बाद चयन करने वाली पंक्ति पर चयन रखने की कोशिश कर रहा हूं। मैंने didSelectRowAtIndexPath से सूचकांक को सहेजा था। हालांकि, जब मैं कॉल करता हूं: [self.tableView selectRowAtIndexPath: self.selectedIndexPath एनिमेटेड: नहीं scrollPosition: UITableViewScrollPositionNone]; कुछ भी नहीं होता है और मेरी चयनित पंक्ति मेरी रीलोड करने के बाद अब नहीं चुनी जाती है। UITableView पुनः लोड करने के बाद चयन को रखने के लिए वैसे भी क्या है प्रेषक_असिनक (प्रेषक_जेट_मैन_क्यू ()), {{self.tableView selectRowAtIndexPath: self.selectedIndexPath एनिमेटेड: नहीं स्क्रॉलपोजिशन: यूआईटीबलव्यूस्क्रोलपोटेशननोन];}); इसके अलावा, सुनिश्चित करें कि self.indexpath संपत्ति UITab...

linux - Print messages in kernel module using c++ -

I am editing a kernel module written in C ++ I want a function to print a message, but I think I can not use the cout or any standard input / output stream library function because the module stays in the kernel space. I have tried to include iostream library: .... #include When I compile with G ++ : Error: iostream: Any such file Or directory is not error: 'Cout' was not declared in this area The Linux kernel does not support C ++ very well, and you can & lt; Iostream & gt; - I suspect that none of the STLs are completely out of the question, but since I have seen in C ++ Linux kernel mode The standard implementation of cout and cerr are using OS features, which will definitely not work inside the kernel. So you should not use them, it would be possible to implement anything that works the same way (call it kostream ), and kostream & amp; Operator & lt; & Lt; (Kostream & os, sometype value) , which produces some outpu...

java - Removing duplicates Quickperm -

I have recently studied the Quickperm algorithm to generate the permutation of a string, and in addition to the other, Is not explanatory. I did not find any other sources which explained it clearly. Apart from this I only examined it and thought that whether we are equal values ​​or not, they will handle the cases when there will be duplicate letters in the string, even then duplicate permutations still arise. Can anyone explain how to remove duplicate and provide some other sources or explain the quick epigorithm? Use standard algorithms. Quicker, like many clever algorithms, are weak; It can not be easily normalized in the case where there are duplicates.

r - Inconsistency when plotting communities grouping -

Image
I have a problem in creating conspiracy of communities Please consider following MWE Library (Igraph) m & lt; - Matrix (c (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 , 0,1,0, 4,1,0,0,0,0,0,0,0,0,0,1, 0,0,0,0,0,0,0,0), Nrow = 6, Ncol = 6) g & lt; - graph.adjacency (m) memb & lt; - Membership (edge.betweenness.community (g)) memb # [1] 1 1 2 1 2 2 I hope to see two communities in the plot plot (g, mark.groups = list (memb), edge.width = 0.5, edge.arrow width = 0.2) But in fact only one community Do I have something Am doing wrong If I understand your question correctly, you can write mark.groups Arguments are using the wrong. Try plot (g, mark.groups = lapply (unique (memb), function (n) which (memb == n)), edge.method = 0.5, edge. Width = 0.2)

java - GSON Deserialization to an ArrayList not working -

I have an ArrayList (Tweet is one class I defined in my package) of objects. Now, I wrote this Arrayist using a GSON in a file as a JSN object. Going forward, I am now reading JSN Object in an Arrayist using the GSOn. However, when I recapture through this newly recited Arrayist, I can not bring it back to the Color object. Although the ArrayList is actually a collection of tweeted objects, the exceptions I get are: com.google.gson.internal.LinkedTreeMap can not be inserted into the tweet contents_array_tweets is a protection of the tweet objects contents_array has also been declared as the array list of the Tweet Object. Here is the code: f.write_file ("Content_Array_JSON_full.json", GS.N. TOGSON (O.Contents_Are_tsits), false); Ob.read_file ("Content_Array_JSON_full.json", f); Ob.contents_array = gson.from Jason (ob.file_contents, ArrayList.class); For (i = 0; i ob.contents_array = gson.fromJson (ob.file_contents, ArrayList) .quo;); Instead of a...

angularjs - Why is my Angular service not returning data -

I am using folder structure for services inside and inside the app and I have the following code: (['./ module'], function (services) {'strict use'; services.factory ('user_resources', ['$ resource', '$ location', function ( $ Resource, $ location) {return $ resource ("", {}, {'getAll': {method: "GET", url: 'JSON / myList.JSON', IARRA: true}}}}}}); }); And in the controller I have the code: define (['./ module'], function (controller) {'strict use' ; Controller .controller ('myListCtrl', ['Phone', 'Phone1', 'loginForm', '$ scope', '$ http', 'user_resources', 'credit card', ceremony (phone, phone1, loginform, $ scope) , $ Http, user_resources, credit card) {console.log (user_resources.getAll ()}}}})}} [$ promise: object, $ solution: False] how to get data from it? I did what has been done, but in my case it is Gives ...

java - difference betweern return plain modelandview and return a redirect modelandview -

I just learned Spring MVC webflow I'm confused with this: New Models And return ("test"); Return a new model and view ("Redirect: Test"); Is there a redirect like one, such as response.sendRedirect () ? And I just check the spring reference, in fact, returns the new redirect view () in the same way as response.sendRedirect () . So what's the difference between these three If you compare ModelAndView ("Test") and ModelAndView "Redirect: Test") The first request for the sublett framework will be similar to the RequestDispatcher and will be similar to request.sendRedirect () if you want to know the difference between requestdispatcher and sendredirect, the answer is Even if the "Redirect: test" is to call the HTTPSpreadSaver capacitance (Redirector), redirect view ob Ject gives you convenience and a little more functionality. Using the Serbate API directly into the IMO framework, it is probably not a good idea, ...

sql - conditional ordering by two fields -

मेरे पास यह प्रश्न है: SELECT * से राष्ट्रवादी एसोसिएशन के एस्सीसी, डीएफसीएए NPENDIENTE एक नकारात्मक या सकारात्मक नंबर हो सकता है। मैं चाहता हूं कि जब यह फ़ील्ड 0 से अधिक हो, इस ऑर्डर का उपयोग बंद हो जाता है और ORFER BY DFECHA लेता है। मैं यह कैसे कर सकता हूं? इसे ऐसा करना चाहिए: SELECT * FROM PENDIENTESCOBRO ORDER द्वारा मामले में जब एनपीन्डेन्टए & gt; 0 तब 1 ELSE NPENDIENTE END ASC, DFECHA ऐसा इसलिए है क्योंकि आप SQLite ORDER BY खंडों में केस एस्प्रेस का उपयोग कर सकते हैं। मैं जो केस डालता हूं वह सभी सकारात्मक (& gt; 0) एनपेंडेन्टिटी मानों का एक ही क्रम मान होता है ... इसलिए डीएफसीएए द्वारा पंक्तियों का आदेश दिया जाता है।

jquery - Randomly change javascript popup code -

I have three different pop up ads JavaScript code that has been uploaded to my site. I want to create a JavaScript program that will randomly alter each page once a page is loaded. How do i do this Script 1 & lt; script type = "text / javascript" & gt; Var uid = '12 9 46'; Var wid = '23707'; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://cdn.pop.net/pop.js" & gt; & Lt; / Script & gt; Script2 & lt; Script type = "text / javascript" & gt; Var UID = '22333'; Var wid = '234333'; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://cdn.pop.net/pop.js" & gt; & Lt; / Script & gt; script 3 & lt; script type = "text / javascript" & gt; Var UID = '14444'; Var wid = '23444'; & Lt; / Script & gt; & Lt; Script type = "t...

javascript - FabricJS ClipTo Issue for multiple objects like group -

My code I'm taking the value from the red dotted box and applies to the clip where multiple Mask My problem is taking all the properties but not rotation for all canvas.clipTo = function (ctx) {ctx.beginPath ( ); For (var i = 0; i I will rotate all the rectangles I just get some code to replace the rotation for the clip like ctx.rotate (50); But I will not work because I want to walk with everyone with my own values ​​ Please guide me for that And decided that I have to stop doing ctx.beginPath all the time: Canvas.clipTo = function (Ctx) {var skip = false; // Make the clip with optional solution // // clip to make possible. Group variable oldBeginPath = ctx.beginPath; Ctx.beginPath = function () {if (Skip!) {OldBeginPath.apply (this, argument); Skip = true; SetTimeout (function () {skip = false;}, 0); }} Group.render (ctx)}; / html>

date - MySql YYYY-MM-DDTHH:MM:SS to time -

I have a table column, one of which is in the format from the date of the varchar column: 2014-02-22T08: 08: 00 I want a SQL that prints 08:08 and which prints on 22-02-2014 but I can not seem to be working on time . What I am trying to do is getting all the entries in the date. And at the same time print them (HH: MM) and the same. If you are not looking for string functions but they are available here: A string function I think is useful for your substring operation seems you can tell according to the varchar column that you have a fixed length for it with a SUBSTRING (date from date 1 to 8) AS DateName - "2014- 02-22" SUBSTRING (date from date 5 to 10) time: - "08:08" Use other string functions to add parts by adding them in their order. Alternatively, you can format as required and later: CAST (from date to date time) For more information about casting types, see the MySQL manual, which is available: SQL example: SET @D...

Compare 2 Json object in Javascript/Angular -

I need to compare the 2 Jason objects (this is a Google Chrome console output) Type: "Tipo A", Model: "Model A", Color: "Color A", Hand: "If A" a ??}} _id: 534664b081362062015d1b77 "brand" Marca A "color:" color A "hands" as a "model" model A "value" 11.11 "as follows:" Tipo A "__proto__ object __ Difinegetr__ Function Difinegetr __ __ ( ) {[Original code]} ([original code]} Constructor: Funk Shn Object () {[native code}} Haovnproperti.: Function hasOwnProperty () {[native code}} Haprototaipaf: function Haprototaipof () {[native code]} Gungunitamerika: function Proprtiisesanyamerebl () {[native code}} ToLocaleString: function to Lokelstring () {[native code]} toString: function ToString () {[native code]} ValueOf: get function valueOf () {[native code]} __proto__: function __prota __ () {[native code}} set __proto__: function __prota __ () {[native code]} I Ingfail, Angel. A...

r - Warning in install.packages : cannot open: HTTP status was '404 Not Found' -

मैंने आर पैकेज memoise डाउनलोड करने का प्रयास किया है: Install.packages ("memoise") हालांकि, मुझे निम्न त्रुटि संदेश प्राप्त हुआ है: कोशिश कर रहा यूआरएल '' चेतावनी में install.packages: नहीं कर सकता ओपन: HTTP की स्थिति '404 नहीं मिली'। डाउनलोड में त्रुटि। फ़ाइल (यूआरएल, डिस्टफ़ाइल, विधि, मोड = "wb", ...): '' चेतावनी को इंस्टॉलेशन.packages में नहीं खोल सकता है: पैकेज का डाउनलोड '' ?? memoiseâ ???? असफल ` मैं इंटरनेट और WWW से जुड़ा हूं। इसके अलावा, मैं एक कार्य नेटवर्क से कनेक्ट हूं। मैं RStudio IDE का उपयोग कर रहा हूँ। क्या किसी के पास इस समस्या का निवारण करने के लिए कोई सलाह है? के रूप में मैं देख सकता हूँ कि" memoise_0.1.zip "नहीं है हालांकि, "memoise_0.2.1.zip" फ़ाइल है। RStudio IDE का कौन सा संस्करण आप उपयोग कर रहे हैं? क्या आपके पास पहले से स्थापित मेमोरी है? शायद आपको मेमोइज़ पैकेज को अपडेट करने का प्रयास करना चाहिए।

Why is Javascript function not being called? -

Image
The first question on this site is that I hope I will correct it! I have a JavaScript function that I want to display an image (image1.jpg) when the page loads, and then every 2 seconds the image changes through the loop. Although only the first image is showing, it seems that the JS function is not being asked. Can anyone tell me that I am doing something wrong here because it looks good for me, so it does not understand why it will not work. Thanks & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; Function Display Images () {var images = ['image1.jpg', 'image2.jpg', 'image3.jpg']; Var i = 1; If (i> images.lamp -1) {this.src = images [0]; I = 1; } And {it.source = picture [i]; I ++; } SetTimeout ("displayImages ()", 2000); } & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body onload = "displayImages ();" & Gt; & Lt; Img id = "myButton...

c# - Error when creating Excel file from asp.net -

I am trying to create an excel file using C #. My code is working fine on Windows Server 2008, but I'm getting error in Windows Server 2012 R2, IIS Server 8.5, MS Office 2007 standard. This is telling me the error on the line oWB = (Excel._Workbook) (oXL.Workbooks.Add (Excel.XlWBatemplate.xlWBATWorksheet)); Error: [COMException (0x800a03ec): Microsoft Office can not save or open more documents You are trying to create an excel file Using COM Automation from ASP.NET Application This combination is: Microsoft currently does not have any unrestricted, non -International Client does not support the application of Microsoft Office applications from the client application, and does not support Thus, if it is in your Windows Server 2008 yet Gama, it was a mere coincidence. You're lucky this should not do anything on any production system. To create an Excel file from ASP.NET, use one of several other solutions: ( Personally, I have a good experie...

ruby - Create an rspec test to return a name -

I feel totally TDD very confusing. I have passed the first two tests successfully, but I am pretty sure how to write the last time. This is the need to return the student's name. I've highlighted where it should go. RSPEC: Describe what to do before "# Start Impossible Machine Game" (: each) do @process = [ ] @out put = double ('output'). As_null_object @game = Game.new (@output) ends it "sends a welcome message" do @ output.should_receive (: puts) .with ('Welcome to Impossible Machine!') @ Game.Start ends " An initial message sends the game @ do @ output.should_receive (puts) .with ('Starting game ...') @ A method has been created by which the name of the students "myname = @ game.created_by myname.should ==" student name "end and end current test (first two tests Process, Output Def start (output) @output = output "[# {@ Output}" " DEF "puts on startup @put.puts 'Welcom...

javascript - angularjs: why ng-click doesn't seem to evaluate {{}} -

In an NG-Enhance tag, I have a ng-click that has a code for evaluating the following code : & lt; Div ng-repeat = "phase in phase" class = "selection phase phase {{stage.stage}}" ng-click = "change page ('plantstage / {{stage.id}}')" & gt; However, in the safari inspector, I think the code has been evaluated as follows ?? & lt; Div ng-repeat = "phase in stages" class = "selection phase step 6" ng-click = "replace page ('plantstage / florence')" & gt; one click .corn.page.html # / plantStages / {{step .id}} Controller has a change page: $ scope.changePage = function (page) {var url = "kws.corn .page.html # /" + Page; Console.log ("Change Page" + Page + "with Url" + url); Document.location.href = url; }; Since ng-click a corner instruction You do not have to do this in {{}} : ng-click = "change page ('plantstage /' +...

arraylist - Java heap size exception -

After running 24 hours of my Java program, it shows an exception like "Exception memory error in thread 1 out of Java Hap size" This problem is coming in the part of my code where I am taking 500 data to create 500 data (90000 data in my DB table) at one time the Hashmap & amp; This hammerpad object is used for arrelevist & gt; In the end I am setting up the block IHip object and for processing this aristocratic object is going through another method. It continues upto 90000 data. To perform this processing program I have to use Thread & amp; Position of thread by walking () method while position is true & amp; Calling Dataprocessing Method This means that your heap is complete. You have too many and / or heavy objects in memory Possible reason: You refer to unused objects, and make many of them Solution: Check You really need all those references, but your pile is too short Solution: Increase the heap Since your exception occurs ...

.htaccess - Force all requests to use https:// and prepend www -

I have spent countless hours to solve this problem and it is doing my head. I'm sure this is very simple but I can not find any answer on StackVareflow dot com or other sites. I am using an SSL certificate which is valid only for www.example.com and I am stuck with this certificate only for a number of reasons for the foolish corporate. I want to apply all requests to SSL and apply www first to the domain, write the following domains properly: example.com/ http://example.com/ http://www.example.com/ https://www.example.com/ The domain that is not written again and there is a problem, I reply anywhere Getting o https://example.com It is only normal "certificate is not valid" skip warning. I have the following code in the .htaccess file: RewriteEngine% {HTTPS} on RewriteCond! = ^ ^ Rivat Raul. * $ Https: //% {SERVER_NAME}% {REQUEST_URI} [R, L] revaccount% {http_host} ^ example.com [nc] rewrote ^ ^. () * $ Https://www.example.com/$1 [ R = 301, L] ...

c++ - Findind more than one word in a file and then extracting the values present after those words? -

Note: I asked a similar question, but it was placed on "hold" Because I do not provide my code (I think). Now I have written my code, but I have to face some other problem. From my .bench file, I have to read the values ​​written in the brackets () which I managed to do but the problem is that I INPUT , OUTPUT , NAND . After the values ​​in the brakets have read. INPUT (1) INPUT (2) INPUT (3) INPUT (6) INPUT (7) Output (22) Output ( .bench file So far, I used the code INKUT , OUTPUT , and NAND but as it looked I can repeat the same lines of code again and again again. So, how can I normalize the same code to find the value after OUTPUT , NAND etc. int circuit :: readBenchFile (string filename) // Read the benchfile and generate inputs, outputs and gates accordingly {// .bench file ifstream input_file Reading; Char * S = new char [filename.length () + 1]; Std :: strcpy (s, filename.c_str ()); Input_file.open (s); If (input_file.fail ()) {cout ...

read out actual iteration of foreach in smarty php? -

I have a problem; I want to run a foreach-loop and items will be created in the loop with the actual recurring number. My code is so far: {= $ builder item = object name = foreach_gallery} {capture assign = shopbill} field.title}" /> ; {/ Capture} & lt; Tr & gt; & Lt; td width = "250" & gt; {$ ShopBild | Max_image_width: 160} & lt; Br / & gt; & Lt; Input type = "text" size = "2" name = "pic_id {$ smarty.foreach.foreach_gallery.iteration}" value = "{$ item- & gt; field.id}" readable & gt; & Lt; / TD & gt; & Lt; TD & gt; {Input type = "text" name = "articlinnem $ smartrri.eu .. etcher_gallery.it" title = "articelbiziecheng:"} this & lt; Input type = "text" size = "2" name = "pic_id {$ smarty .foreach.foreach_gallery.iteration}" value = "{$ item-> field.id}" readable & gt; Element...

c# - RichTextBox bold monospace font? -

I have Rich Textbox control on one of my forms, and I use a monospace font because it contains formatted text . I'm trying to implement a search functionality where you can search for the specified text in the box, and it will display any text that matches your search query in bold. Earlier I was using the Lucida Console to make me bold, but then made that text broader than the rest of the text. I've tried to switch to Courier Now now, which is when I make it bold, it does not change at all. Is there a monospace font that will allow me to bold it properly? I suspect, especially if you want your program to run any machine to give you a courier What does it mean when new does not change bold? But as an alternative: have you thought about changing the background color, as opposed to?

How can I turn off hadoop speculative execution from Java -

After reading I'm trying to stop speculation execution using the new Java API, but it has no effect is. This is my main square: public square key {public static zero main (string [] args throws exceptions {configuration conf = new configuration ()); // old API: //conf.setBoolean (.map.tasks.speculative.execution ", false); // new API: conf.setBoolean (" mapreduce.map.speculative ", incorrect); int res = ToolRunner.run (Conf, new loggersmapradus (), args); System.exit (race);}} and my MapReducer starts like this: @ Override public entrant run (string [] args throws exceptions {configuration conf = super.getConf (); / * * Instant a job object for your job configuration * / job job = Job.getInstance (conf); But when I see I see that log: 2014-04-24 10: 06: 21,418 INFO org.apache.hadoop.mapreduce lib.input.FileInputFormat (main): total input path for process: 16 2014-04-24 10: 06: 21,574 INFO org.apache.hadoop.mapreduce.JobSubmitter (main): Number of...

Php mysql query taking records from yesterday with a join check -

SELECT * FROM (`वीडियो`)` रेटिंग्स` पर `रेटिंग` पर जुड़ें। `item_id` =` वीडियो `.```````````````````` और` रेटिंग्स````` और '' जैसे 'और DATE (रेटिंग.रेटिंग_डेट) = उप-दिनांक (CURRENT_DATE, 1) इस क्वेरी में समस्या क्या है जब मैं आखिरी तारीख को निकालता हूं यह मुझे परिणाम देता है अन्यथा परिणाम रिक्त है। डेटा डीबी में मौजूद है। आपने फ़ील्ड का नाम क्यों जोड़ा है DATE (ratings.rating_date) इस तरह से । कृपया दिनांक निकालें और कोड नीचे देखें। SELECT * FROM (`वीडियो`)` रेटिंग` पर `रेटिंग` दर्ज करें। `item_id` =` वीडियो` .`` जहां `वीडियो` ./user_id` = 50 और `रेटिंग्स` .```` और 'रेटिंग' = 'पसंद' और रेटिंग। आरटिंग_डेट = उप-दिनांक (CURRENT_DATE, 1) इसके बाद भी उपरोक्त कोड काम नहीं कर रहा है । `रेटिंग.रेटिंग_डेटा` = कर्टेट () - अंतराल 1 दिन