Posts

Showing posts from July, 2015

loops - How do I program a greatest common divisor program is 80x86 assembly? -

I know that there are different ways to find two numbers GCD, but I want to know the best Ordinances have been ordered and how do I apply the method in this program? Even what I have so far: .586 .MODEL FLAT is included io.h; Header file for input / output. STACK 4096 .DATA number1 DWORD? Number 2 DWORD? Prompt1 byte "Enter an integer for x", 0 prompt2 byte "Enter an integer for Y", 0 string byte 40 DUP (?) ResultLbl byte is "the largest common denominator of x and y", 0 gcd byte 11 dup , 0 .CODE _MainProc PROC input prompt1, string, 40 atod string mov number 1, eax input prompt2, string, 40 atod string mov number 2, EDX mov eax, number 1 mov EDX, number 2 get_gcd (?): Xchg eax, EDX CMP eax, EDX JB Get_GCD sub eax, EDX test EDX, EDX JNZ Get_GCD retired dtoa gcd, EDX output resultLbl, gcd mov eax, 0 mov EDX, 0 retired _MainProc ENDP the ending; End of source code I run it and nothing happens. Remove the ANT after jnz Get_GCD and before dETO...

python - Creating a list from a .txt file to write on excel -

I am trying to create a list from a large series of data on my .txt file. I want to process them through Excel and show that I am doing this to create a recurrence list which will be written in every column. However, I get this error that I am not defining J. import xlwt f = open ('inputfile.txt') for lines in C = 1: #split = f.split ('\ t') style0 = xlwt.easyxf (' Font: Name Times New Roman, Color Black, Bold On ') wb = xlwt.Workbook () ws = wb.add_sheet (' database ', cell_overwrite_ok = true) for i, line in enumerate (line): ws.write ( I, j, col) print (str (c) c = c + 1 wb.save ('prueba.xls') In addition, I would like to ask if this is possible You have not defined the variable ( Instead you have additional variables Line which is unused here), you have to define the variable. For i, enumerate the line (line): You have to define j j, j, Call in the calculation (line) for:

class - Create a python object that mimics string iterator behaviour -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मैं बनाने की कोशिश कर रहा हूँ एक ऑब्जेक्ट जो स्ट्रिंग की तरह व्यवहार करता है जब इसे "x इन वाई" वाक्यविन्यास में उपयोग किया जाता है। उदाहरण के लिए, इस मामले में, मैं चाहता हूं कि मेरी ऑब्जेक्ट "test" स्ट्रिंग "एबीसीडीईएफजी" की तरह व्यवहार करती है जब मैं तुलना करता हूं यह एक और स्ट्रिंग के लिए मुझे लगता है कि यह iter फ़ंक्शन में किया जाना चाहिए लेकिन यह काम करने के लिए प्रतीत नहीं होता है। वर्ग टेस्ट (ऑब्जेक्ट): def __init __ (स्वयं, var): self.var = var def __iter __ (स्व): रिटर्न इटरर (सेल्फ। var) & gt; & gt; & gt; Test = test ("ABCDEFG") & gt; & gt; & gt; # परीक्षण में "ईएफ" प्रिंट करें, मैं इसे सही गलत और gt; & gt; & gt; प्रिंट "ईएफ" में "एबीसीडीईएफजी" # इस तरह से परीक्षण कैसे सही व्यवहार करना चाहिए आप अपने वर्ग के साथ में के व्यवहार को नियंत्रित करने के लिए विशेष विधि को अधिभार देना चाहते हैं: & gt; & gt...

c# - SQL error with update -

I have a problem updating what's wrong? Compiles the code, but when I click the click button, line -> Cmd.ExecuteNonQuery (); Did not work. Here the error Additional information: query with parameter '(@nmo int, @ rezerwoâ ???? INA) updated SETTT.amiejska = @no mo' parameter ' @rezerwo ', which was not provided. Inactivity 1: System.Web.UI.Page SqlConnection cn = new SqlConnection (@ "Data Source = (LocalBible) \ v11.0; Attach debuff filename = C: \ Users \ DED \ Documents \ Visual Studio 2013 \ Projects \ sV1 \ Stopovisie1 \ Epadata-STV 1.MDF; Integrated Security = True; MultipleActiveRelasticSets = True; Application Name = EntityFramework "); SqlCommand CMD = new SQL Commands (); Secure Zero Page_load (Object Sender, EventAg E) CMD Connection = CN; Protected Zero GridView1 selected Indexed object (object sender, EventArgs e) var g = GridView1.Row selected; String Razrov = Gridview 1.DataK [G.Datitum Index] ["Idoforti"]. Toasti...

php - Display Custom Taxonomy Field in sidebar -

Hi friends, I am trying to display classification field to be called clpr_store_video code> It is possible to call field values ​​outside of the loop on the sidebar in my wordpress sidebar for every wordpress, but now linked to the post id? I do not know whether it is possible or how to do this. Edit I tried with another tutorial but there was no luck. $ queried_object = Get_queried_object (); $ Classification = $ queried_object- & gt; Classification; $ Term_id = $ queried_object-> Word_id; $ Subtitles = get_field ('clpr_store_video', $ classification. '_'. $ Term_id); $ Subheading echo; See the code block for the post and taxonomies and classification related to their list of links: If you want to get a classification related to a particular term $ terms = get_the_terms (get_the_ID (), 'clpr_store_video'); Forex Currency ($ word $ word) {echo $ subtitle = $ word-> Name; } If you want to get a list of all taxonomyes an...

antlr4 - Lexers w/ Phrase Tokens -

I am using w / ANTL4 on a grammar that would be best in phrases rather than words (i.e., token blank In some cases) In some cases, however, I want to catch the specific phrases mentioned above as separate tokens. Consider the following example: Display of the context of encounter The phrase "one of the events" is special - whenever I see it, I want to Get out of it The rest of the statement ("encounter exposure") is quite arbitrary and for the purposes of this example, anything can happen. For this example, I have suppressed this quick grammar: Grammar testing; State: Okrerence Ferra; Inauguration: 'Incident' LABEL ''; Piece LABEL: [A-Z]; PHRASE: (WORD '') * WORD; Section WORD: [a-zA-Z \ -] +; WS: [\ t \ n \ r] + - - Skip; If I test it against the above statement, then it fails ("Line 1: 0 '" Remembering Opener "during the incidence of advocacy enforcement" I believe that this is because the Lezzer wi...

mysql - Error generating mysqldump with flush tables read lock option -

I have written a simple Bash script that generates mysqldump while locking the table. # Mysqldump will be used on the client side Q1 = "USE test;" Q2 = "Flush table with Reed Lock"; Q3 = "System / USR / Bin / MySakDump-U Route - Master-Data = 1 - OPT SSC" /var/opt/backup.sql "Q4 =" Unlock Table; " Mysql query $ mysql-root- "$ SQL" SQL = "$ {Q1} $ {Q2} $ {Q3} to run SQL =" $ {Q1} $ {Q2} $ {Q1} $ {Q2} $ {Q3} $ {Q2} $ {Q4} " I see this error when I run this script mysqldump: table could not be found:" tab " But the strange thing is that if I run these commands manually on mysql, then everything works as expected. mysql> Use the exam; Reading the table's information to complete the table and column names You can turn off this feature to get a quick startup- A database has mysql & gt; Flush table with read lock; The query is ok, affecting 0 rows (0.00 seconds) mysql & gt; System...

javascript - populate tooltip value in d3 using attributes / scale -

I am trying to add some tooltips to some D3 rect elements, although the element attributes to populate the tooltip There is some problem in accessing the value. The following fleet shows this problem, My idea is to return the value of the object to the x attribute and certain types of inversion scale in D3, although my Attempted on: .text (d.attr ("x")); or .text (d.properties.x); The mouseover function is undefined, plus I believe this will be x coordinate when in fact I want to reverse the X scale of that property so that the user will see on that chart Which will appear in the match. . What is the best way to do this? thanks use it , instead D : .text (this.getAttribute ("height") / 30); Note that the value in pixels related to the value of 30 in the x axis is 1 . If you can get that value to the program, then it will be better. Please, please.

android - load a simple image (bitmap from drawable directory) into opengl renderer -

I am fairly new in Opelagles, I am trying to load a simple bitmap. I found this in a tutorial, but, what should I write in Surface Creative and on-DraftMemeMe? Private Zero Init Image (GL10GL) {int [] Texture = New Int [1]; Gl.glGenTextures (1, texture, 0); Gl.glBindTexture (GL10.GL_TEXTURE_2D, Texture [0]); Gl.glTexParameterf (GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); Gl.glTexParameterf (GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); Gl.glTexParameterf (GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE); Gl.glTexParameterf (GL10.GL_TEXTURE_2D, GL 10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE); Gl.glTexEnvf (GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_REPLACE); In InputStream = context.getResources () OpenRawResource (R.drawable.ic_launcher); bitmap image; {Image = try BitmapFactory.decodeStream (in); } Finally {try {in.close ()}} hold (IOException e) {}} GLUtils.texImage2D (GL10.GL_TEXTURE_2D, 0, image, 0); Imag...

c++ - Message-only window not receiving messages from tray icon -

I am trying to write a simple reusable class so that the functionality for the basic tray icon can be molded. This is my first "project" with C ++, and I'm having some problems: Message created for tray icon - only window does not receive any message in the icon tray And he has the right tooltip, but when I click on it, no message is sent in my invisible window. To check that the function WindowProcedure I added a printf statement, and the output is that the build is called 4 times, but now more No, even though I click on the notification icon. Why does not the tray icon get any message from my window? This is what I wrote: TrayIcon.h : Square tray inkon {public: tray iacon (); ~ Trayicon (); Show zero (); /*...*/ fixed zero start (); Private: static LRESULT callback window precirer (HWW, UINT messaging, Varm vaporum, LAPRM LPARM); /*...*/}; TrayIcon.cpp : // static RIIER int tray icon: _ idcounter = 1; Zero TrayIcon :: Initialize () // ...

Verilog: Reading 1 bit input and Writing it to 288 bit reg -

In verilog, I have a module name (input data, ..., output ...); Data is only a bit input and I want to compare the code reg [288: 0] data_tmp; needs to be displayed on how can I transfer data (input) reg? I tried to handle it in C as an array so that it could be used for a loop: Actual But it does not recognize any of the values ​​or overwrites it. Actual code: module inspector (input RSTN, data, CLK, output total count, SkypeCanc, FTPCNT, NSTCNT, telnet_content, SSHCNT, SNMPCNT, SMTPPNt, NNTPCNT, Telnet_session , Skype_session, sh_season); Output [31: 0] total_cnt; Output [7: 0] skype_cnt; Output [7: 0] ftp_cnt; Output [7: 0] https_cnt; Output [7: 0] Telnet_con; Output [7: 0] ssh_cnt; Output [7: 0] snmp_cnt; Output [7: 0] smtp_cnt; Output [7: 0] nntp_cnt; Output [7: 0] Telnet_sation; Output [7: 0] Skype_session; Output [7: 0] ssh_session; Local Param IIT = 0; Local data = 1; Local ports = 2; Local primary number = 3; Reg [287: 0] data_tmp; Reg [3: 0] start_profess...

css - a:hover color change not working properly -

I have a group of anchors elements, and I'm trying to make them a black background with white text hover On. Each anchor tag is wrapped in li. The funny thing is that, only a few anchors change their style on the circle of elements, and nothing else. For example, the first three menu items in the menu change the text color, but the rest do not change colors. The background color works for every item that is my code: a, a: visited (color: black; text-decoration: none; cursor: indicator;} a : Hover, one: hover span {color: white! Important; background: black; text-decoration: none;} & lt; div id = "navblock" & gt; & lt; ul class = "nav fullwidthnav" & gt; a href = "/ collection / top"> top OUTERWEAR & lt; lt; / li & gt; & lt; li & gt; & lt; ; Li & gt; & Lt; A href = "/ store / shoes" & gt; Shoes & lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; ...

apache spark - importing pyspark in python shell -

This is a copy of another question on any other forum that has never been answered, so I thought That I apply it again here, because I have the same problem. (See) I have installed SPAR on my machine and I am able to run Python programs without error without piespecc module / bin / pyspark as my Python interpreter I am using. However, when I try to run the regular Python shell, when I try to import the piespark module I get this error: import from Spark Contex And it says "Modules named Parspark" How can I fix this ? Is there an environment variable that I need to set up Python for pyasper headers / libraries / etc? If my spark is in installation / spark /, what parspark path do I have to include? Or can pyspark programs be run only from pyspark interpreter? If it prints such error: Import error: Create a module named py4j.java_gateway Please construct at $ SPARK_HOME / python / PYTHONPATH: export SPARK_HOME = / users / pinan / apps / spark...

c# - How do you add a label/text to a manually created button? -

I have created a button using the code below to start adding. Text = "start"; statement is nothing but how do I add a label to my button? Public Mainstream () {Initial Group (); MyButtonObject start = new myButtonObject (); EventHandler My Handler = New Event Handler (Startcall); Start.Click + = myHandler; Start.Location = new system.downing.point (200, 500); Start.Size = New System Drawing. Size (101, 101); Start.Text = "Start"; // start.TextAlign = New System.Downing. Resource Element. Middle center; This.Controls.Add (start); } Public category myButtonObject: UserControl {// Draw new button. Secure Override Zero OnPaint (PaintEventArgs E) {Graphics Graphics = E. Graphics; Pen myPen = new pen (color black); // Draw the button as a circle graphic. FillEllipse (Brush Goldnode, 0, 0, 100, 100); Graphics Drylips (MyPain, 0, 0, 100, 100); myPen.Dispose (); }} You OnPaint method: Text renderer Draw text (graphics, text, font, new point (5, 5), system...

html5 audio - Crossorigin errors when loading VTT file -

I am new to using audio tags in HTML5 and wanted to make a player I used to write a VTT file I want to test that to see how many closed captions could work. Here's my code: & lt; Audio control & gt; & Lt; Source src = "myaudio.mp3" type = "audio / mpeg" & gt; & Lt; Track kink = "caption" src = "myaudio.vtt" srclang = "en" label = "english" & gt; & Lt; / Audio & gt; According to what I have read, it is considered to work for both track audio and video, which is understandable from the stand-alone accessibility point, I do not mean I load it Trying to: 'Track text from original' file: // 'has been blocked from loading: not just the document, and the mother of the track element -There is no 'CrossOrigin' attribute in the body. Origin 'blank' is not allowed therefore. " Looking at the crossingigin attribute, I get many deceptive articles about C...

sql - Delete row if type cast fails -

ठीक है, ये लेआउट है: मेरे पास uuid डेटा का एक गुच्छा है प्रारूप में varchar मुझे पता है कि uuid इसका अपना प्रकार है। इस तरह मुझे डेटा मिला है इसलिए यह सत्यापित करने के लिए कि कौन सा uuid है, मैं uuid प्रकार varchar में लेता हूं और उसे उस तालिका में डालें जहां कॉलम है UUID । यदि डालने में विफल रहता है, तो यह एक uuid प्रकार नहीं है। मेरा मूल प्रश्न यह है कि खराब uuid कैसे हटाएं, यदि सम्मिलित विफल हो या, यदि एक सम्मिलन किसी अन्य तालिका में विफल हो जाता है, तो मैं एक तालिका से कैसे हटाऊं?। मेरा पहला डेटा सेट: ड्रॉप तालिका यदि मौजूद है तो temp1; ड्रॉप अनुक्रम यदि मौजूद है temp1_id_seq; अस्थायी तालिका temp1 (आईडी धारावाहिक, some_value varchar) बनाएँ; INSERT temp1 (some_value) SELECT split_part (name, ':', 2) ब्रांडिंग_सोर्स से जहां '% curric%' की तरह नाम; अस्थायी तालिका temp2 बनाएँ (आईडी सीरियल, अन्य_मानित यूयूआईडी); निर्माण या पुनःप्रकाशित करें function_uuid () varchar AS $$ DECLARE यू रिकॉर्ड; यूआरआई के लिए शुरू करें * से temp1 LOOP EXPUTE 'INST...

Why static and default methods are added to interfaces in Java? -

I use Java but I have a better background with C #. I am reading Java and the methods in the interface. I think that I understand how the default methods will be useful in the interface. For example, we have extension methods in C #, with the help of language designers, it is one thing that they do not have Where , You can add new ways to freely interface such as Select etc. Where lambda quote can be used without destruction. That's why the default methods in the Java interface can help in the same way. But when it comes to stable methods in the Java interface, this is where I am, it will not be certain how useful it will be. What no one can explain to me why it is added High methods to interface and in which case they are useful for the developer I do that it would also hear default method There are different reasons for what I have mentioned. But when it comes to static methods in the Java interface, this is the place Where I can not believe how it will be ...

testing - C function to find largest element in an array of integers -

सी फ़ंक्शन पर विचार करें int बड़ा (int सूची [], int n, int एल); सूची n पूर्णांक की एक सूची है। एल फंक्शन के लिए अस्थायी स्थान है सरणी सूची n integers की सूची में फ़ंक्शन को सबसे बड़ा पूर्णांक वापस करना माना जाता है >। सबसे बड़ा int (int सूची [], int n, int l) {int i; के लिए (i = 0; i & lt; n; i ++) {if (सूची [i] & gt; l) {l = सूची [i]; }} वापसी एल; } यह फ़ंक्शन कुछ समय पर खराब डेटा क्यों लौट रहा है? मुझे लगता है कि आप मूल्य l को प्रिंट करने की कोशिश कर रहे हैं, लेकिन आप वास्तव में फ़ंक्शन के रिटर्न वैल्यू को संचित नहीं कर रहे हैं। इसके अलावा आपको अपने फ़ंक्शन के पैरामीटर के रूप में l पारित करने की आवश्यकता नहीं है। इसके बजाय इसे करें: // फ़ंक्शन प्रोटोटाइप घोषित करें बिना इंट एल Int बड़ा (int सूची [], int n); // वास्तविक फ़ंक्शन जो सबसे बड़े int के लिए खोज करता है Int बड़ा (int सूची [], int n) {int i; Int l = सूची [0]; // पहले तत्व से इंगित करें // नोटिस लूप i = 1. के लिए शुरू होता है (i = 1; i & lt; n; i ++) {if (सूची [i] ...

php - Apache 2 on ubuntu segfault -

Apache has to hide on my only one site (which works fine on other god machines), it will first shake properly for some. You need a lot to expand in your post though to find a seamfault You must install GDB using the following command. You may have to use backport. xxx $ echo "deb http://backports.debian.org/debian-backports Squeeze-backports main" & gt; & Gt; /etc/apt/sources.list & amp; Amp; Install Apt-get update xxx $ sudo apt-get -t squeeze-backports gdb then xxx $ sudo apt-get apache2-dbg php5 -dbg then xxx $ kordad directory / tmp / apache-crossroad By default, use xxx $ ulimit -c unlimited xxx $ ulimit- one core file size (block, -c) by using the given commands unlimited Then restart Apache and wait for next segfault. Once you want to use gdb to read core files, xxx $ gdb apache2 -core / tmp / apache-coredples / core Hope this will help you Although it has some high level to consider your post.

sql - MySQL how do i delete duplicate rows from very large table? -

I should know the most effective way to remove duplicated rows from a large table, (1 billion in this table More lines) I have to know a very efficient way of doing this, because I can take a few days if I execute ineffective queries. I need to delete all the duplicate URLs in the search table, Delete the search from the URL (URL from the search URL SELECT url) select url) X); Depending on your index completely, do it in two steps: (1 ) Together with any other field, support your DBMS on the URL field create the highest-selection index, which can distinguish records with the same URL, such as the primary key or time stamp field; (2) To process a small fraction, write the procedural code (not just one query) if records at one time and results in these small batches, eg. PK mod 1000, or before the TLD portion, 3 letters of the URL harvesting. This is the best way to get an estimated result, unless you are not sure that a simple query will be required during the long cy...

java - Try - Catch Exception issue -

I am trying to create a desktop calculator with different options (hex, binary, octal, decimal) and if any The value is not recorded in that mode, an error saying, for example "BinaryInteger is expected, the user entered 90 9 382" and again indicated. The only error that is visible now due to my catch (exception e) is "invalid option". How do I write exceptions / errors for invalid inputs? import java.util. *; Public class IntDriver {// declared areas Private Stable LongInteger Number 1; Private Stable LongInteger num2; Private static string over; Private static input mode = 0; // operators use private last fixed string [] operators = {"", "+", "-", "*", "/"}; Public static zero main (string [] args) {scanner KB = new scanner (System.in); Boolean run = true; While (run) {displayMenu (); While {true} {try {System.out.print ("option or value -> gt;"); String option = kb.nextLine (); Switch (option.t...

SAS: code to create 'ever' variable for subsequent obsevations once event occurs -

डेटा है; इनपुट आईडी हरपीज; datalines; 111 1 111 111 1 111 1 111 1 111 111 254 0 254 0 254 1 254 254 1 331 1 331 1 331 1 331 0 331 1 331 1; जहां 1 = सकारात्मक, 0 = नकारात्मक,। = अनुपलब्ध / संकेत नहीं है टिप्पणियां आईडी द्वारा क्रमबद्ध हैं (यादृच्छिक संख्या, कोई अर्थ नहीं) और यात्रा की तिथि ( शामिल नहीं है क्योंकि यहां से आगे की आवश्यकता नहीं है)। हरपीज होने के बाद, आपके पास हमेशा हरपीज होता है मैं हरपीज चर को कैसे समायोजित कर सकता हूँ (या एक नया बनाऊं) ताकि एक बार सकारात्मक (हरपीज = 1) इंगित किया जाए, सभी निम्न अश्लील उस ID के लिए हरपीस = 1 दिखाएगा? मैं परिणाम इस तरह दिखने के लिए सेट करें: 111 1 111 1 (लापता 1 से बदल दिया गया है) 111 1 111 1 111 1 (लापता 1 से बदल दिया गया है) 111 1 (गायब 1 से बदल दिया गया है) 111 1 254 0 254 0 254 1 254 1 (पूर्व यात्रा पर निम्नलिखित सकारात्मक याद किया गया है) 254 1 331 1 331 1 331 1 331 1 (पूर्व-विज़न की वजह से रोगी ने संकेत दिया नकारात्मक / 0 1 में बदल दिया गया है) 331 1 331 1 नीचे दिए गए कोड को चाल करना चाहिए। यह चाल, बनाए रखने ...

javascript - How can I change collection structure by underscore? -

My current collection is given below: [[Tom: truth, age: 23}, {jack: truth: age: 22}, {Lucy: wrong, age: 22}] how can i change it with underscore? [{name: 'tom', isMale: true, age: 23}, {name: 'jack', isMale: true, age: 22}, {name: 'lucy' IsMake: true, age: 22}] You can copy the internal objects (Swiss Army Knife Iterator), while rearranging the name and isMale values ​​something like this: _ (A) .map (function (o) {return _ (o). Reduce (function (memo, v, k) {if (k === 'age') {# through copy 'age' Memo [k] = V} and {# the rest is named: boolean so bust different meme Name = k; memo.is mail = v;} return memo;}, {});}); Demo:

android - How to add custom error page when there is no internet connection available -

The default error page "webpage is not available" How do I add my own error page when no Internet connection is available? Can i I found the solution by adding the code below MWebView .setWebViewClient (New MyWebViewClient () {reserved reserved for public videos (webview webview, IT, string s, string s1) {mWebView.loadUrl ("file: ///android_asset/error.html"}}}}); Put your own HTML error page in the property folder

android - camera parameters can not be set -

I do not know why error generates error when I set the camera parameter in relation to setSceneMode And SetColorEffect as shown below, and set parameters failed but when I use the above mentioned methods as SCENE_MODE_CANDLELIGHT and EFFECT_SOLARIZE Sorts respectively JavaCode: @ Override change the surface of the public null (page folder holder, integer format, Uarnank width, intensity height) {// Tudo auto-generated went method stub Android Khardveyr Kamrakpametrets Kampametr = Yhkmankemrakjet parameter (); camParameter.setSceneMode (Parameters.SCENE_MODE_BEACH); camParameter.setColorEffect (Parameters.EFFECT_WHITEBOARD); camParameter.setFlashMode (Parameters.FLASH_MODE_AUTO); CamParameter.setPreviewSize (width / 2, height / 2); CamParameter.setPictureSize (width / 2, height / 2); MyCamera.setParameters (camParameter); MyCamera.startPreview (); } In general, the class can be given any information on runtime for this information. Can be inquired for the camera ...

java - What is the correct way to do this? Initialization/Symbol not found errors -

I am practicing with scanners and exceptions and they are quite new so maybe I am missing something here: / P> This is the first method that the compiler says that it can not get a file name or name. Do {try {System.out.print ("Enter File Name:"); String filename = KNXTine (); Scanner F = New Scanner (new file (filename)); Did = true; } Hold (FileNotFoundException ex1) {System.out.println ("file" + filename + "does not exist."); } Hold (exception e) {System.out.println ("unexpected exception"); }} While (done!); I thought I would keep it out to fix it, but it complains in another way and the file name may not have started scanner k = new scanner (System.in), f; String filename; Boolean did = wrong; // user request file {try {System.out.print ("Enter file name:"); File name = k.nextLine (); F = new scanner (new file (filename)); Did = true; } Hold (FileNotFoundException ex1) {System.out.println ("file" + filena...

eclipse - Is there way to connect to Gradle daemon launched by Gradle Tooling APIs from command line -

Image
जब IDE gradle परियोजना को संकलित करता है तो स्मृति में जावा प्रक्रिया (लगभग 250 एमबी) है। हालांकि gradle buld --daemon अन्य डेमन जावा प्रोसेस लॉन्च की गई है (लगभग 150 एमबी) कमांड लाइन से ग्रेडल टूलिंग एपीआई द्वारा शुरू की गई ग्रेडले डेमॉन से कनेक्ट करने का कोई तरीका है। डिजाइन अंतर निर्बाध ग्रेड आईडीई उपयोग करता है यह ग्रेडलेवेयर द्वारा एकीकरण की सिफारिश की गई है इसके विपरीत ऐनाइड ग्रैडल ने gradle एक्जीक्यूटेबल समान की शुरूआत की जो कि आप कमांड लाइन से करते हैं। (और इसी तरह) एपीआई सरल है, जैसा कि आप gradle -h से देखते हैं, लेकिन निश्चित रूप से यह टूलिंग एपीआई के साथ अंतर्निहित मॉडल तक पहुंच नहीं देगा। चूंकि 0.15 - डेमन विकल्प डिफ़ॉल्ट रूप से सक्षम है और टूलिंग एपीआई के रूप में भी ग्रैडेल डेमन का उपयोग होता है, प्रदर्शन समान होता है: यानी थोड़ी देर पहले चलाने, दूसरा रन तेज और अनुकूलित होता है इसके बारे में भी पढ़ें। बिल्डिंग का अनुरोध करते समय एक ही ग्रेडड डेमन प्रक्रिया का पुन: उपयोग करना संभव है आईडीई और / या कमांड लाइन से यदि आप नई प्रक्रिया बनाते ह...

How to get characters to a string in Java? -

I have a text file that has hexadecimal values ​​like "Captured Network Packets Headers" ... FC-C8-97-62-88-5F-74-DE-2B-C8-C7-E5-08-00-45-00-00-28-4E-C4 -40-00 -80-06-BD-65-C0-A8-01-03-AD-C2-7F-38-C9-96-01-BB-F8-01-7F-5F-B6-8A-15 -22-50 -10-40-42-72-8C-00-00. I need to convert them into decimal values ​​... I was very few here .. InputStream input = new FileInputStream ("data. Txt "); OutputStream Output = New FileOutputStream ("converteddata.txt"); Int data = input Reed (); While (data! = -1) {char ch = (four) data; Output.write (ch); Data = input.read (); } Input.close (); Output.close (); Now, my problem is ... How to get each hexadecimal string in which there will be '2' characters? (Such as "edi" or 5f etc.) to convert them into successive values. I know that C ++ is not a function "fgetc ()" ..? I need a similar solution. Can anyone recommend a good solution ..? (Sorry, I'm starting for Java, but C ++...

php - Array to string conversion error in Radio -

$ डेटा = mysql_query ("चुनें user_pokemon_db से WHERE user_id = '" $ id। "'") ; जबकि ($ पंक्तियां = mysql_fetch_assoc ($ डेटा)) {$ db_id = $ पंक्तियाँ ['आईडी']; $ सरणी [] = सरणी ($ db_id); } Foreach ($ value as $ value) {गूंज '& lt; input type = "radio" name = "change" value = "'। $ Value।" & Gt; & lt; br & gt; '; } मुझे रेडियो लाइन पर त्रुटि मिल रही है। स्ट्रिंग रूपांतरण के लिए एरे लेकिन जब मैं सरणी में print_r करता हूं, मान पूरी तरह से लाता है और सरणी में निर्दिष्ट होता है। समस्या क्या है? जैसा कि लाशेन को असाइन करने का उल्लेख किया गया है, इस सिंटैक्स का उपयोग करने के लिए आप जिस सरणी के लिए आवश्यक हैं: $ सरणी [] = $ db_id;

python - how to display images from the ndb datastore using data URI scheme (via passing data to template and not having to make another request) -

I store a thumbnail image as a blob property of my entity. I am able to fix the pictures described here: However, there is a need to get another request and get the ID from NDB. Since I already have the original unit available, when I present the IMG tag with the proper href attribute, would there be a way to render the image inline? I have read the documentation for the Google Images API, but there is no such thing that will present my image in the format required to be included as a string. I go to a very large scale, but somehow everyone is suggesting ways to represent images from the above mentioned datastore. Being able to render images using the Yuri plan in my mind not only will the datastore get a request (perhaps with a memkach, but still still) but most importantly, the visitors of my page have a round across the ocean Will save you from traveling, which is fast enough to serve the page. Many thanks for all your help! Use the image service and the images will b...

Google Apps Script Trigger Addon -

The new Google Spreadsheets has add-ons like Google Analytics, they can generate a report using the GA API. Now I have to trigger this add-on function programmatically. Although there is no script with the add-on function, but it seems that a black box. There are indexed triggers to run your own defined tasks, but I do not see any way to start with the add-on and start receiving the "get data" function providing the user "within the spreadsheet UI". Is there any way to run add-ons on a scheduled basis? You can not do this with Google Analytics add-ons but also with Supermarket Add-on from Google Analytics Connects and can be set to refresh with time-based triggers:

Sending R-Errors (from the console) into the Java standard output, when using JRI -

I use the eval method ( JRI source command via file due to distribution. R code in Java. Although I went to an interesting solution, which uses the sync function in R, I am looking for a way to import R console output directly into my Java output (It feels more comfortable). Have you ever managed to import RO output directly into Java output? / P> >

cmd - How to Schedule a task with command prompt in windows 7? -

I am trying to schedule a task with CMD prompts. I'm running the command: C: \ Windows \ system32 \ schtasks.exe / CREATE / SC ONLOGON / TN "mytask" / TR "C: \ samp.txt" / ru "NT AUTHORITY \ SYSTEM" / RP / F The task is shown in the task manager with the system name, and its status code is running with 0x41301. But this (samp.txt) is not visible in the desktop. The same order if I am currently changing the "NT AUTHORITY \ SYSTEM" with the logged on user (samp.txt) is visible on the desktop. Do you have code> / IT ? This is the only option that can allow you to display something on the active session using scheduled tasks. However, I'm not sure that Windows will allow other users to interact with the desktop. Edit: You can use / RU BUILTIN \ user / IT , so any user will be able to run it interactively . What are you bound to / ro system? If your goal is to log on to the user, then the samp.txt file is to disp...

java - draw method animation to another class -

Image
There is a bit thicker with Java, but someone can tell me how to take the draw method from the list of objects, from where There is more 1 box, and it has to be put into action, so I redesign X and y to and move them Can I modify the getter? to box class: public zero draw (graphics g) {g.setColor (Color.BLUE); Gifilact (getX) - (width / 2)), (getY) - (height / 2)), getWidth (), getHeight ()); } actionPerform method: (this is in another class) PublicExchangeEvent (e) {timer. Start (); } The basic idea is ... when Actions are called ... Repeat through the list of objects and update them in something meaningful Re-create the call. Then paintComponent method within your components, repeat the list and color them The following is a very basic concept. .. Import java.awt.borderLayout; Import java.awt.color; Import java.awt.Dimension; Import java.awt.EventQueue; Import java.awt.Graphics; Import java.awt.Graphics2D; Import java.awt.event.Acti...

powershell - Setting file attribute on large volume (memory leak ?) -

I have this command running fine on more than 100 servers (2008 R2, PowerShell 2), a special Exclude the server and kills its memory (powerhell.exe consumes more than 6 GB RAM.) Go- include the child's item - path E: \ Thumbs.db, " $ RECYCLE.BIN * "," ~ $ * "," System Volume Information "-Security-Force | Where {$ _. Features -notmatch "archive"} | % {$ _. Features [[System.IO.FileAttributes] :: Archive} Can anyone tell this? Is there a more efficient way to install the archive feature on about 200 GB-sized versions? Update It seems that this is the removed criminal parameter: I can see $ recycle.bin dir in processed files. The problem is that if the get-childitem is then the -exclude parameter failed Will be launched at the root of the drive (the same problem on PS V3) Here's more details: Here's my bad solution: $ Excluded = @ ('$ RECYCLE.BIN', 'System Volume Notification', 'Thumbs D...

java - How to delegate Spring services to a different database? -

I have different classes, which are in the extension of the crad registrar; spring data of JPA framework , This uses the underlying global EntityManager bean. Now I want to create a service that should be connected to a different database. This means that I have to inject a different M / Datasource. But how can I force a database for spring beans / services? There are several ways to do this. What we have done in one of our projects is that it defines two different packages for different data sources and define the beans separately for them: & Lt; Jpa: repository base-package = "com.def.repository" transaction-manager-riff = "defTransactionManager" unit-manager-factory -fraf = "defEntityManagerFactory" /> & Lt; Bean id = "abcTransactionManager" class = "org.springframework.orm.jpa.JpaTransactionManager" & gt; & Lt; Property Name = "entityManagerFactory" ref = "abcEntityManagerFactory...

Incorrect syntax near 'tblAPInvSub' in VB.net & SQL Server 2008 -

I have this question: public sub-load list (as string ) As ListDictionary = New ListDictionary as Dark Query String Parameters. Add (_tblAPInvSub.ColumnNames.InvNo, InvNo) query = "SELECT tblAPInvSub.InvNo, tblAPInvSub.GLCode, tblGLAccounts.GLName, tblAPInvSub.SLCode, tblSLAccounts.SL name, ISNULL (tblAPInvSub.DRAmt, 0) AS Dramat, ESLLL (TBAPINSUB. CRMMT, 0) AR CRMMT, TBAPINSSUb.Leide "& amp; _ "FROM tblAPInvSub INNER tblAPInvSub.GLCode = tblGLAccounts.GLCode at TblGLAccounts Join & amp; _Inline TLSLX TBBLSDE = TBL SLEX Slcode "& amp; _" WHERE tblAPInvSub.InvNo = @InvNo "LoadFromSql (query, parameter, command type text) Finally I where will do this Otherwise, this error will return: The wrong syntax near 'tblAPInvSub' Any thoughts about why this is happening? Put a location after

php - JavaScript isset() function -

इस सवाल का पहले से ही एक उत्तर है: 14 उत्तरों कैसे जांचें Isset जावास्क्रिप्ट में। मैंने निम्नलिखित तरीके से उपयोग किया है। var sessionvalue = document.getElementById ('sessionvalue')। मूल्य; यदि (यहाँ मुझे जांचना है कि क्या सत्र का संस्करण जारी है या नहीं) {यदि (सत्रव्यू == "" || सत्रव्यू == शून्य) {document.getElementById ('sessionvalue')। Style.borderColor = "red"; विवरण झूठा है; } और {document.getElementById ('सत्रव्यू')। Style.borderColor = "# ccc"; }} जब जावास्क्रिप्ट चर घोषित नहीं किए जाते हैं और आप उन्हें कॉल करने का प्रयास करते हैं, तो वे वापस आते हैं अपरिभाषित , तो आप ऐसा कर सकते हैं: यदि (सत्र का प्रकार == "अपरिभाषित" || सत्रव्यू == रिक्त)

svn - Create git repository using tortisegit -

I am facing this issue to create GIT repositories using ContrasGit and GIT Gear tool. Using GII tools, you can take any action to create a GIT repository. I tested it for stack overflow and found enough. You can use the GIT GUI for windows and use it easily. I have made a repository in GitHub and then used Windows on the clone and worked on it. You can download GIT UI from the space given below. However, I have read that the UI does not support all types of master level GIT functionality, which you can use from the git bash / command line. Git for windows Git UI for windows In addition to this, you can try on the link given below to use the turtle.

Python script executed twice with Eclipse PyDev -

I have a project named Architecture, which is used in eclipse PyDev, with the following architecture: automated_vertica src Root __init__.py RequestHandler.py RequestHandler.py is a module which is a bunch of methods and nothing else. __init __. There are just two lines in py : requestHandler print ('test') from the root import When I __ init __ . PyDev runs PyLev Eclipse console test twice if I remove the root from , then it works fine. Can you please tell me what I am remembering and what is happening here? Edit: Content on April 23, 2014 @ author: myname '' 'def fileTostring (filename): F = Open (filename,' R ') result = F is created. __init __ file as the root , this There is a module. When you run a , from module import , it executes any code in that module __init __ . And since your __init __ contains in , which is executed. Because you are running __init __ (which you should not be bitten), it is doing the...

java - What is the difference between #.## and ##.## pattern in Decimal Format? -

In my program I #. ## I am using the pattern decimalfile as shown below: decimalf df = new substitute ("###") ; By accident I have an additional # shown below: decimalf df = new decimal ("##. # # "); but it does not affect my output. I have tried to use different combinations of input that there is no difference in the output then "#. And ## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ########################### Edit: If both are - Why is it the same in both cases? Edit: Sample Program: import java.text.Dec ImalFormat; Public square tithe {public static zero main (string [] args) {double D1 [] = new double [] (100D, -100, -0.111111D, 2.555666D, 55555555555D, 0D}; decimalfile df1 = New Decimal False ("####); decimalfile df2 = new for the decimal number (" ## # # "); (double D: D1) {System.out.println (df1.format (d)); Println (df2.format (d));}}} Output: ...

ninject - SignalR initial connection very slow on page refresh (delay on OnDisconnected) -

I'm using Signal R for a while in my MVC5 project, but only in the recent weeks, had to face. / P> Every time I refresh a page or navigate to a different page inside my project, it takes a long time (between 3-8 seconds) to establish a new connection. [09:18:12 GMT + 0100 (GMT Daylight Time)] SignalR: SSE Endpoint 'http: // localhost: 53516 / signalr / connect? Transport = serverSentEvents and connectioÃÆ'à ¢ â,¬Å¡Ãƒâ € šÃ, · Attempt to connect to 22notehub% 22% 7D% 2C% 7B% 22name% 22% 3a% 22retailpriceindexhub% 22% 7 Day% 5D & amp; TID = 6 '. Jquery.signalR-2.0.3.min.js: 8 [09:18:18 GMT + 0100 (GMT Daylight Time)] SignalR: EventSource Connect. Although I do not use them in general, I have created those override methods for one of my hubs on the server, to see when breakpoints are being killed. : public override task on-connected () {var connectionId = Context.ConnectionId; Return basis.onconnect (); } Public Override Task on Reconnect () {var connectio...

java - Find map value with highest number of occurrences -

मेरे पास मानचित्र & lt; पूर्णांक, पूर्णांक & gt; 1 10 2 10 3 20 5 20 6 11 7 22 मैं नक्शे के अधिकतम दोहराए मान कैसे प्राप्त करूं? इस मामले में - वह 10 & amp; 20. दोहराई गई संख्या 2 के मामले में 2 है। हैशप पर लूप, और पुनरावृत्तियों की संख्या की गणना करें । के लिए (पूर्णांक मान: myMap.values ​​()) {पूर्णांक संख्या = 1; अगर (countMap.contains (मान)) {count = countMap.get (मान); गिनती ++; } CountMap.put (मान, गणना); } फिर परिणाम मानचित्र पर पाश करें, और अधिकतम खोज लें: पूर्णांक maxValue = 0; (नक्शा। प्रविष्टि & lt; पूर्णांक, पूर्णांक & gt; प्रविष्टि: countMap.entrySet ()) {if (entry.getValue = & gt; maxValue) {maxValue = entry.getValue; maxResultList.add (entry.Key); }}

windows - service bus 1.0 not showing up in web platform installer 4.6 for Window7 -

I am trying to install Service Bus 1.0 on a machine (VM). When I'm searching for "Service Bus 1.0" in Web Platform Installer 4.6, it is not able to find it. I have downloaded the .exe file manually. When setup is started, it redirects me to the Web Platform installer and then I'm not able to get Service Bus 1.0. My operating system is Windows 7 Professional Edition, 64 bit OS V2012 installed I have SQL Server 2008 R2 Express Although the same configuration (window 7, 64 bit ) Is able to successfully install the service bus through my partner Web 2.0 installer. > What is the reason for this problem with any idea? Search Web Platform Installer for "Windows Ezur Pack: Service Bus 1.1"

scala - What's the rule to implement an method in trait? -

I have defined an attribute: attribute A {def hello (name: someone Also): any one} Then apply it to a class X: class X one {def hello (name: any ) Expands: Any = {}} It has been compiled after which I change the type of return in the subclass: in class X The extension is {def hello (name: any): string = "hello"} also compiled Change the parameter type: square X extends a {def hello (name: string): any = {}} it does not compile This time, the error is: Error: Class X must be intact, because the type of method is in Hello (name: any) None is defined (note that None matches string: The class string in the package string is a subclass of class, in the package scal E, but the method parameter types match exactly.) It seems that the parameters must match exactly but the return type can be a subtype of the sub-class? Update: @ Mik378, thanks for your reply, but why the following examples can not work? I think it does not break Liskov: attribut...

scala - why the main app doesn't exit when calling a timer.schedule -

In the following, it runs a calculation after a delay of 2 seconds, but when the app is running, it never goes out What is the code to block the app to exit? Object Test App {import scala.concurrent._ import java.util._ import java.util.concurrent. {TimeUnit} val timer = New Java Ooty Timer () Def Timeout Future [A] (V: A, Delay: Long, Unit: Time Usenet): Future [A] = {Printline ("Inner") Val P = Promise (A) () Printlen ("Internal" ) Timer. Scheduling (new java.ttill Timurtsk {DRF ()) (PSUITS (V)}}, unit miles (delay)) println ("inner") p. Future} PrintLen ("start") Val x1 = Timeout future [int] (1 + 1,2, time USnet SEOCNDS) printline ("end") printen ("ebt")} valid timer = new java.util.Timer () a timerdad (Which has been implemented as a standard Java thread and an infinite loop), which is running in the background and prevents its application from exiting. You can run System.exit (0) at the end of your s...

jquery - Swapping two text box values -

मेरे पास दो पाठ बॉक्स मान हैं: - var pickup = $ ('# txt -पिक अप'); Var गंतव्य = $ ('# txt-destination'); और मैं दो मानों को स्वैप करना चाहता हूं: - pickup.val (destination.val ()); destination.val (pickup.val ()); हालांकि, उपरोक्त दोनों मूल्यों को समान मान के रूप में हमेशा सेट किया जाएगा। (गंतव्य मान के समान) क्या इन दोनों को एक ही समय में बदलने का एक तरीका है? मैंने आपके लिए एक जेएसएफडियल बनाया: & lt; इनपुट आईडी = "txt-pickup" type = "text" / & gt; & Lt; इनपुट आईडी = "txt-destination" type = "text" / & gt; & Lt; इनपुट आईडी = "परिवर्तन" प्रकार = "बटन" मान = "स्वैप" / & gt; $ (Document) .ready (function () {$ ("# change")। पर ('click', function () {var pickup = $ ('# txt-pickup')। Val (); $ ('# ($ ('# Txt-destination')। Val ()); $ ('# txt-destination')। Val (पिकअप);});});

jquery mobile - how make a listview item like controlgroup? -

I want to show my data like this, a little like control group, but controlgroup seems to merge two labels Does not happen, how can I? This is my code (temporarily), but I hope there is a line between those people (e.g. Control Group). & lt; ul data-roll = "listview" data-inset = "true" & gt; & Lt; Li & gt; & Lt; Div & gt; Name & lt; / Div & gt; & Lt; Div class = "ui-li-aside" & gt; Name 1 & lt; / Div & gt; & Lt; / li & gt; & Lt; / Ul & gt; You can do it by modifying CSS. HTML & lt; ul class = 'my_list' data-role = "list view" data-inset = "true" & gt; & Lt; Li & gt; & Lt; Div & gt; Name & lt; / Div & gt; & Lt; Div class = "ui-li-aside" & gt; Name 1 & lt; / Div & gt; & Lt; / li & gt; & Lt; / Ul & gt; CSS . My_list li {padding: 0px! Important; }. My_list li div {padd...

sockets - IndexError when applying setblocking(0) for a Blender3D Python script -

I am currently running a script with Blender 3D which I have placed in Python 3+ from Python 2+ ,. The script creates communication between the Omron PLC (programmable logic computer) and Blender / Python 3+. The script uses TCP communication to write and read memory of PLC. After the port the script runs properly in Blender, it is only a big problem and forces Blender to run at 6 fps. Python sockets are blocked by default. This means that when you call socket.read () , the function will not return until your data is being read or there is an error on the socket. I.e. socket "block" execution until the operation is completed. Because your code is blocked in the code recv () , your game gets freezed. This link states that if you add setblocking (0) or setblocking (false) or Settimesout (0) (all the same), you will cancel the delay due to TCP communication. To work on it, except to avoid a socket error, Tried to wrap your recv () call: BlockingIOR: [WinError...

iron router - trying to use params on main route (/) of my meteor app -

I am trying to use the parameters on my main path but in fact the parameters are not set and they are used in the path Is done: router.map (function function clausotorometer () {this.route ('home', {path: '/: _ redirect?', Action: function functional client rotormap action () {Console.log (this.path, this.params);}})}); Now what do I get if I try manual redirection here: router.Go ('home'); // it's / = & gt; Redirects right on the router. Go ('home', {_redirect: test}); // it.path = test, and this is empty. How can I use _REDirect as a parameter and no way? thanks router.Go your first argument (Copy) as a path. So if you are going to the program as the same result as the user / redirectMe anywhere , then you can use it only: router.Go ( '/ Redirects are anywhere'); and this.params._redirect should be 'redirection anywhere anywhere' . Note that @pandua means if you have other routes then this ch...

osx - excel macro search for word and copy sentence -

I hope someone can help me with this problem. I have two documents, one word and one excel is a list of items in the word file, for example: title subtitles 1 Name Address: Phone Number: 2. Name Address: Phone Number: 3. Name Address: Phone Number: In my Excel file There is a list of words in the nearest column D, what to do, take the word from column D, search for it in the word document, and then from "address" to "." For, copy the column C (i.e., from one cell to the left), and then after the "phone number:" "." And put it in column B. One of those parts, which I can not wrap my head, is going from the next set, name, address and phone number to the next set. Can anyone help me with a macro how to do this? I thought it in its detail: Sub word search () 'Purpose: "title" and "address" if they both appear in the form of dim rng1 Range dim Rng2 range in the form of a string set in the form of strhe...

Load the fragment when notification is click android -

I have a problem with my application. I have a notification that is pushing in the action bar when you click on notification , You will be redirected to the specific activity you set. In my scenario, once the notification is being clicked or touched, I should be redirected to a specific piece of my current activity. (The current activity is to handle the pieces) Now, this was the stock I had, I tried something like this, but no luck. When the notification is clicked, it will launch another activity (notification control activity), which, when loaded, will call the correct activity and display the piece (a public method to load the pieces). My error is, I can not cut the notification controller activity in the current. 'Mi for solution). I appreciate your feedback. Thank you // Set intent pending notification for intent Intent = new intent (this, activity required). Intent.putExtra ("key1", value); Intent.putExtra ("key2", value); Pending print pI...

Google Drive API method Drive.File.update Can Silently Fail to Update File Content -

Using the Java Google Drive API v2r109lv1.16.0-rc, we found that sometimes the files are correct using the drive Not updated in a manner. Files update method seems to have occurred sporadically between customers on April 22, 2014. Before that it was working fine. We are updating the file with new content and meta data. Meta data is fine but the file content is not touched. There is no error and as far as it can be said that without any problem the operation is successful. This occurs when a user accesses the file, which is seen by us, for example, if the desired file content update is more than the previous content, the meta information (file size) will be incorrect and The reading will fail We are really struggling to create a breeding landscape. Is anyone else experiencing this problem, or is aware of any fix, or if Google has an underlying problem (hopefully) fixed? I am not convinced that this problem is reliably fixed I really need some clarity from Google. This i...

javascript - DeferedRender set a true caused problems with a text editor extjs 3.4 -

The reader does not perform well because the renderer event was first launched and has been portrayed larger than before, I tried it with: deferredRender: true But for this reason I do not like to charge data before opening a tab, Because I need to send it to an update event. So what could I do? I also tried with the Lateout: False, but I have only one problem. any solution? Thanks! Never use deferredRender: True, it thinks that it is very difficult and everyone is crazy. XD are created. / P>

javascript - Knockout share a binding handler -

I am currently building a huge number of apps in knockout. There are three types of numbers in my app: percentages, decimal and large numbers and I have each type of custom binding handle. Recognition I have a number of input Baindinghandlr is also designed to ensure reads each keyboard that it has a number of input (app attractive range CSS animation and stuff - it's just a bare Bones have been snatched for example). Now to input the verification check and number, tie me twice with the variable because you will see right below in Bela. & lt; Input data-bind = "number: test data, percentage: test data" & gt; I think it is unnecessary as the flapping my HTML markup and should be a strong way to trigger both handlers at the same time. My question: It is possible to create number verification scripts as a function, which can then be shared / included within number formatting operators; I am still a newbie, so I am still unsure about its boundaries...