Posts

Showing posts from February, 2012

c# - How to add an event into the Windows Message Pump queue? -

VB Net / C # - Using Net Framework 3.5 I'm currently in a handler for a WinForms event (for example) in handler, I want to keep my own event for the windows pumping of the message, but at the end of the queue (assuming this PMS message is FIFO). I would like my handler and any additional handlers to run my current context and to pick up my custom event later that I put in the queue and called its handler, how can I drag any sample code into a stretch event queue Can Incorporate Incident (What Language Does not Care)? If you want to add a message to the queue, you only need P / Invest. According to the documentation, this function: The location (post) messages that create the specified window and the messages in the queue associated with returns without waiting for the thread to process the message hWnd is a handle for your window, whose window should receive the process message. In WinForms, it can be recovered using the handle property. msg is the messag...

php - Decimal number with only 10 digits for the integer and 6 for the decimals? -

Suppose that the number given to me is 47.50, how can I allow the integer for 10 digits only and for decimal 6 as it is 0000000047.500000 or another example: from 3475.95 it is 0000003475.950000 // Is it ok to use the strappad? How can I use it? $ amount = straw_pad (3475.95, 10, '0', STR_PAD_LEFT); is not the most beautiful approach, but hey, we're talking about the script Are you, right? & lt ;? Php $ value = 47.56; Echo Sprintf ('% s.% S', str_pad (int) $ value, 10, '0', STR_PAD_LEFT), str_pad (substr ($ value- (int) $ value, 2), 6, '0' STR_PAD_RIGHT) ); ? & Gt; Sorry, could not resist. But obviously, the correct solution was Mark Baker in his comment above: sprintf ("% 016.6f", 3475.95); ...

c# - XirSys Credentials Validation -

I have requested a POST request for XirSys to obtain a list of all my servers and credentials. Is there any way to confirm that Credential XirSys provides me the job? I am passing them in a third party conferencing solution and this relay candidates are not prepared. Using the custom turn server solution, conferencing works as expected, so I have a way to verify that the user / password I am using for XirSys. Working. It seems like you initial mail request worked. If this works, you should get a warning of 200 conditions. All of you should be confirmed - if you have all the credentials right then you will get only 200. As far as he is passing in a third party, is this a conferencing solution? Do you have any code that I can work to help you? If this is a very specific use case, please contact us at expert@xirsys.com and we will correct you from there.

vba - How to conditional format data in multiple columns by hardcoding what the column's header name is? -

I am looking to run a series of conditional formatting rules on two columns of data. I know that I can select a column sheet and all the cells in that column, but to make my macro more complete proof I want to search for it in the column headers and on the cells below two specific headers I want to run the formatting. I have used record macro tools at present to see how this might work, and this is my current setup. This macro works, I make it full-proof and specific I want to search through the worksheet for column title names. I would like to find a videocassette for the column heading "Header 1" and "Header 2". sub-two column consultancy () column ("K: AJ"). Select the selection. Add format rule type: = xlTextString, string: = "CONTAINSTEXT1", _TextOperator: = xlContains Selection. Format condition (selection.form condition.quant) .Satfestprice selections. Format Conditions (1) .folt .color = -16383844 .tintedshot = 0 end with end wit...

pdf - How do I use different prefixes when renaming multiple files in Java? -

I'm trying to create a Java app (with swing) which designates PDF files with a set naming convention is. Currently files are named: 1.pdf, 2.pdf ...... 10.pdf, 11.pdf ...... 20.pdf, 21.pdf etc. . So I decide to add a prefix (ABC_0) to the filename. The new file name should be: abc_01.pdf, abc_02.pdf .... abc_10.pdf, abc_11.pdf ...... abc_20 pdf, abc191 pdf etc. So far everything is working fine. The problem is facing only that when a prefix is ​​added to a PDF file name with a number 10 and above, The name changes: ABC_010.pdf, ABC_011.pdf .... .. ABC_020.pdf, ABC_021.pdf etc. This is incorrect 0 should be paired with only 1 number in the PDF file names. Can you help me? This is the code with which I need help. {string dir = ttttsrc gttext (); String addPrefix = "ABC_0"; File directory, errorfile 1; File old file, new file; String newname; String filename []; Int i, count; DirFile = New File (DIR); If (Dirfile.exists () ||! DirFile.isDirec...

python - iterating over a tuple of iterables returned from a function -

ci0 = np.random.randint (10, आकार = (15,)) uq, ix = np अद्वितीय (ci0, return_index = true): मैं, ज़िप में (यूके, ix) के लिए: print i, u क्या यह एक पंक्ति में एक अच्छा पायथनिक तरीका है? विशेष रूप से, np.unique (टपल के रूप में लौट आए) के परिणामों से दोहराएं। ऐसा लगता है कि वहाँ होना चाहिए, लेकिन मैं सोच सकता था कि एकमात्र समाधान यह है, जो मुझे लगता है कि यह बहुत मुश्किल है सुरुचिपूर्ण: के लिए मैं, में np.transpose (np.unique (ci0, return_index = True)): आप उपयोग कर सकते हैं (splatting): ci0 = np.random.randint (10, आकार = (15,)) मैं, यू में ज़िप (* np.unique (ci0, return_index = True)): प्रिंट I, u बेहतर समझाने के लिए, निम्न कोड पर विचार करें: func (* (1, 2, 3)) यह इसके बराबर है: func (1, 2, 3)

java - 'Unbalanced quote exception' while running html file on Netbeans -

I have a problem running any HTML file on Netbeans 8.0 . This gives me the following exception - Unbalanced quotation in Xbootclasspath / p: C: \ Users \ KEM \ PC \ Documents \ NetBeansProjects \ PrisonWare \ lib \ javaee-endorsed-api-6.0 \ Javax annotation.jar; C: \ Users \ KEM \ PC \ Documents \ NetBeansProjects \ PrisonWare \ lib \ javaee-endorsed-api-6.0 \ jaxb-api-osgi.jar; C: \ Users \ Cem \ PC \ Documents \ NetBusiness Project \ PrisonWire \ lib \ javaee-endorsed-api-6.0 \ webservices-api-osgi.jar I really do not have this exception Understand exactly Yes, quotes on the way and spaces look like criminals.

c# - Dog to Human years and vice versa -

itemprop = "text"> I try this example problem where I have to make two underlying conversion operators to make a dog class from a human and vice versa I am doing the opposite Classes need to be taken into the fact that the human year is 7 years of dog. I was told that if the dog is going from human years to years, then to ensure that the type of age is still an int (definitely) and there may be some need to change clearly for this. I do not know how to define the doggahuman. Nam, kuttateamaman.ege, Manavatod. Nam and Manavatod.Ege. I am new to programming, so I have not been used in this format. To begin with, any number will work like 25's human age. class human {public string name; Public Eh age; Public Human (name of string, int age) {name = name; Age = age; }} Class dog {public string name; Public Eh age; Public dog (string name, int era) {name = name; Age = age; }} Class ConversionQuestion {static void key (string [] args) {Console.WriteLine ("As a huma...

java - Type symbol not found in inner class -

[edit: I've re-written the code to make it easier to re-handle and hand over this issue I'm working on this particular part of the code: class SimpleFactory {public SimpleFactory build (return) {return null} } Class SimpleFactoryBuilder {Public Object Build (Final Class Builder Clause) {Return New SimpleFrench ({@ Override Public Simplefactor Build () {New Builderclose. New Instance (); }}; }} However, in the return statement, the builder starts the error "Can not get new instant", it seems as if BuilderClazz was not recognized as class object. How can I work it out? Edit: Solution (thanks for the dcharms!) The above code is partial code with the simplification of the code I was working below given code Has been simplified yet but all the components have been included in it and include solutions provided by solution dcharms. package com.example.tests; Interface IProduct {}; Interface ISIMPAFactory {Public IP Product MakePodt (); } Class Product I...

ios - Adding Links to Buttons using Parse keys -

So I'm trying to open a link with a button using a query from parse. So the query works since the image and comes to the top. Keys "link" load even after NSLog. It's just that whenever the view is loaded, the first link in the list is automatically opened. I'm just wondering why I want it to load it when the button is pressed and when the footage is loaded. If there is any question, then I will try to answer them to clarify the problem. Thanks in advanced! (PFObject * homeObject in self.homeObjectArray) { UIView * homeImage = [[UIView alloc] initWithFrame: CGRectMake (0, original, self .featuredScrollView. frame.size.width, 300)]; // imagePFFile * image = (PFFile *) [homeObject objectForKey: @ "imageFile"]; UIImageView * userImage = [[UIImageView alloc] initWithImage: [UIImage imageWithData: image.getData]]; UserImage.frame = CGRectMake (0, 0, homeImage.frame.size.width, 320); [Add home imageviewview: user image]; // Label UILabel * headingLabel =...

javascript - Google Maps JS API v3 - Simple Multiple Marker Example -

Image
is an array of fairly new I have data in Google Maps API do what I want to cycle and plot a cycle. Looks quite simple, but I've found that all the Multi Marker tutorials are quite complex. For example, use the data array of Google's site: var locations = [ 'Bondi Beach', -33.890542, 151.274856, 4], [ 'Kogi Meanwhile, -33.923036, 151.25 9 52, 5], [ 'Cronulla beach, -34.02824 9, 151.157507, 3], [' Manly beach ', - 33.80010128657071, 151.28747820854187, 2], [' Maroubra beach ', -33.950198 , 151.259302, 1]]; I just want to plot all these points and I name should get an info window that pops up when you click to display. Any help is greatly appreciated! This is the simplest, I can reduce it have: & Lt ;! DOCTYPE html & gt; ; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Google Maps off...

heroku - Which rails gem do I need? -

I just locked one rail app after that, after which my rail server no longer works. It gives the following error Bin / Rail: 4: In `requirement ': Can not load such files - Rail / Order (Load Irr) without bin / Rail: 4:` & lt ; Main & gt; I ran gem query - local and saw that 4.1 was set up. Will someone tell me what is this error and how to solve it Who is you in your path Need to check the rails from ... You are probably running on a Mac which is a native rail. Read this documentation to learn how to set your default Rail example. â

write python script for UNIX command lines -

O HTTP = "text"> Hey, I have been using a regular compiler in the next week and the professor wants us to write a script, actually command lines. I'm new to writing Python and script on Unix How do you write scripts on Python? We must write these steps For each experiment, follow these steps: For each benchmark directory, in that directory Make changes and compile the code with one of the customization levels. For example: cd adpcm gcc -O0 -o adpcm-O0 adpcm.c Time of the executable: time ./adpcm-O0 Record a record. You can take 3-5 runs by average to get the time shown for stable results. Use the display measurement tool on the grind: Run rpistat on executables eg Rpistat ./adpcm-O0 generates a text file rpistat.txt in the same directory. Record the chakras and instructions (for the number of instructions [Use the values ​​in the brackets]). On laboratory workstations: Proofs like Perf stat ./adpcm-O0 to run on executables that print on stdout (if you wish, you...

javascript - Fix focus on input field -

There is no way to focus on the input field, say, the user enters 4 letters? Because of this, I need this because I do not have the background of my text area (stylistic purpose) and if the user clicks on a random place on my page then many users will find it difficult to find text area. Here is my text field and button & lt; Div id = "inputtext" & gt; & Lt; Input type = "article" id = "dream" "autofocus /> input type =" submit "id =" next post button "value =" next step "onclick =" window.open ('step3.html ',' _self ',' resizable = yes') "/> I already have some scripts running the button which hides the button And some div changes when text fields contain at least 4 characters. It would be great if I can also implement a permanent focus on this script. $ (function ( ) {$ ("# nextstepbutton") Hide (); $ ("# dreamtext") .keyup (function...

Create a CSV file in php -

I want to create a new CSV file with some values ​​in it and my upload directory. Can anyone guide me how I can create a CSV and what code should be written in PHP, besides, I want the CSV file with the input parameter of the form and the current date. Example: Test_24-04-2014.csv . It would also be great if you can advise me how I can define a column header. Example: ------------------------------- --------- Senior No Name ------------------------------------- --- See this as an example, first off, definitely You need a form from: Sample Form: & lt ;! - HTML - & gt; & Lt; Form method = "POST" verb = "processes_the_form.php" & gt; Senior Number: & lt; Input type = "text" name = "srno" /> gt; & Lt; Br / & gt; Name: & lt; Input type = "text" name = "name" /> gt; & Lt; Br / & gt; Invt.: & Lt; Input type = "text" name = "invt" /> ...

c# - Uncaught TypeError: Cannot read property 'replace' of undefined -

I am new to using the Kendo grid and the Kindo UI. My question is how can I solve this error The property can not read 'replace'. This is my code on my computer. error rowTemplate: kendo.template ($ ("# rowTemplate"). Replace ('k-alt', ' ')), HTML of the line template & lt; Script id = "rowTemplate" type = "text / x-kendo-tmpl" & gt; & Lt; tr class = 'k-alt' & gt; & Lt; TD & gt; $ {First name} $ {last name} & lt; / Td> & Lt; / TR & gt; & Lt; / Script & gt; thanks :) I think the element to jQuery can not be found . Find the first element var rowTemplate = document.getElementsByName ("RowTemplate"); or var rowTemplate = document.getElementById ("RowTemplate"); or var rowTemplate = $ ('# rowTemplate'); Then try your code again rowTemplate.html (). Replace (....) This question is already available:

Wordpress admin submenus not appearing -

When I log in to my Wordpress site, I get some problems The submenu of the admin area is not visible when I click the menu I'm hovering on. Apart from this widgets area is completely messed up. It is very difficult to use widgets. I tried to define ('SCRIPT_DEBUG', true); In my wp-config.php file, but it does not help, I have also tried to disable all the plugins and return to the default theme. Please help me Based on issues, this is a jquery There is conflict or error. Please deactivate the plugins one by one and see that due to this issue, you probably have admin style plugin or something else. Thanks Cheers!

ruby - In Capybara, does :exact or Capybara.exact apply to have_selector? -

I'm having trouble using CapAbra's has_selector , actually . I know that this can be done using a regular expression, but by my reading I came to believe that I : exact arg or set Capybara.exact = true I can use. I am currently using CapAbara 2.2.1. Here's what I have: Believing that I have a page (called "test page"). On this page is: & lt; Div id = "my_div" & gt; Abcdef & lt; / Div & gt; I have a cucumber feature test that looks like this: Feature: Exact text matches Test has_selector scenario for: I am on the test page, then I should get a partial text match "bcde" in my div and I should get partial text match "abcdef" in my div and I get an exact text match using regexp "abcdef Should be "in my div and use a regexp in my div" bcde "using an exact form The match should not be met and I should get an exact text match using "abcdef" RG in my div and I should not get an...

php - Missing @ Symbol when using $this->input->get() -

I am currently practicing to create a Joomla MVC component and so far everything works well, except That's when I submit a form with an element & lt; Input type = "text" value = "" name = "email" placeholder = "your -email@domain.com" /> For example, with a value like email@domain.com JControllerLegacy is emaildomain.com . @ missing notice. I value the form $ email = $ this- & gt; Input-> Is getting ('email'); Is this a feature of Joomla which I do not know about? Try it, this issue is due to the Joomla filter. You can try to do something like this, $ email = $ this-> Input-> gt; Get ('email', null, 'string'); Hope this will work.

javascript - why does line_chart in Chartkick has to show time on a date data? -

I'ved एक लाइन चार्ट की तरह तारीख डेटा के साथ (समय सहित नहीं) नया चार्टकिक। लाइइनचार्ट ("चार्ट -2", {"2013-02-10": 11, "2013-02-11": 6}); क्यों chartkick हमेशा समय शामिल करने के लिए है? मैं केवल दिनांक में श्रृंखला कैसे दिखा सकता हूं? यह जवाब है, असतत और एचएक्सिस के साथ नया चार्टकिक। लाइइनचार्ट ("चार्ट -2", {"2013-02-10": 11, "2013-02-11": 6, "2013 -02-12 ": 12," 2013-02-13 ": 5}, {" लाइब्रेरी ": {शीर्षक:" कंपनी प्रदर्शन "," एचएक्सिस ": {" शीर्षक ":" दिनांक "," ग्रिडलाइन ": { "गिनती": 3, "रंग": "# सीसीसी"}, "प्रारूप": "dd / MM / yy"}}, "असतत": सत्य});

LISP nested Loops perform in parallel. How would one force it to perform sequentially? -

I have been learning Lisp slowly since the last two weeks. I have come in a situation where lisp presents two loops in parallel, and what I am not aiming for. If I understand correctly, what I want to achieve will be classified sequentially. To give you an idea of ​​what happens to you, we can take a look at the following: (for 'y') (in '(ABCDE)' in the loop ('1 2 3 4 5') ) With this type of coding, one will get: (A1) (B2) (C3) (D4) (E5)) But what I want is: (A1) (A2) (A3) (A4 What changes would I need to make with this loop to get the desired result? (A5) (B1) (B2) (B3) and so on I am wrong to use the word "successively", please correct me. I am studying on it, but I have a hard time. You need a nested loop: (loop 'x' in 'abcde') nconc (y 'loop' (1 2 3 4) 5) Collect (list xy))

jquery - Retrieve specific value from Javascript object -

मेरे पास जावास्क्रिप्ट ऑब्जेक्ट है जो जावास्क्रिप्ट व्हेरिएबल को निर्दिष्ट प्रारूप के साथ है: var घटनाएं = [["आईडी": 20, "ग्राहक आईडी": "मार्क", "ग्राहक नाम": "मार्क विकीकंस", "कोड": "सीटी 6789", "ग्राहक डेट": "\ / दिनांक (1466679600000) \ /", "स्तर "," ग्राहक ",} {" आईडी ": 94," निवल "): [" आईडी ": 92," निवल ": 0," कोड 1 ":" बिक्री "," कोड 2 ": रिक्त," विवरण " "," कोड 1 ":" विक्रय "," कोड 2 ":" विवरण ":" ग्राहक ",}}, {" आईडी ": 21," ग्राहक आईडी ": 14," ग्राहक नाम ":" जॉन स्टेवार्ट " , "कोड": "सीटी 70000", "ग्राहक डेट": "\ / दिनांक (146667970000) \ /", "स्तर": [{"" आईडी ": 102," निवल ": 0," कोड 1 ":" नौकरियां ...

create text file in /tmp folder in Linux using c language -

सी भाषा का उपयोग करके मुझे / tmp निर्देशिका में एक टेक्स्ट फाइल बनाने की आवश्यकता है, लेकिन मैं पता नहीं यह कैसे करना है क्या कोई है जो जानता है कि / tmp फ़ोल्डर में एक टेक्स्ट फ़ाइल कैसे बनानी है? से लिया गया #include & lt; stdio.h & gt; int main () {FILE * pFile; PFile = fopen ("/tmp/myfile.txt""""); अगर (pFile! = NULL) {// लिखना fclose (pFile); } वापसी 0; } यदि /tmp/myfile.txt नहीं है तो कोई भी नहीं बनाया जाएगा।

c# - Windows.Forms.WebBrowser Control not using correct Document Mode -

I have web browser controls in one standard window forms. The machine on which IE11 is running operates. Where WBR is an example of WebBrowser control, wbr.Version.Major 11 means that it is using IE11. Above the document at the following with a web page: In the document.documentMode calling Javascript returns '8'. This means that the page is appearing in IE8 document mode (and the output, which appears in CSS3, is not rendered correctly). I have also explicitly set the browser emulation mode in the registry for both the 11001 and 11000 applications. (See) Why is IE11 WebBrowser Control able to shed some light as both doctype and meta tags are being set even though 8 document mode is set? Thanks I'm sure why doctype and meta tags still be set While WebBrowser control prevents operating from running in IE11 mode, due to the difference in 32-bit and 64-bit registry registry hacks is not working. If you are editing the registry for 32-bit applica...

Why there is no access modifier named "Visible"? -

सी ओ ++, जावा या सी # जैसी भाषाओं में, सार्वजनिक , निजी , संरक्षित । कुछ भाषाओं में अन्य संशोधक जैसे आंतरिक है वे सभी निर्दिष्ट करते हैं कि कौन निश्चित चर या विधि का उपयोग कर सकता है। और चर के लिए, यह शब्द पहुंच दोनों को पढ़ने और संशोधित करने की क्षमता का मतलब है। लेकिन वेरिएबल तक पहुंचने का सबसे आम परिदृश्य, इसे दूसरों के लिए सार्वजनिक रूप से दिखाई दे रहा है, लेकिन क्लास के भीतर संशोधित करने की क्षमता रखते हुए। और यह गटर सेटर आदि का उपयोग करते हुए कई रणनीतिओं के माध्यम से प्राप्त किया जाता है। मेरा प्रश्न यह है कि हमारे पास सबसे सामान्य परिदृश्य के लिए एक एक्सेस मॉडिफायर क्यों नहीं है, जिसका नाम visible ? फिर इसके साथ चिह्नित चर बाहरी कक्षाओं या विधियों द्वारा पढ़ा जा सकता है। लेकिन केवल वर्ग में ही संशोधित किया जा सकता है। आपका सुझाव कार्यान्वयन विवरण को प्रोत्साहित करेगा कैसे सार्वजनिक करने के लिए वर्ग के भीतर राज्य का प्रतिनिधित्व किया जाता है। एक स्तर के indirection - गुणों का उपयोग करके - आप इसके कार्यान्वयन से एक प्रकार के सार्वजनिक एपीआई को अलग करने की अन...

c - Using one array print frequency of elements in array? -

Write an algorithm that is given an array of numbers, prints all the specific values ​​of A, each after its Number of events For example, if A = & lt; 28, 1, 0, 1, 0, 3, 4, 0, 0, 3 & gt; , the algorithm is isolated from the following five lines (here is the semicolon 28 1; 2 2; 0 4; 3 2; 4 1 . algorithm A can modify the contents of the , but no other memory can be used. Each specific value should be printed once. The values ​​can be printed in any order. Arrange your array Change the current values ​​and the number of its frequencies and print the current value / count when changes in the current value This solution has additional memory Not required and complexity is the "heaviest" part of the sorting algorithm in the form of O (n * log (n))

cognos - Chart's y-axis line minimum value -

Image
I have a problem with chart properties Before this, there is an option to set the minimum price. I was able to set it up, but it suddenly changed and I could not find the option to set it up again. How can someone change it from: Click on the axis and set the property "axis range"

sql - Max function with where clause -

I am using MS Access 2007 and this is my basic SQL query: But when I modify this query (below) to display the record for the latest date, I get an error saying that where I use the maximum function with the segment Can not: SELECT rates.UNIT, Rates.PROJECT, Rates. [Date_of_CM memo], rates Rates, Rates The rates are marked by the check, where the check (= (.UNIT) = [check]. [Unit_name]] and (max. ([Dated_ofobm mmm]) & lt; [check]. [Reg_Date]))); You can not just enter MAX WHERE in other total functions ), but you can put query in the same way: SELECT Rates Unit, Rates Project, Rates [Date_ofobmmmo], rates Rates, Rates Rates from rates, checks WHERE (rates. Units) = [check]. [Unit_Name]) and (Select Rates from MAX (Rates [Date_ofMMMMO]) & lt; [check]. [Reg_Date] )));

php - how to convert datetime from mysql to doctrine2 odm in zf2? -

I used doctrine2 Odm in zf2 but my updated query store incorrectly results to date how i set the date 2 in principle Will do? Here is my update query: if ($ this-> getRequest () - & gt; isPost ()) {$ post = $ this- & gt; getRequest () - & gt; GetPost); $ Form & gt; setInputFilter ($ form> getInputFilter ()); $ Form & gt; SetData ($ post); // resonance '& lt; Pre & gt; '; // print_r ($ post); // die (); If ($ form-> isValid ()) {$ formData = $ form-> GetData (); $ Update = $ dm- & gt; createQueryBuilder ('Calendar \ Document \ Event') - & gt; Update () - & gt; Field ('Title') - & gt; Set ($ post ['title']) - & gt; Field ('Description') - & gt; Set ($ post ['description']) - & gt; Field ('Start') - & gt; Set (date ('Ymd H: i: s', $ post ['begin']) - & gt; field ('end') - & gt; set (date ('Ymd H: i: s', $ post ['En...

ember.js - Ember Relationships without Ember Data -

I have an amber app where some models use amber data and do nothing. My question is the best way to build relationships between these models and to structure the model relations. Model Currently I have the following models: Food Food uses amber data There are many excerpts fraction Uses Amber Data Is A Food Foods In my app, I need to have a unique record in which there is a weight field with each part from any related food Should remove somewhere values ​​should be part of a meal. Question Parts should have a model in it itself, we should store it in the form of a type of array-type structure in the form of a field On food (example: parts )? Consider that one part is not reusable and is only able to be associated with a single meal. If there is "yes" for # 1, how can my food model DF look? As the food does not use AMR data, is the best technique for defining the relationship between a fraction and food? ...

what should I do with 2 main function in libsvm for c# -

I want to use libsvm for classification function but there are 2 main functions and one in my program is. Because of this, the earrer: "More entry points are defined" How can I fix this? Should I delete other main functions or what? Yes, you should remove any one of your main functions. The .Net framework allows only one entry point per .EXE. The entry point is nothing but the gem function.

jquery - New line is ignored while submitting text -

On the client side I'm using jquery and server-side spring MVC. I have a lesson: This line is 1 this line is 2 If I submit it to DB Then it is stored in this line1 is the line 2 means new To see line breaks on the HTML page, \ n characters & lt; Br / & gt; . For example in Java: string output = withbrew = inputwidbread.value ("[\\ r \\ n] +", "

authentication - Use OWIN Ws-Federation package to authenticate against ADFS 3.0 -

I have a MVC intranet site that requires authentication to use advertising accounts. I set up ADFS 3.0 (Win Server 2012 R2) and go to setup the AdFS Rising Party Trust. Other posts present the Ws-Federation OWIN component and I want to use it. It tells you how to connect to a Azur ED but nothing about ADFS. I tried to set the configuration properties "Metadataadata" and "WaterHail" for the configured configurations in ADFS, but at runtime, I get an error: A default value for SignInAsAuthenticationType is the IAppBuilder Could not be found in multiplier if your certification middleware has been added in the wrong sequence, or if one is missing. Any idea or sample code is showing how to do it? Yes .. I came to the same issue. Just do the following and it should work: app .set default signinAuthorization type (WsFederationAuthenticationDefaults.AuthenticationType); App.UseCookieAuthentication (new cookie authorization option {authentication type = WsF...

javascript - after Checkbox check sum will be display at label -

& lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; $ (Document) .ready (function () {function recalculate () {var sum = 0; $ ("input [type = checkbox]: checked")। प्रत्येक (function () {sum + = parseInt ($ (this) .attr ("value"));} $ ("# tot")। Html (sum);} $ ("input [type = checkbox]")। परिवर्तन (फ़ंक्शन () {recalculate ();}) ;}); & Lt; / स्क्रिप्ट & gt; & LT; बॉडी & gt; & Lt; form id = "form1" runat = "server" & gt; & Lt; asp: ToolkitScriptManager आईडी = "ToolkitScriptManager1" runat = "सर्वर" & gt; & lt; / asp: ToolkitScriptManager & gt; & Lt; asp: TabContainer ID = "TabContainer1" runat = "server" ऊँचाई = "500 पीएक्स" चौड़ाई = "500px" ActiveTabIndex = "0" & ​​gt; & Lt; asp: TabPanel आईडी = "tbpnl1" runat = "server" & gt; & LT; HeaderTemplate &...

javascript - By default how to set "zoom in" to image instead of "fit to screen" in iviewer? -

मेरे पास Iiviewer में निम्नलिखित कोड है यहां मैं संपूर्ण ग्रे बॉक्स में छवि को भरना चाहता हूं। HTML: & lt; div id = "viewer" वर्ग = "दर्शक" & gt; & lt; / div & gt; JS: var $ = jQuery; $ (दस्तावेज़) .ready (फ़ंक्शन () {var iv1 = $ ("# दर्शक")। Iviewer ({src: "http://test.dpetroff.ru/jquery.iviewer/test/test_image.jpg", update_on_resize : झूठी, ज़ूम_एनिमेशन: झूठी, माउसवील: झूठा, ऑनमॉइसमॉव: फ़ंक्शन (एवी, कॉओर्स) {}, ऑनस्टार्टड्रैग: फंक्शन (एवी, कॉओर्ड्स) {वापसी झूठी;}, // यह छवि ड्रैग पर नहीं खींचा जाएगी: फंक्शन (एवी, क्लिक करें (कार्य () () ($ ("# में") क्लिक करें (फ़ंक्शन () {iv1.iviewer ('zoom_by', 1);}); $ ("# बाहर") क्लिक करें (फ़ंक्शन () {iv1 $ ("Zoom_by ', -1);}); $ (" # फिट ") क्लिक करें (फ़ंक्शन () {iv1.iviewer (' फिट ');}); $ (" # orig ")। क्लिक करें ( फ़ंक्शन () (iv1.iviewer ('set_zoom', 100);}); $ ("# अपडेट")। क्लिक क...

How to access output from Node.js' request module -

Several tutorials that request and cheerio In these tutorials, they send the output to the console or send the DOM to the file as an example with fs . request (link, function, resp, html) {if (return) return console.error (err) var $ = cheerio.load (html), img = $ ('# img_wrapper' ). Data ('src'); Console.log (img);}). Pipe (fs.createWriteStream ('img_link.txt')); But what if I want to process the output during script execution? How can I use the output or send it to the call function? I can definitely load img_link.txt and get information from there, but it will be expensive and will not make sense. You can wrap a request in a function that html function (link, callback) {request (link, work (error, im, body) {callback (mistake, body);}); }); Then assign it to export and use it in any other module.

java - How to Store Secret Keys in Android -

साझा किए गए संदर्भ = संदर्भ। साझा करेंरेखा (संदर्भ "प्राथमिकता", 0); संपादक संपादक = साझा किए गए संदर्भ। एडिट (); editor.putString ( "clientid", "MY_CLIENT_ID"); editor.putString ( "clientSecret", "MY_SECRET_KEY"); editor.commit (); उपरोक्त कोड में, मैं अपने एंड्रॉइड ऐप में क्लाइंट आईडी और गुप्त कुंजी दोनों को कड़ी मेहनत कर रहा हूं। चूंकि, ये बहुत ही संवेदनशील डेटा हैं, मैं उन्हें सुरक्षित तरीके से कैसे जमा कर सकता हूं? आप स्टोर करते हैं यह निजी मोड में साझा की गई फाइल को कॉल करके साझा किए गए संदर्भों में एक सुरक्षित तरीके से: साझा किए गए संदर्भ prefs = getSharedPreferences ("Your_file_name", Context.MODE_PRIVATE); केवल आपके एप्लिकेशन ही इस तक पहुंच सकते हैं। अन्य अनुप्रयोगों या उपयोगकर्ता को वरीयताओं की सामग्री देखने का कोई तरीका नहीं है, जब तक कि आप इसे दिखाने के लिए कोड लागू न करें! आप बस ठीक कर रहे हैं, हालांकि आपको MODE_PRIVATE के बजाय 0 , क्योंकि भविष्य में, MODE_PRIVATE हो सकता है का मान, जो ...

php - fetch public facebook events -

I am trying to get all the events from a public page. I'm sure the API and App Secret is correct and I'm still getting: Fatal Error: Constant OAuthException: Invalid OAuth Access Token Signature. I have also added the site URL to the Facebook Developer app. I / O 13 / on line /var/www/Events/facebook/src/base_facebook.php Threw in. I have responded to many threads, but again and again I am getting the same error. What am I doing wrong to bring the incident data? ob_start (); 'Facebook / src / facebook.php' is required; $ Fb = new Facebook (array ('append' =>; APPID ',' secret '= & gt;' APCCRT ')); $ Page_events = $ fb- & gt; API ('/ IQUSA / Event', 'GET'); printf ('& lt; pre & gt;% s & lt; / pre & gt;', $ page_events); You have asked the same question again! But I saw a major error this time: Instead of 'APIID' it should be 'appId' . (Capital I ) B...

php - Insert null values to small arrays -

मेरे पास निम्न सरणी है: अर्रे ([xx] = & gt; सरणी ( [0] = & gt; 3 [1] = & gt; 10 [2] = & gt; 1 [3] = & gt; 5 [4] = & gt; 4 [5] = & gt; 15 [6] = & gt; 49 [ 7] = & gt; 14 [8] = & gt; 7 [9] = & gt; 2 [10] = & gt; 3) [yy] = & gt; ऐरे ([0] = & gt; 1 [1] = & gt; 2 [2] = & gt; 1 [3] = & gt; 2)) मैं एक्सरे सरणी के साथ तुलना करके yy सरणी में शून्य मानों को सम्मिलित करना चाहता हूं I उनके अनुक्रमित में छोटे सरणियों के लिए शून्य मान सम्मिलित करें अंत में मुझे आउटपुट की तरह Array ([xx] = & gt; Array ([0] = & gt; 3 [1] = & gt; 10 [2] = & gt; 1 [3] = & Gt; 5 [4] = & gt; 4 [5] = & gt; 15 [6] = & gt; 49 [7] = & gt; 14 [8] = & gt; 7 [9] = & gt; 2 [10] = & gt; ; 3) [याय] = & gt; ऐरे ([0] = & gt; 1 [1] = & gt; 2 [2] = & gt; 1 [3] = & gt; 2 [4] = & gt; नल [5] = & Gt; नल [6] = & gt; नल [7] = & gt; नल [8] = & gt; नल [9] = & gt; नल [10] = ...

css - Creating a new twitter-bootstrap responsive column size -

ATM I am using col-lg, col-md, col-sm and col-xs It happens that the col-xs has been set to 768px width, I think. How can I create a new tomorrow-XX or something small for example Width 480px? You can use the following to complete it. I personally link bootstrap cdn to my projects and keep the local version of bootstrap so that I can tap into my mixes for the specific style of my site, where I will keep the following ... @ media (max-width: $ screen-xs-min) {@ inclusion-grid (xxs); }

xpages - How to avoid the 64k limit when retrieving data from a view column? -

I know that the SSJS version of @DBColumn () is 64k similarity to the original Formula language version So far, I used the NotesView.getColumnValues ​​() , instead, I believe that here I will not face such a limit which is clearly wrong , Tells me yesterday as an immediate support call, as well as IBM. The code in question is used to populate the selectItems control in the combo box; Opens the combo box hosting page and crashes the server's HTTP and consequently the whole server: This is seeing all category entries from one view. I am using the combo as a dynamic category filter in the scene displayed on the same page. What are the options to retrieve the complete list of all the entries received from the data, even if the data has been received 64k? Sidenotes: I know that showing more than 2000 entries in comboBox can not be a concrete utility concept for some, but the customer is the same Loves to be able to see all the available entries at the place, and...

Facebook : Upload mutiple photos for a single post from android application -

I have post many photos on Facebook from the Android app. Can anyone help me? How can I do this? Thanks in advance. You can download Facebook Android SDK and integrate it into your application. Then use the link to be able to enter the user in your Facebook application, which receives a valid access token. Be sure to ask for the publish_stream permission. Then you have to call the appropriate graph API to upload photos, it is explained to call the normal graph API. From the wall via / {user-id} / feed . The proper end points are listed. If you show progress in your efforts so far, but this was a general question, then this is a general answer.

java - Image from URL using SimpleAdapter -

I am using this code to get data from JSON public Class ShowContacts ListActivity {Personal Static String URL = "http://192.168.0.103/contacts.json" Expands; Personal Static Last String TAG_CONTACTS = "Contact"; Private static final string TAG_NAME = "name"; Private static final string TAG_IMAGE = "image"; JSONArray contact = null; Int index = 0; Array list & lieutenant; Hashmap & lt; String, string & gt; & Gt; contact list; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); setContentView (R.layout.showjson); Contact List = New Arrestist & lt; Hashmap & lt; String, string & gt; & Gt; (); New GetContacts () carry about (); } Private Class GetContacts AsyncTask and lt; Zero, zero, zero> {@Override Safe Volume Doine Background (Zero ... arg0) {ServiceHandler sh = new ServiceHandler (); String jsonStr = sh.makeServiceCall (url, ServiceHandler.GET); Log D. ("Resp...

c++ - Build heatmap/attention map over an image from points coordinates with OpenCV -

Image
I want to create a heatmap from the number that is overlapping an image (in grayscale). I have X and Y coordinates of my points, this idea is easily to see the attention / density, where the points are centered (red area if there is a significant number). I think I can use OpenCV for this. The following function looks interesting: applyColorMap (src, result, cv :: COLORMAP_JET); . But I do not know how this map should be linked to numbers and not on the image. Do anyone know how to make a heatmap from the coordinates please direct? Thanks to @Berk's code and using COLORMAP_RAINBOW instead of using COLORMAP_JET : It is near the result that I want it to be very discrete and" smooth "/" fuzzy "is not enough. I do not want to show the points (especially those who are "alone"), I want to show the density area clearly. As some of you said, I think that I need to "just" change the intensity of pixels around my ROI. Do anyone have mo...

java - Enable proGuard Android -

Hello all, I know the questions about Progord have already been asked and answered. I go through some links, I'm using Eclipse Juno and ADT 19. This is my SDK & lt; Use-SDK Android: minSdkVersion = "14" Android: targetSdkVersion = "19" /> What do I want someone to let me run a total about how to enable Progwean and how this weather is capable or not? I have a very easy android to test the projector Project is, I want to apply it to another application. In my test application there is a class named MENVTV and an XML file named Activity Main. I have not received any help till now. thank you in advanced. You can add proguard-project.txt Inside your project, you want to create a Proogger form, For example I want to write these options -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -dontoptimize -optimizations! Code / Simplification /! / / Em Can export to APK. Protected o...

php - How to change the view displayed at the beginning in Yii? -

Image
डिफ़ॉल्ट रूप से, वर्ग नियंत्रक में है: सार्वजनिक $ लेआउट = '// लेआउट / कॉलम 2 '; इस दृश्य को पहले क्लाइंट के रूप में प्रदर्शित नहीं किया जाना चाहिए, मुझे साइट / इंडेक्स पर प्रदर्शित करने की जरूरत है एकल-कॉलम दृश्य लोड किया गया था, लेकिन इस पृष्ठ से लिंक लेआउट / कॉलम 2 का उपयोग किया गया था। दूसरे शब्दों में, उपयोगकर्ता वेबसाइट देखता देखता है: मेनू पर क्लिक करता है और इसमें दो-स्तंभ साइट प्रदर्शित होती है: फ़ंक्शन क्रिया इंडेक्स () {$ this- & gt; लेआउट = '// लेआउट / कॉलम 1'; } फ़ंक्शन क्रियाकुशलता () {$ this- & gt; लेआउट = '// लेआउट / स्तंभ 2'; // यदि डिफ़ॉल्ट लेआउट स्तंभ 2 है तो आप इस रेखा को छोड़ सकते हैं}

sql server - How can i use the sum of sums in a having clause in SQL -

This is my SQL code, problem is in the HAVING section, I have tried to use On the alias name, it will not work that someone told me that there is no facility to use the alias name in the HAVING section or WHERE section in SQL Server, so I Tried to use this one but it is not working, either Please I need your help. Here is my SQL code: SELECT LEFT (RSTab1.EventstartDate, 6) MONTHtab1, LEFT (RSTab2) Investment Date, 6) Mantat 2, RSTAB2, TIGMNumber (Subscriberbase). [DBO]. [CDRsbbbb@redge.org] With AS RSTAB1 (NOLKACK) ININ JOIN (SRTAB 2) Revenue RWF + SUM (RSTAB 1. Revenue) Total number of subscriptions from DRHUX1. RSTab1.Tig with DWHAUX1.CCDRNOrmal.dbo.nrmMSC RSTab2 (NOLOCK) OMainNumber = RSTab2.CalledPartyNumber where between 201310 and 201403 or left (RSTab2.EventstartDate, 6) between 201310 and 201403 and SUM (SUM (RSTAB 2.RevenueRWF) + SUM (RSTAB1 Revenue) between left (RSTab1.EventstartDate, 6) 6) Group by Left (RSTAB, Ententement Date, 6), Left (RSTAB 2. Avenantst...

ios - xcode5: how can I save and load an image? -

I am developing an app, where I can apply a filter to an image. I want to create an undo button which resets the original image in imageView . The solution is that before I apply any filter, before I save the original image in my original UIImage object. In this way I can just go back to it in my undo mode. Does someone know how I can do this? Take a look at the documents here: You UIImagePNGRepresentation () . Then read again: imageWithContentsOfFile:

c++ - When to delete QNetworkAccessManager pointer? -

This is my code but I am confused that where should I delete m_networkManager ? My fear is this: I can do this onRequestCompleted () slot but the problem is that my program The call getData function is often. Call Code> getData () is called. onRequestCompleted () before the slot has been removed, my program call getData () again. onRequestCompleted () is removed for the first getData () call. My program deletes m_networkManager which was originally allocated to memory when getData () was called the second time. I think the cause of this situation can be the accident. Zero MyApp :: getData () {QNetworkRequest request; Request.setUrl (QUrl ("http://www.domain.foo")); M_networkManager = New QNetworkAccessManager (this); // Instant Variable Connect (m_networkManager, Signal (Finish (QN NetworkCare *)), This Slot (On-Vinium (QN NetworkCar * *)); M_networkManager- & gt; Received (request); } Zero MyApp :: onRequestCompleted (QNetworkRep...

html - CSS, Left and Right borders override part of top one -

Example: Is it possible to remove gray lines from red to left and right edges without additional HTML elements? The code is simple: div {width: 300px; Height: 100px; Border: 1 px solid # ccc; Border-top: 15px solid # C90110; } This code is used in email HTML layout, so I'm not sure that it is okay to work with shadows. short answer is not the same, for the purpose you want at least (easy on a web page) !) If you are doing this as an email template, and you must use two different devices for cross- (browser, e-mail client - insert the appropriate word here) ( In fact, tablet (shock horror) is better for email in most cases!) Emails correctly Is a very difficult to stick - will work on two Divijh, one red, left, right and a white - this is the email client with the limitations. The answer given below is given on how to do it on the Web, it has been suggested that +1 (+2) should be given for that one as it belts, but can not do it: - P)

java - How to make endless (infinite) nodes in Piccolo2D? -

I would like to draw some infinite objects in Piccolo2D, such as endless rectangular (cartesian) grid. It will be indifferent in the graphic editor on the grid as some geometrical object. Unfortunately, Piccolo determines some kind, even if the color needs to be called and it does not apply to me appropriately. The program below has yellow objects, which I want to make endless. This type is Pendles . I am adding this cycle as a child. Package test. Endless; Import java.awt.color; Import java.awt.geom.Rectangle2D; Import org.piccolo2d.PNode; Import org.piccolo2d.extras.PFrame; Import org.piccolo2d.nodes.PPath; Import org.piccolo2d.util.PPaintContext; The public class Try_PGrid {public static class PENDless PNode extends {@Override protected void paint (PPaintContext paintContext)} (rectangle 2D localclip = paint contact. Tolkoclip (); . PaintContext.getGraphics () setColor (Color.yellow); fill colorContext.getGraphics () filling (localClip). }} Public Static Zero Main (strin...

Java how to format a string? -

मेरे पास निम्न स्ट्रिंग है: स्ट्रिंग x = "020120765"; मुझे इस स्ट्रिंग को 02 0120765 के रूप में चाहिए। एक संभावना है: x = x.substring (0,2) + "+ + x.substring (2, x.length ()); या: x = स्ट्रिंग। प्रारूप ("% s% s", x.substring (0, 2), x.substring (2 )); क्या कोई अन्य बेहतर या सुरुचिपूर्ण तरीका है? मैं regex की दिशा में सोच रहा हूँ मैंने निम्नलिखित की कोशिश की है: x = स्ट्रिंग। प्रारूप ("% s% s", x.split ("\\ d {2}")); लेकिन यह काम नहीं करता है एक और विकल्प x = x.replaceAll ("(। ।) (। +) "," $ 1 $ 2 ");

javascript - Value of set of input tags in a JS array -

मेरे पास इनपुट टैग का एक सेट है & lt; input name = "keys [] "प्रकार =" टेक्स्ट "& gt; & lt; input name = "keys []" प्रकार = "पाठ" & gt; & Lt; input name = "keys []" प्रकार = "पाठ" & gt; & lt; input name = "keys []" प्रकार = "पाठ" & gt; & lt; input name = "keys []" प्रकार = "पाठ" & gt; क्या नाम की कुंजी का उपयोग करके सरणी में सभी प्रकार के पाठ मूल्यों को प्राप्त करना संभव है [] मैंने यह कोशिश की $ ('इनपुट [नाम = "कुँजी []"]')। Val () लेकिन मुझे केवल पहले इनपुट टैग का मान मिला है। मैं इन इनपुट टैग के मूल्यों की सरणी को प्राप्त करना चाहता था क्या फिर से चलने के बिना संभव है? धन्यवाद कोशिश करें SerializeArray () यह नाम और मान के साथ वस्तुओं की एक सरणी वापस करेगा। $ ('इनपुट [name = "keys []"]')। SerializeArray ()

entity framework - EF6 Code First update-database without deleting data -

I am trying to update my DB with changes made in my unit model (some extra table columns) . But I do not want to leave & amp; Rebuild the database because it will delete all my test data. Before this I have done this and have used the seed method to make some basic data, but now I have a lot of data that I keep. I have tried to run the updated database but I get the error: There is already activity 'named' activity in the database. By viewing the migration script, I can see that he is trying to create a table activity notit line. Obviously I do not want to do this I do not mind using the initial migration again add-migration initial creation " , But now when I run an update-database, then he thinks there is no change! I am sure that whatever I want to do is possible, but I can not seem to do this work. If I have to leave & amp; Rebuild the DB, but I would like to know if any one will successfully update and keep the data. The issue is to crea...

Monte Carlo simulation of a whole matrix in Stata -

I calculate a summary data of a group of my data (such as age, gender) with confidence intervals Would like to For that purpose, I use Monte Carlo simulation drawing value for each line in the Poisson distribution for my data and then pulling out the rows. The result of the simulation is just a value (using the return scalar in Raxas), but the whole process is completely cured, but as soon as I try to simulate more than one result (using ETRN matrix in Ecluron) I'm not working (see status code below). I get an error message: "Type mismatch error in expression: e (a)". How can I simulate the matrix of results without a more vector or more complex loop? Many thanks! Fred program use bootPGW, eclass "c: \ users \ 649007 \ desktop \ demetriq_PWG_edu.dta", gene id = _n sort id gene n = _n id by: gen DL2 = floor ID: gen Dsmoking = floor (rpoisson (smoking)) * ID by: GEN AL2 = (ML2) (id: gen ML2 = (dl2 / numpyr) id: General D2 = 2 = floor (rpoisson (D0)) -CDPe...

algorithm - How to segment with false edge in in image? -

Image
I try to solve the problem of false edge in image segmentation. See its definition in the figure. The problem of wrong edge is often in the unique image, especially for the medical image. I am getting the method or facility to solve it and to gain a real edge. I try to apply some current method examples: The graph is cut but they are not effective. I also apply shield or entropy here. Can you suggest some idea or feature or method to solve it? You can download the test image here. Note: The original image is "input.mat". Its type is 16 bit Let us, for example, in my marked image, B is the real edge. We analyze only one point at one point, more intensity than the object area, but it is not so big to assume that the intensity of a point is 300, in which the object The intensity of is approximately 260-280 (humanity property). So we can say that there is a point background, if we calssify it in two areas. Sorry, you are right, the question is that this is a true edge an...

c++ - Load .png to TImage in Embarcadero C++Builder XE5 -

Let me know one. Need to load a PNG image because I need transparency. It is not an option to convert BMP into an example because I lose it transparency. How can I do this? simply stdimage.hpp . In the design time, it will make a .png file in the Image.Picture dialog. At runtime, you can create and load a TPngImage with the file, and keep it at Image.Picture . Include # lt; Stdimage.hpp & gt; __fastcall TForm1 :: TForm1 (TComponent * Owner): TForm (Owner) {TPngImage * img = new TPngImage (); img- & gt; LoadFromFile ("C: \\ Images \\ calculator.png"); Image1- & gt; Picture- & gt; Assign (img); Removing an IMG; } (Includes Delphi code and explanations as well as C ++ builder, because TImage and TPngImage both delphi classes And therefore it is relevant, and because C ++ builder users should be very familiar with translating Delphi code because the entire VCL is built on it. Besides, TImage is a Delphi VCL component, one Delphi user can...

jquery mobile - Is onchnge() function works in jquerymobile 1.4.2 -

I am using jquerymobile 1.4.2. This code that I'm using in my page & Lt; Script src = "http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script & gt; Function myFunction () {document.getElementById ("myText"). Disabled = true; } & Lt; / Script & gt; & Lt; P & gt; Click the button to disable the text field. & Lt; / P & gt; & Lt; onchange = "myfunction ()"> gt; & Lt; Options & gt; 1 & lt; / Option & gt; & Lt; Options & gt; 2 & lt; / Options & gt; & Lt; / Select & gt; First name: & lt; Input type = "text" id = "myText" & gt; & Lt; / Body & gt; & Lt; / Html & gt; The above program works fine but if I change it to this code & lt; Script & gt; Function myFunction () {document.getElementById ("myTex...